Downloads · 30 days
28
25% of all-time downloads
ikimyaii/HGRN-1.3B-semi-structured-EHWS-1phase-80pct-old
HGRN-1.3B-semi-structured-EHWS-1phase-80pct-old is a machine learning model from ikimyaii. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This is fla-hub/hgrn-1.3B-100B pruned to 80% sparsity with an older, one-phase version of EHWS.
Downloads · 30 days
28
25% of all-time downloads
All-time downloads
114
Public
Parameters
1.4B
2.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.7 GB · 100%
From the Hugging Face model README
This is fla-hub/hgrn-1.3B-100B pruned to 80% sparsity with an older, one-phase version of EHWS.
This is an older model. Our current HGRN-1.3B model at 80% is HGRN-1.3B-semi-structured-EHWS-80pct (40.31 / 29.82).
Every row of every pruned linear layer keeps the same number of weights (the top 20%). Embeddings and lm_head are not pruned. The zeros are stored in the weights.
You need flash-linear-attention installed.
import fla
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "ikimyaii/HGRN-1.3B-semi-structured-EHWS-1phase-80pct-old"
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(repo)
This version skips Phase 1 (--skip-phase1). It runs one global ADMM run on the whole model, starting from the dense weights.
The run took about 6.6 hours on one A100 40GB.
Perplexity uses ELSA's evaluation code (WikiText-2 and C4, fp16). One run.
| Model | WikiText-2 | C4 |
|---|---|---|
| Dense | 11.81 | 16.09 |
| This model | 56.57 | 40.44 |
| EHWS, current model | 40.31 | 29.82 |
Measured sparsity: 79.99%. Every row has the same number of nonzeros (checked on these weights).
Zero-shot accuracy (lm-evaluation-harness, 0-shot):
| Task | Dense | This model |
|---|---|---|
| arc_challenge | 0.2398 | 0.1928 |
| arc_easy | 0.5652 | 0.3746 |
| boolq | 0.5734 | 0.5706 |
| hellaswag | 0.3830 | 0.2909 |
| openbookqa | 0.2320 | 0.1660 |
| rte | 0.5343 | 0.5487 |
| winogrande | 0.5170 | 0.5036 |
| average | 0.4349 | 0.3782 |
github.com/KimiaGholami/EHWS (run_pipeline.py --skip-phase1)