Image-Text-to-Text
Safetensors
English
Chinese
dots_ocr
auto-round
gptq
vllm
multimodal
ocr
document-parse
4bit
conversational
custom_code
4-bit precision
Instructions to use OpenTensorLab/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 OpenTensorLab/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 "OpenTensorLab/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": "OpenTensorLab/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/OpenTensorLab/dots.mocr-W4A16-AutoRound-GPTQ
- SGLang
How to use OpenTensorLab/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 "OpenTensorLab/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": "OpenTensorLab/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 "OpenTensorLab/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": "OpenTensorLab/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 OpenTensorLab/dots.mocr-W4A16-AutoRound-GPTQ with Docker Model Runner:
docker model run hf.co/OpenTensorLab/dots.mocr-W4A16-AutoRound-GPTQ
Vishva R commited on
Upload folder using huggingface_hub
Browse filesFiles changed (5)
53 unmodified lines54555657575859606162636263646566676768686970714 unmodified lines767778797980818253 unmodified lines "num_key_value_heads": 2, "pad_token_id": null, "quantization_config": { "autoround_version": "0.16.0", "autoround_version": "0.14.2", "bits": 4, "damp_percent": 0.01, "data_type": "int", "desc_act": false, "group_size": 16, "iters": 1000, "group_size": 32, "iters": 1500, "lm_head": false, "nsamples": 1024, "provider": "auto-round", "quant_method": "gptq", "static_attention_granularity": "tensor", "static_kv_granularity": "tensor", "seqlen": 8192, "sym": true, "true_sequential": false },4 unmodified lines }, "sliding_window": null, "tie_word_embeddings": false, "transformers_version": "5.17.0", "transformers_version": "5.14.1", "use_cache": true, "use_sliding_window": false, "video_token_id": 151656,4 unmodified lines5678894 unmodified lines 151673 ], "max_length": 32768, "transformers_version": "5.17.0" "transformers_version": "5.14.1"}12323version https://git-lfs.github.com/spec/v1oid sha256:b635009129fa055f077708b8bfc6b87a6b525dfcfeb33d531944704944f8ec1bsize 4319956096oid sha256:f5e505f07f40c9c919492c7e389625cc9c88760b0b546400faff9aad8979bcadsize 421759705648 unmodified lines4950515252535448 unmodified lines 0.27577711 ], "max_frames": 768, "max_video_tokens": 128000, "merge_size": 2, "min_frames": 4, "patch_size": 14,12344567896789101112{ "bits": 4, "data_type": "int", "group_size": 16, "group_size": 32, "sym": true, "iters": 1000, "static_attention_granularity": "tensor", "static_kv_granularity": "tensor", "autoround_version": "0.16.0", "iters": 1500, "nsamples": 1024, "seqlen": 8192, "autoround_version": "0.14.2", "lm_head": false, "provider": "auto-round", "quant_method": "gptq",config.json+6-6
generation_config.json+1-1
model.safetensors+2-2
processor_config.json-1
quantization_config.json+5-5