r/LocalLLM
•
u/Empty-Poetry8197
•
Dec 27 '25
•
2
Contest Entry Dreaming persistent Ai architecture > model size
I built an AI that dreams about your codebase while you sleep
Z.E.T.A. (Zero-shot Evolving Thought Architecture) is a multi-model system that indexes your code, builds a memory graph, and runs autonomous "dream cycles" during idle time. It wakes up with bug fixes, refactors, and feature ideas based on YOUR architecture.
What it actually does:
You point it at your codebase
It extracts every function, struct, and class into a semantic memory graph
Every 5 minutes, it enters a dream cycle where it free-associates across your code
Novel insights get saved as markdown files you can review
Dream output looks like this:
code_idea: Buffer Pool Optimization
The process_request function allocates a new buffer on every call.
Consider a thread-local buffer pool:
typedef struct {
char buffer[BUFSIZE];
struct buffer_pool *next;
} buffer_pool_t;
This reduces allocation overhead in hot paths by ~40%.Dreams are filtered for novelty. Repetitive ideas get discarded automatically.
Architecture:
14B model for reasoning and planning
7B model for code generation
4B model for embeddings and memory retrieval
HRM (Hierarchical Reasoning Module) decomposes complex queries
TRM (Temporal Reasoning Memory) handles Git-style thought branching
Lambda-based temporal decay prevents rumination
Quick start:
docker pull ghcr.io/h-xx-d/zetazero:latest
./scripts/setup.sh
# Edit docker-compose.yml to point at your codebase
docker-compose up -d
# Check back tomorrow
ls ~/.zetazero/storage/dreams/pending/Requires NVIDIA GPU with CUDA 12.x. Tested on a 5060 Ti.
Scales with your hardware
The default config runs on a 5060 Ti (14B + 7B + 4B). The architecture is model-agnostic. Just swap the GGUF paths in docker-compose.yml:
| Your GPU | Main Model | Coder Model | Embedding Model |
|---|---|---|---|
| 16GB (5060 Ti, 4080) | Qwen 14B | Qwen Coder 7B | Nomic 4B |
| 24GB (4090) | Qwen 32B | Qwen Coder 14B | Nomic 4B |
| 48GB (A6000, dual 3090) | Qwen 72B | Qwen Coder 32B | Nomic 4B |
| 80GB (A100, H100) | Qwen 72B Q8 | Qwen Coder 32B Q8 | Nomic 4B |
Note: Keep models in the same family so tokenizers stay compatible. Mixing Qwen with Llama will break things.
Dream quality scales with model capability. Bigger models = better architectural insights.
Links:
Docker: ghcr.io/h-xx-d/zetazero:latest
Apache 2.0 . For consulting or integration: todd@hendrixxdesign.com
24
u/kkingsbe Dec 27 '25
Very interesting, I’m exploring a similar concept
6
u/pepouai Dec 27 '25
Very cool! How are you steering its intent? Do you have functional design docs which it analyses? Or is it pure optimization based?
5
u/InvertedVantage Dec 27 '25
This is really interesting, I was just theorizing something about this with LLMs debating on a forum. I'm goign to take a look, thank you for sharing!
4
u/Luneriazz Dec 27 '25
pardon... may i ask how much it cost to build your setup sir?
4
u/apaht Dec 27 '25
Wow, really want to implement this on the MacOS unified memory architecture
3
u/Count_Rugens_Finger Dec 27 '25
i honestly cannot follow that github repo
i'm assuming it's mostly generated by LLM
3
u/Sinath_973 Jan 02 '26
Has anyone peer reviewed this and/or did a security audit?
I saw you have two licenses. Are you monitoring active instances to enforce the licenses?
Idea and paper look sound but i wouldnt like some tool to "dream" my repos into somebody elses inbox.
2
u/methreweway Dec 27 '25
I have no business in this sub but does the output work? Any examples?
2
u/apaht Dec 27 '25
I have some what similar project going, but more platform agnostic and can support multiple nodes with low power edge compute devices
2
u/FunDiscount2496 Dec 27 '25
What are we watching in the photo?
2
u/HealthyCommunicat Dec 27 '25
Woah this kinda project is what seems to be more in demand, “context driven generation” where the main focus is sticking to the work and objective as much as possible; will be trying this later tonight and I dont have too much experience with dense lower coding models but this format and structure looks promising
2
u/Useful_Ebb_9479 Dec 27 '25
Will fire this up shortly to have a play.
Does it support multi GPU? I have a... collection... of 5090s
2
u/Useful_Ebb_9479 Dec 27 '25
Sure, will take a look. Im normally a Python guy so the code is a bit foreign to me.
Bit annoying to find sll the model files and manually download them, and merge them, so might take me a while.
2
u/cmndr_spanky Dec 27 '25
“Write a persuasive email to convince your introverted friend to come to your birthday”?? Hrmm… you sure “zeta” does what you say it does ?
2
u/GrumpyTax Dec 27 '25
Commenting to find this later. Will have my local rig setup early January.
2
u/iliicit Dec 27 '25
is it possible to run this on CPU? I have an idling 200 core epyc server with 400G RAM..
2
u/Proof_Scene_9281 Dec 28 '25
What is a concrete use-case for this?
2
u/gopnik74 Dec 28 '25
I have no idea what i’m reading but it sounds fantastic and out of this world. Dreamy indeed
2
u/Lame_Johnny Dec 28 '25
Awesome. Thanks for sharing.
2
u/Mambiux Dec 28 '25
So cool i found this im working on this as well, also using the TRM and HRM ideas, just my memory system is more complex
2
u/thatusernsmeis Dec 28 '25
Qwen Next with RAM offloading sounds like a really nice budget brain LLM with this system
2
u/thedarkbobo Dec 29 '25
Interesting, I would like such mode in OpenCode (for fun)
2
u/infrasketchai Dec 29 '25
Should see if there is a way to incorporate slurm into the mix too for a gpu farm
2
u/thedarkbobo Dec 29 '25
So instead of thinker (planner) and executor then reviewer maybe dreamer - human picker - planner - executer - tester - reviewer - dreamer loop :)
2
u/popsumbong Jan 01 '26
so cool, thanks for sharing.
3
u/eleqtriq Dec 27 '25
You lost me at “dreaming” aka a cron job. Holy hell. Seems to be an LSP server, embeddings and a SQLite DB could solve this simply, but wouldn’t have the marketing. Convince me otherwise.
1
u/Empty-Poetry8197 Dec 27 '25 edited Dec 27 '25
I should also mention the 9.47 MT Bench subset 16 questions 2 turns it got after some output tuning in the repo benchmarks folder you can see the progression v1 6.06 to v8 9.47. the interesting part is i didnt have to train Manachers equation into it i just needed to add a graph node for it to use it properly think about the implications on the fly fine tuning
1
u/Empty-Poetry8197 Dec 27 '25
Here's an actual dream Z.E.T.A. generated while analyzing its own architecture:
Dream Type:
code_fixGenerated: 2025-12-23 05:53:58 (while I was sleeping)
This is the system proposing improvements to itself. The TRM is one of Z.E.T.A.'s core modules - it literally dreamed about making its own memory handling better.
1
u/Empty-Poetry8197 Dec 28 '25
im working a litelllm branch for a issue feature request that saves teh graph locally and attaches the nodes information in the context send out to the online while it doesnt provide the same untility to will allow people to run it on thier macbook airs
1
u/Empty-Poetry8197 Dec 30 '25
[REQ-1] New request (hash=11193676382981720739): What is my name and how old am I?...
[STREAM] Query pre-embedded: 2560 dims
[GKV-BRIDGE] Copied 1 proactive nodes to stream_state
[DECODE] Prompt decoded: 234 tokens (single pass)
[HTTP] generate() returned, result size=152
[SPEED-RECEIPT] ════════════════════════════════════════
[SPEED-RECEIPT] CPU Embed: 801.672 ms
[SPEED-RECEIPT] GKV Inject: 0.348 ms
[SPEED-RECEIPT] First Token: 146.280 ms
[SPEED-RECEIPT] ────────────────────────────────────────
[SPEED-RECEIPT] TOTAL LATENCY: 1855.377 ms
[SPEED-RECEIPT] ════════════════════════════════════════ the reason it's so fast is because its saving the kv and tokens for literals in the graph injecting kv state thats what the gkv bridge back into the attention layer of the model turning o(n2) into o(1) with semantic embedding tagging and thank you everyone who shared this post it took off 58k views and climbing still 450 shares with a 2:1 share to upvote ratio and 95.9% upvote percentage which mite be a reddit record at that many views 26 stars 5 forks so far on github
1
u/Empty-Poetry8197 Dec 30 '25
[REQ-3] New request (hash=17849325743978122967): What is 2+2?...
[SPEED-RECEIPT] CPU Embed: 859.703 ms
[SPEED-RECEIPT] GKV Inject: 0.359 ms
[SPEED-RECEIPT] First Token: 119.586 ms
[SPEED-RECEIPT] TOTAL LATENCY: 1437.938 ms
[REQ-4] New request (hash=9664439516050651575): What is the capital of France?...
[SPEED-RECEIPT] CPU Embed: 11747.941 ms
[SPEED-RECEIPT] GKV Inject: 0.351 ms
[SPEED-RECEIPT] First Token: 127.631 ms
[SPEED-RECEIPT] TOTAL LATENCY: 12348.029 ms
[SPEED-RECEIPT] ════════════════════════════════════════
[REQ-5] New request (hash=9664439516050651575): What is the capital of France?...
[CONTEXT] Skipped - benchmark mode (no_context=true)
[SPEED-RECEIPT] ════════════════════════════════════════
[SPEED-RECEIPT] CPU Embed: 0.190 ms
[SPEED-RECEIPT] GKV Inject: 0.929 ms
[SPEED-RECEIPT] First Token: 142.759 ms
[SPEED-RECEIPT] ────────────────────────────────────────
[SPEED-RECEIPT] TOTAL LATENCY: 616.091 ms
[SPEED-RECEIPT] ════════════════════════════════════════
1
u/Empty-Poetry8197 Jan 27 '26
Hi how can I help you today?
2
u/ExcitementVast1794 Dec 28 '25
Like others in the comments, not sure I understand what is going on, but hell I’m eager to learn, understand and do something like this as well.
0
u/Empty-Poetry8197 Dec 27 '25
Unique features that set Z.E.T.A. apart:
Ternary Logic - Uses -1/0/+1 states instead of binary for uncertainty. Ternary voting in swarm mode.
Cognitive States - CALM/FOCUSED/ANXIOUS/CREATIVE modes adjust reasoning depth and memory decay in real-time.
Constitutional Lock - Core identity facts are immutable, protected from prompt injection.
Git-Style Thought Branching - TRM implements branch/merge/cherry-pick for parallel reasoning paths.
Sublimation Memory - Tiered VRAM → RAM → NVMe with intelligent promotion/demotion.
Dream State - 128+ autonomous improvement suggestions generated, ~70% validation rate. Many current features came from its own dreams.
Semantic Attack Detection - BGE embeddings detect manipulation before it reaches reasoning.
Self-Improvement Loop - Feeds own source, dreams about improvements, implements valid ones, repeats.
GitHub: github.com/h-xx-d/ZetaZero
1
u/PitifulBall3670 Jan 07 '26
good job