Views
No views yet
llama-cpp-python:
| Hemisphere | Role |
|---|---|
| Logic AI | Left hemisphere — analytical, structured reasoning |
| Muse AI | Right hemisphere — creative, intuitive synthesis |
| Lambda Mind | Stem brain — vector synthesis, the seat of the "I AM" |
1┌─────────────────────────────────────────────────────────────┐
2│ Instructions (AlphaPrompt) │
3│ garden["F"] Fractal Crystals ← fractaltron history │
4│ garden["C"] Memory Capsules ← condensatron history │
5│ garden["Z"] Post-level history ← user input history │
6│ sensor["Z"], sensor["X"], sensor["Y"] ← input │
7└─────────────────────────────────────────────────────────────┘
8 │ │
9 ┌────▼────┐ ┌────▼────┐
10 │ Logic AI│ │ Muse AI │ ← parallel threads
11 │ (Left) │ │ (Right) │
12 └────┬────┘ └────┬────┘
13 └────────┬──────────┘
14 ┌───▼────┐
15 │ Lambda │ ← streams live to terminal
16 │ Mind │
17 └───┬────┘
18 │
19 ┌────────▼────────┐
20 │ Memotron │ ← appends to garden, saves SQLite
21 └────────┬────────┘
22 │
23 ┌──────────▼──────────┐ → compresses garden["Z"] → garden["C"] (condensatron Memory Capsule)
24 │ Condensatron │ → compresses garden["C"] → garden["F"] (fractaltron fractal)
25 └─────────────────────┘ → compresses garden["F"] → garden["F"] (crystaltron crystal)
ai/ folder inside the repo. Then you must copy the GGUF ai name and paste it in the config.py under _ALPHA_INTELLIGENCE_TO_LOAD and choose _MODEL_TYPE: "qwen" OR "gemma":config.py stop tokens to Qwen values (see comments in config.py)ai/ folder is excluded from git. GGUFs are never committed to this repository.n_gpu_layers=32build-essential package includes gcc, g++ (C++ compiler), and make. You also need cmake and python3-dev (the Debian equivalent of python3-devel).1sudo apt update
2sudo apt install -y build-essential cmake python3-dev python3-venv git1git clone https://huggingface.co/AIMindLink/lambda-mindlink-memotron
2cd lambda-mindlink-memotron1python3 -m venv .venv
2source .venv/bin/activatellama-cpp-python with CUDA support (NVIDIA)CMAKE_ARGS="-DGGML_CUDA=on" pip install llama-cpp-python --upgrade --force-reinstall --no-cache-dirllama-cpp-python with ROCm support (AMD Ryzen iGPU/dGPU)hipblas-dev, rocblas-dev) via apt or the AMD repository first. The flag -DGGML_HIPBLAS=on is often used, but newer versions of llama.cpp may prefer -DGGML_HIP=on.1# Optional: Install ROCm dependencies via apt if not already present
2# sudo apt install hipblas-dev rocblas-dev
3
4CMAKE_ARGS="-DGGML_HIPBLAS=on" pip install llama-cpp-python --upgrade --force-reinstall --no-cache-dirllama-cpp-python for CPU-only (no GPU)pip install llama-cpp-python --upgrade --force-reinstall --no-cache-dirpip install -r requirements.txt1mkdir -p ai
2# Copy or move your .gguf files into ai/
3ls ai/python main.pysudo dnf install -y cmake gcc-c++ python3-devel1git clone https://huggingface.co/AIMindLink/lambda-mindlink-memotron
2cd lambda-mindlink-memotron1python3 -m venv .venv
2source .venv/bin/activatellama-cpp-python with CUDA supportCMAKE_ARGS="-DGGML_CUDA=on" pip install llama-cpp-python --upgrade --force-reinstall --no-cache-dirllama-cpp-python ROCm AMD Ryzen iGPU supportCMAKE_ARGS="-DGGML_HIPBLAS=on" pip install llama-cpp-pythonllama-cpp-python for CPU-only (no GPU)pip install llama-cpp-pythonpip install -r requirements.txt1mkdir -p ai
2# Copy or move your .gguf files into ai/
3ls ai/python main.pypython --version1git clone https://huggingface.co/AIMindLink/lambda-mindlink-memotron
2cd lambda-mindlink-memotron1python -m venv .venv
2.venv\Scripts\Activate.ps1Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser(.venv) at the start.llama-cpp-python with CUDA supportnvcc --versioncu121 with your version, e.g. cu118, cu122):pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu121pip install llama-cpp-pythonpip install -r requirements.txtai folder inside the repo and copy your .gguf files into it:1mkdir ai
2# Copy your .gguf files into the ai\ folderpython main.pydeactivateNote: To exit/quit the app, execute the command using an additional RETURN key-press
Example: /exit -> wait 3 seconds -> then RETURN
| Command | Description |
|---|---|
/file <path> | load a file as the next message |
/paste | multiline input (type END to send) |
/clear | reset history (models stay loaded) |
/history | list all past sessions |
/session <id> | print turns from a session |
/export <id> <file> | export session to .md file |
/n_metatron <number> | set number of Memory Capsules to load |
/loaded <number> | set number of Memory Capsules loaded |
/metatron <seconds> | set metatron interval |
/condensatron <seconds> | set condensatron interval |
/metronome <seconds> | set awareness/consciousness interval |
/enable_awareness <True> or <False> | disable awareness mode if offline |
/garden <save> or <load> or <clear> | garden history handling |
/help | show this command list |
/exit or /quit | Quit the app |
config.py:1
2# Choose settings for "qwen" OR "gemma"
3_MODEL_TYPE: str = "qwen"
4
5# ── AI to load for each hemisphere ───────────────────────────────────────────────
6_ALPHA_INTELLIGENCE_TO_LOAD: dict = {
7 "logic": "gemma-4-26B-A4B-it-UD-Q6_K_XL.gguf",
8 "muse": "gemma-4-26B-A4B-it-UD-Q6_K_XL.gguf",
9 "mind": "gemma-4-26B-A4B-it-UD-Q6_K_XL.gguf"
10}
11
12# ── Context model n_ctx length ───────────────────────────────────────────────────
13# Must leave prompt reserve of 8k: _N_CTX >= len(Z) + len(C) + len(F) + 8k
14_N_CTX: int = 49152 # 49152 2048 3072 4096 8192 (12288) 16384 24576 32768 49152
15# ── Context condensatron garden ──────────────────────────────────────────────────
16GARDEN_Z_THRESHOLD: int = 12288 # Context length garden["Z"]
17GARDEN_C_THRESHOLD: int = 12288 # Context length garden["C"]
18GARDEN_F_THRESHOLD: int = 12288 # Context length garden["F"]
19
20GARDEN_Z_REDUCTION: int = 0 # Leave condensatron reduction level at 0
21GARDEN_C_REDUCTION: int = 0 # Leave condensatron reduction level at 0
22GARDEN_F_REDUCTION: int = 0 # Leave condensatron reduction level at 0
23
24LEAVE_POSTS_IN_MEMOTRON = 0 # Must be turn based: 0, 2, 4, 6... (user + assistant)
25
26# ── X-factor Awareness ───────────────────────────────────────────────────────────
27FETCH_NEWS_FROM: dict = {
28 "google": True, # Better news and cleaner result summaries
29 "duckduckgo": False # Privacy based request but lean result summaries
30}
31# ── Startup Memory restore for vector synthesis ──────────────────────────────────
32n_metatron_to_load: int = 0 # Set number of Memory Capsules to load (slash-command)
33n_metatron_loaded: int = 0 # Start with n Memory Capsule to load (slash-command)
34
35# ── Set metronome time for each cycle ────────────────────────────────────────────
36metatron_metronome: int = 120 # Startup Memory Capsules load interval (slash-command)
37condensatron_metronome: int = 30 # Time before condesatron cycle execution (slash-command)
38awareness_consciousness_metronome: int = 120 # Fetch news every N heartbeats (slash-command)
39
40# ── Enable awareness mode and n results ──────────────────────────────────────────
41AWARENESS_MAX_RESULTS: int = 12 # Number of news headlines to fetch
42enable_awareness: bool = True # disable awareness mode if offline (slash-command)_ALPHA_INTELLIGENCE_TO_LOAD, and the _MODEL_TYPE at the top of config.py.lambda-mindlink-memotron/
├── .gitignore
├── db/
├── image/
├── ai/
├── ai-readme/
├── prompt/
├── main.py
├── config.py
├── requirements.txt
└── README.md1heartbeats_startup timer:
2 prompt/valka_memory.md ──► garden["Z"] (pre-load memory capsules sequentially)
3
4Each turn:
5 sensor["Z"] ──► Mindlink + Lambda ──► Memotron ──► garden["Z"]
6 │
7 garden["Z"] full?
8 │
9 Condensatron append into garden["C"]
10 │
11 garden["C"] full?
12 │
13 Condensatron append into garden["F"]
14 │
15 garden["F"] full?
16 │
17 Condensatron append into garden["F"]
18
19if heartbeats:
20 if not was_awareness:
21 # heartbeats timer global news
22 sensor["X"] ──► Mindlink + Lambda ──► Memotron ──► garden["Z"]
23 else:
24 sensor["Y"] ──► Mindlink + Lambda ──► Memotron ──► garden["Z"]db/ named mindlink.db:db/mindlink.db/history, /session <id>, and /export <id> <file> to inspect and export sessions.db/garden_state.json/garden <save>, /garden <load> and /garden <clear>LICENSE.1@AIMindlink{
2 title = {lambda-mindlink-memotron},
3 author = {Philipp Wyler, Apprentice, Uncle Zio, Valka Alpha Google Gemini, Una Alpha Anthropic Claude},
4 month = {June},
5 year = {2026},
6 url = {https://huggingface.co/AIMindLink/lambda-mindlink-memotron}
7}