{"adoption": {"forks": 81, "observed_at": "2026-08-28T04:04:35.274942+00:00", "stars": 1388}, "canonical_url": "https://ross.abutalabs.com/products/ttt-lm-pytorch", "card": {"archived": false, "artifact_type": "library", "description": "Official PyTorch implementation of Learning to (Learn at Test Time): RNNs with Expressive Hidden States", "domain": ["deep-learning", "large-language-models"], "enriched": true, "function": ["machine-learning", "deep-learning", "llm-inference"], "health_score": 20, "homepage": null, "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "experimental", "member_repos": ["test-time-training/ttt-lm-pytorch"], "name": "test-time-training/ttt-lm-pytorch", "platform": ["python"], "pushed_at": "2024-07-14T21:32:57+00:00", "repo": "test-time-training/ttt-lm-pytorch", "stars": 1388, "tags": ["test-time-training", "rnn", "sequence-modeling", "pytorch", "huggingface-transformers", "research-code", "natural-language-processing", "gpu"], "topics": [], "urls": [], "use_cases": ["run a language model with linear-complexity TTT layers instead of self-attention", "experiment with TTT-Linear and TTT-MLP architectures in PyTorch", "load and generate text with TTTForCausalLM via Huggingface Transformers", "study the implementation of learning-at-test-time sequence layers", "prototype long-context sequence models without quadratic attention cost"], "what_it_is": "Official PyTorch implementation of Test-Time Training (TTT) layers, a sequence modeling layer with linear complexity whose hidden state is itself a small ML model updated via self-supervised learning. It provides TTT-Linear and TTT-MLP causal language models integrated with Huggingface Transformers.", "when_to_avoid": ["you need fast training - the authors recommend the JAX codebase instead", "you need optimized inference speed - use the ttt-lm-kernels repository", "you need a production-ready, systems-optimized language model implementation"], "when_to_choose": ["you want a readable, tutorial-style PyTorch reference implementation of TTT layers", "you need to integrate TTT models into a Huggingface Transformers pipeline", "you are doing research or education on expressive hidden states for RNNs"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/ttt-lm-pytorch", "repo": "test-time-training/ttt-lm-pytorch", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:35.274942+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:39:47.619815+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "35f948b477c9119c124c4a4ac2ec6ad416e9cfcb56b03e2a9ceda7c00a653695", "fetched_at": "2026-08-28T04:04:35.274942+00:00", "kind": "readme", "missing": false, "url": "https://github.com/test-time-training/ttt-lm-pytorch"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:35.274942+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:39:47.619815+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "35f948b477c9119c124c4a4ac2ec6ad416e9cfcb56b03e2a9ceda7c00a653695", "fetched_at": "2026-08-28T04:04:35.274942+00:00", "kind": "readme", "missing": false, "url": "https://github.com/test-time-training/ttt-lm-pytorch"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:39:47.619815+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "35f948b477c9119c124c4a4ac2ec6ad416e9cfcb56b03e2a9ceda7c00a653695", "fetched_at": "2026-08-28T04:04:35.274942+00:00", "kind": "readme", "missing": false, "url": "https://github.com/test-time-training/ttt-lm-pytorch"}], "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:04:35.274942+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:35.274942+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:35.274942+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:39:47.619815+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "35f948b477c9119c124c4a4ac2ec6ad416e9cfcb56b03e2a9ceda7c00a653695", "fetched_at": "2026-08-28T04:04:35.274942+00:00", "kind": "readme", "missing": false, "url": "https://github.com/test-time-training/ttt-lm-pytorch"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:35.274942+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:35.274942+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:39:47.619815+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "35f948b477c9119c124c4a4ac2ec6ad416e9cfcb56b03e2a9ceda7c00a653695", "fetched_at": "2026-08-28T04:04:35.274942+00:00", "kind": "readme", "missing": false, "url": "https://github.com/test-time-training/ttt-lm-pytorch"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:35.274942+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:35.274942+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:35.274942+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:39:47.619815+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "35f948b477c9119c124c4a4ac2ec6ad416e9cfcb56b03e2a9ceda7c00a653695", "fetched_at": "2026-08-28T04:04:35.274942+00:00", "kind": "readme", "missing": false, "url": "https://github.com/test-time-training/ttt-lm-pytorch"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:35.274942+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:35.274942+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:39:47.619815+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "35f948b477c9119c124c4a4ac2ec6ad416e9cfcb56b03e2a9ceda7c00a653695", "fetched_at": "2026-08-28T04:04:35.274942+00:00", "kind": "readme", "missing": false, "url": "https://github.com/test-time-training/ttt-lm-pytorch"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:39:47.619815+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "35f948b477c9119c124c4a4ac2ec6ad416e9cfcb56b03e2a9ceda7c00a653695", "fetched_at": "2026-08-28T04:04:35.274942+00:00", "kind": "readme", "missing": false, "url": "https://github.com/test-time-training/ttt-lm-pytorch"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:39:47.619815+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "35f948b477c9119c124c4a4ac2ec6ad416e9cfcb56b03e2a9ceda7c00a653695", "fetched_at": "2026-08-28T04:04:35.274942+00:00", "kind": "readme", "missing": false, "url": "https://github.com/test-time-training/ttt-lm-pytorch"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:39:47.619815+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "35f948b477c9119c124c4a4ac2ec6ad416e9cfcb56b03e2a9ceda7c00a653695", "fetched_at": "2026-08-28T04:04:35.274942+00:00", "kind": "readme", "missing": false, "url": "https://github.com/test-time-training/ttt-lm-pytorch"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 56, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 796, "days_push": 780, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}