mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 12:48:28 +00:00
fix: correct the model-repo name (#2624)
* fix: correct the model-repo name Signed-off-by: Peter Staar <taa@zurich.ibm.com> * udated model-id Signed-off-by: Peter Staar <taa@zurich.ibm.com> * reformatted code Signed-off-by: Peter Staar <taa@zurich.ibm.com> --------- Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
committed by
GitHub
parent
4852d8b4f2
commit
14b436d590
6
docs/examples/pictures_description_api.py
vendored
6
docs/examples/pictures_description_api.py
vendored
@@ -96,10 +96,14 @@ def watsonx_vlm_options():
|
|||||||
print(f"{api_out=}")
|
print(f"{api_out=}")
|
||||||
return api_out["access_token"]
|
return api_out["access_token"]
|
||||||
|
|
||||||
|
# Background information in case the model_id is updated:
|
||||||
|
# [1] Official list of models: https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/fm-models.html?context=wx
|
||||||
|
# [2] Info on granite vision 3.3: https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/fm-models-ibm.html?context=wx#granite-vision-3-3-2b
|
||||||
|
|
||||||
options = PictureDescriptionApiOptions(
|
options = PictureDescriptionApiOptions(
|
||||||
url="https://us-south.ml.cloud.ibm.com/ml/v1/text/chat?version=2023-05-29",
|
url="https://us-south.ml.cloud.ibm.com/ml/v1/text/chat?version=2023-05-29",
|
||||||
params=dict(
|
params=dict(
|
||||||
model_id="ibm/granite-vision-3-2-2b",
|
model_id="ibm/granite-vision-3-3-2b",
|
||||||
project_id=project_id,
|
project_id=project_id,
|
||||||
parameters=dict(
|
parameters=dict(
|
||||||
max_new_tokens=400,
|
max_new_tokens=400,
|
||||||
|
|||||||
Reference in New Issue
Block a user