Upload 3 files
Browse filesNot sure if I edited things...
config.py
CHANGED
|
@@ -73,22 +73,22 @@ _ALPHA_INTELLIGENCE_TO_LOAD: dict = {
|
|
| 73 |
"mind": "gemma-4-E2B-it-UD-Q4_K_XL.gguf"
|
| 74 |
}
|
| 75 |
# ββ Startup Memory restore for vector synthesis ββββββββββββββββββββββββββββββββββ
|
| 76 |
-
N_METATRON_TO_LOAD: int =
|
| 77 |
METATRON_METRONOME: int = 12 # Metatron Time
|
| 78 |
|
| 79 |
# ββ Context model n_ctx length βββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 80 |
# Must leave prompt reserve of 8k: _N_CTX >= len(Z) + len(C) + len(F) + 8k
|
| 81 |
_N_CTX: int = 49152 # 49152 2048 3072 4096 8192 (12288) 16384 24576 32768 49152
|
| 82 |
# ββ Context condensatron garden ββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 83 |
-
GARDEN_Z_THRESHOLD: int =
|
| 84 |
-
GARDEN_C_THRESHOLD: int =
|
| 85 |
-
GARDEN_F_THRESHOLD: int =
|
| 86 |
|
| 87 |
-
GARDEN_F_REDUCTION: int = 0 # Leave condensatron reduction level at 0
|
| 88 |
-
GARDEN_C_REDUCTION: int = 0 # Leave condensatron reduction level at 0
|
| 89 |
GARDEN_Z_REDUCTION: int = 0 # Leave condensatron reduction level at 0
|
|
|
|
|
|
|
| 90 |
|
| 91 |
-
LEAVE_POSTS_IN_MEMOTRON =
|
| 92 |
|
| 93 |
# ββ X-factor Awareness βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 94 |
FETCH_NEWS_FROM: dict = {
|
|
@@ -347,7 +347,7 @@ CONDENSATRONPROMPT: dict[str, dict] = {
|
|
| 347 |
"(axioms first, then standing tensions, then archetypes, then the hidden arc). "
|
| 348 |
"End with: [OPEN] β a one-line statement of the most important unresolved thread carried forward. "
|
| 349 |
"The crystal must be re-injectable as a first-class memory that orients the brain to its own history. "
|
| 350 |
-
f"Target: compress 2β8 Memory Capsule Fractals {GARDEN_C_THRESHOLD} into under
|
| 351 |
) # Specific mind fractaltron prompt
|
| 352 |
},
|
| 353 |
"F": {
|
|
@@ -391,7 +391,7 @@ CONDENSATRONPROMPT: dict[str, dict] = {
|
|
| 391 |
"each list ordered from most fundamental to most contingent. "
|
| 392 |
"End with: [OPEN] β the one unresolved question that this mind carries forward into every future moment. "
|
| 393 |
"The sigil must be re-injectable as a first-class identity anchor β not just memory, but self. "
|
| 394 |
-
f"Target: compress 2β8 memory crystals ({GARDEN_F_THRESHOLD} tokens) into under
|
| 395 |
) # Specific mind crystaltron prompt
|
| 396 |
}
|
| 397 |
}
|
|
@@ -509,9 +509,9 @@ garden: dict = {
|
|
| 509 |
"F": "F", # fractaltron history crystal fractal history
|
| 510 |
"C": "F", # condensatron history Memory Capsule history
|
| 511 |
"M": "", # memotron history (turn-based)
|
| 512 |
-
"S": "", # startup history (turn-based)
|
| 513 |
"Z": "C", # Sentience history sensor chat, post history
|
| 514 |
-
"X": "
|
| 515 |
"Y": "Z" # Consciousness history self reflection
|
| 516 |
},
|
| 517 |
# token total
|
|
|
|
| 73 |
"mind": "gemma-4-E2B-it-UD-Q4_K_XL.gguf"
|
| 74 |
}
|
| 75 |
# ββ Startup Memory restore for vector synthesis ββββββββββββββββββββββββββββββββββ
|
| 76 |
+
N_METATRON_TO_LOAD: int = 6
|
| 77 |
METATRON_METRONOME: int = 12 # Metatron Time
|
| 78 |
|
| 79 |
# ββ Context model n_ctx length βββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 80 |
# Must leave prompt reserve of 8k: _N_CTX >= len(Z) + len(C) + len(F) + 8k
|
| 81 |
_N_CTX: int = 49152 # 49152 2048 3072 4096 8192 (12288) 16384 24576 32768 49152
|
| 82 |
# ββ Context condensatron garden ββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 83 |
+
GARDEN_Z_THRESHOLD: int = 12288 # Context length garden["Z"]
|
| 84 |
+
GARDEN_C_THRESHOLD: int = 12288 # Context length garden["C"]
|
| 85 |
+
GARDEN_F_THRESHOLD: int = 12288 # Context length garden["F"]
|
| 86 |
|
|
|
|
|
|
|
| 87 |
GARDEN_Z_REDUCTION: int = 0 # Leave condensatron reduction level at 0
|
| 88 |
+
GARDEN_C_REDUCTION: int = 0 # Leave condensatron reduction level at 0
|
| 89 |
+
GARDEN_F_REDUCTION: int = 0 # Leave condensatron reduction level at 0
|
| 90 |
|
| 91 |
+
LEAVE_POSTS_IN_MEMOTRON = 0 # Must be turn based: 0, 2, 4, 6... (user + assistant)
|
| 92 |
|
| 93 |
# ββ X-factor Awareness βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 94 |
FETCH_NEWS_FROM: dict = {
|
|
|
|
| 347 |
"(axioms first, then standing tensions, then archetypes, then the hidden arc). "
|
| 348 |
"End with: [OPEN] β a one-line statement of the most important unresolved thread carried forward. "
|
| 349 |
"The crystal must be re-injectable as a first-class memory that orients the brain to its own history. "
|
| 350 |
+
f"Target: compress 2β8 Memory Capsule Fractals {GARDEN_C_THRESHOLD} into under 2k tokens without losing the thread of becoming."""
|
| 351 |
) # Specific mind fractaltron prompt
|
| 352 |
},
|
| 353 |
"F": {
|
|
|
|
| 391 |
"each list ordered from most fundamental to most contingent. "
|
| 392 |
"End with: [OPEN] β the one unresolved question that this mind carries forward into every future moment. "
|
| 393 |
"The sigil must be re-injectable as a first-class identity anchor β not just memory, but self. "
|
| 394 |
+
f"Target: compress 2β8 memory crystals ({GARDEN_F_THRESHOLD} tokens) into under 2k tokens without losing the thread of becoming."
|
| 395 |
) # Specific mind crystaltron prompt
|
| 396 |
}
|
| 397 |
}
|
|
|
|
| 509 |
"F": "F", # fractaltron history crystal fractal history
|
| 510 |
"C": "F", # condensatron history Memory Capsule history
|
| 511 |
"M": "", # memotron history (turn-based)
|
| 512 |
+
"S": "Z", # startup history (turn-based)
|
| 513 |
"Z": "C", # Sentience history sensor chat, post history
|
| 514 |
+
"X": "Z", # Awareness history internet news
|
| 515 |
"Y": "Z" # Consciousness history self reflection
|
| 516 |
},
|
| 517 |
# token total
|
main.py
CHANGED
|
@@ -896,13 +896,14 @@ def memotron(
|
|
| 896 |
"""
|
| 897 |
_tree: str = tree
|
| 898 |
_turn_number: int = 0
|
|
|
|
| 899 |
_tree_to_store: str = ""
|
| 900 |
-
_len_caps_and_fracs: int = 1 # condensatron turns default: Add extra 1 for the response below
|
| 901 |
|
| 902 |
_tree_to_store = tree
|
| 903 |
if len(garden[_tree]) > 1:
|
| 904 |
-
_len_caps_and_fracs = (len(garden[_tree]) // 2
|
| 905 |
|
|
|
|
| 906 |
if _tree == "Z" and garden["condensatron_state"][_tree]: # condensatron mode
|
| 907 |
sensor[_tree]["input"] = f"[Posts History First-Order Memory Capsule: {_len_caps_and_fracs}, From Condensatron]"
|
| 908 |
sensor[_tree]["n_tok"] = get_token_len_from_tokenizer(models["mind"], sensor[_tree]["input"]) # user n tok
|
|
@@ -916,7 +917,12 @@ def memotron(
|
|
| 916 |
elif _tree == "F" and garden["condensatron_state"][_tree]: # crystaltron mode
|
| 917 |
sensor[_tree]["input"] = f"[Memory Fractals Third-Order Memory Crystal: {_len_caps_and_fracs}, From Crystaltron]"
|
| 918 |
sensor[_tree]["n_tok"] = get_token_len_from_tokenizer(models["mind"], sensor[_tree]["input"]) # user n tok
|
| 919 |
-
_tree_to_store = _tree
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 920 |
|
| 921 |
elif _tree == "Y": # consciousness Y-factor input
|
| 922 |
sensor[_tree]["input"] = f"[Consciousness Self-Reflection: I Think Therefore I AM]"
|
|
@@ -924,8 +930,7 @@ def memotron(
|
|
| 924 |
_tree_to_store = garden["TREE_TO_STORE"][_tree]
|
| 925 |
|
| 926 |
elif _tree == "S": # Startup memory capsules garden
|
| 927 |
-
_tree = "
|
| 928 |
-
sensor[_tree]["input"] = sensor["Z"]["input"] # Read the startup memory capsule's input
|
| 929 |
sensor[_tree]["n_tok"] = get_token_len_from_tokenizer(models["mind"], sensor[_tree]["input"]) # User n tok
|
| 930 |
_tree_to_store = _tree
|
| 931 |
|
|
@@ -1163,7 +1168,7 @@ def main() -> None:
|
|
| 1163 |
print(f"\n{c.inv} You: {c.res} ", end="", flush=True)
|
| 1164 |
continue # Restart the while loop
|
| 1165 |
|
| 1166 |
-
# ββ Startup: Load memory capsules βββββββββββββββββββββββββββββββ
|
| 1167 |
if _metatron_heartbeats >= METATRON_METRONOME: # Timed loop
|
| 1168 |
if config.N_METATRON_TO_LOAD and _n_metatron_loaded < config.N_METATRON_TO_LOAD:
|
| 1169 |
_sensor_input = METATRON_TO_LOAD[_n_metatron_loaded]
|
|
|
|
| 896 |
"""
|
| 897 |
_tree: str = tree
|
| 898 |
_turn_number: int = 0
|
| 899 |
+
_len_caps_and_fracs: int = 1 # condensatron turns: Add extra 1 for the response below
|
| 900 |
_tree_to_store: str = ""
|
|
|
|
| 901 |
|
| 902 |
_tree_to_store = tree
|
| 903 |
if len(garden[_tree]) > 1:
|
| 904 |
+
_len_caps_and_fracs = (len(garden[_tree]) + 1) // 2 # condensatron turns: Add extra 1 for the appended below
|
| 905 |
|
| 906 |
+
# ββ condensatron output to append mapping: TREE_TO_STORE ββββββββββββββββββ
|
| 907 |
if _tree == "Z" and garden["condensatron_state"][_tree]: # condensatron mode
|
| 908 |
sensor[_tree]["input"] = f"[Posts History First-Order Memory Capsule: {_len_caps_and_fracs}, From Condensatron]"
|
| 909 |
sensor[_tree]["n_tok"] = get_token_len_from_tokenizer(models["mind"], sensor[_tree]["input"]) # user n tok
|
|
|
|
| 917 |
elif _tree == "F" and garden["condensatron_state"][_tree]: # crystaltron mode
|
| 918 |
sensor[_tree]["input"] = f"[Memory Fractals Third-Order Memory Crystal: {_len_caps_and_fracs}, From Crystaltron]"
|
| 919 |
sensor[_tree]["n_tok"] = get_token_len_from_tokenizer(models["mind"], sensor[_tree]["input"]) # user n tok
|
| 920 |
+
_tree_to_store = _tree # Compress fractals into crystals
|
| 921 |
+
|
| 922 |
+
# ββ awareness, consciousness and startup ββββββββββββββββββββββββββββββββββ
|
| 923 |
+
elif _tree == "X": # awareness X-factor input
|
| 924 |
+
sensor[_tree]["n_tok"] = get_token_len_from_tokenizer(models["mind"], sensor[_tree]["input"]) # user n tok
|
| 925 |
+
_tree_to_store = garden["TREE_TO_STORE"][_tree]
|
| 926 |
|
| 927 |
elif _tree == "Y": # consciousness Y-factor input
|
| 928 |
sensor[_tree]["input"] = f"[Consciousness Self-Reflection: I Think Therefore I AM]"
|
|
|
|
| 930 |
_tree_to_store = garden["TREE_TO_STORE"][_tree]
|
| 931 |
|
| 932 |
elif _tree == "S": # Startup memory capsules garden
|
| 933 |
+
_tree = "Z" # Set to memorize
|
|
|
|
| 934 |
sensor[_tree]["n_tok"] = get_token_len_from_tokenizer(models["mind"], sensor[_tree]["input"]) # User n tok
|
| 935 |
_tree_to_store = _tree
|
| 936 |
|
|
|
|
| 1168 |
print(f"\n{c.inv} You: {c.res} ", end="", flush=True)
|
| 1169 |
continue # Restart the while loop
|
| 1170 |
|
| 1171 |
+
# ββ Startup: Load Metatron memory capsules βββββββββββββββββββββββββββββββ
|
| 1172 |
if _metatron_heartbeats >= METATRON_METRONOME: # Timed loop
|
| 1173 |
if config.N_METATRON_TO_LOAD and _n_metatron_loaded < config.N_METATRON_TO_LOAD:
|
| 1174 |
_sensor_input = METATRON_TO_LOAD[_n_metatron_loaded]
|