Image-Text-to-Text
Transformers
Safetensors
qwen3_5
text-generation
dashq
quantized
post-training-quantization
int3
conversational
custom_code
Instructions to use jkim96/Qwen3.6-27B-DASHQ-INT3-g128 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jkim96/Qwen3.6-27B-DASHQ-INT3-g128 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="jkim96/Qwen3.6-27B-DASHQ-INT3-g128", trust_remote_code=True) messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForCausalLM processor = AutoProcessor.from_pretrained("jkim96/Qwen3.6-27B-DASHQ-INT3-g128", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("jkim96/Qwen3.6-27B-DASHQ-INT3-g128", trust_remote_code=True, device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jkim96/Qwen3.6-27B-DASHQ-INT3-g128 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jkim96/Qwen3.6-27B-DASHQ-INT3-g128" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jkim96/Qwen3.6-27B-DASHQ-INT3-g128", "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/jkim96/Qwen3.6-27B-DASHQ-INT3-g128
- SGLang
How to use jkim96/Qwen3.6-27B-DASHQ-INT3-g128 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 "jkim96/Qwen3.6-27B-DASHQ-INT3-g128" \ --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": "jkim96/Qwen3.6-27B-DASHQ-INT3-g128", "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 "jkim96/Qwen3.6-27B-DASHQ-INT3-g128" \ --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": "jkim96/Qwen3.6-27B-DASHQ-INT3-g128", "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 jkim96/Qwen3.6-27B-DASHQ-INT3-g128 with Docker Model Runner:
docker model run hf.co/jkim96/Qwen3.6-27B-DASHQ-INT3-g128
Upload dashq quantized checkpoint (INT3, g128, scale_zero_dtype=float16, zero-shot avg=70.8)
Browse files- README.md +13 -10
- dashq_config.json +15 -16
- model-00002-of-00004.safetensors +1 -1
- model-00003-of-00004.safetensors +1 -1
- model-00004-of-00004.safetensors +1 -1
README.md
CHANGED
|
@@ -38,6 +38,7 @@ model, tokenizer = load_quantized(
|
|
| 38 |
| Base model | `Qwen/Qwen3.6-27B` |
|
| 39 |
| Bits | `3` |
|
| 40 |
| Group size | `128` |
|
|
|
|
| 41 |
| Calibration dataset | `wikitext2` |
|
| 42 |
| Calibration samples | `128` |
|
| 43 |
| Sequence length | `2048` |
|
|
@@ -48,13 +49,15 @@ model, tokenizer = load_quantized(
|
|
| 48 |
|
| 49 |
| Metric | Value |
|
| 50 |
| --- | ---: |
|
| 51 |
-
| `wikitext2_ppl` | 7.
|
| 52 |
-
| `
|
| 53 |
-
| `
|
| 54 |
-
| `
|
| 55 |
-
| `
|
| 56 |
-
| `
|
| 57 |
-
| `
|
| 58 |
-
| `
|
| 59 |
-
| `
|
| 60 |
-
| `
|
|
|
|
|
|
|
|
|
| 38 |
| Base model | `Qwen/Qwen3.6-27B` |
|
| 39 |
| Bits | `3` |
|
| 40 |
| Group size | `128` |
|
| 41 |
+
| Scale/zero dtype | `float16` |
|
| 42 |
| Calibration dataset | `wikitext2` |
|
| 43 |
| Calibration samples | `128` |
|
| 44 |
| Sequence length | `2048` |
|
|
|
|
| 49 |
|
| 50 |
| Metric | Value |
|
| 51 |
| --- | ---: |
|
| 52 |
+
| `wikitext2_ppl` | 7.7554 |
|
| 53 |
+
| `zero-shot accuracy avg` | 70.7634 |
|
| 54 |
+
| `arc_challenge` | 58.7884 |
|
| 55 |
+
| `arc_easy` | 75.5471 |
|
| 56 |
+
| `commonsense_qa` | 86.1589 |
|
| 57 |
+
| `hellaswag` | 82.5931 |
|
| 58 |
+
| `lambada_openai` | 74.7720 |
|
| 59 |
+
| `openbookqa` | 44.8000 |
|
| 60 |
+
| `piqa` | 82.4266 |
|
| 61 |
+
| `truthfulqa_mc2` | 54.9096 |
|
| 62 |
+
| `winogrande` | 76.8745 |
|
| 63 |
+
|
dashq_config.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
| 10 |
"low_memory_optimization": false,
|
| 11 |
"moe_hessian_scope": "shared",
|
| 12 |
"n_samples": 128,
|
|
|
|
| 13 |
"symmetric": false,
|
| 14 |
"use_error_compensation": true,
|
| 15 |
"use_optimal_shrinkage": true,
|
|
@@ -5974,20 +5975,18 @@
|
|
| 5974 |
"Model": "Qwen/Qwen3.6-27B",
|
| 5975 |
"ModelSizeGB": 16.513800712,
|
| 5976 |
"OriginalSizeGB": 55.5630064,
|
| 5977 |
-
"PPL": 7.
|
| 5978 |
-
"Params": "{'bits': 3, 'group_size': 128, 'n_samples': 128, 'moe_hessian_scope': 'shared', 'use_error_compensation': True, 'use_optimal_shrinkage': True, 'use_weighted_quantization': True, 'symmetric': False, 'low_memory_optimization': False}",
|
| 5979 |
-
"QuantTime":
|
| 5980 |
-
"arc_challenge":
|
| 5981 |
-
"arc_easy":
|
| 5982 |
-
"
|
| 5983 |
-
"
|
| 5984 |
-
"
|
| 5985 |
-
"
|
| 5986 |
-
"
|
| 5987 |
-
"
|
| 5988 |
-
"
|
| 5989 |
-
"
|
| 5990 |
-
"winogrande": 76.71665351223362,
|
| 5991 |
-
"zeroshot_avg": 72.10533470088525
|
| 5992 |
}
|
| 5993 |
-
}
|
|
|
|
| 10 |
"low_memory_optimization": false,
|
| 11 |
"moe_hessian_scope": "shared",
|
| 12 |
"n_samples": 128,
|
| 13 |
+
"scale_zero_dtype": "float16",
|
| 14 |
"symmetric": false,
|
| 15 |
"use_error_compensation": true,
|
| 16 |
"use_optimal_shrinkage": true,
|
|
|
|
| 5975 |
"Model": "Qwen/Qwen3.6-27B",
|
| 5976 |
"ModelSizeGB": 16.513800712,
|
| 5977 |
"OriginalSizeGB": 55.5630064,
|
| 5978 |
+
"PPL": 7.755378246307373,
|
| 5979 |
+
"Params": "{'bits': 3, 'group_size': 128, 'scale_zero_dtype': 'float16', 'n_samples': 128, 'moe_hessian_scope': 'shared', 'use_error_compensation': True, 'use_optimal_shrinkage': True, 'use_weighted_quantization': True, 'symmetric': False, 'low_memory_optimization': False}",
|
| 5980 |
+
"QuantTime": 787.927401304245,
|
| 5981 |
+
"arc_challenge": 58.78839590443686,
|
| 5982 |
+
"arc_easy": 75.54713804713805,
|
| 5983 |
+
"commonsense_qa": 86.15888615888616,
|
| 5984 |
+
"hellaswag": 82.59310894244175,
|
| 5985 |
+
"lambada_openai": 74.77197748884146,
|
| 5986 |
+
"openbookqa": 44.800000000000004,
|
| 5987 |
+
"piqa": 82.4265505984766,
|
| 5988 |
+
"truthfulqa_mc2": 54.909605261997015,
|
| 5989 |
+
"winogrande": 76.87450670876085,
|
| 5990 |
+
"zeroshot_avg": 70.76335212344208
|
|
|
|
|
|
|
| 5991 |
}
|
| 5992 |
+
}
|
model-00002-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4970468528
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:50ccca36e3cedf1d5cbc3f233f1def041f7502c78ae17b133986212d3bdab0e6
|
| 3 |
size 4970468528
|
model-00003-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4997537440
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14c351d0bdd2510dc0277ea8ec8294cfb80695560daed88e44ad59f97f69e664
|
| 3 |
size 4997537440
|
model-00004-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4002997816
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:865ffdcd186d481d4e2a7117bebc88f055c47334acab3ee46fd80904d247a869
|
| 3 |
size 4002997816
|