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 lines5455565758596061626364656667686970714 unmodified lines7677787980818253 unmodified lines"num_key_value_heads": 2,"pad_token_id": null,"quantization_config": {"autoround_version": "0.14.2","bits": 4,"damp_percent": 0.01,"data_type": "int","desc_act": false,"group_size": 32,"iters": 1500,"lm_head": false,"nsamples": 1024,"provider": "auto-round","quant_method": "gptq","seqlen": 8192,"sym": true,"true_sequential": false},4 unmodified lines},"sliding_window": null,"tie_word_embeddings": false,"transformers_version": "5.14.1","use_cache": true,"use_sliding_window": false,"video_token_id": 151656,53 unmodified lines545556575859606162636465666768694 unmodified lines7475767778798053 unmodified lines"num_key_value_heads": 2,"pad_token_id": null,"quantization_config": {"autoround_version": "0.16.0","bits": 4,"damp_percent": 0.01,"data_type": "int","desc_act": false,"group_size": 32,"iters": 1000,"lm_head": false,"provider": "auto-round","quant_method": "gptq","sym": true,"true_sequential": false},4 unmodified lines},"sliding_window": null,"tie_word_embeddings": false,"transformers_version": "5.19.0","use_cache": true,"use_sliding_window": false,"video_token_id": 151656,
4 unmodified lines567894 unmodified lines151673],"max_length": 32768,"transformers_version": "5.14.1"}4 unmodified lines567894 unmodified lines151673],"max_length": 32768,"transformers_version": "5.19.0"}
123version https://git-lfs.github.com/spec/v1oid sha256:f5e505f07f40c9c919492c7e389625cc9c88760b0b546400faff9aad8979bcadsize 4217597056123version https://git-lfs.github.com/spec/v1oid sha256:58b4ed516e7f0623a0621e8e973e05313840b36c63fbaaa5c1d2a5831991fa66size 4217597056
48 unmodified lines49505152535448 unmodified lines0.27577711],"max_frames": 768,"merge_size": 2,"min_frames": 4,"patch_size": 14,48 unmodified lines4950515253545548 unmodified lines0.27577711],"max_frames": 768,"max_video_tokens": 128000,"merge_size": 2,"min_frames": 4,"patch_size": 14,
2 unmodified lines34567891011122 unmodified lines"data_type": "int","group_size": 32,"sym": true,"iters": 1500,"nsamples": 1024,"seqlen": 8192,"autoround_version": "0.14.2","lm_head": false,"provider": "auto-round","quant_method": "gptq",2 unmodified lines3456789102 unmodified lines"data_type": "int","group_size": 32,"sym": true,"iters": 1000,"autoround_version": "0.16.0","lm_head": false,"provider": "auto-round","quant_method": "gptq",
config.json+3-5
generation_config.json+1-1
model.safetensors+1-1
processor_config.json+1
quantization_config.json+2-4