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-g64 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-g64 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-g64", 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-g64", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("jkim96/Qwen3.6-27B-DASHQ-INT3-g64", 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-g64 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-g64" # 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-g64", "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-g64
- SGLang
How to use jkim96/Qwen3.6-27B-DASHQ-INT3-g64 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-g64" \ --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-g64", "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-g64" \ --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-g64", "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-g64 with Docker Model Runner:
docker model run hf.co/jkim96/Qwen3.6-27B-DASHQ-INT3-g64
Upload dashq quantized checkpoint (INT3, g64, scale_zero_dtype=float16, zero-shot avg=70.6)
Browse files- README.md +11 -9
- dashq_config.json +14 -14
- 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 | `64` |
|
|
|
|
| 41 |
| Calibration dataset | `wikitext2` |
|
| 42 |
| Calibration samples | `128` |
|
| 43 |
| Sequence length | `2048` |
|
|
@@ -48,14 +49,15 @@ model, tokenizer = load_quantized(
|
|
| 48 |
|
| 49 |
| Metric | Value |
|
| 50 |
| --- | ---: |
|
| 51 |
-
| `wikitext2_ppl` | 7.
|
| 52 |
-
| `
|
| 53 |
-
| `
|
| 54 |
-
| `
|
| 55 |
-
| `
|
| 56 |
-
| `
|
| 57 |
-
| `
|
| 58 |
-
| `
|
| 59 |
-
| `
|
|
|
|
| 60 |
| `winogrande` | 76.9534 |
|
| 61 |
|
|
|
|
| 38 |
| Base model | `Qwen/Qwen3.6-27B` |
|
| 39 |
| Bits | `3` |
|
| 40 |
| Group size | `64` |
|
| 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.7131 |
|
| 53 |
+
| `zero-shot accuracy avg` | 70.5799 |
|
| 54 |
+
| `arc_challenge` | 60.1536 |
|
| 55 |
+
| `arc_easy` | 78.4512 |
|
| 56 |
+
| `commonsense_qa` | 79.4431 |
|
| 57 |
+
| `hellaswag` | 81.8861 |
|
| 58 |
+
| `lambada_openai` | 75.1213 |
|
| 59 |
+
| `openbookqa` | 45.4000 |
|
| 60 |
+
| `piqa` | 81.8825 |
|
| 61 |
+
| `truthfulqa_mc2` | 55.9281 |
|
| 62 |
| `winogrande` | 76.9534 |
|
| 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,19 +5975,18 @@
|
|
| 5974 |
"Model": "Qwen/Qwen3.6-27B",
|
| 5975 |
"ModelSizeGB": 17.27475596,
|
| 5976 |
"OriginalSizeGB": 55.5630064,
|
| 5977 |
-
"PPL": 7.
|
| 5978 |
-
"Params": "{'bits': 3, 'group_size': 64, '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": 60.
|
| 5981 |
-
"arc_easy":
|
| 5982 |
-
"
|
| 5983 |
-
"
|
| 5984 |
-
"
|
| 5985 |
-
"
|
| 5986 |
-
"
|
| 5987 |
-
"
|
| 5988 |
-
"
|
| 5989 |
-
"
|
| 5990 |
-
"winogrande": 76.95343330702447
|
| 5991 |
}
|
| 5992 |
}
|
|
|
|
| 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": 17.27475596,
|
| 5977 |
"OriginalSizeGB": 55.5630064,
|
| 5978 |
+
"PPL": 7.71309757232666,
|
| 5979 |
+
"Params": "{'bits': 3, 'group_size': 64, '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": 894.5826256275177,
|
| 5981 |
+
"arc_challenge": 60.153583617747444,
|
| 5982 |
+
"arc_easy": 78.45117845117845,
|
| 5983 |
+
"commonsense_qa": 79.44307944307944,
|
| 5984 |
+
"hellaswag": 81.88607847042422,
|
| 5985 |
+
"lambada_openai": 75.12128856976518,
|
| 5986 |
+
"openbookqa": 45.4,
|
| 5987 |
+
"piqa": 81.88248095756256,
|
| 5988 |
+
"truthfulqa_mc2": 55.9280749996677,
|
| 5989 |
+
"winogrande": 76.95343330702447,
|
| 5990 |
+
"zeroshot_avg": 70.57991086849438
|
|
|
|
| 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 4968942552
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69e03e3443d8fe5513a46fb33c09b94c8ec6122ec0d06534756a879471533a67
|
| 3 |
size 4968942552
|
model-00003-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4995401320
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfb922d084d81c3cbecdc222c7a1112957077d6f88b09ae5978e87d0d2f71bb5
|
| 3 |
size 4995401320
|
model-00004-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4767615160
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52686153606d162c95b2276e99ba1532b6202e92687ef264f748700f773cb281
|
| 3 |
size 4767615160
|