Instructions to use Lahari77/donut_train with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lahari77/donut_train with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Lahari77/donut_train")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Lahari77/donut_train") model = AutoModelForMultimodalLM.from_pretrained("Lahari77/donut_train", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Lahari77/donut_train with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Lahari77/donut_train" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Lahari77/donut_train", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Lahari77/donut_train
- SGLang
How to use Lahari77/donut_train 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 "Lahari77/donut_train" \ --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": "Lahari77/donut_train", "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 "Lahari77/donut_train" \ --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": "Lahari77/donut_train", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Lahari77/donut_train with Docker Model Runner:
docker model run hf.co/Lahari77/donut_train
Commit History
-
Training done
7d22aaa -
Training done
545da4d -
Training in progress, epoch 9
0eaa576 -
Training in progress, epoch 8
05f2c4b -
Training in progress, epoch 7
cfd75ee -
Training in progress, epoch 6
26e2846 -
Training in progress, epoch 5
02a263d -
Training in progress, epoch 4
ee40b8f -
Training in progress, epoch 3
084c413 -
Training in progress, epoch 2
87a1d9d -
Training in progress, epoch 1
da4d290 -
Training in progress, epoch 0
e957eae
-
Training done
ef71cfb -
Training done
8cd099e -
Training in progress, epoch 4
2ada2f0 -
Training in progress, epoch 3
d83eb82 -
Training in progress, epoch 2
986f3d5 -
Training in progress, epoch 1
ac22279 -
Training in progress, epoch 0
e680e5d -
initial commit
8fdf6f1