Instructions to use Al-Insan/donut-base-sroie with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Al-Insan/donut-base-sroie with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Al-Insan/donut-base-sroie")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Al-Insan/donut-base-sroie") model = AutoModelForMultimodalLM.from_pretrained("Al-Insan/donut-base-sroie", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Al-Insan/donut-base-sroie with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Al-Insan/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": "Al-Insan/donut-base-sroie", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Al-Insan/donut-base-sroie
- SGLang
How to use Al-Insan/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 "Al-Insan/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": "Al-Insan/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 "Al-Insan/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": "Al-Insan/donut-base-sroie", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Al-Insan/donut-base-sroie with Docker Model Runner:
docker model run hf.co/Al-Insan/donut-base-sroie
Commit History
-
End of training
ef825cb -
Training in progress, epoch 21
8451f60 -
Training in progress, epoch 16
4bea3fc -
Training in progress, epoch 7
8f1d735 -
Training in progress, epoch 1
8b70e04 -
End of training
76cd23d -
Training in progress, epoch 25
232afa2 -
Training in progress, epoch 17
75a546d -
Training in progress, epoch 10
04466b5 -
Training in progress, epoch 1
a622392 -
End of training
9e92a91 -
Training in progress, epoch 23
7131e33 -
Training in progress, epoch 18
846dbe1 -
Training in progress, epoch 13
5dba3fc -
Training in progress, epoch 7
0fe8d2b -
Training in progress, epoch 1
d0392e8 -
End of training
296c6c2 -
Training in progress, epoch 20
ac29c6c -
Training in progress, epoch 13
5a02665 -
Training in progress, epoch 7
fdc57d6 -
Training in progress, epoch 1
699cc61 -
End of training
f8e83b1 -
Training in progress, epoch 24
68c5e8e -
Training in progress, epoch 19
4be9eff -
Training in progress, epoch 13
13970c4 -
Training in progress, epoch 7
6f44f31 -
Training in progress, epoch 1
abf32cb -
End of training
8c3501a -
Training in progress, epoch 25
552e6f0 -
Training in progress, epoch 13
b9097f5 -
Training in progress, epoch 1
09bead5 -
initial commit
7da0753