Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

baidu
/
Unlimited-OCR

Image-Text-to-Text
Transformers
Safetensors
multilingual
unlimited-ocr
feature-extraction
baidu
vision-language
ocr
custom_code
Eval Results
Model card Files Files and versions
xet
Community
12

Instructions to use baidu/Unlimited-OCR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use baidu/Unlimited-OCR with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="baidu/Unlimited-OCR", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("baidu/Unlimited-OCR", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use baidu/Unlimited-OCR with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "baidu/Unlimited-OCR"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "baidu/Unlimited-OCR",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/baidu/Unlimited-OCR
  • SGLang

    How to use baidu/Unlimited-OCR 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 "baidu/Unlimited-OCR" \
        --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": "baidu/Unlimited-OCR",
    		"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 "baidu/Unlimited-OCR" \
            --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": "baidu/Unlimited-OCR",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use baidu/Unlimited-OCR with Docker Model Runner:

    docker model run hf.co/baidu/Unlimited-OCR
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

CoreGLP Denmark: Is It Worth the Price?

#12 opened about 21 hours ago by
Adrienpson

Mrgentleoool

1
#11 opened 1 day ago by
Mrgentle001

Update configuration_deepseek_v2.py

#10 opened 1 day ago by
Mrgentle001

Update README.md

#9 opened 1 day ago by
Mrgentle001

Arabic language

1
#8 opened 3 days ago by
moqarashad

comfyui support

#7 opened 3 days ago by
eksk

fix(modeling): device-agnostic MPS/CPU support — replace .cuda() with .to(device), fix masked_scatter_ broadcast, and use device-type-aware autocast

#5 opened 6 days ago by
kushdab

Add ParseBench evaluation results

2
#4 opened 7 days ago by
boyang-runllama

OCR using official space is poor. User error or space error?

5
#3 opened 7 days ago by
OJ-1

Datasets Avaialble

1
#2 opened 7 days ago by
salexravi
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs