Qwen/Qwen3-8B — lems search — 0.9 target ratio
This model was compressed using kfac_svd with lems rank search starting from Qwen/Qwen3-8B as base model. You may check out the Hugging Face paper page, our publication, the code and project page for details on kfac-svd and our LEMS rank search.
Update (2026-10-23). The weights were recomputed with the fixed KFAC-SVD implementation. The first release of the code (v1, used for the published paper) whitened the output side of each weight with the Cholesky factor L of G = LLᵀ instead of Lᵀ. The correct version was described by the algorithm in the paper already. Those weights, which the paper's tables report, remain available as revision
v1-paper:AutoModelForCausalLM.from_pretrained("MoritzMo123/kfac-svd_lems_Qwen3-8B_0.9", revision="v1-paper", trust_remote_code=True).
Compression Details
| Metric | Value |
|---|---|
| Base Model | Qwen/Qwen3-8B |
| Method | kfac_svd |
| Search Method | lems |
| Target Ratio | 0.9 |
| Compression Metric | params |
| Recommended Dtype | float16 |
| Compressed Layers | 64 |
| Total Parameters | 7,496,119,360 |
Usage
The checkpoint records its recommended dtype in config.json; no explicit torch_dtype argument should be needed with this remote-code wrapper. For standard Transformers models, torch_dtype="auto" is the portable fallback.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"MoritzMo123/kfac-svd_lems_Qwen3-8B_0.9",
trust_remote_code=True,
device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("MoritzMo123/kfac-svd_lems_Qwen3-8B_0.9")
inputs = tokenizer('Hello, ', return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Evaluation Results
| Dataset | Perplexity |
|---|---|
| wikitext2 | 9.81 |
| ptb | 15.70 |
| c4 | 15.98 |
Zero-shot accuracy (LM-Eval, %):
| Task | Accuracy |
|---|---|
| OpenBookQA | 33.60 |
| ARC-e | 83.21 |
| ARC-c | 56.48 |
| WinoGrande | 69.93 |
| HellaSwag | 55.44 |
| PIQA | 76.93 |
| Average | 62.60 |
Rank Allocation
| Layer | Rank |
|---|---|
model.layers.0.mlp.gate_proj | 2456 |
model.layers.0.mlp.up_proj | 2560 |
model.layers.1.mlp.down_proj | 1912 |
model.layers.1.mlp.gate_proj | 1744 |
model.layers.1.self_attn.o_proj | 1056 |
model.layers.1.self_attn.q_proj | 624 |
model.layers.11.self_attn.q_proj | 1528 |
model.layers.12.self_attn.q_proj | 1216 |
model.layers.13.self_attn.q_proj | 1176 |
model.layers.14.self_attn.q_proj | 1064 |
model.layers.15.self_attn.q_proj | 896 |
model.layers.16.self_attn.q_proj | 1048 |
model.layers.17.mlp.gate_proj | 1952 |
model.layers.17.self_attn.q_proj | 1040 |
model.layers.18.mlp.gate_proj | 1888 |
model.layers.18.self_attn.q_proj | 1064 |
model.layers.19.mlp.gate_proj | 1968 |
model.layers.19.self_attn.q_proj | 832 |
model.layers.2.mlp.down_proj | 1448 |
model.layers.2.mlp.gate_proj | 1752 |
model.layers.2.mlp.up_proj | 1192 |
model.layers.2.self_attn.o_proj | 784 |
model.layers.2.self_attn.q_proj | 728 |
model.layers.20.mlp.gate_proj | 1896 |
model.layers.20.mlp.up_proj | 2120 |
model.layers.20.self_attn.q_proj | 952 |
model.layers.21.mlp.gate_proj | 2192 |
model.layers.21.self_attn.q_proj | 1256 |
model.layers.22.self_attn.q_proj | 768 |
model.layers.23.self_attn.q_proj | 976 |
model.layers.24.self_attn.q_proj | 904 |
model.layers.25.self_attn.o_proj | 1464 |
model.layers.25.self_attn.q_proj | 616 |
model.layers.26.self_attn.o_proj | 1264 |
model.layers.26.self_attn.q_proj | 720 |
model.layers.27.self_attn.o_proj | 1184 |
model.layers.27.self_attn.q_proj | 632 |
model.layers.28.self_attn.o_proj | 1184 |
model.layers.28.self_attn.q_proj | 872 |
model.layers.29.self_attn.o_proj | 1272 |
model.layers.29.self_attn.q_proj | 672 |
model.layers.3.mlp.up_proj | 1832 |
model.layers.3.self_attn.o_proj | 1128 |
model.layers.3.self_attn.q_proj | 616 |
model.layers.30.self_attn.o_proj | 1512 |
model.layers.30.self_attn.q_proj | 712 |
model.layers.31.self_attn.o_proj | 1288 |
model.layers.31.self_attn.q_proj | 680 |
model.layers.32.self_attn.o_proj | 1472 |
model.layers.32.self_attn.q_proj | 672 |
model.layers.33.self_attn.q_proj | 616 |
model.layers.34.self_attn.q_proj | 640 |
model.layers.35.self_attn.o_proj | 1000 |
model.layers.35.self_attn.q_proj | 632 |
model.layers.4.self_attn.o_proj | 1248 |
model.layers.4.self_attn.q_proj | 864 |
model.layers.5.self_attn.o_proj | 1176 |
model.layers.5.self_attn.q_proj | 1112 |
model.layers.6.self_attn.q_proj | 776 |
model.layers.7.self_attn.o_proj | 1368 |
model.layers.7.self_attn.q_proj | 656 |
model.layers.8.self_attn.q_proj | 1168 |
model.layers.9.self_attn.o_proj | 1320 |
model.layers.9.self_attn.q_proj | 1352 |
Hydra Configuration Summary
| Config Field | Value |
|---|---|
| Model | Qwen/Qwen3-8B |
| SVD Method | kfac_svd |
| Search Method | lems |
| Compression Target | 0.9 |
| Target Metric | params |
| Calibration Dataset | wikitext2 |
| Calibration Samples | 256 |
| Sequence Length | 2048 |
| Seed | 42 |