Instructions to use ryanlinjui/donut-base-finetuned-menu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ryanlinjui/donut-base-finetuned-menu with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="ryanlinjui/donut-base-finetuned-menu")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("ryanlinjui/donut-base-finetuned-menu") model = AutoModelForMultimodalLM.from_pretrained("ryanlinjui/donut-base-finetuned-menu", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ryanlinjui/donut-base-finetuned-menu with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ryanlinjui/donut-base-finetuned-menu" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ryanlinjui/donut-base-finetuned-menu", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ryanlinjui/donut-base-finetuned-menu
- SGLang
How to use ryanlinjui/donut-base-finetuned-menu 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 "ryanlinjui/donut-base-finetuned-menu" \ --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": "ryanlinjui/donut-base-finetuned-menu", "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 "ryanlinjui/donut-base-finetuned-menu" \ --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": "ryanlinjui/donut-base-finetuned-menu", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ryanlinjui/donut-base-finetuned-menu with Docker Model Runner:
docker model run hf.co/ryanlinjui/donut-base-finetuned-menu
Upload logs - epoch 7
Browse files
tensorboard_logs/checkpoints/epoch=7-step=1584.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:853894bfa0c96796df8796264d8b0c74e8b1db1c18de5959b44a77627fae2154
|
| 3 |
+
size 2424611001
|
tensorboard_logs/events.out.tfevents.1751542497.58d6e760b672
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:adfe5b33f1bb700837f3990ba7076040a577c9d14bae0147aaa99949a8df9884
|
| 3 |
+
size 4517
|