Instructions to use Jac-Zac/thesis_test_donut with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jac-Zac/thesis_test_donut with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Jac-Zac/thesis_test_donut")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Jac-Zac/thesis_test_donut") model = AutoModelForMultimodalLM.from_pretrained("Jac-Zac/thesis_test_donut", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Jac-Zac/thesis_test_donut with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jac-Zac/thesis_test_donut" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jac-Zac/thesis_test_donut", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Jac-Zac/thesis_test_donut
- SGLang
How to use Jac-Zac/thesis_test_donut 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 "Jac-Zac/thesis_test_donut" \ --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": "Jac-Zac/thesis_test_donut", "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 "Jac-Zac/thesis_test_donut" \ --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": "Jac-Zac/thesis_test_donut", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Jac-Zac/thesis_test_donut with Docker Model Runner:
docker model run hf.co/Jac-Zac/thesis_test_donut
Commit History
-
Training in progress, epoch 0
c0933e8 -
Training in progress, epoch 1
0cb8af8 -
Training in progress, epoch 0
7450eba -
Training in progress, epoch 0
1915189 -
Training in progress, epoch 0
9643c2e
-
Training in progress, epoch 5
56ced78 -
Training in progress, epoch 4
c5be199 -
Training in progress, epoch 3
5e3c2e5 -
Training in progress, epoch 2
3b76a7b -
Training in progress, epoch 1
663e609 -
Training in progress, epoch 0
82491ae
-
Training in progress, epoch 0
4d64fa9
-
Training in progress, epoch 17
1e37652 -
Training in progress, epoch 16
924a5cd -
Training in progress, epoch 15
c7e1de2 -
Training in progress, epoch 14
ba396d4 -
Training in progress, epoch 13
907f11b -
Training in progress, epoch 12
03bdac2 -
Training in progress, epoch 11
869d661
-
Training in progress, epoch 11
7862cef -
Training in progress, epoch 10
ecbd010 -
Training in progress, epoch 9
8c5467c -
Training in progress, epoch 8
60cdca7 -
Training in progress, epoch 7
c13aef4 -
Training in progress, epoch 6
9f52f71 -
Training in progress, epoch 5
aa9d145 -
Training in progress, epoch 4
7ec8d31 -
Training in progress, epoch 3
7c0ff28 -
Training in progress, epoch 2
e122094
-
Training in progress, epoch 2
a9cb5da -
Training in progress, epoch 1
1c7af9f -
Training in progress, epoch 1
2970688 -
Training in progress, epoch 0
a49a673 -
Training in progress, epoch 0
4983cd9 -
Training in progress, epoch 1
3b5995d -
Training in progress, epoch 0
fa65149 -
Training in progress, epoch 3
65688f2 -
Training in progress, epoch 2
49788a3 -
Training in progress, epoch 1
c824d71 -
Training in progress, epoch 0
681b424 -
Training in progress, epoch 3
ac3207a
-
Training in progress, epoch 2
f59fafd -
Training in progress, epoch 2
3977f09 -
Training in progress, epoch 1
37d7445 -
Training in progress, epoch 1
7585107 -
Training in progress, epoch 0
2a75186 -
Training in progress, epoch 0
bab9c48 -
Training in progress, epoch 3
28b0af1 -
Training in progress, epoch 2
753435e -
Training in progress, epoch 1
eef2520