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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("AiDevelopment/donut-base-sroie") model = AutoModelForMultimodalLM.from_pretrained("AiDevelopment/donut-base-sroie", device_map="auto") - 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 ·
aa642b4
1
Parent(s): a3565b3
Training in progress, epoch 1
Browse files- pytorch_model.bin +1 -1
- runs/Jan05_13-07-22_489c69041b2d/events.out.tfevents.1672924046.489c69041b2d.41934.12 +2 -2
- runs/Jan05_13-47-39_489c69041b2d/1672926463.4002352/events.out.tfevents.1672926463.489c69041b2d.41934.15 +3 -0
- runs/Jan05_13-47-39_489c69041b2d/events.out.tfevents.1672926463.489c69041b2d.41934.14 +3 -0
- runs/Jan05_13-49-31_489c69041b2d/1672926575.86311/events.out.tfevents.1672926575.489c69041b2d.41934.17 +3 -0
- runs/Jan05_13-49-31_489c69041b2d/events.out.tfevents.1672926575.489c69041b2d.41934.16 +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:fac51498772549460da7ddff3ecec15c3269a4e745135004af9058c5fad4a4f9
|
| 3 |
size 809187097
|
runs/Jan05_13-07-22_489c69041b2d/events.out.tfevents.1672924046.489c69041b2d.41934.12
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:1cdd1124b4f46e12422341569a27eed9181f788c1fd023d029a3af5eccb9823e
|
| 3 |
+
size 9841
|
runs/Jan05_13-47-39_489c69041b2d/1672926463.4002352/events.out.tfevents.1672926463.489c69041b2d.41934.15
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8688328cd28f369b86c9d776c0a2f67d094edb7ab0101952fc0506b32cc32f15
|
| 3 |
+
size 5965
|
runs/Jan05_13-47-39_489c69041b2d/events.out.tfevents.1672926463.489c69041b2d.41934.14
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65f78141625829d74baf32b7fd431e7c719adc3c99d2c8e9b28b26fb4491b28c
|
| 3 |
+
size 8391
|
runs/Jan05_13-49-31_489c69041b2d/1672926575.86311/events.out.tfevents.1672926575.489c69041b2d.41934.17
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4472594d4cde6e6f080dd1353c1974d8f3c7fc3fa0c0ddaba80f42257f69f8df
|
| 3 |
+
size 5965
|
runs/Jan05_13-49-31_489c69041b2d/events.out.tfevents.1672926575.489c69041b2d.41934.16
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01b0f672d0718b66c12f444d10952247069ebd9184ddcd58a064de0450f7c56e
|
| 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:e70826adc79512f04e9db75c65d74fedffd120a48e5ffd830d5ef0c5a2a80533
|
| 3 |
size 3707
|