Image-Text-to-Text
Transformers
TensorBoard
Safetensors
vision-encoder-decoder
Generated from Trainer
Instructions to use streit63/donut-base-tabs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use streit63/donut-base-tabs with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="streit63/donut-base-tabs")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("streit63/donut-base-tabs") model = AutoModelForMultimodalLM.from_pretrained("streit63/donut-base-tabs", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use streit63/donut-base-tabs with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "streit63/donut-base-tabs" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "streit63/donut-base-tabs", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/streit63/donut-base-tabs
- SGLang
How to use streit63/donut-base-tabs with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "streit63/donut-base-tabs" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "streit63/donut-base-tabs", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "streit63/donut-base-tabs" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "streit63/donut-base-tabs", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use streit63/donut-base-tabs with Docker Model Runner:
docker model run hf.co/streit63/donut-base-tabs
Training in progress, epoch 1
Browse files- README.md +1 -1
- config.json +1 -1
- model.safetensors +2 -2
- runs/Oct07_10-49-59_FNLGY003/events.out.tfevents.1728287401.FNLGY003.32552.0 +3 -0
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -19,7 +19,7 @@ This model is a fine-tuned version of [streit63/donut-base-tabs](https://hugging
|
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
## Intended uses & limitations
|
| 25 |
|
|
|
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
| 22 |
+
Based on donut-base-sroie, this model is intended to be trained on tables.
|
| 23 |
|
| 24 |
## Intended uses & limitations
|
| 25 |
|
config.json
CHANGED
|
@@ -85,7 +85,7 @@
|
|
| 85 |
"typical_p": 1.0,
|
| 86 |
"use_bfloat16": false,
|
| 87 |
"use_cache": true,
|
| 88 |
-
"vocab_size":
|
| 89 |
},
|
| 90 |
"decoder_start_token_id": 0,
|
| 91 |
"encoder": {
|
|
|
|
| 85 |
"typical_p": 1.0,
|
| 86 |
"use_bfloat16": false,
|
| 87 |
"use_cache": true,
|
| 88 |
+
"vocab_size": 57531
|
| 89 |
},
|
| 90 |
"decoder_start_token_id": 0,
|
| 91 |
"encoder": {
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba4d0d20e720441ad0f9cd9ae49b207898f74567c545a6540b9031d4f8b005db
|
| 3 |
+
size 809095320
|
runs/Oct07_10-49-59_FNLGY003/events.out.tfevents.1728287401.FNLGY003.32552.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34b48fe9d7ebb1189c811e60d56d1dde7f1c23f4d693113bb6a0d87785c1a6e9
|
| 3 |
+
size 9328
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5432
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77982888b8df2474969f0c505b46340706b521b3c89090f9b2edc85e46e5da66
|
| 3 |
size 5432
|