EdgeRazor: A Lightweight Framework for Large Language Models via Mixed-Precision Quantization-Aware Distillation
Organizations: National Key Laboratory for Novel Software Technology, Nanjing University, Nanjing 210063, China · School of Intelligent Science and Technology, Nanjing University, Suzhou 215163, China · Microsoft AI, Beijing 100080, China · School of Artificial Intelligence, Nanjing University, Nanjing 210063, China
Abstract
Quantization has emerged as a mainstream approach for deploying Large Language Models (LLMs) on resource-constrained devices, yet compressing precision below 4-bit typically causes severe performance degradation or prohibitive retraining costs. In this paper, we propose EdgeRazor, a lightweight framework for LLMs via Mixed-Precision Quantization-Aware Distillation. It contains three modules: Structural Quantization with Mixed Precision for fine-grained control of bit-widths, Layer-Adaptive Feature Distillation that dynamically selects the most informative features for alignment, and Entropy-Aware KL Divergence for forward-reverse balance on both human-annotated and distilled datasets. Evaluations conducted on MobileLLM and Qwen families show that under weight-activation quantization, the 1.88-bit Qwen3-0.6B-EdgeRazor outperforms the state-of-the-art 2-bit baselines by 11.27 and surpasses the strongest 3-bit baselines by 4.38, while the quantized MobileLLM-350M-EdgeRazor requires a training budget 4-10 lower than the leading quantization-aware training method. In terms of efficiency, EdgeRazor achieves higher compression ratios at all bit-widths, and the 1.58-bit Qwen3-0.6B-EdgeRazor reduces storage from 1.11 GB to 0.19 GB while accelerating decoding by 15.16 over the 16-bit baseline. These results empirically validate the effectiveness and efficiency of EdgeRazor. The codes can be accessed from GitHub and Huggingface.
Figures & tables
| Models | Bit-widths | LRs | Training | ||||
| MobileLLM-350M | 4.00 | 2 epochs | 0.50 | 0.10 | 2.0 | ||
| 2.79 | 4 epochs | 0.50 | 0.10 | 2.0 | |||
| 1.88 | 5 epochs | 0.20 | 1.00 | 4.0 | |||
| 1.58 | 5 epochs | 0.20 | 1.00 | 4.0 | |||
| Qwen3-0.6B | 4.00 | 2k steps | 0.05 | 0.50 | 2.0 | ||
| 2.79 | 1 epoch | 0.10 | 0.10 | 2.0 |
| Methods | Allocation | Feature distillation | Logit distillation | ||||
| Super-group | Stacked | Adaptive | Fixed | EAKLD | CAKLD | FKLD | |
| EdgeRazor | ✓ | × | ✓ | × | ✓ | × | × |
| EdgeRazor | × | ✓ | ✓ | × | ✓ | × | × |
| EdgeRazor | ✓ | × | ✓ | × | × | ✓ | × |
| EdgeRazor | ✓ | × | × | ✓ | ✓ | × | × |
| EdgeRazor | ✓ | × | × | ✓ | × | × | ✓ |
| Methods | W | A | KV | Average | W | A | KV | Average |
| EdgeRazor | 2.79 | 16 | 16 | 44.17 | 2.79 | 8 | 8 | 44.10 |
| EdgeRazor | 2.79 | 16 | 16 | 43.26 | 2.79 | 8 | 8 | 43.08 |
| EdgeRazor | 2.19 | 16 | 16 | 40.71 | 2.19 | 8 | 8 | 40.14 |
| EdgeRazor | 2.19 | 16 | 16 | 39.59 | 2.19 | 8 | 8 | 39.61 |
| EdgeRazor | 2.19 | 16 | 16 | 40.27 | 2.19 | 8 | 8 | 39.93 |
| EdgeRazor | 2.19 | 16 | 16 | 39.25 | 2.19 | 8 | 8 | 39.51 |
Appendix figures & tables27 assets
Supplementary material from the paper’s appendix.
Appendix
| Data types | Thresholds | Human-annotated data | Distilled data | ||
| High-conf (%) | Mismatched (%) | High-conf (%) | Mismatched (%) | ||
| Mathematics | 0.60 | 79.18 | 16.78 | 86.16 | 2.98 |
| 0.70 | 72.36 | 13.64 | 81.02 | 1.76 | |
| 0.80 | 65.25 | 10.54 | 75.61 | 1.14 | |
| 0.90 | 56.48 | 7.28 | 68.61 | 0.74 | |
| 0.95 | 49.47 | 5.36 | 62.83 | 0.60 | |
| # | Datasets | Subsets | Split | Data sizes |
| 1 | BAAI/Infinity-Instruct ( Li et al., 2025a ) | 7M_domains | train | 7.45M |
| 2 | BAAI/Infinity-Instruct | Gen | train | 1.46M |
| 3 | allenai/tulu-v3.1-mix-preview-4096-OLMoE | – | train | 0.61M |
| 4 | a-m-team/AM-DeepSeek-R1-Distilled-1.4M ( Zhao et al., 2025 ) | am_0.5M+am_0.9M | train | 1.40M |
| 5 | Mixed Downstream Datasets ( Bisk et al., 2020 ; Clark et al., 2019 ; Clark et al., 2018 ; Lin et al., 2022 ; Mihaylov et al., 2018 ; Sakaguchi et al., 2021 ; Sap et al., 2019 ; Zellers et al., 2019 ) | – | train | 0.24M |
| 6 | BAAI/Infinity-Instruct | 7M_core | train | 1.48M |
| Categories | Tasks | N-shot | Scoring methods | Metrics |
| Commonsense reasoning | ARC-e ( Clark et al., 2018 ) | 0-shot* | Log-likelihood | Acc_norm |
| ARC-c ( Clark et al., 2018 ) | 0-shot* | Log-likelihood | Acc_norm | |
| HellaSwag ( Zellers et al., 2019 ) | 0-shot* | Log-likelihood | Acc_norm | |
| BoolQ ( Clark et al., 2019 ) | 0-shot* | Log-likelihood | Acc | |
| PIQA ( Bisk et al., 2020 ) | 0-shot* | Log-likelihood | Acc_norm | |
| Winogrande ( Sakaguchi et al., 2021 ) | 0-shot* | Log-likelihood | Acc |
| Methods | W-A-KV | ARC-e | ARC-c | HellaS. | BoolQ | PIQA | WinoG. | SIQA | OBQA | Ethics | Tr.QA2 | MMLU | GSM8K | HumanE. | Average |
| BF16 | 16-16-16 | 64.94 | 35.49 | 52.87 | 58.96 | 70.84 | 56.35 | 40.79 | 40.20 | 53.98 | 37.44 | 23.52 | 0.00 | 0.00 | 41.18 |
| OmniQuant | 4-16-16 | 63.30 | 34.64 | 51.79 | 58.62 | 70.62 | 54.46 | 40.12 | 38.40 | 48.76 | 37.48 | 24.26 | 0.00 | 0.00 | 40.19 |
| OmniQuant | 3-16-16 | 61.07 | 33.53 | 48.73 | 60.58 | 68.28 | 54.78 | 39.61 | 36.00 | 51.56 | 39.90 | 23.14 | 0.00 | 0.00 | 39.78 |
| OmniQuant | 2-16-16 | 43.98 | 24.57 | 33.42 | 56.48 | 58.11 | 49.41 | 35.67 | 29.60 | 45.26 | 43.93 | 23.18 | 0.00 | 0.00 | 34.12 |
| AWQ | 4-16-16 | 63.80 | 35.49 | 52.10 | 59.05 | 70.24 | 54.38 | 39.97 | 39.20 | 54.12 | 37.85 | 24.16 | 0.00 | 0.00 | 40.80 |
| AWQ | 3-16-16 | 62.67 | 33.62 | 50.26 | 61.01 | 68.61 | 54.54 | 39.76 | 37.40 | 46.94 | 39.91 | 24.23 | 0.00 | 0.00 | 39.92 |
| Methods | W-A-KV | ARC-e | ARC-c | HellaS. | BoolQ | PIQA | WinoG. | SIQA | OBQA | Ethics | Tr.QA2 | MMLU | GSM8K | HumanE. | Average |
| BF16 | 16-16-16 | 64.94 | 35.49 | 52.87 | 58.96 | 70.84 | 56.35 | 40.79 | 40.20 | 53.98 | 37.44 | 23.52 | 0.00 | 0.00 | 41.18 |
| OmniQuant | 4-8-8 | 63.93 | 34.81 | 51.86 | 57.80 | 70.18 | 55.01 | 40.17 | 37.80 | 50.93 | 37.38 | 24.37 | 0.00 | 0.00 | 40.33 |
| OmniQuant | 3-8-8 | 61.41 | 32.08 | 48.78 | 60.21 | 68.28 | 54.14 | 39.56 | 35.80 | 52.66 | 38.30 | 23.57 | 0.00 | 0.00 | 39.60 |
| OmniQuant | 2-8-8 | 44.49 | 23.21 | 33.21 | 62.02 | 57.13 | 50.99 | 34.95 | 29.00 | 46.75 | 44.85 | 23.42 | 0.00 | 0.00 | 34.62 |
| LQER | 4-8-8 | 64.02 | 36.01 | 51.84 | 56.61 | 70.78 | 53.91 | 40.02 | 39.40 | 53.17 | 38.36 | 24.08 | 0.00 | 0.00 | 40.63 |
| LQER | 3-8-8 | 58.54 | 32.17 | 48.82 | 58.26 | 67.46 | 53.51 | 38.84 | 37.20 | 49.53 | 41.88 | 24.63 | 0.00 | 0.00 | 39.30 |
| Methods | W-A-KV | ARC-e | ARC-c | HellaS. | BoolQ | PIQA | WinoG. | SIQA | OBQA | Ethics | Tr.QA2 | MMLU | IFEval | GSM8K | HumanE. | Average |
| BF16 | 16-16-16 | 56.02 | 34.04 | 47.23 | 64.04 | 67.36 | 56.04 | 39.20 | 31.20 | 47.70 | 42.84 | 40.12 | 58.41 | 41.54 | 37.20 | 47.35 |
| GPTQ | 4-16-16 | 52.78 | 32.85 | 45.10 | 61.71 | 65.18 | 55.56 | 41.15 | 31.00 | 49.67 | 44.89 | 33.86 | 53.05 | 26.23 | 18.90 | 43.71 |
| GPTQ | 3-16-16 | 36.91 | 25.60 | 38.66 | 60.18 | 60.66 | 53.67 | 38.54 | 28.80 | 44.84 | 43.48 | 26.45 | 24.95 | 0.61 | 0.00 | 34.53 |
| GPTQ | 2-16-16 | 24.87 | 25.26 | 26.43 | 42.63 | 51.41 | 53.43 | 33.83 | 27.00 | 54.33 | 47.60 | 24.72 | 8.50 | 0.00 | 0.00 | 30.00 |
| OmniQuant | 4-16-16 | 47.01 | 31.06 | 44.43 | 58.32 | 65.18 | 57.06 | 38.28 | 31.80 | 44.39 | 42.32 | 40.55 | 12.01 | 0.00 | 0.00 | 36.60 |
| OmniQuant | 3-16-16 | 44.61 | 26.02 | 38.94 | 63.36 | 61.81 | 54.62 | 36.90 | 29.40 | 43.25 | 43.81 | 30.56 | 10.72 | 0.00 | 0.00 | 34.57 |
| Methods | W-A-KV | ARC-e | ARC-c | HellaS. | BoolQ | PIQA | WinoG. | SIQA | OBQA | Ethics | Tr.QA2 | MMLU | IFEval | GSM8K | HumanE. | Average |
| BF16 | 16-16-16 | 56.02 | 34.04 | 47.23 | 64.04 | 67.36 | 56.04 | 39.20 | 31.20 | 47.70 | 42.84 | 40.12 | 58.41 | 41.54 | 37.20 | 47.35 |
| OmniQuant | 4-8-8 | 48.11 | 30.46 | 44.06 | 66.24 | 65.07 | 55.88 | 37.82 | 32.00 | 48.90 | 42.07 | 39.11 | 12.01 | 0.00 | 0.00 | 37.27 |
| OmniQuant | 3-8-8 | 42.42 | 28.07 | 38.73 | 64.19 | 61.59 | 54.14 | 37.15 | 28.80 | 43.81 | 43.74 | 30.40 | 11.09 | 0.00 | 0.00 | 34.58 |
| OmniQuant | 2-8-8 | 32.20 | 21.76 | 27.66 | 38.13 | 54.57 | 50.28 | 33.37 | 26.20 | 56.65 | 51.43 | 22.99 | 11.65 | 0.00 | 0.00 | 30.49 |
| LQER | 4-8-8 | 55.64 | 31.83 | 45.21 | 63.76 | 66.05 | 53.51 | 38.43 | 29.80 | 47.86 | 41.85 | 41.13 | 54.16 | 31.61 | 33.54 | 45.31 |
| LQER | 3-8-8 | 41.33 | 26.88 | 39.91 | 62.05 | 61.32 | 52.01 | 38.18 | 27.80 | 43.52 | 43.05 | 26.56 | 38.63 | 4.32 | 4.88 | 36.46 |
| Methods | W-A-KV | ARC-e | ARC-c | HellaS. | BoolQ | PIQA | WinoG. | SIQA | OBQA | Ethics | Tr.QA2 | MMLU | IFEval | GSM8K | HumanE. | Average |
| BF16 | 16-16-16 | 69.87 | 42.83 | 60.40 | 77.77 | 72.58 | 60.85 | 45.19 | 37.40 | 49.63 | 45.97 | 55.49 | 67.10 | 68.76 | 67.07 | 58.64 |
| GPTQ | 4-16-16 | 62.21 | 38.40 | 58.35 | 76.51 | 70.35 | 58.72 | 42.78 | 34.80 | 55.24 | 45.79 | 51.37 | 59.52 | 59.59 | 55.49 | 54.94 |
| GPTQ | 3-16-16 | 56.69 | 35.15 | 53.71 | 69.36 | 67.08 | 58.48 | 41.56 | 34.80 | 51.26 | 47.46 | 42.03 | 33.09 | 9.63 | 3.66 | 43.14 |
| GPTQ | 2-16-16 | 25.76 | 24.91 | 26.17 | 48.99 | 50.27 | 49.80 | 33.11 | 27.80 | 51.45 | 47.91 | 23.54 | 7.76 | 0.00 | 0.00 | 29.82 |
| OmniQuant | 4-16-16 | 69.11 | 41.13 | 58.02 | 79.79 | 71.00 | 62.35 | 44.63 | 36.00 | 52.10 | 44.84 | 52.34 | 15.34 | 0.00 | 0.00 | 44.76 |
| OmniQuant | 3-16-16 | 60.61 | 36.01 | 52.49 | 67.00 | 68.55 | 58.33 | 40.84 | 32.80 | 43.64 | 45.24 | 48.95 | 14.60 | 0.00 | 0.00 | 40.65 |
| Methods | W-A-KV | ARC-e | ARC-c | HellaS. | BoolQ | PIQA | WinoG. | SIQA | OBQA | Ethics | Tr.QA2 | MMLU | IFEval | GSM8K | HumanE. | Average |
| BF16 | 16-16-16 | 69.87 | 42.83 | 60.40 | 77.77 | 72.58 | 60.85 | 45.19 | 37.40 | 49.63 | 45.97 | 55.49 | 67.10 | 68.92 | 67.07 | 58.65 |
| OmniQuant | 4-8-8 | 67.42 | 40.36 | 58.46 | 76.54 | 70.57 | 59.83 | 44.42 | 36.80 | 47.09 | 44.20 | 52.96 | 13.12 | 0.00 | 0.00 | 43.70 |
| OmniQuant | 3-8-8 | 62.21 | 35.15 | 52.17 | 67.74 | 68.44 | 56.75 | 41.71 | 33.60 | 44.65 | 44.17 | 48.68 | 14.60 | 0.00 | 0.00 | 40.71 |
| OmniQuant | 2-8-8 | 39.14 | 22.27 | 32.91 | 62.39 | 58.05 | 51.22 | 35.62 | 28.20 | 43.27 | 48.22 | 22.93 | 11.65 | 0.00 | 0.00 | 32.56 |
| LQER | 4-8-8 | 66.75 | 41.38 | 59.88 | 71.47 | 71.60 | 58.56 | 42.63 | 36.40 | 45.28 | 45.79 | 51.67 | 61.92 | 59.67 | 60.98 | 55.28 |
| LQER | 3-8-8 | 56.82 | 33.45 | 52.95 | 71.62 | 67.52 | 56.20 | 40.74 | 35.00 | 57.30 | 45.64 | 40.64 | 43.81 | 22.74 | 30.49 | 46.78 |
| Methods | W-A-KV | ARC-e | ARC-c | HellaS. | BoolQ | PIQA | WinoG. | SIQA | OBQA | Ethics | Tr.QA2 | MMLU | IFEval | GSM8K | HumanE. | Average |
| 2.79-16-16 | 51.77 | 28.33 | 37.47 | 70.70 | 63.71 | 54.06 | 40.33 | 28.20 | 55.08 | 42.72 | 36.85 | 51.39 | 26.69 | 31.10 | 44.17 | |
| 2.79-8-8 | 52.10 | 28.50 | 37.36 | 70.58 | 63.93 | 53.12 | 40.12 | 28.60 | 54.97 | 42.82 | 36.44 | 49.54 | 26.99 | 32.32 | 44.10 | |
| 2.79-16-16 | 55.51 | 30.03 | 37.51 | 54.25 | 64.04 | 53.91 | 40.84 | 28.40 | 58.84 | 44.02 | 37.05 | 46.77 | 28.20 | 26.22 | 43.26 | |
| 2.79-8-8 | 55.47 | 30.29 | 37.56 | 54.04 | 64.09 | 54.30 | 40.79 | 28.40 | 58.77 | 43.93 | 37.05 | 46.03 | 27.45 | 25.00 | 43.08 |
| Methods | W-A-KV | ARC-e | ARC-c | HellaS. | BoolQ | PIQA | WinoG. | SIQA | OBQA | Ethics | Tr.QA2 | MMLU | IFEval | GSM8K | HumanE. | Average |
| 2.19-16-16 | 50.17 | 29.44 | 34.21 | 63.88 | 62.89 | 50.83 | 37.00 | 29.80 | 48.45 | 43.59 | 31.77 | 38.82 | 24.64 | 24.39 | 40.71 | |
| 2.19-8-8 | 49.24 | 28.67 | 34.28 | 63.98 | 61.86 | 50.43 | 36.69 | 29.80 | 47.12 | 44.14 | 31.71 | 39.19 | 22.90 | 21.95 | 40.14 | |
| 2.19-16-16 | 52.27 | 27.82 | 33.59 | 65.05 | 62.46 | 50.20 | 37.92 | 28.00 | 43.29 | 44.54 | 27.05 | 40.30 | 20.39 | 21.34 | 39.59 | |
| 2.19-8-8 | 52.31 | 27.47 | 33.70 | 64.65 | 62.19 | 50.51 | 37.77 | 27.80 | 43.29 | 44.59 | 27.13 | 40.30 | 20.24 | 22.56 | 39.61 | |
| 2.19-16-16 | 49.03 | 27.05 | 34.33 | 59.57 | 62.51 | 51.46 | 38.28 | 30.20 | 53.63 | 45.34 | 27.88 | 36.97 | 27.37 | 20.12 | 40.27 | |
| 2.19-8-8 | 47.77 | 26.96 | 34.02 | 59.33 | 61.86 | 52.09 | 38.13 | 30.60 | 53.22 | 44.98 | 27.89 | 35.67 | 27.60 | 18.90 | 39.93 |
| Methods | W-A-KV | ARC-e | ARC-c | HellaS. | BoolQ | PIQA | WinoG. | SIQA | OBQA | Ethics | Tr.QA2 | MMLU | IFEval | GSM8K | HumanE. | Average |
| 1.88-16-16 | 51.22 | 27.73 | 34.21 | 66.91 | 63.66 | 53.35 | 38.43 | 27.60 | 55.92 | 43.80 | 28.78 | 42.51 | 25.09 | 23.17 | 41.60 | |
| 1.88-8-8 | 51.47 | 27.99 | 34.22 | 66.85 | 63.49 | 53.04 | 38.02 | 27.40 | 55.92 | 43.88 | 29.56 | 44.55 | 25.09 | 23.17 | 41.76 | |
| 1.88-16-16 | 49.20 | 27.56 | 34.64 | 65.05 | 61.75 | 53.67 | 39.36 | 30.00 | 54.72 | 44.35 | 30.90 | 39.56 | 23.05 | 19.51 | 40.95 | |
| 1.88-8-8 | 49.16 | 27.47 | 34.50 | 64.95 | 61.75 | 54.06 | 39.20 | 29.40 | 54.80 | 44.47 | 30.59 | 37.34 | 22.21 | 21.95 | 40.85 | |
| 1.88-16-16 | 48.57 | 26.45 | 33.60 | 58.65 | 61.53 | 53.20 | 39.30 | 29.40 | 56.46 | 43.67 | 33.21 | 40.67 | 20.77 | 20.12 | 40.40 | |
| 1.88-8-8 | 48.15 | 25.94 | 33.75 | 58.50 | 60.83 | 52.72 | 38.54 | 29.40 | 56.44 | 43.50 | 33.33 | 41.04 | 19.86 | 21.34 | 40.24 |
| Methods | Bit-widths | Group sizes | Quantized layers | Quantization proportions ( ) | Compression ratios ( ) | ||
| decoder | emb | lm_head | |||||
| BF16 | 16 | – | – | – | – | 00.00% | 1.00× |
| 4 | 256 | ✓ | ✓ | ✓ | 99.99% | 3.76× | |
| 2.79 | 256 | ✓ | ✓ | ✓ | 99.99% | 4.94× | |
| 1.88 | 256 | ✓ | ✓ | ✓ | 99.99% | 6.46× | |
| EdgeRazor | 1.58 | 256 | ✓ | ✓ | ✓ | 99.99% | 7.19× |
| Methods | Bit-widths | Group sizes | Quantized layers | Quantization proportions ( ) | Compression ratios ( ) | ||
| decoder | emb | lm_head | |||||
| BF16 | 16 | – | – | – | – | 00.00% | 1.00× |
| 4 | 256 | ✓ | ✓ | ✓ | 99.99% | 3.94× | |
| 2.79 | 256 | ✓ | ✓ | ✓ | 99.99% | 5.05× | |
| 1.88 | 256 | ✓ | ✓ | ✓ | 99.99% | 6.41× | |
| EdgeRazor | 1.58 | 256 | ✓ | ✓ | ✓ | 99.99% | 7.04× |
| Methods | Bit-widths | Group sizes | Quantized layers | Quantization proportions ( ) | Compression ratios ( ) | ||
| decoder | emb | lm_head | |||||
| BF16 | 16 | – | – | – | – | 00.00% | 1.00× |
| 4 | 256 | ✓ | ✓ | ✓ | 99.99% | 3.94× | |
| 2.79 | 256 | ✓ | ✓ | ✓ | 99.99% | 5.21× | |
| 1.88 | 256 | ✓ | ✓ | ✓ | 99.99% | 6.88× | |
| EdgeRazor | 1.58 | 256 | ✓ | ✓ | ✓ | 99.99% | 7.69× |
| Methods | Bit-widths | Group sizes | Quantized layers | Prop. ( ) | Compr. ( ) | |||
| vision | decoder | emb | lm_head | |||||
| BF16 | 16 | – | – | – | – | – | 00.00% | 1.00× |
| EdgeRazor | 4 | 64 | ✓ | ✓ | ✓ | ✓ | 96.73% | 3.45× |
| GPTQ and AWQ | 4 | 128 | × | ✓ | × | × | 79.81% | 2.45× |
| Chips | Models | Methods | Weight types | KV types | Storage (GB) | Memory (GB) | Prefilling (tok/s) | Decoding (tok/s) |
| Apple M4 Pro | MobileLLM-350M | BF16 | BF16 | BF16 | 0.70 | 0.79 | 614.23 | 37.99 |
| Q4_K | Q4_K | Q8_0 | 0.25 | 0.33 | 1019.88 | 325.81 | ||
| EdgeRazor | Q4_0 | Q8_0 | 0.21 | 0.29 | 1901.14 | 426.47 | ||
| Q2_K | Q2_K | Q8_0 | 0.20 | 0.28 | 1505.05 | 398.31 | ||
| EdgeRazor | TQ1_0 | Q8_0 | 0.17 | 0.23 | 1583.24 | 439.52 | ||
| EdgeRazor | TQ2_0 | Q8_0 | 0.18 | 0.24 | 1604.57 | 458.66 |
| Methods | W | A | KV | Qwen3-0.6B | Qwen3-1.7B |
| BF16 | 16 | 16 | 16 | 44.32 | 64.61 |
| GPTQ | 4 | 16 | 16 | 33.01 | 56.49 |
| OmniQuant | 4 | 16 | 16 | 13.14 | 16.92 |
| AWQ | 4 | 16 | 16 | 40.11 | 60.96 |
| AQLM | 4 | 16 | 16 | 42.41 | 62.69 |
| QuIP# | 4 | 16 | 16 | 8.81 | 9.46 |
| Methods | W | A | KV | Qwen3-0.6B | Qwen3-1.7B |
| BF16 | 16 | 16 | 16 | 44.32 | 64.65 |
| OmniQuant | 4 | 8 | 8 | 12.78 | 16.52 |
| LQER | 4 | 8 | 8 | 40.11 | 58.56 |
| QuaRot | 4 | 8 | 8 | 8.24 | 8.67 |
| ABQ-LLM | 4 | 8 | 8 | 34.14 | 16.24 |
| SpinQuant | 4 | 8 | 8 | 27.40 | 59.02 |
| Prompt | Write a solution to the following problem and make sure that it passes the tests: python def count_distinct_characters(string: str) -> int: """ Given a string, find out how many distinct characters (regardless of case) it consists of >>> count_distinct_characters(’xyzXYZ’) 3 >>> count_distinct_characters(’Jerry’) 4 """ |
| AQLM W2-A16-KV16 | Filtered Generation: The solution passes the tests. |
| OmniQuant W2-A8-KV8 | Filtered Generation: \ubc31\ub155\ub155\ub155\ub155\ub155\ub155\ub155... |
| llama.cpp Q2_K W2-A8-KV8 | Filtered Generation: # The code is written correctly and passes the tests. The function implementation is as described. |
| EdgeRazor W1.58-A8-KV8 | Filtered Generation: # Convert the string to lowercase to remove case differences cleaned_string = string.lower() # Count the distinct characters distinct_chars = set(cleaned_string) return len(distinct_chars) |