{"adoption": {"forks": 131, "observed_at": "2026-08-28T04:03:53.591918+00:00", "stars": 1180}, "canonical_url": "https://ross.abutalabs.com/products/sha-rnn", "card": {"archived": false, "artifact_type": "library", "description": "Single Headed Attention RNN - \"Stop thinking with your head\"", "domain": ["deep-learning", "machine-learning"], "enriched": true, "function": ["machine-learning", "deep-learning"], "health_score": 20, "homepage": null, "language": "Python", "license": null, "license_family": "other", "maturity": "maintenance", "member_repos": ["Smerity/sha-rnn"], "name": "Smerity/sha-rnn", "platform": ["python"], "pushed_at": "2021-11-27T07:17:07+00:00", "repo": "Smerity/sha-rnn", "stars": 1180, "tags": ["rnn", "lstm", "attention", "language-modeling", "pytorch", "research-code", "sha-lstm", "natural-language-processing", "gpu"], "topics": [], "urls": [], "use_cases": ["train a byte-level language model on a single GPU", "reproduce SHA-LSTM results on enwik8", "model long-range dependencies without transformer memory overhead", "avoid fragile transformer warmup and training instability", "build a small language model exportable to ONNX with standard components"], "what_it_is": "A PyTorch implementation of the Single Headed Attention RNN (SHA-LSTM) from Stephen Merity's paper, combining an LSTM with a single attention head for byte-level language modeling. It achieves strong enwik8 results while training in under 24 hours on a single 12GB GPU.", "when_to_avoid": ["you need state-of-the-art transformer performance", "you want a polished library with CLI options and stable API", "you need an actively maintained project - the code is research-grade and the author notes it is not kind"], "when_to_choose": ["you need an efficient, low-resource language model trainable on one GPU", "you want LSTM-based architecture with simple attention for long contexts", "you need a model composed of standard, productionizable components"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/sha-rnn", "repo": "Smerity/sha-rnn", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:53.591918+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:25:14.766792+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34bb87b8400c1939166e8be2ea65cbbf2d9da1f3c7a25484df832933a1974e35", "fetched_at": "2026-08-28T04:03:53.591918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Smerity/sha-rnn"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:53.591918+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:25:14.766792+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34bb87b8400c1939166e8be2ea65cbbf2d9da1f3c7a25484df832933a1974e35", "fetched_at": "2026-08-28T04:03:53.591918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Smerity/sha-rnn"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:25:14.766792+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34bb87b8400c1939166e8be2ea65cbbf2d9da1f3c7a25484df832933a1974e35", "fetched_at": "2026-08-28T04:03:53.591918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Smerity/sha-rnn"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:03:53.591918+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:53.591918+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:53.591918+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:25:14.766792+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34bb87b8400c1939166e8be2ea65cbbf2d9da1f3c7a25484df832933a1974e35", "fetched_at": "2026-08-28T04:03:53.591918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Smerity/sha-rnn"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:53.591918+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:53.591918+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:25:14.766792+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34bb87b8400c1939166e8be2ea65cbbf2d9da1f3c7a25484df832933a1974e35", "fetched_at": "2026-08-28T04:03:53.591918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Smerity/sha-rnn"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:53.591918+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:53.591918+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:53.591918+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:25:14.766792+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34bb87b8400c1939166e8be2ea65cbbf2d9da1f3c7a25484df832933a1974e35", "fetched_at": "2026-08-28T04:03:53.591918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Smerity/sha-rnn"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:53.591918+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:53.591918+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:25:14.766792+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34bb87b8400c1939166e8be2ea65cbbf2d9da1f3c7a25484df832933a1974e35", "fetched_at": "2026-08-28T04:03:53.591918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Smerity/sha-rnn"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:25:14.766792+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34bb87b8400c1939166e8be2ea65cbbf2d9da1f3c7a25484df832933a1974e35", "fetched_at": "2026-08-28T04:03:53.591918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Smerity/sha-rnn"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:25:14.766792+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34bb87b8400c1939166e8be2ea65cbbf2d9da1f3c7a25484df832933a1974e35", "fetched_at": "2026-08-28T04:03:53.591918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Smerity/sha-rnn"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:25:14.766792+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34bb87b8400c1939166e8be2ea65cbbf2d9da1f3c7a25484df832933a1974e35", "fetched_at": "2026-08-28T04:03:53.591918+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Smerity/sha-rnn"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases", "no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2543, "days_push": 1740, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}