Instructions to use loroxiv/donut-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use loroxiv/donut-test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="loroxiv/donut-test")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("loroxiv/donut-test") model = AutoModelForMultimodalLM.from_pretrained("loroxiv/donut-test", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use loroxiv/donut-test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "loroxiv/donut-test" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "loroxiv/donut-test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/loroxiv/donut-test
- SGLang
How to use loroxiv/donut-test 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 "loroxiv/donut-test" \ --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": "loroxiv/donut-test", "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 "loroxiv/donut-test" \ --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": "loroxiv/donut-test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use loroxiv/donut-test with Docker Model Runner:
docker model run hf.co/loroxiv/donut-test
Commit History
-
Training in progress, epoch 3
c5b46f2 -
Training in progress, epoch 2
5f8f1b3 -
Training in progress, epoch 1
0ba5c67 -
Training in progress, epoch 8
8fd7fd7 -
Training in progress, epoch 7
35fe2b0 -
Training in progress, epoch 6
d7faec9 -
Training in progress, epoch 5
43b6481 -
Training in progress, epoch 4
ccaaa5b -
Training in progress, epoch 3
95e577a -
Training in progress, epoch 2
cd0127e -
Training in progress, epoch 1
9475f17 -
Training in progress, epoch 8
0cccb8f -
Training in progress, epoch 7
28b73b8 -
Training in progress, epoch 6
eeb196e -
Training in progress, epoch 5
0d8b9c1 -
Training in progress, epoch 4
1610d5b -
Training in progress, epoch 3
b309d1a -
Training in progress, epoch 2
b13998c -
Training in progress, epoch 1
8726648
-
Training in progress, epoch 6
7d90801 -
Training in progress, epoch 5
85f3250 -
Training in progress, epoch 4
4ad46c3 -
Training in progress, epoch 3
76d33f5 -
Training in progress, epoch 2
bedcaa4 -
Training in progress, epoch 1
f376cd2 -
Training in progress, epoch 8
c585386 -
Training in progress, epoch 7
8dbf7da -
Training in progress, epoch 6
3a086d3 -
Training in progress, epoch 5
8a3a713 -
Training in progress, epoch 4
cb1f5c2 -
Training in progress, epoch 3
5c1cbc3 -
Training in progress, epoch 2
0bdb5a4 -
Training in progress, epoch 1
ecef20b -
Training in progress, epoch 1
1a3664a
-
Training in progress, epoch 3
9c6034e -
Training in progress, epoch 2
7d17c61 -
Training in progress, epoch 1
1d511b4 -
initial commit
b688c05