Instructions to use habibi26/ocr_train with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use habibi26/ocr_train with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="habibi26/ocr_train")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("habibi26/ocr_train") model = AutoModelForMultimodalLM.from_pretrained("habibi26/ocr_train", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use habibi26/ocr_train with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "habibi26/ocr_train" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "habibi26/ocr_train", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/habibi26/ocr_train
- SGLang
How to use habibi26/ocr_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 "habibi26/ocr_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": "habibi26/ocr_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 "habibi26/ocr_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": "habibi26/ocr_train", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use habibi26/ocr_train with Docker Model Runner:
docker model run hf.co/habibi26/ocr_train
Commit History
-
Upload processor
Verified signature200d577 -
Upload processor
Verified signaturea3c1971 -
Training in progress, step 450
Verified signaturedef93ac -
Training in progress, step 400
Verified signaturef2586ec -
Training in progress, step 350
Verified signature8698e24 -
Training in progress, step 300
Verified signature0b323e3 -
Training in progress, step 250
Verified signatureb1756ad -
Training in progress, step 200
Verified signature5b6b6ef -
Training in progress, step 150
Verified signature255f0e8 -
Training in progress, step 100
Verified signature2c67607 -
Training in progress, step 50
Verified signature3822f76 -
Training in progress, step 700
Verified signaturec8089b6 -
Training in progress, step 650
Verified signature826e7a2 -
Training in progress, step 600
Verified signature9c01070 -
Training in progress, step 550
Verified signaturea5862fd -
Training in progress, step 500
Verified signature6939b50 -
Training in progress, step 450
Verified signature39874d3 -
Training in progress, step 400
Verified signature0fec8fe -
Training in progress, step 350
Verified signature8ba2abc -
Training in progress, step 300
Verified signaturecc2d0d6 -
Training in progress, step 250
Verified signature26b4a89 -
Training in progress, step 200
Verified signaturef4d70e3 -
Training in progress, step 150
Verified signaturebeaf031 -
Training in progress, step 100
Verified signature8f38f26 -
Training in progress, step 50
Verified signature1906965 -
Training in progress, step 400
Verified signaturec67da0e -
Training in progress, step 350
Verified signature861a08e -
Training in progress, step 300
Verified signature0bb69ae -
Training in progress, step 250
Verified signature17709c9 -
Training in progress, step 200
Verified signatureb756f4d -
Training in progress, step 150
Verified signature2035827 -
Training in progress, step 100
Verified signaturefecab15 -
Training in progress, step 50
Verified signature7ab0aa8
-
Training in progress, step 1300
Verified signatureb6dfef3 -
Training in progress, step 1250
Verified signature1b41b2f -
Training in progress, step 1200
Verified signature45303f9 -
Training in progress, step 1150
Verified signature6d38f19 -
Training in progress, step 1100
Verified signature5d5a79c -
Training in progress, step 1050
Verified signature51c37e6 -
Training in progress, step 1000
Verified signature452a9d8 -
Training in progress, step 950
Verified signature8a7ad0c -
Training in progress, step 850
Verified signature068e8df -
Training in progress, step 800
Verified signature9592442 -
Training in progress, step 750
Verified signature25e5d2d -
Training in progress, step 700
Verified signatureafaa300 -
Training in progress, step 650
Verified signatureb95a5ca -
Training in progress, step 600
Verified signature9915972 -
Training in progress, step 550
Verified signaturecacbb89 -
Training in progress, step 500
Verified signature0710b7c -
Training in progress, step 450
Verified signaturea2e2b3c