Skip to content

Architecture Modification / Research · Python

engraft-ngram

ENGRAFT: write facts into an LLM's n-gram (Engram) memory table as a removable overlay: 100 facts in a 9 MB file, no weights touched, verified on llama.cpp GGUF (Qwen3.8-Flash-Next).

What it is

Engraft-ngram implements the ENGRAFT method for editing knowledge in large language models by learning an n-gram lookup table (overlay) without modifying model weights. It includes a replica of the target model in PyTorch, training and evaluation code, and an engine fork for efficient inference.

  • deepseek
  • engram
  • gguf
  • interpretability
  • knowledge-editing
  • knowledge-injection
  • llama-cpp
  • llm
  • memory-editing
  • mixture-of-experts
Scored at6c6963e18 Nov 2026Changes since

Merit describes the code at this commit. Later pushes count once the owner rescans. How merit is scored

Distribution based on AI work

1 / 2
NLP & LLMs: 37.5%Machine Learning: 33.3%Data Science: 16.7%MLOps: 8.3%Computer Vision: 4.2%
  • NLP & LLMs37%
  • Machine Learning33%
  • Data Science17%
  • MLOps8%
  • Computer Vision4%

Each field's share of the project's AI work, as scoring counts it. It ranks in the field it is most about.

What the judge found

Read from the project's code at its scored commit.

Strengths4

  • Comprehensive implementation of a novel knowledge editing method for LLMs.
  • Detailed documentation and educational materials that explain the method thoroughly.
  • End-to-end workflow from capture to training to evaluation and inference.
  • Synthetic model for testing allows experimentation without requiring the real engine.

Limitations

The owner keeps this project's limitations private.

Around it on the NLP & LLMs board

Whole board
  1. 13, shared rankMARK-PUBLICML Application · Python68.8/100AdvancedMice Works
  2. 13, shared rankthe-daily-epubML Application · Rust68.8/100AdvancedTyler Hallada
  3. 16, shared rankZotero-add-items-from-textML Application · TypeScript68.1/100AdvancedJens Mittelbach
  4. 16, shared rankengraft-ngramArchitecture Modification / Research · Python68.1/100AdvancedFulvio
  5. 18ProjectClocktowerML Application · Python67.9/100Advancedemmjayh

More from Fulvio