Skip to content

Commit 06ae8ae

Browse files
chore: replace ds4sd with docling-project (#2596)
Signed-off-by: Peter Staar <[email protected]>
1 parent c21327c commit 06ae8ae

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

docling/cli/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def download_hf_repo(
140140
models: Annotated[
141141
list[str],
142142
typer.Argument(
143-
help="Specific models to download from HuggingFace identified by their repo id. For example: ds4sd/docling-models .",
143+
help="Specific models to download from HuggingFace identified by their repo id. For example: docling-project/docling-models .",
144144
),
145145
],
146146
output_dir: Annotated[

docling/datamodel/layout_model_specs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,42 +31,42 @@ def model_repo_folder(self) -> str:
3131
# Default Docling Layout Model
3232
DOCLING_LAYOUT_V2 = LayoutModelConfig(
3333
name="docling_layout_v2",
34-
repo_id="ds4sd/docling-layout-old",
34+
repo_id="docling-project/docling-layout-old",
3535
revision="main",
3636
model_path="",
3737
)
3838

3939
DOCLING_LAYOUT_HERON = LayoutModelConfig(
4040
name="docling_layout_heron",
41-
repo_id="ds4sd/docling-layout-heron",
41+
repo_id="docling-project/docling-layout-heron",
4242
revision="main",
4343
model_path="",
4444
)
4545

4646
DOCLING_LAYOUT_HERON_101 = LayoutModelConfig(
4747
name="docling_layout_heron_101",
48-
repo_id="ds4sd/docling-layout-heron-101",
48+
repo_id="docling-project/docling-layout-heron-101",
4949
revision="main",
5050
model_path="",
5151
)
5252

5353
DOCLING_LAYOUT_EGRET_MEDIUM = LayoutModelConfig(
5454
name="docling_layout_egret_medium",
55-
repo_id="ds4sd/docling-layout-egret-medium",
55+
repo_id="docling-project/docling-layout-egret-medium",
5656
revision="main",
5757
model_path="",
5858
)
5959

6060
DOCLING_LAYOUT_EGRET_LARGE = LayoutModelConfig(
6161
name="docling_layout_egret_large",
62-
repo_id="ds4sd/docling-layout-egret-large",
62+
repo_id="docling-project/docling-layout-egret-large",
6363
revision="main",
6464
model_path="",
6565
)
6666

6767
DOCLING_LAYOUT_EGRET_XLARGE = LayoutModelConfig(
6868
name="docling_layout_egret_xlarge",
69-
repo_id="ds4sd/docling-layout-egret-xlarge",
69+
repo_id="docling-project/docling-layout-egret-xlarge",
7070
revision="main",
7171
model_path="",
7272
)

docling/datamodel/vlm_model_specs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
# SmolDocling
5959
SMOLDOCLING_MLX = InlineVlmOptions(
60-
repo_id="ds4sd/SmolDocling-256M-preview-mlx-bf16",
60+
repo_id="docling-project/SmolDocling-256M-preview-mlx-bf16",
6161
prompt="Convert this page to docling.",
6262
response_format=ResponseFormat.DOCTAGS,
6363
inference_framework=InferenceFramework.MLX,
@@ -68,7 +68,7 @@
6868
)
6969

7070
SMOLDOCLING_TRANSFORMERS = InlineVlmOptions(
71-
repo_id="ds4sd/SmolDocling-256M-preview",
71+
repo_id="docling-project/SmolDocling-256M-preview",
7272
prompt="Convert this page to docling.",
7373
response_format=ResponseFormat.DOCTAGS,
7474
inference_framework=InferenceFramework.TRANSFORMERS,
@@ -84,7 +84,7 @@
8484
)
8585

8686
SMOLDOCLING_VLLM = InlineVlmOptions(
87-
repo_id="ds4sd/SmolDocling-256M-preview",
87+
repo_id="docling-project/SmolDocling-256M-preview",
8888
prompt="Convert this page to docling.",
8989
response_format=ResponseFormat.DOCTAGS,
9090
inference_framework=InferenceFramework.VLLM,

docling/models/code_formula_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class CodeFormulaModel(BaseItemAndImageEnrichmentModel):
6565
Processes the given batch of elements and enriches them with predictions.
6666
"""
6767

68-
_model_repo_folder = "ds4sd--CodeFormulaV2"
68+
_model_repo_folder = "docling-project--CodeFormulaV2"
6969
elements_batch_size = 5
7070
images_scale = 1.67 # = 120 dpi, aligned with training data resolution
7171
expansion_factor = 0.18
@@ -121,7 +121,7 @@ def download_models(
121121
progress: bool = False,
122122
) -> Path:
123123
return download_hf_model(
124-
repo_id="ds4sd/CodeFormulaV2",
124+
repo_id="docling-project/CodeFormulaV2",
125125
revision="main",
126126
local_dir=local_dir,
127127
force=force,

docling/models/document_picture_classifier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class DocumentPictureClassifier(BaseItemAndImageEnrichmentModel):
5959
Processes a batch of elements and adds classification annotations.
6060
"""
6161

62-
_model_repo_folder = "ds4sd--DocumentFigureClassifier"
62+
_model_repo_folder = "docling-project--DocumentFigureClassifier"
6363
images_scale = 2
6464

6565
def __init__(
@@ -108,7 +108,7 @@ def download_models(
108108
local_dir: Optional[Path] = None, force: bool = False, progress: bool = False
109109
) -> Path:
110110
return download_hf_model(
111-
repo_id="ds4sd/DocumentFigureClassifier",
111+
repo_id="docling-project/DocumentFigureClassifier",
112112
revision="v1.0.1",
113113
local_dir=local_dir,
114114
force=force,

docling/models/table_structure_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828

2929
class TableStructureModel(BasePageModel):
30-
_model_repo_folder = "ds4sd--docling-models"
30+
_model_repo_folder = "docling-project--docling-models"
3131
_model_path = "model_artifacts/tableformer"
3232

3333
def __init__(
@@ -93,7 +93,7 @@ def download_models(
9393
local_dir: Optional[Path] = None, force: bool = False, progress: bool = False
9494
) -> Path:
9595
return download_hf_model(
96-
repo_id="ds4sd/docling-models",
96+
repo_id="docling-project/docling-models",
9797
revision="v2.3.0",
9898
local_dir=local_dir,
9999
force=force,

0 commit comments

Comments
 (0)