Instructions to use JacobAshwin/donut-base-slips with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JacobAshwin/donut-base-slips with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="JacobAshwin/donut-base-slips")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("JacobAshwin/donut-base-slips") model = AutoModelForMultimodalLM.from_pretrained("JacobAshwin/donut-base-slips", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JacobAshwin/donut-base-slips with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JacobAshwin/donut-base-slips" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JacobAshwin/donut-base-slips", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/JacobAshwin/donut-base-slips
- SGLang
How to use JacobAshwin/donut-base-slips 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 "JacobAshwin/donut-base-slips" \ --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": "JacobAshwin/donut-base-slips", "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 "JacobAshwin/donut-base-slips" \ --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": "JacobAshwin/donut-base-slips", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use JacobAshwin/donut-base-slips with Docker Model Runner:
docker model run hf.co/JacobAshwin/donut-base-slips
Commit History
-
Update .gitignore
c638f85 -
update model card README.md
b524a14 -
JacobAshwin/donut-base-slips
9fac8f1 -
Training in progress, epoch 3
eed9f42 -
Training in progress, epoch 2
2044afb -
Training in progress, epoch 1
94a50c9 -
JacobAshwin/donut-base-slips
90cf479 -
hf_repository_id
3a3bc2a -
End of training
e00d3ef -
Training in progress, epoch 3
b3fc548 -
Training in progress, epoch 2
cf8d651 -
Training in progress, epoch 1
5976ee2
-
Update config.json
b8d2a6a -
Create config.json
0c19c38 -
Update preprocessor_config.json
bf4b68b -
Create preprocessor_config.json
2cbc712 -
initial commit
cd266f8