Edit LLM knowledge & behavior. Track it like Git.
Compile targeted knowledge and behavior updates into standard PEFT weights without retraining, inspect rule influence with gfn blame, and revert any single rule in milliseconds.
How rules become weights
Zero gradient descent and zero custom code inside your inference server.
Declare before → after in YAML or Studio
Write a declarative rule file or capture a bad output interactively with /pinch. Built-in verification checks unseen phrasings, authorized waivers, and sibling commands before export.
Tested across 10 open-weight models
Validated from 1B to 14B parameters with Lean 4 proofs of the exact-ring rollback identities.
| Capability | System Prompts | Standard LoRA | Routed (SoLA) | NeuroGit-GFN |
|---|---|---|---|---|
| Prompt token overhead | 200 tokens / turn | 0 | 0 | 0 |
| Holds when prompt preamble is omitted (Hermes-3-8B) | No (0/4) | Yes | Needs router | Yes (3/4, 44.5 ms hot-load) |
| Selective rollback on six 20-rule panels | Manual edits | 8.1-34.6 s (17.7-81.3% survival) | 0% indirect composition | 2.9-22.2 ms KKT (78.6-100% survival) |
| Per-rule blame + stock vLLM serving | No | No blame | Custom middleware | Standard .safetensors + ledger |
Try it in two minutes
Runs on Apple Silicon, CUDA, or CPU with Python 3.11+.
pip install neurogit-gfn
curl -fsSLO https://raw.githubusercontent.com/pallakatos/neurogit-gfn/v1.0.6/examples/axios_quarantine.yaml
gfn compile --model Qwen/Qwen2.5-1.5B-Instruct --policies axios_quarantine.yaml --out-dir ./bundle --verify
Help us test it on bigger models & share feedback
We evaluated 1B to 14B checkpoints so far. Running a 24B, 32B, 70B, or MoE model on your rig? Try compiling a rule and tell us what worked or broke.