Sl

Sleeping LLM – A language model that remembers by sleeping

Hacker News

Sleeping LLM – A language model that remembers by sleeping

I built a system that gives LLMs persistent memory from conversations — not through RAG or databases, but by editing the model's actual weights. The knowledge lives in the parameters. The context window is empty. During wake, facts from conversation are injected directly into MLP weights via MEMIT (a single forward pass, instant recall). During sleep, the system audits which memories degraded, refreshes them with null-space constraints (guaranteeing orthogonality to working memories), then progressively transfers knowledge into LoRA — like biological memory consolidation from hippocampus to neocortex. The key problem was a hard capacity ceiling: the 8B model sustains 0.92 recall up to 13 facts, then crashes to 0.57 at fact 14 — a sharp phase transition, not gradual decay. And LoRA consolidation was blocked by what I call the "alignment tax": RLHF training fights back against injected knowledge (37% recall loss on 8B from a single LoRA pass). The fix: per-fact graduated consolidation. Each fact independently tracks its own stage and advances only when LoRA proves it absorbed that specific fact. A dissolution schedule (1.0 → 0.5 → 0.1 → 0.0) gradually removes the MEMIT edit as LoRA takes over. And cumulative fusing — training each cycle on the already-fused model — reduces the alignment tax from catastrophic to negligible (starting loss drops 2.91 → 0.62 by cycle 2). Results on Llama 3.1 8B (4-bit, 2×H100): - 100% advancement rate at 5/10/15/20 facts - 1.00 chat recall at all scales - MEMIT edits dissolve on schedule, making the buffer renewable - Effective lifetime capacity: unbounded There's also a biological curiosity: individual facts consolidate at different rates. One synthetic fact ("Aria lives in Portland") is consistently the hardest across very run — some memories are just harder to absorb, same as in biological systems. 6 papers documenting the full journey from initial LoRA prototype to this result: https://doi.org/10.5281/zenodo.18779159 Built with: Python, PyTorch, PEFT, BitsAndBytes, Llama 3.1. Runs on MacBook Air (3B) or H100 (8B/70B).

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: mac, model, new · Missing: agents, macos, agent
90%90% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: para, ios · Missing: supports, reddit linkedin, podcasting
62%62% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRFits verified-revenue profile · Strong signals: ios, para · Missing: mobile apps, personal, entrepreneurs
53%53% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: llama, io · Missing: https docs, excited, just released
53%53% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
26%26% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: training · Missing: arr, mrr, revenue
19%19% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: chat · Missing: web3, crypto, cryptocurrency
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Br
BrainTripping - language model comedy64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

BrainTripping - language model comedy

Hacker News283
Re
Refuel-LLM, a large language model for data annotation and enrichment67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Refuel-LLM, a large language model for data annotation and enrichment

Hacker News9
Remembers
Remembers24%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The journal that remembers you — and reflects you back

Indie Hackerscommitment-side-project
I
I visualized an autoregressive language model in the browser70%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I visualized an autoregressive language model in the browser

Hacker News3
Sunchay
Sunchay62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Save anything. It remembers for you.

Product Hunt+15
Mo
More LLM Neuroanatomy: A Hint of a Universal Language?58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

More LLM Neuroanatomy: A Hint of a Universal Language?

Hacker News1
Aramusha Language
Aramusha Language23%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Adaptive language learning that remembers how you learn

Indie Hackers1ai
LL
LLM-A* – Large Language Model Enhanced Incremental Heuristic Search60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

LLM-A* – Large Language Model Enhanced Incremental Heuristic Search

Hacker News3
Re
Redis-LLM – Redis module integrates LLM with Redis45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Redis-LLM – Redis module integrates LLM with Redis

Hacker News2
LLM Hotkey
LLM Hotkey39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.
TrustMRROther