Skip to content

Commit 0e2f370

Browse files
updated the model specs
Signed-off-by: Peter Staar <[email protected]>
1 parent c1dcb05 commit 0e2f370

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docling/datamodel/vlm_model_specs.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@
2424
prompt="Convert this page to docling.",
2525
response_format=ResponseFormat.DOCTAGS,
2626
inference_framework=InferenceFramework.MLX,
27-
supported_devices=[AcceleratorDevice.MPS],
27+
supported_devices=[
28+
AcceleratorDevice.CPU,
29+
AcceleratorDevice.CUDA,
30+
],
2831
scale=2.0,
2932
temperature=0.0,
30-
stop_strings=["</doctag>", "<end_of_utterance>"],
33+
max_new_tokens=8192,
34+
stop_strings=["</doctag>", "<|end_of_text|>"],
3135
)
3236

3337
GRANITEDOCLING_MLX = InlineVlmOptions(
@@ -38,7 +42,8 @@
3842
supported_devices=[AcceleratorDevice.MPS],
3943
scale=2.0,
4044
temperature=0.0,
41-
stop_strings=["</doctag>", "<end_of_utterance>"],
45+
max_new_tokens=8192,
46+
stop_strings=["</doctag>", "<|end_of_text|>"],
4247
)
4348

4449
# SmolDocling

0 commit comments

Comments
 (0)