Image-Text-to-Text
Transformers
Safetensors
English
ocr
vision
qwen2.5-vl
pdf
document-understanding
conversational
Instructions to use Thoughtseed/gutenocr-endpoint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Thoughtseed/gutenocr-endpoint with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Thoughtseed/gutenocr-endpoint") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Thoughtseed/gutenocr-endpoint", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Thoughtseed/gutenocr-endpoint with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Thoughtseed/gutenocr-endpoint" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thoughtseed/gutenocr-endpoint", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Thoughtseed/gutenocr-endpoint
- SGLang
How to use Thoughtseed/gutenocr-endpoint 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 "Thoughtseed/gutenocr-endpoint" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thoughtseed/gutenocr-endpoint", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "Thoughtseed/gutenocr-endpoint" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thoughtseed/gutenocr-endpoint", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Thoughtseed/gutenocr-endpoint with Docker Model Runner:
docker model run hf.co/Thoughtseed/gutenocr-endpoint
Download video_preprocessor_config.json from Thoughtseed/gutenocr-endpoint: direct link, hf CLI and curl.
- Browser
- Download file 913 Bytes
-
https://huggingface.co/Thoughtseed/gutenocr-endpoint/resolve/main/video_preprocessor_config.json
- Command line
-
hf download hf://Thoughtseed/gutenocr-endpoint/video_preprocessor_config.json
-
curl -L -o video_preprocessor_config.json https://huggingface.co/Thoughtseed/gutenocr-endpoint/resolve/main/video_preprocessor_config.json
913 Bytes
- Xet hash:
- 13af1a361981523aa667e8c27d49c328624bcc4b4b09fa81d110fda8ebd9d9f1
- Size of remote file:
- 913 Bytes
- SHA256:
- 15bb7c2f2bc95fe9cc3749a4b287872b4886a15e9fcf550a4122a46ae26150bd
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.