Instructions to use arifzanko/donut-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arifzanko/donut-test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="arifzanko/donut-test")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("arifzanko/donut-test") model = AutoModelForMultimodalLM.from_pretrained("arifzanko/donut-test", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use arifzanko/donut-test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "arifzanko/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": "arifzanko/donut-test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/arifzanko/donut-test
- SGLang
How to use arifzanko/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 "arifzanko/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": "arifzanko/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 "arifzanko/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": "arifzanko/donut-test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use arifzanko/donut-test with Docker Model Runner:
docker model run hf.co/arifzanko/donut-test
Commit History
-
Training done
7cb9041 -
Training done
ba057ac -
Training in progress, epoch 1
813a5fb -
Training in progress, epoch 0
631d669
-
Training done
dbd1cbb -
Training done
b7a0c57 -
Training in progress, epoch 0
84f5ddf -
Training in progress, epoch 0
b88d9ec
-
Training done
96cb9fb -
Training done
8640ea9 -
Training in progress, epoch 1
0ad2a69 -
Training in progress, epoch 0
bc3931f
-
Training done
26c59a1 -
Training done
0f24059 -
Training in progress, epoch 1
5fb0913 -
Training in progress, epoch 0
211bc4d
-
Training done
9d0cfe5 -
Training done
71c87b2 -
Training in progress, epoch 1
6b1b96d -
Training in progress, epoch 0
ecbb890 -
initial commit
98f3964