Instructions to use AiDevelopment/donut-base-sroie with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AiDevelopment/donut-base-sroie with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AiDevelopment/donut-base-sroie")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("AiDevelopment/donut-base-sroie") model = AutoModelForMultimodalLM.from_pretrained("AiDevelopment/donut-base-sroie") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AiDevelopment/donut-base-sroie with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AiDevelopment/donut-base-sroie" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AiDevelopment/donut-base-sroie", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AiDevelopment/donut-base-sroie
- SGLang
How to use AiDevelopment/donut-base-sroie 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 "AiDevelopment/donut-base-sroie" \ --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": "AiDevelopment/donut-base-sroie", "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 "AiDevelopment/donut-base-sroie" \ --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": "AiDevelopment/donut-base-sroie", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AiDevelopment/donut-base-sroie with Docker Model Runner:
docker model run hf.co/AiDevelopment/donut-base-sroie
Commit ·
2f1a3af
1
Parent(s): b756f90
Training in progress, epoch 1
Browse files- pytorch_model.bin +1 -1
- runs/Dec17_19-20-40_6a9bb6e61b9f/events.out.tfevents.1671305078.6a9bb6e61b9f.84.6 +2 -2
- runs/Dec17_19-46-41_6a9bb6e61b9f/1671306405.1433713/events.out.tfevents.1671306405.6a9bb6e61b9f.84.9 +3 -0
- runs/Dec17_19-46-41_6a9bb6e61b9f/events.out.tfevents.1671306405.6a9bb6e61b9f.84.8 +3 -0
- training_args.bin +1 -1
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 809187097
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4aa76ff05c49d603516dc1265b0820557fb904e5bf05e8926bc412da5821635
|
| 3 |
size 809187097
|
runs/Dec17_19-20-40_6a9bb6e61b9f/events.out.tfevents.1671305078.6a9bb6e61b9f.84.6
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:7a8f73948fdd7bba6b70187143a416c97dc743df44106b7f8707f72fedb331ab
|
| 3 |
+
size 9370
|
runs/Dec17_19-46-41_6a9bb6e61b9f/1671306405.1433713/events.out.tfevents.1671306405.6a9bb6e61b9f.84.9
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de60d6ac9c6ac31003a1ec3466e06a6b4f0f4d9452473f7135ac7ab35e2795b4
|
| 3 |
+
size 5965
|
runs/Dec17_19-46-41_6a9bb6e61b9f/events.out.tfevents.1671306405.6a9bb6e61b9f.84.8
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36b658c0fae98297d342419a0632fce03639d94bb459d026114b9f73e7ab4780
|
| 3 |
+
size 8232
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3707
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2db83c3339cc50b1a6fdf5a6a1164fec8ee699d4971a5d77c1d7d4e00e77e07a
|
| 3 |
size 3707
|