Instructions to use LFBMS/donut_donut_comb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LFBMS/donut_donut_comb with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="LFBMS/donut_donut_comb")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("LFBMS/donut_donut_comb") model = AutoModelForMultimodalLM.from_pretrained("LFBMS/donut_donut_comb", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LFBMS/donut_donut_comb with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LFBMS/donut_donut_comb" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LFBMS/donut_donut_comb", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LFBMS/donut_donut_comb
- SGLang
How to use LFBMS/donut_donut_comb 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 "LFBMS/donut_donut_comb" \ --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": "LFBMS/donut_donut_comb", "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 "LFBMS/donut_donut_comb" \ --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": "LFBMS/donut_donut_comb", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LFBMS/donut_donut_comb with Docker Model Runner:
docker model run hf.co/LFBMS/donut_donut_comb
Commit History
-
Training done
2e673af -
Training in progress, epoch 9
8010845 -
Training in progress, epoch 8
21617dd -
Training in progress, epoch 7
2e3f698 -
Training in progress, epoch 6
aa7f164 -
Training in progress, epoch 5
3c60689 -
Training in progress, epoch 4
920bd2b -
Training in progress, epoch 3
6143d86 -
Training in progress, epoch 2
028aca5 -
Training in progress, epoch 1
a075380 -
Training in progress, epoch 0
fee0f13 -
initial commit
68f60f1