Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/ocr_bench/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ class ModelConfig:
size="2.1B",
default_flavor="l4x1",
),
"qianfan-ocr": ModelConfig(
script="https://huggingface.co/datasets/uv-scripts/ocr/raw/main/qianfan-ocr.py",
model_id="baidu/Qianfan-OCR",
size="4.7B",
default_flavor="l4x1",
),
"dots-mocr": ModelConfig(
script="https://huggingface.co/datasets/uv-scripts/ocr/raw/main/dots-mocr.py",
model_id="rednote-hilab/dots.mocr",
size="3B",
default_flavor="l4x1",
),
}

DEFAULT_MODELS = ["glm-ocr", "deepseek-ocr", "lighton-ocr-2", "dots-ocr", "firered-ocr"]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def test_custom_args(self):


class TestModelRegistry:
def test_has_five_core_models(self):
assert len(MODEL_REGISTRY) == 5
def test_has_core_models(self):
assert len(MODEL_REGISTRY) == 7

def test_default_models_exist_in_registry(self):
for slug in DEFAULT_MODELS:
Expand Down
Loading