Instructions to use LauraExp/Donutv1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LauraExp/Donutv1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="LauraExp/Donutv1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("LauraExp/Donutv1") model = AutoModelForMultimodalLM.from_pretrained("LauraExp/Donutv1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LauraExp/Donutv1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LauraExp/Donutv1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LauraExp/Donutv1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LauraExp/Donutv1
- SGLang
How to use LauraExp/Donutv1 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 "LauraExp/Donutv1" \ --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": "LauraExp/Donutv1", "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 "LauraExp/Donutv1" \ --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": "LauraExp/Donutv1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LauraExp/Donutv1 with Docker Model Runner:
docker model run hf.co/LauraExp/Donutv1
Commit History
-
Training done
a67aefd -
Training done
3ebb2cb -
Training in progress, epoch 15
fce2ef8 -
Training in progress, epoch 14
5562a81 -
Training in progress, epoch 13
196f07c -
Training in progress, epoch 12
26cc41d -
Training in progress, epoch 11
6133459 -
Training in progress, epoch 10
5cdb899 -
Training in progress, epoch 9
8a8a996 -
Training in progress, epoch 8
7ed1acf -
Training in progress, epoch 7
150f6fe -
Training in progress, epoch 6
4133ee6 -
Training in progress, epoch 5
eb562b9 -
Training in progress, epoch 4
dcf9262 -
Training in progress, epoch 3
7ccaab1 -
Training in progress, epoch 2
fd84253 -
Training in progress, epoch 1
f864349 -
Training in progress, epoch 0
93cf87b -
Training done
d9afc36 -
Training done
0da7005 -
Training in progress, epoch 15
645de87 -
Training in progress, epoch 14
032baac -
Training in progress, epoch 13
7d17be0 -
Training in progress, epoch 12
8f4dbdb -
Training in progress, epoch 11
72298bd -
Training in progress, epoch 10
6e5c72e -
Training in progress, epoch 9
911d9cf -
Training in progress, epoch 8
f2c758e -
Training in progress, epoch 7
75cdc81 -
Training in progress, epoch 6
19a7593 -
Training in progress, epoch 5
e98f867 -
Training in progress, epoch 4
e405c25 -
Training in progress, epoch 3
a86aa0c -
Training in progress, epoch 2
af2d33c -
Training in progress, epoch 1
16bcf23 -
Training in progress, epoch 0
4fe5338 -
Training in progress, epoch 13
554e166 -
Training in progress, epoch 12
879306d -
Training in progress, epoch 11
1c59855 -
Training in progress, epoch 10
f52493a -
Training in progress, epoch 9
79c10b7 -
Training in progress, epoch 8
b7d9c37 -
Training in progress, epoch 7
be55d3f -
Training in progress, epoch 6
f3db282 -
Training in progress, epoch 5
f7ff396 -
Training in progress, epoch 4
44764c2 -
Training in progress, epoch 3
d91c202 -
Training in progress, epoch 2
bff709d -
Training in progress, epoch 1
7f6ae8f -
Training in progress, epoch 0
f83eed8