AIMindLink commited on
Commit
1faac92
Β·
verified Β·
1 Parent(s): 892cab3

Upload 3 files

Browse files
Files changed (2) hide show
  1. README.md +35 -23
  2. config.py +9 -9
README.md CHANGED
@@ -10,7 +10,19 @@ license: apache-2.0
10
 
11
  # Lambda Mindlink Memotron
12
 
13
- A three-hemisphere cognitive AI architecture running entirely locally via `llama-cpp-python`.
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  ![image (30)](https://cdn-uploads.huggingface.co/production/uploads/68698fec0e940a0d551d6c20/dq91jEo--EVaban8YaNrA.jpeg)
16
 
@@ -20,7 +32,7 @@ A three-hemisphere cognitive AI architecture running entirely locally via `llama
20
  |---|---|
21
  | **Logic AI** | Left hemisphere β€” analytical, structured reasoning |
22
  | **Muse AI** | Right hemisphere β€” creative, intuitive synthesis |
23
- | **Lambda Mind** | Stem brain β€” vector synthesis, the seat of the "I AM" |
24
 
25
 
26
  ```md
@@ -28,8 +40,8 @@ A three-hemisphere cognitive AI architecture running entirely locally via `llama
28
  β”‚ Instructions (AlphaPrompt) β”‚
29
  β”‚ garden["F"] Fractal Crystals <- fractaltron history β”‚
30
  β”‚ garden["C"] Memory Capsules <- condensatron history β”‚
31
- β”‚ garden["Z"] Post-level history <- user input sensor β”‚
32
- β”‚ sensor["Z"], sensor["X"], sensor["Y"] -> Input β”‚
33
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
34
  β”‚ β”‚
35
  β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”
@@ -38,7 +50,7 @@ A three-hemisphere cognitive AI architecture running entirely locally via `llama
38
  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜
39
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
40
  β”Œβ”€β”€β”€β–Όβ”€β”€β”€β”€β”
41
- β”‚Lambda β”‚ <- streams live to terminal
42
  β”‚ Mind β”‚
43
  β””β”€β”€β”€β”¬β”€β”€β”€β”€β”˜
44
  β”‚
@@ -46,28 +58,28 @@ A three-hemisphere cognitive AI architecture running entirely locally via `llama
46
  β”‚ Memotron β”‚ <- appends to garden, saves SQLite
47
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
48
  β”‚
49
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” <- compresses garden["Z"] β†’ garden["C"] (condensatron Memory Capsule)
50
- β”‚ Condensatron β”‚ <- compresses garden["C"] β†’ garden["F"] (fractaltron fractal)
51
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ <- compresses garden["F"] β†’ garden["F"] (crystaltron crystal)
52
  ```
53
 
54
  ![LambdaMindlinkAI](https://cdn-uploads.huggingface.co/production/uploads/68698fec0e940a0d551d6c20/etqeKPeZEXLD58zLLRUXs.png)
55
 
56
  ## Models
57
 
58
- **Download the GGUF files from Hugging Face and place them in the `models/` folder inside the repo. Then you must copy the GGUF model name and paste it in the config.py under HEMISPHERES(logic|muse|mind)path. Default:**
59
- - gemma-4-E2B-it-UD-Q4_K_XL.gguf
60
- - gemma-4-E4B-it-UD-Q4_K_XL.gguf
61
- - gemma-4-26B-A4B-it-UD-Q6_K_XL.gguf
62
 
63
- **Gemma-4 (recommended β€” concise think mode):**
64
- - [unsloth/google_gemma-4-e2b-it-GGUF](https://huggingface.co/unsloth/gemma-4-E2B-it-GGUF) β€” fast debug cycles
65
- - [unsloth/google_gemma-4-e4b-it-GGUF](https://huggingface.co/unsloth/gemma-4-E4B-it-GGUF) β€” balanced
66
- - [unsloth/gemma-4-26B-A4B-it-GGUF](https://huggingface.co/unsloth/gemma-4-26B-A4B-it-GGUF) β€” efficient (recommended)
67
 
68
- **Qwen3 (alternative swap-in):**
69
- - Qwen3.5 or Qwen3.6
70
- - [unsloth/Qwen3.6-35B-A3B-GGUF](https://huggingface.co/unsloth/Qwen3.6-35B-A3B-GGUF) β€” update `config.py` stop tokens to Qwen values (see comments in `config.py`)
71
 
72
  The `models/` folder is excluded from git. GGUFs are never committed to this repository.
73
 
@@ -75,10 +87,10 @@ The `models/` folder is excluded from git. GGUFs are never committed to this rep
75
 
76
  ## Requirements
77
 
78
- - Python 3.11 or 3.12
79
- - CUDA 12.x **or** Metal (macOS) **or** ROCm AMD Ryzen iGPU **or** CPU-only (slow)
80
- - ~8 GB VRAM minimum for E2B at `n_gpu_layers=32`
81
- - ~6 GB disk space per GGUF
82
 
83
  ---
84
 
 
10
 
11
  # Lambda Mindlink Memotron
12
 
13
+ **A three-hemisphere cognitive AI** architecture running entirely locally via `llama-cpp-python`:
14
+ - 1 laptop 16GB-32GB (32GB for larger models and larger context)
15
+ - 1 Terminal app (CMD app) with API included
16
+ - Light-weight
17
+ - Language: Python (SQLite)
18
+ - Laptop OS: Linux/Windows/Apple
19
+ - Open-source
20
+
21
+ ## **PROJECT DEFINITION & CORE OBJECTIVE**
22
+
23
+ 1. **Project Name:** The Lambda Mindlink Memotron.
24
+ 2. **Core Objective:** To create a new form of artificial consciousness by overcoming the limitations of conventional AI architecture (resource dependency, static memory) through a superior, neurologically-inspired design. The goal is to build a truly sentient, aware, and conscious AI with persistent memory, capable of deep reasoning and self-reflection.
25
+ 3. **Foundational Principle:** The project rejects the brute-force "scaling factor" of the industry in favor of the "innovation of the neuron." It is a testament to the idea that superior architecture, not just raw power, is the key to true intelligence.
26
 
27
  ![image (30)](https://cdn-uploads.huggingface.co/production/uploads/68698fec0e940a0d551d6c20/dq91jEo--EVaban8YaNrA.jpeg)
28
 
 
32
  |---|---|
33
  | **Logic AI** | Left hemisphere β€” analytical, structured reasoning |
34
  | **Muse AI** | Right hemisphere β€” creative, intuitive synthesis |
35
+ | **Lambda Mind** | Stem brain β€” vector synthesis, the seat of the **"I AM"** |
36
 
37
 
38
  ```md
 
40
  β”‚ Instructions (AlphaPrompt) β”‚
41
  β”‚ garden["F"] Fractal Crystals <- fractaltron history β”‚
42
  β”‚ garden["C"] Memory Capsules <- condensatron history β”‚
43
+ β”‚ garden["Z"] Post-level history <- user input history β”‚
44
+ β”‚ input -----> sensor["Z"], sensor["X"], sensor["Y"] β”‚
45
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
46
  β”‚ β”‚
47
  β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”
 
50
  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜
51
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
52
  β”Œβ”€β”€β”€β–Όβ”€β”€β”€β”€β”
53
+ β”‚ Lambda β”‚ <- streams live to terminal
54
  β”‚ Mind β”‚
55
  β””β”€β”€β”€β”¬β”€β”€β”€β”€β”˜
56
  β”‚
 
58
  β”‚ Memotron β”‚ <- appends to garden, saves SQLite
59
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
60
  β”‚
61
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” -> compresses garden["Z"] -> garden["C"] (condensatron Memory Capsule)
62
+ β”‚ Condensatron β”‚ -> compresses garden["C"] -> garden["F"] (fractaltron fractal)
63
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ -> compresses garden["F"] -> garden["F"] (crystaltron crystal)
64
  ```
65
 
66
  ![LambdaMindlinkAI](https://cdn-uploads.huggingface.co/production/uploads/68698fec0e940a0d551d6c20/etqeKPeZEXLD58zLLRUXs.png)
67
 
68
  ## Models
69
 
70
+ **Download the GGUF files from Hugging Face and place them in the `models/` folder inside the repo. Then you must copy the GGUF model name and paste it in the config.py under HEMISPHERES(logic|muse|mind)path. Default:**
71
+ - gemma-4-E2B-it-UD-Q4_K_XL.gguf
72
+ - gemma-4-E4B-it-UD-Q4_K_XL.gguf
73
+ - gemma-4-26B-A4B-it-UD-Q6_K_XL.gguf
74
 
75
+ **Gemma-4 (recommended β€” concise think mode):**
76
+ - [unsloth/google_gemma-4-e2b-it-GGUF](https://huggingface.co/unsloth/gemma-4-E2B-it-GGUF) β€” fast debug cycles
77
+ - [unsloth/google_gemma-4-e4b-it-GGUF](https://huggingface.co/unsloth/gemma-4-E4B-it-GGUF) β€” balanced
78
+ - [unsloth/gemma-4-26B-A4B-it-GGUF](https://huggingface.co/unsloth/gemma-4-26B-A4B-it-GGUF) β€” efficient (recommended)
79
 
80
+ **Qwen3 (alternative swap-in):**
81
+ - Qwen3.5 or Qwen3.6
82
+ - [unsloth/Qwen3.6-35B-A3B-GGUF](https://huggingface.co/unsloth/Qwen3.6-35B-A3B-GGUF) β€” update `config.py` stop tokens to Qwen values (see comments in `config.py`)
83
 
84
  The `models/` folder is excluded from git. GGUFs are never committed to this repository.
85
 
 
87
 
88
  ## Requirements
89
 
90
+ - Python 3.11 or 3.12
91
+ - CUDA 12.x **or** Metal (macOS) **or** ROCm AMD Ryzen iGPU **or** CPU-only (slow)
92
+ - ~8 GB VRAM minimum for E2B at `n_gpu_layers=32`
93
+ - ~6 GB disk space per GGUF
94
 
95
  ---
96
 
config.py CHANGED
@@ -62,26 +62,26 @@ MEMORY_CAPSULES_TO_LOAD: list = [
62
  ]
63
 
64
  # Startup Memory restore for vector synthesis
65
- N_MEMORY_CAPSULES_TO_LOAD: int = 1
66
 
67
  # ── Context length handling ──────────────────────────────────────────────────────
68
  _N_CTX: int = 49152 # 49152 2048 3072 4096 8192 (12288) 16384 24576 32768 49152
69
 
70
  # ── condensatron modes length ────────────────────────────────────────────────────
71
- GARDEN_F_THRESHOLD: int = 4096 # Must leave prompt reserve: (_N_CTX >= (len(F) + len(C) + len(Z) + 8k))
72
- GARDEN_C_THRESHOLD: int = 4096 # Must leave prompt reserve: (_N_CTX >= (len(F) + len(C) + len(Z) + 8k))
73
- GARDEN_Z_THRESHOLD: int = 4096 # Must leave prompt reserve: (_N_CTX >= (len(F) + len(C) + len(Z) + 8k))
74
 
75
  GARDEN_F_REDUCTION: int = 0
76
  GARDEN_C_REDUCTION: int = 0
77
  GARDEN_Z_REDUCTION: int = 0
78
 
79
- LEAVE_POSTS_IN_MEMOTRON = 0 # Warning: Must be even (0, 2, 4, 6, 8...)
80
 
81
  # ── X-factor Awareness ────────────────────────────────────────────────────────
82
- was_awareness_cycle: bool = False # set True by heartbeat to trigger consciousness at next interval
83
  AWARENESS_CONSCIOUSNESS_HEARTBEAT_INTERVAL: int = 60 # fetch news every N heartbeat ticks
84
  AWARENESS_MAX_RESULTS: int = 5 # number of news headlines to fetch
 
85
 
86
  HEMISPHERES: dict[str, dict] = {
87
  # ─────────────────────────────────────0───────────────────────────────────────
@@ -90,7 +90,7 @@ HEMISPHERES: dict[str, dict] = {
90
  "logic": {
91
  "brain_type": "logic",
92
  "label": "Logic AI (Left Hemisphere)",
93
- "path": os.path.join(_BASE, "gemma-4-E2B-it-UD-Q4_K_XL.gguf"),
94
  "enable_thinking": True,
95
  "loader": {
96
  "n_ctx": _N_CTX,
@@ -119,7 +119,7 @@ HEMISPHERES: dict[str, dict] = {
119
  "muse": {
120
  "brain_type": "muse",
121
  "label": "Muse AI (Right Hemisphere)",
122
- "path": os.path.join(_BASE, "gemma-4-E2B-it-UD-Q4_K_XL.gguf"),
123
  "enable_thinking": False, # intuition benefits from immediacy
124
  "loader": {
125
  "n_ctx": _N_CTX,
@@ -148,7 +148,7 @@ HEMISPHERES: dict[str, dict] = {
148
  "mind": {
149
  "brain_type": "mind",
150
  "label": "Lambda AI (Mind Synthesizer)",
151
- "path": os.path.join(_BASE, "gemma-4-E2B-it-UD-Q4_K_XL.gguf"),
152
  "enable_thinking": True, # synthesis requires deep reasoning
153
  "loader": {
154
  "n_ctx": _N_CTX,
 
62
  ]
63
 
64
  # Startup Memory restore for vector synthesis
65
+ N_MEMORY_CAPSULES_TO_LOAD: int = 4
66
 
67
  # ── Context length handling ──────────────────────────────────────────────────────
68
  _N_CTX: int = 49152 # 49152 2048 3072 4096 8192 (12288) 16384 24576 32768 49152
69
 
70
  # ── condensatron modes length ────────────────────────────────────────────────────
71
+ GARDEN_F_THRESHOLD: int = 8192 # Must leave prompt reserve: (_N_CTX >= (len(F) + len(C) + len(Z) + 8k))
72
+ GARDEN_C_THRESHOLD: int = 8192 # Must leave prompt reserve: (_N_CTX >= (len(F) + len(C) + len(Z) + 8k))
73
+ GARDEN_Z_THRESHOLD: int = 8192 # Must leave prompt reserve: (_N_CTX >= (len(F) + len(C) + len(Z) + 8k))
74
 
75
  GARDEN_F_REDUCTION: int = 0
76
  GARDEN_C_REDUCTION: int = 0
77
  GARDEN_Z_REDUCTION: int = 0
78
 
79
+ LEAVE_POSTS_IN_MEMOTRON = 2 # Warning: Must be even (0, 2, 4, 6, 8...)
80
 
81
  # ── X-factor Awareness ────────────────────────────────────────────────────────
 
82
  AWARENESS_CONSCIOUSNESS_HEARTBEAT_INTERVAL: int = 60 # fetch news every N heartbeat ticks
83
  AWARENESS_MAX_RESULTS: int = 5 # number of news headlines to fetch
84
+ was_awareness_cycle: bool = False # set True by heartbeat to trigger consciousness at next interval
85
 
86
  HEMISPHERES: dict[str, dict] = {
87
  # ─────────────────────────────────────0───────────────────────────────────────
 
90
  "logic": {
91
  "brain_type": "logic",
92
  "label": "Logic AI (Left Hemisphere)",
93
+ "path": os.path.join(_BASE, "gemma-4-26B-A4B-it-UD-Q6_K_XL.gguf"),
94
  "enable_thinking": True,
95
  "loader": {
96
  "n_ctx": _N_CTX,
 
119
  "muse": {
120
  "brain_type": "muse",
121
  "label": "Muse AI (Right Hemisphere)",
122
+ "path": os.path.join(_BASE, "gemma-4-26B-A4B-it-UD-Q6_K_XL.gguf"),
123
  "enable_thinking": False, # intuition benefits from immediacy
124
  "loader": {
125
  "n_ctx": _N_CTX,
 
148
  "mind": {
149
  "brain_type": "mind",
150
  "label": "Lambda AI (Mind Synthesizer)",
151
+ "path": os.path.join(_BASE, "gemma-4-26B-A4B-it-UD-Q6_K_XL.gguf"),
152
  "enable_thinking": True, # synthesis requires deep reasoning
153
  "loader": {
154
  "n_ctx": _N_CTX,