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")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("habibi26/ocr_train") model = AutoModelForMultimodalLM.from_pretrained("habibi26/ocr_train") - 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
Ctrl+K
- Jul23_06-42-31_2ad50ddec206
- Jul23_06-43-17_2ad50ddec206
- Jul23_06-44-09_2ad50ddec206
- Jul23_06-45-02_2ad50ddec206
- Jul23_06-45-19_2ad50ddec206
- Jul23_06-47-09_2ad50ddec206
- Jul23_06-48-56_2ad50ddec206
- Jul23_06-50-40_2ad50ddec206
- Jul23_07-25-53_2ad50ddec206
- Jul23_07-33-19_2ad50ddec206
- Jul23_09-48-41_729854f95f33
- Jul23_09-49-22_729854f95f33
- Jul23_13-18-01_gurame007
- Jul23_13-22-09_gurame007
- Jul23_13-23-25_gurame007
- Jul23_13-24-08_gurame007
- Jul23_13-25-34_gurame007
- Jul23_13-28-52_gurame007
- Jul23_13-30-35_gurame007
- Jul23_13-37-44_gurame007
- Jul23_13-38-09_gurame007
- Jul23_19-53-50_30aeb1f57563
- Jul23_20-06-46_30aeb1f57563
- Jul23_20-32-29_e3dd68bc9c3b
- Jul23_20-32-50_e3dd68bc9c3b
- Jul23_20-35-09_e3dd68bc9c3b
- Jul23_20-36-06_e3dd68bc9c3b
- Jul23_20-40-03_e3dd68bc9c3b
- Jul23_20-40-41_e3dd68bc9c3b
- Jul23_20-41-25_e3dd68bc9c3b
- Jul23_20-41-51_e3dd68bc9c3b
- Jul23_20-44-56_e3dd68bc9c3b
- Jul23_20-46-21_e3dd68bc9c3b
- Jul23_20-48-42_e3dd68bc9c3b
- Jul23_20-52-08_e3dd68bc9c3b
- Jul23_20-56-02_e3dd68bc9c3b
- Jul23_21-12-40_e3dd68bc9c3b
- Jul23_21-13-24_e3dd68bc9c3b
- Jul23_21-15-49_e3dd68bc9c3b
- Jul23_21-20-48_e3dd68bc9c3b
- Jul23_21-23-35_e3dd68bc9c3b
- Jul24_04-23-44_gurame007
- Jul24_04-24-57_gurame007
- Jul24_04-26-18_gurame007
- Jul24_04-26-44_gurame007
- Jul24_04-27-04_gurame007
- Jul24_04-34-17_gurame007
- Jul24_04-41-11_gurame007
- Jul24_04-47-05_gurame007
- Jul24_04-47-32_gurame007