Instructions to use AbnerYang/donut-model-noaug with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AbnerYang/donut-model-noaug with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AbnerYang/donut-model-noaug")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("AbnerYang/donut-model-noaug") model = AutoModelForMultimodalLM.from_pretrained("AbnerYang/donut-model-noaug", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AbnerYang/donut-model-noaug with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AbnerYang/donut-model-noaug" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AbnerYang/donut-model-noaug", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AbnerYang/donut-model-noaug
- SGLang
How to use AbnerYang/donut-model-noaug 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 "AbnerYang/donut-model-noaug" \ --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": "AbnerYang/donut-model-noaug", "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 "AbnerYang/donut-model-noaug" \ --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": "AbnerYang/donut-model-noaug", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AbnerYang/donut-model-noaug with Docker Model Runner:
docker model run hf.co/AbnerYang/donut-model-noaug
Commit History
-
Training done
ab037aa -
Training done
2d1f97b -
Training in progress, epoch 29
17c244a -
Training in progress, epoch 28
eb71895 -
Training in progress, epoch 27
b85bb3e -
Training in progress, epoch 26
e62ffb1 -
Training in progress, epoch 25
37dd402 -
Training in progress, epoch 24
3984985 -
Training in progress, epoch 23
7544be2 -
Training in progress, epoch 22
f80bdbc
-
Training in progress, epoch 21
fb17722 -
Training in progress, epoch 20
2b1fbc0 -
Training in progress, epoch 19
ee6a537 -
Training in progress, epoch 18
4a13cf0 -
Training in progress, epoch 17
cff1266 -
Training in progress, epoch 16
439b082 -
Training in progress, epoch 15
d476cae -
Training in progress, epoch 14
b5e8ec3 -
Training in progress, epoch 13
0a5806b -
Training in progress, epoch 12
c43bec2 -
Training in progress, epoch 11
9d0b22d -
Training in progress, epoch 10
6216aac -
Training in progress, epoch 9
2b1c546 -
Training in progress, epoch 8
8054c5b -
Training in progress, epoch 7
a716ceb -
Training in progress, epoch 6
c0b5a5c -
Training in progress, epoch 5
c9bec94 -
Training in progress, epoch 4
fece492 -
Training in progress, epoch 3
d160b77 -
Training in progress, epoch 2
51028ea -
Training in progress, epoch 1
ed58c6b -
Training in progress, epoch 0
7362fb1 -
initial commit
b9c3f13