GatedDeltaNet-340M, 50% unstructured sparsity: SparseGPT (official code)
m-a-p/340M-20B-GatedDeltaNet-pure-baseline, pruned one-shot (no retraining) to 50% sparsity with the official SparseGPT code (IST-DASLab/sparsegpt@147d215, fasterprune, blocksize 128, damping 0.01). Its mask uses one threshold per 128-column block, so rows end up with different numbers of nonzeros. This is a baseline for the EHWS models in this account. Every linear layer inside the blocks is pruned. Embeddings and lm_head stay dense.
Load it with flash-linear-attention installed (import fla) and AutoModelForCausalLM.from_pretrained(...).
Method
- Calibration: the official loader, 128 C4 sequences of 2,048 tokens, seed 0.
- Blocks are pruned in order; each block is calibrated on the outputs of the already-pruned blocks before it, as in the official drivers. The layer walk is new code (the official drivers only know OPT / LLaMA); the pruning math is the official code.
- Weights pruned in bfloat16. Pruning took 2.5 minutes on one A100 40GB.
Results
Perplexity uses ELSA's evaluation protocol (its WikiText-2 / C4 test sets and formula, fp16).
| WikiText-2 | C4 | |
|---|---|---|
| Dense | 16.42 | 19.94 |
| This model | 20.13 | 22.88 |
Zero-shot accuracy (lm-evaluation-harness):
| Task | Dense | This model |
|---|---|---|
| arc_challenge | 0.2645 | 0.2363 |
| arc_easy | 0.6023 | 0.5762 |
| boolq | 0.5985 | 0.6226 |
| hellaswag | 0.3461 | 0.3281 |
| openbookqa | 0.2300 | 0.1980 |
| rte | 0.5162 | 0.4729 |
| winogrande | 0.5036 | 0.5201 |
| average | 0.4373 | 0.4220 |
Sparsity of the pruned layers, measured on these weights: 0.5000. Rows are not balanced: across the 240 pruned layers, the densest row has on average 1.34x the mean row's nonzeros (worst layer 1.82x). Checked on these weights.
- Downloads last month
- 25
Model tree for ikimyaii/GatedDeltaNet-340M-unstructured-SparseGPT-50pct
Base model
m-a-p/340M-20B-GatedDeltaNet-pure-baseline