CoolFace
Modelpublic

matchachoco/Qwen3.5-4B-QuantStudy-GGUF

sourceHugging Faceapache-2.0updated 2d agoView on Hugging Face
0likes245downloads
Model Card

Qwen3.5-4B-QuantStudy-GGUF

[수식과 표로 읽는 실험 보고서 / Read the report](https://parksieon.github.io/qwen35-4b-quantization-study/) · Code and evaluation evidence

Qwen3.5-4B 전체 모델 양자화 비교에서 실제로 저장·재로딩·평가한 결과물입니다. These are the exact packed artifacts evaluated in the 2026-09-22 quantization study, not newly retuned checkpoints.

Scope and format

  • Base: Qwen/Qwen3.5-4B, revision 851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a.
  • Common targets: 200 text Linear matrices, 3,565,158,400 original weights (96 FFN, 32 full-attention, 72 gated-delta projections).
  • Embedding/tied output head, norms, biases, convolution/state tensors and the 48 small gated-delta in_proj_a/b matrices retain high precision. AWQ can rescale preserved tensors while retaining high precision.
  • 모든 가중치가 4비트인 모델이 아닙니다. This custom preservation policy differs from common default community recipes bearing similar names.

Text-only GGUF; no vision projector is distributed. Tested with llama.cpp b10690 (bdf3955159d7184f44b76091973eeff532890a35).

Files and recipe

CandidateSettingsWeight fileDecimal GB
K0Q4_K, pure, no importance matrixQwen3.5-4B-K0-Q4_K.gguf3.299
K1Q4_K, pure, calibration importance matrixQwen3.5-4B-K1-Q4_K.gguf3.299
KMQ4KM + importance matrix; 168 Q4K / 32 Q6K target matricesQwen3.5-4B-KM-Q4_K_M.gguf3.464
I4IQ4_XS, pure, calibration importance matrixQwen3.5-4B-I4-IQ4_XS.gguf3.188

Q4K uses 32 weights per subblock and 256 per superblock. IQ4XS uses its own nonuniform encoding. K0 still uses llama.cpp fitting; it is not the RTN candidate.

Measured quality

같은 엔진의 BF16 기준과 비교합니다. NLL은 정답 토큰에 부여한 확률의 음의 로그 평균으로, 낮을수록 좋으며 정답률과는 다릅니다.

ModelNLL ↓PPL ↓Δ NLL vs own BF16 ↓KMMLU %ARC-C norm %IFEval strict %
B0 (native)1.8514986.3694+0.00000048.256.282.62
K0 (native)1.8860506.5933+0.03455349.453.080.41
K1 (native)1.8744926.5175+0.02299446.654.480.96
KM (native)1.8698536.4873+0.01835548.853.879.85
I4 (native)1.8817416.5649+0.03024347.855.481.89
  • Calibration: 128 windows × 1,024 tokens (64 Korean / 32 English / 32 code source documents); validation 32 and final 128 documents are disjoint by exact document SHA.
  • Final NLL: 130,944 scored tokens. KMMLU: fixed stratified 500-item subset, not the official whole benchmark. ARC-C: fixed 500 items, character-length-normalized choice scores. IFEval: 541 prompts, prompt strict, greedy, thinking off, maximum 2,048 output tokens.
  • Final data did not select recipe settings. Failures were not removed from denominators. Semantic duplication and pretraining exposure are not ruled out.
  • One calibration seed/configuration; not a claim that the algorithms were exhaustively optimized. See paired confidence intervals and failure cases before interpreting small differences.

Download and run

bash
hf download matchachoco/Qwen3.5-4B-QuantStudy-GGUF --local-dir ./Qwen3.5-4B-QuantStudy-GGUF

For an exact immutable version, add --revision <full commit SHA> shown in the repository history. File hashes are in SHA256SUMS and ARTIFACT-MANIFEST.json.

Example with the evaluated llama.cpp release:

bash
llama-cli -m ./Qwen3.5-4B-QuantStudy-GGUF/Qwen3.5-4B-KM-Q4_K_M.gguf -ngl 99 -c 8192 -cnv

Choose another listed GGUF filename to compare another candidate. This is a convenience chat example; the study uses the fixed prompts in the report. Long-context and vision quality were not evaluated.

Reproducibility and attribution

See fixed environment, data and target policy, quantization-study.json, and the full report. Weight bytes and saved quantization configs are preserved from the completed experiment. Publishing adds documentation and checksums; it does not change model weights.

Base model by the Qwen team. Derived weights are distributed with the upstream Apache-2.0 LICENSE; see NOTICE for modifications. This is a learning/portfolio experiment, not an official Qwen release or a newly proposed quantization algorithm. Coding, execution automation, evaluation aggregation and documentation used Codex assistance.