Dots.mocr Collections
Collection
W4A16 quantized versions of dots.mocr using AutoRound, available in AutoRound and GPTQ formats for efficient inference. • 2 items • Updated
How to use JW-Hubs/dots.mocr-W4A16-GPTQ with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "JW-Hubs/dots.mocr-W4A16-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": "JW-Hubs/dots.mocr-W4A16-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 run hf.co/JW-Hubs/dots.mocr-W4A16-GPTQ
How to use JW-Hubs/dots.mocr-W4A16-GPTQ with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "JW-Hubs/dots.mocr-W4A16-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": "JW-Hubs/dots.mocr-W4A16-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 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 "JW-Hubs/dots.mocr-W4A16-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": "JW-Hubs/dots.mocr-W4A16-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"
}
}
]
}
]
}'How to use JW-Hubs/dots.mocr-W4A16-GPTQ with Docker Model Runner:
docker model run hf.co/JW-Hubs/dots.mocr-W4A16-GPTQ
This repository provides production-grade W4A16 quantized weights for dots-studio/dots.mocr using Intel AutoRound.
J-Fraudster/dots.mocr-W4A16-AutoRound: Native AutoRound format. J-Fraudster/dots.mocr-W4A16-GPTQ: Exported GPTQ format optimized for direct serving in vLLM.The quantization recipe was tuned for high accuracy and long-context multimodal parsing while preventing degradation of visual features:
True)quant_nontext_module=False (vision encoder preserved in full precision to retain document grounding accuracy)torch.compile acceleration.KV Cache Precision Warning: Always keep
--kv-cache-dtypeset toautoorbfloat16. Do not use low-precision KV cache formats (such asfp8), as doing so will cause the model to fail to generate any output or return empty responses. For high-throughput document parsing, serve the AutoRound variant directly with vLLM:
vllm serve J-Fraudster/dots.mocr-W4A16-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
Base model
dots-studio/dots.mocr