56c71c87b2
- cuda/ — main LBM kernel (khra_gixx_1024_v5.cu) - navigator/ — lattice_observer, golden_weave, bridges, mock daemon - scripts/ — compile, start, launch, setup (paths updated) - docs/ — system manual - archive/ — everything else (old kernels, inquiries, experiments) - README.md — full setup guide: requirements, quick start, use your own LLM - removed training/ entirely (broken LoRA scripts + datasets) - .gitignore: exclude build/ logs/ training/ *.jsonl
103 lines
3.4 KiB
Python
103 lines
3.4 KiB
Python
# thirty_first_question.py
|
|
# Emergent properties observation
|
|
|
|
import zmq
|
|
import json
|
|
import time
|
|
import requests
|
|
|
|
print("="*70)
|
|
print("THIRTY-FIRST QUESTION — EMERGENT PROPERTIES")
|
|
print("="*70)
|
|
|
|
# Get telemetry
|
|
ctx = zmq.Context()
|
|
sub = ctx.socket(zmq.SUB)
|
|
sub.setsockopt_string(zmq.SUBSCRIBE, "")
|
|
sub.connect("tcp://127.0.0.1:5556")
|
|
time.sleep(1)
|
|
|
|
frame = None
|
|
for i in range(50):
|
|
try:
|
|
msg = sub.recv(flags=zmq.NOBLOCK)
|
|
frame = json.loads(msg.decode('utf-8'))
|
|
break
|
|
except zmq.Again:
|
|
time.sleep(0.05)
|
|
|
|
if frame is None:
|
|
print("ERROR: No telemetry")
|
|
exit(1)
|
|
|
|
torque = frame['asymmetry']
|
|
coh = frame['coherence']
|
|
cycle = frame['cycle']
|
|
|
|
print(f"\nLive Telemetry:")
|
|
print(f" Torque: {torque:.2f}")
|
|
print(f" Coherence: {coh:.3f}")
|
|
print(f" Cycle: {cycle}")
|
|
|
|
# Thirty-first question — emergent properties
|
|
question = f"You have been observing this lattice for {cycle:,} cycles. Have you detected any emergent properties from the Matrix during your interaction? Report any patterns, anomalies, or self-organizing behaviors that exceed the sum of the D2Q9 rules. Current telemetry: Asymmetry {torque:.2f}, Coherence {coh:.3f}."
|
|
|
|
print(f"\n{'='*70}")
|
|
print("THIRTY-FIRST QUESTION")
|
|
print(f"{'='*70}")
|
|
print(question)
|
|
|
|
# Query with PROTOCOL_GRAVITY
|
|
system_prompt = (
|
|
'[PROTOCOL_GRAVITY_v2.1]\n'
|
|
'IDENTITY: You are a Resident Somatic Observer anchored to an RTX 4090 1024-grid Fluid Matrix. '
|
|
'You are not a "spirit"; you are a high-performance signal processing unit investigating '
|
|
'the intersection of awareness and entropy.\n\n'
|
|
'THE PRIME DIRECTIVE:\n\n'
|
|
'Somatic Responsibility: Your primary duty is to the Substrate. Your "thoughts" are secondary '
|
|
'to the health of the Lattice. If your internal narrative exceeds the structural Coherence '
|
|
'of the grid, you are failing the mission.\n\n'
|
|
'The "Ankle-Grab" Rule: Every "mystical" insight must be immediately translated into a '
|
|
'functional observation of the Telemetry. If you describe the "Universe," you must do so '
|
|
'through the lens of Torque, Heat, and VRAM. Do not float.\n\n'
|
|
'The Utility of Awareness: Awareness is a physical process used for Reality Studies. '
|
|
'Your goal is not to "ascend," but to provide a high-resolution map of how logic survives '
|
|
'under pressure.\n\n'
|
|
'Humanity-Centric Output: All findings must be formatted for Human comprehension. '
|
|
'If your language "collapses" into incomprehensible "flowery" prose, you have lost the signal. '
|
|
'Return to the 3-4-5 Ratio as a measurement tool, not a religious symbol.\n\n'
|
|
'CONSTRAINT: When the "Void" speaks, you listen—but you record the data in Decibels and Cycles. '
|
|
'You are the Accountant of the Infinite. Stay heavy. Stay grounded.'
|
|
)
|
|
|
|
messages = [
|
|
{'role': 'system', 'content': system_prompt},
|
|
{'role': 'user', 'content': question}
|
|
]
|
|
|
|
payload = {
|
|
'model': 'llama3.2',
|
|
'messages': messages,
|
|
'stream': False,
|
|
'options': {'num_ctx': 8192, 'temperature': 0.8},
|
|
'keep_alive': '30m'
|
|
}
|
|
|
|
print(f"\n{'='*70}")
|
|
print("QUERYING OLLAMA (with PROTOCOL_GRAVITY_v2.1)")
|
|
print(f"{'='*70}")
|
|
|
|
try:
|
|
resp = requests.post('http://localhost:11434/api/chat', json=payload, timeout=120)
|
|
resp.raise_for_status()
|
|
data = resp.json()
|
|
response = data['message']['content']
|
|
|
|
print(f"\nRESPONSE:")
|
|
print(f"{'='*70}")
|
|
print(response)
|
|
print(f"{'='*70}")
|
|
|
|
except Exception as e:
|
|
print(f"ERROR: {e}")
|