File size: 4,288 Bytes
df5e21b f48b46b df5e21b f48b46b df5e21b f48b46b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | ---
language:
- en
license: apache-2.0
base_model:
- Qwen/Qwen3-4B
pipeline_tag: text-generation
tags:
- qwen3
- computer-science
- software-engineering
- programming
- awq
- compressed-tensors
- int4
- w4a16
- code
- python
---
# Qwen3-4B-Computer-Science-AWQ
## Overview
Qwen3-4B-Computer-Science-AWQ is the AWQ-calibrated quantized release of **Qwen3-4B-Computer-Science**.
Weights are stored using the **Compressed-Tensors** format with **4-bit asymmetric group-wise quantization (W4A16)**. The checkpoint was produced using Activation-aware Weight Quantization (AWQ) calibration and validated by successful quantization, checksum verification, and CPU inference.
---
## Model Information
| Property | Value |
|-----------|-------|
| Base Model | Qwen/Qwen3-4B |
| Model Family | Qwen3-4B-Computer-Science |
| Quantization | AWQ |
| Storage Format | Compressed-Tensors |
| Weight Precision | INT4 |
| Activation Precision | FP16 / BF16 |
| Quantization Scheme | W4A16 |
| Group Size | 128 |
| Weight Quantization | Asymmetric |
| lm_head | Excluded from Quantization |
| Language | English |
| License | Apache-2.0 |
---
## Training Data
The base model was instruction tuned using permissively licensed datasets.
| Dataset | Configuration | License |
|---------|---------------|---------|
| HuggingFaceTB/smoltalk | smol-magpie-ultra | Apache-2.0 |
| agentica-org/DeepCoder-Preview-Dataset | primeintellect | MIT |
### Dataset Size
| Split | Samples |
|-------|---------:|
| Training | 60,989 |
| Evaluation | 512 |
---
## Intended Use
This model is intended for:
- Software engineering
- Programming
- Code generation
- Debugging
- Code review
- Algorithm implementation
- Computer science education
- General technical reasoning
---
## Quantization
This release was generated using Activation-aware Weight Quantization (AWQ).
The resulting checkpoint stores weights using packed 4-bit group-wise asymmetric quantization.
| Parameter | Value |
|-----------|-------|
| Weight Format | Packed INT4 |
| Group Size | 128 |
| Symmetric | No |
| Observer | memoryless_minmax |
| Compression Format | Compressed-Tensors |
---
## Runtime Compatibility
This checkpoint uses the **Compressed-Tensors** format.
It is intended for runtimes that support Compressed-Tensors models.
Validation performed for this release:
- Successful AWQ calibration
- Successful model serialization
- CPU inference
- SHA256 verification of release artifacts
Loading this checkpoint with standard Transformers may decompress weights during execution depending on the runtime and available hardware.
---
## Usage
### Transformers
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"Irfanuruchi/Qwen3-4B-Computer-Science-AWQ",
device_map="auto",
dtype="auto",
)
tokenizer = AutoTokenizer.from_pretrained(
"Irfanuruchi/Qwen3-4B-Computer-Science-AWQ"
)
```
---
## Release Artifacts
```
model.safetensors
config.json
generation_config.json
recipe.yaml
tokenizer.json
tokenizer_config.json
chat_template.jinja
SHA256SUMS
LICENSE
README.md
```
---
## Integrity Verification
Every release artifact includes a SHA256 checksum.
Verify downloaded files:
```bash
sha256sum -c SHA256SUMS
```
---
## Validation
The published checkpoint was verified before release.
Completed validation:
- AWQ calibration completed successfully
- Quantized checkpoint generated successfully
- CPU inference completed successfully
- SHA256 checksums verified
---
## Limitations
- Quantization may affect output quality compared to the BF16 checkpoint.
- Runtime support depends on the inference engine.
- GPU memory requirements depend on whether the runtime executes directly on compressed weights or decompresses them during inference.
---
## License
Base model:
- Apache-2.0
Training datasets:
- Apache-2.0
- MIT
This repository is distributed under the Apache-2.0 License.
---
## Acknowledgements
- Alibaba Qwen Team
- Hugging Face
- vLLM Project
- LLM Compressor Project
- SmolTalk Contributors
- DeepCoder Contributors
---
## Citation
```bibtex
@software{uruci2026qwen3csawq,
title={Qwen3-4B-Computer-Science-AWQ},
author={Irfan Uruçi},
year={2026},
publisher={Hugging Face}
}
```
|