w-ahmad commited on
Commit
292ab01
ยท
verified ยท
1 Parent(s): a41b53a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +91 -2
README.md CHANGED
@@ -1,2 +1,91 @@
1
- Updated MoQ are coming soon with all quants and evaluation results.
2
- I improved the quants assigning method for higher performance.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ library_name: gguf
5
+ tags:
6
+ - MoQ
7
+ - mixture-of-quants
8
+ - GGUF
9
+ - QWEN
10
+ - quantization
11
+ base_model:
12
+ - Qwen/Qwen3.5-9B
13
+ license: mit
14
+ pipeline_tag: text-generation
15
+ ---
16
+
17
+ # ๐Ÿš€ MoQ: Mixture of Quants
18
+ > **MoQ (Mixture of Quants)** is a surgical evolution in model compression. By deploying an **Empirical Per-Tensor Analysis**, MoQ identifies "High-Intelligence" tensors and shields them with high-bit precision, while crushing redundant weights into extreme efficiency.
19
+
20
+ ---
21
+
22
+ ## ๐Ÿ“Š MoQ vs. Unsloth: Performance Comparison
23
+ The following benchmarks compare **MoQ 4.84** against **Unsloth Dynamic Quants**.
24
+ *Note: Lower KLD (Kullbackโ€“Leibler Divergence) indicates higher fidelity to the original model.*
25
+
26
+ ### ๐Ÿ“‰ Key Divergence Metrics (Lower is Better)
27
+
28
+ #### **Mean KLD**
29
+ Average divergence across all layers. MoQ maintains a significantly lower average error profile.
30
+ ![Mean_KLD](https://cdn-uploads.huggingface.co/production/uploads/69ac7f5db2b3b515d77e2278/vongwACIdL5vim_VLwcIn.png)
31
+
32
+ #### **Maximum KLD**
33
+ The "worst-case" divergence point. MoQ 4.84 effectively eliminates the extreme divergence spikes seen in standard dynamic quants.
34
+ ![Maximum_KLD](https://cdn-uploads.huggingface.co/production/uploads/69ac7f5db2b3b515d77e2278/ThF0qh5xS45y1iwVeWuH7.png)
35
+
36
+ #### **RMS ฮ”p**
37
+ Root Mean Square change in probabilities. This measures the stability of the model's confidence.
38
+ ![RMS_ฮ”p](https://cdn-uploads.huggingface.co/production/uploads/69ac7f5db2b3b515d77e2278/0pglHo80A6IjJRjPM0Zjs.png)
39
+
40
+ ---
41
+
42
+ ### ๐Ÿ“ˆ Precision Percentiles
43
+ These graphs demonstrate MoQ's ability to maintain stability even within the most sensitive portions of the architecture.
44
+
45
+ #### **95.0% Percentile KLD**
46
+ ![95.0pct_KLD](https://cdn-uploads.huggingface.co/production/uploads/69ac7f5db2b3b515d77e2278/G9jJMxUgBUR0unkU3fX6q.png)
47
+
48
+ #### **99.0% Percentile KLD**
49
+ ![99.0pct_KLD](https://cdn-uploads.huggingface.co/production/uploads/69ac7f5db2b3b515d77e2278/HhgKNfcXXyMio5z84vIGI.png)
50
+
51
+ #### **99.9% Percentile KLD**
52
+ ![99.9pct_KLD](https://cdn-uploads.huggingface.co/production/uploads/69ac7f5db2b3b515d77e2278/ZqlPEtkIlCRH_0HL3-nlm.png)
53
+
54
+ ---
55
+
56
+ ### ๐ŸŽฏ Token Match (Same Top-P)
57
+ This metric tracks how often the quantized model chooses the **exact same top token** as the original high-precision model.
58
+ ![Same_top_p](https://cdn-uploads.huggingface.co/production/uploads/69ac7f5db2b3b515d77e2278/uSciX-oKfWFTwkPxOvvPO.png)
59
+
60
+ ---
61
+
62
+ ## ๐Ÿง  The MoQ Edge
63
+ MoQ optimizes the architecture for the **Pareto frontier** of memory and performance.
64
+
65
+ * **Dynamic Bitrate Allocation:** No more "one-size-fits-all." MoQ assigns precision where it actually matters.
66
+ * **Cognitive Preservation:** Massive VRAM savings with near-zero degradation in logic and coherence.
67
+ * **Next-Gen Efficiency:** Fits "Large" model intelligence into "Small" model hardware.
68
+
69
+ ### ๐Ÿ“ Weight Sensitivity Heatmap
70
+ Lighter regions represent mission-critical tensors preserved at higher precision.
71
+ ![importance_heatmap](https://cdn-uploads.huggingface.co/production/uploads/69ac7f5db2b3b515d77e2278/xrFfZoqhPquwX9EUl3D5O.png)
72
+
73
+ ### ๐Ÿ“ˆ Importance Distribution
74
+ The histogram shows the importance scores used to mathematically determine the optimal quant for each tensor.
75
+ ![importance_histogram](https://cdn-uploads.huggingface.co/production/uploads/69ac7f5db2b3b515d77e2278/FgJJohu80wXmZqIH4ifwB.png)
76
+
77
+ ---
78
+
79
+ ## ๐Ÿ“ฅ Available Quants
80
+
81
+ | Folder Link | BPW | Total Size | Description |
82
+ | :--- | :---: | :---: | :--- |
83
+ | [๐Ÿ“‚ **MoQ-2.55**](https://huggingface.co/WaleedAhmad/Qwen3.5-9B-GGUF-MoQ/blob/main/MoQ/Qwen3.5-9B-MoQ-2.55gguf) | **2.55** | **~2.88 GB** |
84
+
85
+
86
+ ---
87
+
88
+ ## ๐Ÿ›  Usage & Deployment
89
+
90
+ ```bash
91
+ ./llama-cli -m Qwen3.5-9B-MoQ-4.84.gguf -p "The future of efficient AI is..."