Instructions to use HamAndCheese82/math_ocr_donut_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HamAndCheese82/math_ocr_donut_v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="HamAndCheese82/math_ocr_donut_v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("HamAndCheese82/math_ocr_donut_v1") model = AutoModelForMultimodalLM.from_pretrained("HamAndCheese82/math_ocr_donut_v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HamAndCheese82/math_ocr_donut_v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HamAndCheese82/math_ocr_donut_v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HamAndCheese82/math_ocr_donut_v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/HamAndCheese82/math_ocr_donut_v1
- SGLang
How to use HamAndCheese82/math_ocr_donut_v1 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 "HamAndCheese82/math_ocr_donut_v1" \ --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": "HamAndCheese82/math_ocr_donut_v1", "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 "HamAndCheese82/math_ocr_donut_v1" \ --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": "HamAndCheese82/math_ocr_donut_v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use HamAndCheese82/math_ocr_donut_v1 with Docker Model Runner:
docker model run hf.co/HamAndCheese82/math_ocr_donut_v1
Commit History
-
Training in progress, epoch 1
Verified signature4d67819 -
Training in progress, epoch 1
Verified signatured70b110 -
On validation process, epoch 1, global step 243693
Verified signaturecc99255 -
On validation process, epoch 1, global step 243693
Verified signaturec4296fb
-
On validation process, epoch 1, global step 219324
Verified signatureebd456c -
On validation process, epoch 1, global step 219324
Verified signature07a7fd5 -
On validation process, epoch 1, global step 194955
Verified signature949bad7 -
On validation process, epoch 1, global step 194955
Verified signatureb223746 -
On validation process, epoch 1, global step 170586
Verified signature7d076aa -
On validation process, epoch 1, global step 170586
Verified signature6e10635
-
On validation process, epoch 1, global step 146217
Verified signature15b04b8 -
On validation process, epoch 1, global step 146217
Verified signature077a7c3 -
Training in progress, epoch 0
Verified signaturef7850dc -
Training in progress, epoch 0
Verified signatured3e55df -
On validation process, epoch 0, global step 121845
Verified signature3cdfe8c -
On validation process, epoch 0, global step 121845
Verified signature02cbfec -
On validation process, epoch 0, global step 97476
Verified signature0181adc -
On validation process, epoch 0, global step 97476
Verified signature4ea5fa7
-
On validation process, epoch 0, global step 73107
Verified signature6afc89b -
On validation process, epoch 0, global step 73107
Verified signature3b44fb4 -
On validation process, epoch 0, global step 48738
Verified signatured775abd -
On validation process, epoch 0, global step 48738
Verified signaturef99197e -
On validation process, epoch 0, global step 24369
Verified signature70453af -
On validation process, epoch 0, global step 24369
Verified signature1e5e740
-
On validation process, epoch 0, global step 1
Verified signature6e0e948 -
On validation process, epoch 0, global step 1
Verified signature8f9972e -
On validation process, epoch 0, global step 1
Verified signature3458e9c -
On validation process, epoch 0, global step 1
Verified signature16d6d4f -
On validation process, epoch 0, global step 24369
Verified signature0eeb65f -
On validation process, epoch 0, global step 24369
Verified signature91695b3
-
On validation process, epoch 0, global step 1
Verified signaturea84c5ae
-
initial commit
Verified signatureb6b0b47