GatedDeltaNet-340M, 90% unstructured sparsity: SparseGPT (official code)
m-a-p/340M-20B-GatedDeltaNet-pure-baseline, pruned one-shot (no retraining) to 90% 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 | 1995.87 | 1194.73 |
Zero-shot accuracy (lm-evaluation-harness):
| Task | Dense | This model |
|---|---|---|
| arc_challenge | 0.2645 | 0.2159 |
| arc_easy | 0.6023 | 0.2677 |
| boolq | 0.5985 | 0.3789 |
| hellaswag | 0.3461 | 0.2580 |
| openbookqa | 0.2300 | 0.1420 |
| rte | 0.5162 | 0.4693 |
| winogrande | 0.5036 | 0.4925 |
| average | 0.4373 | 0.3178 |
Sparsity of the pruned layers, measured on these weights: 0.9000. Rows are not balanced: across the 240 pruned layers, the densest row has on average 2.84x the mean row's nonzeros (worst layer 7.14x). Checked on these weights.
- Downloads last month
- 19
Model tree for ikimyaii/GatedDeltaNet-340M-unstructured-SparseGPT-90pct
Base model
m-a-p/340M-20B-GatedDeltaNet-pure-baseline