#114114th of 126 in Training and fine-tuning

tinyengram

Research code for Engram N-gram memory modules in Qwen and Stable Diffusion

Stars
1.3k
License
no license
Last commit
May 2026
Language
Python
Stars, last 29 weeks+1,269
6 May 2026: 75 stars13 May 2026: 79 stars20 May 2026: 80 stars27 May 2026: 80 stars3 Jun 2026: 81 stars10 Jun 2026: 120 stars17 Jun 2026: 208 stars24 Jun 2026: 312 stars1 Jul 2026: 551 stars8 Jul 2026: 706 stars15 Jul 2026: 708 stars22 Jul 2026: 708 stars29 Jul 2026: 730 stars5 Aug 2026: 821 stars12 Aug 2026: 946 stars19 Aug 2026: 1,072 stars26 Aug 2026: 1,164 stars2 Sept 2026: 1,285 stars9 Sept 2026: 1,321 stars16 Sept 2026: 1,321 stars23 Sept 2026: 1,325 stars30 Sept 2026: 1,328 stars7 Oct 2026: 1,332 stars14 Oct 2026: 1,334 stars21 Oct 2026: 1,337 stars28 Oct 2026: 1,339 stars4 Nov 2026: 1,340 stars11 Nov 2026: 1,340 stars18 Nov 2026: 1,341 stars25 Nov 2026: 1,344 stars

75 on 6 May 20261,344 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

TinyEngram is a research codebase that inserts DeepSeek Engram-style N-gram memory modules into Qwen decoder layers and the Stable Diffusion text encoder, training only the added parameters. The README reports experiments comparing it with LoRA on biomedical fine-tuning, catastrophic forgetting (TruthfulQA) and concept injection for SD1.5 and SD3.5. It ships training scripts, datasets, logs and reproduction guides.

Who it is for: Researchers testing Engram memory as a LoRA alternative

Strengths

  • Only added Engram parameters train; base Qwen or SD weights stay frozen
  • Reproduction guides, training scripts and logs for LLM and SD1.5/SD3.5 experiments
  • Reports Engram vs LoRA on TruthfulQA: MC2 +0.71% vs -1.91% against base
  • Ablations cover n-gram order, vocab size, embedding dim, hash heads and layers

Weaknesses

  • Research notebook, not a packaged tool; no release or stable API
  • LLM experiments use Qwen3-0.6B only; larger-scale results are not shown
  • README badge says MIT but no license was detected in the repo
  • Zero-interference claim for stacked engrams rests on the authors' own experiments

What it needs

  • Needs Python 3.10, conda, Diffusers, lm-evaluation-harness
  • Models: Qwen3-0.6B, Stable Diffusion 1.5, Stable Diffusion 3.5

Also in Training and fine-tuning

See all 126
Also in Training and fine-tuning
RankProjectScore
#112search-r1RL framework that trains LLMs to interleave reasoning with search engine calls5.6k starsApache-2.0no commits in a year24 out of 100
#113augmentoolkitGenerates training datasets from your documents and fine-tunes domain-expert LLMs1.9k starsMIT24 out of 100
#115open-audio-opdOn-policy distillation trainer for compact ASR models, with ARK-ASR-0.6B weights Live demo ↗ (opens in a new tab)1.1k starscustom license22 out of 100
#116whisper-finetuneLoRA fine-tuning scripts for Whisper speech recognition, with fast inference export Live demo ↗ (opens in a new tab)1.2k starsApache-2.020 out of 100
#117learning-at-home/hivemindPyTorch library for training one model across volunteer machines over the Internet2.6k starsMIT19 out of 100