Instructions to use garciajun2/demoDonutInvoice with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use garciajun2/demoDonutInvoice with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="garciajun2/demoDonutInvoice")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("garciajun2/demoDonutInvoice") model = AutoModelForMultimodalLM.from_pretrained("garciajun2/demoDonutInvoice", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use garciajun2/demoDonutInvoice with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "garciajun2/demoDonutInvoice" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "garciajun2/demoDonutInvoice", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/garciajun2/demoDonutInvoice
- SGLang
How to use garciajun2/demoDonutInvoice 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 "garciajun2/demoDonutInvoice" \ --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": "garciajun2/demoDonutInvoice", "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 "garciajun2/demoDonutInvoice" \ --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": "garciajun2/demoDonutInvoice", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use garciajun2/demoDonutInvoice with Docker Model Runner:
docker model run hf.co/garciajun2/demoDonutInvoice
Commit History
-
Training done
db6f2f5 -
Training done
f5521f4 -
Training in progress, epoch 14
8621643 -
Training in progress, epoch 13
0f7f30b -
Training in progress, epoch 12
cdf917f -
Training in progress, epoch 11
ec38cb5 -
Training in progress, epoch 10
08c7183 -
Training in progress, epoch 9
781e3ea -
Training in progress, epoch 8
386ea85 -
Training in progress, epoch 7
c12c84c -
Training in progress, epoch 6
2a25274 -
Training in progress, epoch 5
0ecfc68 -
Training in progress, epoch 4
aaed14b -
Training in progress, epoch 3
c3d38a7 -
Training in progress, epoch 2
4d8e555 -
Training in progress, epoch 1
46c5c63 -
Training in progress, epoch 0
fb6d49c -
Training in progress, epoch 22
e12ed81 -
Training in progress, epoch 21
7a1b05a -
Training in progress, epoch 20
e219896 -
Training in progress, epoch 19
8ae3920 -
Training in progress, epoch 18
257bba5 -
Training in progress, epoch 17
66bc50f -
Training in progress, epoch 16
2a71bc3 -
Training in progress, epoch 15
469a759 -
Training in progress, epoch 14
53b8d32 -
Training in progress, epoch 13
60ea41d -
Training in progress, epoch 12
bca49f6 -
Training in progress, epoch 11
cbfbb34 -
Training in progress, epoch 10
458a91b -
Training in progress, epoch 9
8ce9618 -
Training in progress, epoch 8
32d34df -
Training in progress, epoch 7
46a5923 -
Training in progress, epoch 6
d9d0f50 -
Training in progress, epoch 5
88e7e66 -
Training in progress, epoch 4
fe72404 -
Training in progress, epoch 3
8d7efff -
Training in progress, epoch 2
a1cf0dc -
Training in progress, epoch 1
dfb6b48 -
Training in progress, epoch 0
1da8e6f -
initial commit
22cc428