J-Fraudster commited on
Commit
37396c2
·
verified ·
1 Parent(s): 35b61bf

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +67 -0
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Qwen/Qwen3.5-2B
4
+ tags:
5
+ - quantization
6
+ - auto-round
7
+ - gptq
8
+ - vlm
9
+ - 4bit
10
+ - text-generation
11
+ - image-text-to-text
12
+ pipeline_tag: image-text-to-text
13
+ ---
14
+
15
+ # Qwen3.5-2B (W4A16 Quantized via AutoRound)
16
+
17
+ This repository contains a **W4A16 (4-bit weights, 16-bit activations)** quantized version of [Qwen/Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B) generated using Intel's [AutoRound](https://github.com/intel/auto-round) algorithm.
18
+
19
+ ---
20
+
21
+ ## ⚡ Quantization Details
22
+
23
+ The model was calibrated and quantized using production-grade settings to minimize accuracy degradation while significantly lowering VRAM requirements:
24
+
25
+ * **Quantization Algorithm:** [AutoRound](https://github.com/intel/auto-round)
26
+ * **Bits / Precision:** W4A16 (4-bit integer weights, 16-bit activation)
27
+ * **Group Size:** 32 (provides higher reconstruction fidelity than standard 128)
28
+ * **Symmetric (`sym`):** `True`
29
+ * **Calibration Samples (`nsamples`):** 512
30
+ * **Sequence length (`seqlen`):** 4096
31
+ * **Tuning Iterations (`iters`):** 1000
32
+ * **Vision Tower (`quant_nontext_module`):** `False` (Kept in **BF16** to preserve visual reasoning and OCR precision)
33
+ * **Special Modules (`layer_config`):** Multi-Token Prediction (`mtp`, `mtp.fc`) layers preserved in native `bfloat16`.
34
+
35
+ ---
36
+
37
+ ## 🚀 Usage & Quickstart
38
+
39
+ ### 1. Inference via vLLM
40
+
41
+ For high-throughput production serving:
42
+
43
+ ```bash
44
+ vllm serve J-Fraudster/Qwen3.5-2B-W4A16-AutoRound-LLM-Compressor \
45
+ --quantization auto-round \
46
+ --dtype bfloat16 \
47
+ --max-model-len 4096 \
48
+ --gpu-memory-utilization 0.90
49
+
50
+ ```
51
+
52
+ *(Note: For the GPTQ format repo, you can set `--quantization gptq` if required by your backend).*
53
+
54
+ ---
55
+
56
+ ## 📊 VRAM & Performance Benefits
57
+
58
+ * **Original Model (BF16):** ~54 GB VRAM required (needs 2x A100/A6000 or 80GB VRAM)
59
+ * **Quantized Model (W4A16 Group 64):** ~16–18 GB VRAM (can easily run on a single **RTX 3090 / 4090 / A5000 24GB**)
60
+ * **Speedup:** Reduced memory bandwidth bottleneck leading to faster decoding token speeds.
61
+
62
+ ---
63
+
64
+ ## 📚 Acknowledgments
65
+
66
+ * Quantization performed using [Intel AutoRound](https://github.com/intel/auto-round).
67
+ * Base architecture provided by the [Qwen Team](https://github.com/QwenLM/Qwen).