GatedDeltaNet-340M, 70% unstructured sparsity: SparseGPT (official code)
m-a-p/340M-20B-GatedDeltaNet-pure-baseline, pruned one-shot (no retraining) to 70% 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 | 60.77 | 60.03 |
Zero-shot accuracy (lm-evaluation-harness):
| Task | Dense | This model |
|---|---|---|
| arc_challenge | 0.2645 | 0.1894 |
| arc_easy | 0.6023 | 0.3952 |
| boolq | 0.5985 | 0.6217 |
| hellaswag | 0.3461 | 0.2894 |
| openbookqa | 0.2300 | 0.1420 |
| rte | 0.5162 | 0.5307 |
| winogrande | 0.5036 | 0.5170 |
| average | 0.4373 | 0.3836 |
Sparsity of the pruned layers, measured on these weights: 0.7000. Rows are not balanced: across the 240 pruned layers, the densest row has on average 1.69x the mean row's nonzeros (worst layer 2.80x). Checked on these weights.
- Downloads last month
- 17
Model tree for ikimyaii/GatedDeltaNet-340M-unstructured-SparseGPT-70pct
Base model
m-a-p/340M-20B-GatedDeltaNet-pure-baseline