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 ·
6d42ff5
1
Parent(s): db32172
Training in progress, epoch 1
Browse files- runs/Dec16_13-24-37_968654b9638d/events.out.tfevents.1671197081.968654b9638d.113.10 +2 -2
- runs/Dec16_13-31-17_968654b9638d/1671197482.2349005/events.out.tfevents.1671197482.968654b9638d.113.13 +3 -0
- runs/Dec16_13-31-17_968654b9638d/events.out.tfevents.1671197482.968654b9638d.113.12 +3 -0
- training_args.bin +1 -1
runs/Dec16_13-24-37_968654b9638d/events.out.tfevents.1671197081.968654b9638d.113.10
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:7144296214a5e140d079d957ea7e0882b135f0cf0427718d8b6594905560ba3d
|
| 3 |
+
size 8712
|
runs/Dec16_13-31-17_968654b9638d/1671197482.2349005/events.out.tfevents.1671197482.968654b9638d.113.13
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a1229fec5c04f6fdf1b1f804ea847f107e4e1d8d04a9d8c94c34e8b0d71f1b03
|
| 3 |
+
size 5909
|
runs/Dec16_13-31-17_968654b9638d/events.out.tfevents.1671197482.968654b9638d.113.12
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:25c835aeac1b730f3cbce96ee0d184e5303933d583489f7ae62228a7de6b26ce
|
| 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:ea4456bd891ea74299cb9dd4cff97990504130162b88496b4dbcf7af84ccc3fa
|
| 3 |
size 3707
|