Image-Text-to-Text
Safetensors
qwen3_5
quantization
auto-round
gptq
llm-compressor
compressed-tensors
4bit
text-generation
reasoning
distillation
conversational
4-bit precision
Instructions to use Vishva007/Qwen3.8-4B-Distill-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/Qwen3.8-4B-Distill-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/Qwen3.8-4B-Distill-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/Qwen3.8-4B-Distill-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/Qwen3.8-4B-Distill-W4A16-AutoRound-GPTQ
- SGLang
How to use Vishva007/Qwen3.8-4B-Distill-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/Qwen3.8-4B-Distill-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/Qwen3.8-4B-Distill-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/Qwen3.8-4B-Distill-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/Qwen3.8-4B-Distill-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/Qwen3.8-4B-Distill-W4A16-AutoRound-GPTQ with Docker Model Runner:
docker model run hf.co/Vishva007/Qwen3.8-4B-Distill-W4A16-AutoRound-GPTQ
Upload folder using huggingface_hub
Browse files- config.json +15 -2
- model_extra_tensors.safetensors +2 -2
config.json
CHANGED
|
@@ -23,7 +23,8 @@
|
|
| 23 |
"bits": 4,
|
| 24 |
"group_size": 32,
|
| 25 |
"sym": true
|
| 26 |
-
}
|
|
|
|
| 27 |
},
|
| 28 |
"group_size": 32,
|
| 29 |
"iters": 1000,
|
|
@@ -33,7 +34,19 @@
|
|
| 33 |
"static_attention_granularity": "tensor",
|
| 34 |
"static_kv_granularity": "tensor",
|
| 35 |
"sym": true,
|
| 36 |
-
"true_sequential": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
},
|
| 38 |
"text_config": {
|
| 39 |
"attention_bias": false,
|
|
|
|
| 23 |
"bits": 4,
|
| 24 |
"group_size": 32,
|
| 25 |
"sym": true
|
| 26 |
+
},
|
| 27 |
+
"-:.*mtp.*": {}
|
| 28 |
},
|
| 29 |
"group_size": 32,
|
| 30 |
"iters": 1000,
|
|
|
|
| 34 |
"static_attention_granularity": "tensor",
|
| 35 |
"static_kv_granularity": "tensor",
|
| 36 |
"sym": true,
|
| 37 |
+
"true_sequential": false,
|
| 38 |
+
"block_name_to_quantize": "model.language_model.layers",
|
| 39 |
+
"modules_to_not_convert": [
|
| 40 |
+
"visual",
|
| 41 |
+
"lm_head",
|
| 42 |
+
"mtp"
|
| 43 |
+
],
|
| 44 |
+
"extra_config": {
|
| 45 |
+
".*mtp.*": {
|
| 46 |
+
"bits": 16,
|
| 47 |
+
"data_type": "fp"
|
| 48 |
+
}
|
| 49 |
+
}
|
| 50 |
},
|
| 51 |
"text_config": {
|
| 52 |
"attention_bias": false,
|
model_extra_tensors.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5fc485d419f2c554169c1fc441f57a1a45a50673bdb4e41d3dd0261b21abe7c
|
| 3 |
+
size 241200736
|