Instructions to use AndreasPiper/donut-base-funsd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AndreasPiper/donut-base-funsd with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AndreasPiper/donut-base-funsd")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("AndreasPiper/donut-base-funsd") model = AutoModelForMultimodalLM.from_pretrained("AndreasPiper/donut-base-funsd", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AndreasPiper/donut-base-funsd with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AndreasPiper/donut-base-funsd" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AndreasPiper/donut-base-funsd", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AndreasPiper/donut-base-funsd
- SGLang
How to use AndreasPiper/donut-base-funsd 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 "AndreasPiper/donut-base-funsd" \ --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": "AndreasPiper/donut-base-funsd", "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 "AndreasPiper/donut-base-funsd" \ --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": "AndreasPiper/donut-base-funsd", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AndreasPiper/donut-base-funsd with Docker Model Runner:
docker model run hf.co/AndreasPiper/donut-base-funsd
Commit History
-
End of training
2b5cc39 -
Training in progress, epoch 15
1278181 -
Training in progress, epoch 14
4dda88d -
Training in progress, epoch 13
975ef1e -
Training in progress, epoch 12
fdcea25 -
Training in progress, epoch 11
c235d93 -
Training in progress, epoch 10
3d2e514 -
Training in progress, epoch 9
8651794 -
Training in progress, epoch 8
77db764 -
Training in progress, epoch 7
354c4f4 -
Training in progress, epoch 6
feb3473 -
Training in progress, epoch 5
05e6d2d -
Training in progress, epoch 4
89e8922 -
Training in progress, epoch 3
b81bc50 -
Training in progress, epoch 2
a51dd80 -
Training in progress, epoch 1
5828052 -
End of training
e1ed481 -
Training in progress, epoch 3
f7eb308 -
Training in progress, epoch 2
80ec0a3 -
Training in progress, epoch 1
baf82d2 -
initial commit
1a50d70