Instructions to use Vishva007/dots.mocr-W4A16-AutoRound-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- vLLM
How to use Vishva007/dots.mocr-W4A16-AutoRound-GPTQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Vishva007/dots.mocr-W4A16-AutoRound-GPTQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Vishva007/dots.mocr-W4A16-AutoRound-GPTQ", "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/Vishva007/dots.mocr-W4A16-AutoRound-GPTQ
- SGLang
How to use Vishva007/dots.mocr-W4A16-AutoRound-GPTQ 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 "Vishva007/dots.mocr-W4A16-AutoRound-GPTQ" \ --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": "Vishva007/dots.mocr-W4A16-AutoRound-GPTQ", "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 "Vishva007/dots.mocr-W4A16-AutoRound-GPTQ" \ --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": "Vishva007/dots.mocr-W4A16-AutoRound-GPTQ", "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 Vishva007/dots.mocr-W4A16-AutoRound-GPTQ with Docker Model Runner:
docker model run hf.co/Vishva007/dots.mocr-W4A16-AutoRound-GPTQ
dots.mocr W4A16 AutoRound Quantized
This repository provides production-grade W4A16 quantized weights for dots-studio/dots.mocr using Intel AutoRound.
Available Variants
Vishva007/dots.mocr-W4A16-AutoRound: Native AutoRound format.Vishva007/dots.mocr-W4A16-AutoRound-GPTQ: Exported GPTQ format optimized for direct serving in vLLM.
Quantization Details
The quantization recipe was tuned for high accuracy and long-context multimodal parsing while preventing degradation of visual features:
- Bits / Weight Type: 4-bit weights, 16-bit activations (W4A16)
- Group Size: 32 (Symmetric:
True) - Vision Tower Preservation:
quant_nontext_module=False(vision encoder preserved in full precision to retain document grounding accuracy) - Tuning Recipe: 1,500 iterations, 1,024 samples, sequence length 8,192 with
torch.compileacceleration.
Deployment with vLLM
For high-throughput document parsing, serve the GPTQ variant directly with vLLM:
vllm serve Vishva007/dots.mocr-W4A16-AutoRound-GPTQ \
--host 0.0.0.0 \
--port 8000 \
--trust-remote-code \
--chat-template-content-format string \
--dtype bfloat16 \
--kv-cache-dtype auto \
--max-model-len 32768 \
--max-num-seqs 128 \
--gpu-memory-utilization 0.90 \
--enable-prefix-caching \
--enable-chunked-prefill
Benchmark Highlights (Original Base Model)
- olmOCR-Bench: 83.9 Overall
- OmniDocBench (v1.5): 0.031 TextEdit / 0.029 Read OrderEdit
- Native Structured Output: Direct image-to-Markdown, HTML tables, LaTeX formulas, and SVG generation.
๐ Deploy on RunPod
One-click launch environments pre-configured with PyTorch, CUDA, and dependencies for fine-tuning or quantization.
๐ Need GPU compute? Sign up via RunPod and get $5โ$500 in free credits when you add your first $10.
PyTorch 2.14
PyTorch 2.13
PyTorch 2.12
Acknowledgements
- Base model developed by dots-studio.
- Quantized using Intel AutoRound.
- Downloads last month
- 32
Model tree for Vishva007/dots.mocr-W4A16-AutoRound-GPTQ
Base model
dots-studio/dots.mocr