Instructions to use Akajackson/donut_rus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Akajackson/donut_rus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Akajackson/donut_rus")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Akajackson/donut_rus") model = AutoModelForMultimodalLM.from_pretrained("Akajackson/donut_rus", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Akajackson/donut_rus with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Akajackson/donut_rus" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Akajackson/donut_rus", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Akajackson/donut_rus
- SGLang
How to use Akajackson/donut_rus 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 "Akajackson/donut_rus" \ --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": "Akajackson/donut_rus", "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 "Akajackson/donut_rus" \ --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": "Akajackson/donut_rus", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Akajackson/donut_rus with Docker Model Runner:
docker model run hf.co/Akajackson/donut_rus
Commit History
-
Update README.md
18eaf71
-
Training in progress, epoch 2
6427a2f -
Training in progress, epoch 2
2630c52 -
Training in progress, epoch 1
fa87b87 -
Training in progress, epoch 1
bf8959e -
Training in progress, epoch 0
ebfb62d -
Training in progress, epoch 0
d5194fb
-
Training in progress, epoch 5
774e520 -
Training in progress, epoch 5
74e2c00 -
Training in progress, epoch 4
4ea67c7 -
Training in progress, epoch 4
74f1110 -
Training in progress, epoch 2
09606e1 -
Training in progress, epoch 2
6352eee -
Training in progress, epoch 1
0fa16e8 -
Training in progress, epoch 1
3b54b9a -
Training in progress, epoch 0
1b12db7 -
Training in progress, epoch 0
95536c5
-
Training in progress, epoch 4
98704f7 -
Training in progress, epoch 4
f6ca18f -
Training in progress, epoch 2
9e33d83 -
Training in progress, epoch 2
54f56df -
Training in progress, epoch 1
92fb33f -
Training in progress, epoch 1
dee2870 -
Training in progress, epoch 0
11dd579 -
Training in progress, epoch 0
6e381cc
-
Update README.md
badf8b6 -
Training in progress, epoch 0
b6f8728 -
Training in progress, epoch 0
278bbc9 -
Training in progress, epoch 3
cede949 -
Training in progress, epoch 3
3e019b4 -
Training in progress, epoch 2
4df88c0 -
Training in progress, epoch 2
8184ba4 -
Training in progress, epoch 1
6109f6b -
Training in progress, epoch 1
0d5c5b8 -
Training in progress, epoch 0
517c483 -
Training in progress, epoch 0
f1e8d74
-
Training in progress, epoch 2
0d528d0 -
Training in progress, epoch 2
3ba5c59 -
Training in progress, epoch 1
2f3bcc0 -
Training in progress, epoch 1
0130def -
Training in progress, epoch 0
afb2e77 -
Training in progress, epoch 0
7546711 -
Training in progress, epoch 0
1a00b1f -
Training in progress, epoch 0
2ab4288 -
Training in progress, epoch 2
9c63013 -
Training in progress, epoch 2
d472ab0 -
Training in progress, epoch 1
a7f9523 -
Training in progress, epoch 1
8b4c162 -
Training in progress, epoch 0
75c33c5 -
Training in progress, epoch 0
7897608