Run this model with HF Jobs
Run docling-project/docling-models on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/docling-project/docling-models. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/docling-project/docling-models on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use docling-project/docling-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use docling-project/docling-models with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("docling-project/docling-models", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Layout model based on RT-DETR-v2
#11
by nlivathinos - opened
Files changed (2)
2 unmodified lines34567891011121314153 unmodified lines1920212223249 unmodified lines343536373839404120 unmodified lines62636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071083 unmodified lines1121131141151161171181191201211221231241252 unmodified lines"activation_function": "silu","anchor_image_size": null,"architectures": ["RTDetrForObjectDetection"],"attention_dropout": 0.0,"auxiliary_loss": true,"backbone": null,"backbone_config": {"model_type": "rt_detr_resnet","out_features": ["stage2","stage3",3 unmodified lines2,3,4]},"backbone_kwargs": null,9 unmodified lines256],"decoder_layers": 6,"decoder_n_points": 4,"disable_custom_kernels": true,"dropout": 0.0,"encode_proj_layers": [220 unmodified lines"freeze_backbone_batch_norms": true,"hidden_expansion": 1.0,"id2label": {"0": "background","1": "Caption","10": "Text","11": "Title","12": "Document Index","13": "Code","14": "Checkbox-Selected","15": "Checkbox-Unselected","16": "Form","17": "Key-Value Region","2": "Footnote","3": "Formula","4": "List-item","5": "Page-footer","6": "Page-header","7": "Picture","8": "Section-header","9": "Table"},"initializer_bias_prior_prob": null,"initializer_range": 0.01,"is_encoder_decoder": true,"label2id": {"Caption": "1","Checkbox-Selected": "14","Checkbox-Unselected": "15","Code": "13","Document Index": "12","Footnote": "2","Form": "16","Formula": "3","Key-Value Region": "17","List-item": "4","Page-footer": "5","Page-header": "6","Picture": "7","Section-header": "8","Table": "9","Text": "10","Title": "11","background": "0"},"label_noise_ratio": 0.5,"layer_norm_eps": 1e-05,3 unmodified lines"matcher_class_cost": 2.0,"matcher_gamma": 2.0,"matcher_giou_cost": 2.0,"model_type": "rt_detr","normalize_before": false,"num_denoising": 100,"num_feature_levels": 3,"num_queries": 300,"positional_encoding_temperature": 10000,"torch_dtype": "float32","transformers_version": "4.46.2","use_focal_loss": true,"use_pretrained_backbone": false,"use_timm_backbone": false,2 unmodified lines34567891011121314151617181920212223242526272829303132333 unmodified lines373839404142434445464748499 unmodified lines5960616263646566676820 unmodified lines89909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321333 unmodified lines1371381391401411421431441451461471481491502 unmodified lines"activation_function": "silu","anchor_image_size": null,"architectures": ["RTDetrV2ForObjectDetection"],"attention_dropout": 0.0,"auxiliary_loss": true,"backbone": null,"backbone_config": {"depths": [3,4,6,3],"downsample_in_bottleneck": false,"downsample_in_first_stage": false,"embedding_size": 64,"hidden_act": "relu","hidden_sizes": [256,512,1024,2048],"layer_type": "bottleneck","model_type": "rt_detr_resnet","num_channels": 3,"out_features": ["stage2","stage3",3 unmodified lines2,3,4],"stage_names": ["stem","stage1","stage2","stage3","stage4"]},"backbone_kwargs": null,9 unmodified lines256],"decoder_layers": 6,"decoder_method": "default","decoder_n_levels": 3,"decoder_n_points": 4,"decoder_offset_scale": 0.5,"dropout": 0.0,"encode_proj_layers": [220 unmodified lines"freeze_backbone_batch_norms": true,"hidden_expansion": 1.0,"id2label": {"0": "Caption","1": "Footnote","2": "Formula","3": "List-item","4": "Page-footer","5": "Page-header","6": "Picture","7": "Section-header","8": "Table","9": "Text","10": "Title","11": "Document Index","12": "Code","13": "Checkbox-Selected","14": "Checkbox-Unselected","15": "Form","16": "Key-Value Region"},"initializer_bias_prior_prob": null,"initializer_range": 0.01,"is_encoder_decoder": true,"label2id": {"Caption": 0,"Checkbox-Selected": 13,"Checkbox-Unselected": 14,"Code": 12,"Document Index": 11,"Footnote": 1,"Form": 15,"Formula": 2,"Key-Value Region": 16,"List-item": 3,"Page-footer": 4,"Page-header": 5,"Picture": 6,"Section-header": 7,"Table": 8,"Text": 9,"Title": 10},"label_noise_ratio": 0.5,"layer_norm_eps": 1e-05,3 unmodified lines"matcher_class_cost": 2.0,"matcher_gamma": 2.0,"matcher_giou_cost": 2.0,"model_type": "rt_detr_v2","normalize_before": false,"num_denoising": 100,"num_feature_levels": 3,"num_queries": 300,"positional_encoding_temperature": 10000,"torch_dtype": "float32","transformers_version": "4.51.3","use_focal_loss": true,"use_pretrained_backbone": false,"use_timm_backbone": false,
123version https://git-lfs.github.com/spec/v1oid sha256:31e60b4709571b613bc8736a9c982fb550d8d7a1809160a68a8282af60c8910bsize 171666216123version https://git-lfs.github.com/spec/v1oid sha256:b37f85ce9e044df9069471a4b0b764e1be93a44cb7adadfe37e496e928e676f5size 171658996
model_artifacts/layout/config.json+65-40
model_artifacts/layout/model.safetensors+2-2