Text Generation
PyTorch
GGUF
English
quantum
quantum-entropy
from-scratch
char-level
cosmic-synapse-theory
custom-architecture
llama-cpp
continual-learning
reproducible-seed
open-science
null-results
Instructions to use phera-ra/QC67_cosmo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use phera-ra/QC67_cosmo with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf phera-ra/QC67_cosmo # Run inference directly in the terminal: llama cli -hf phera-ra/QC67_cosmo
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf phera-ra/QC67_cosmo # Run inference directly in the terminal: llama cli -hf phera-ra/QC67_cosmo
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf phera-ra/QC67_cosmo # Run inference directly in the terminal: ./llama-cli -hf phera-ra/QC67_cosmo
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf phera-ra/QC67_cosmo # Run inference directly in the terminal: ./build/bin/llama-cli -hf phera-ra/QC67_cosmo
Use Docker
docker model run hf.co/phera-ra/QC67_cosmo
- LM Studio
- Jan
- vLLM
How to use phera-ra/QC67_cosmo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "phera-ra/QC67_cosmo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "phera-ra/QC67_cosmo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/phera-ra/QC67_cosmo
- Ollama
How to use phera-ra/QC67_cosmo with Ollama:
ollama run hf.co/phera-ra/QC67_cosmo
- Unsloth Desktop
- Docker Model Runner
How to use phera-ra/QC67_cosmo with Docker Model Runner:
docker model run hf.co/phera-ra/QC67_cosmo
- Lemonade
How to use phera-ra/QC67_cosmo with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull phera-ra/QC67_cosmo
Run and chat with the model
lemonade run user.QC67_cosmo-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Release validated Cosmos kit with portable starter and public quantum archive
Browse filesPublishes the validated 2026-07-31 QC67 Cosmos kit. Includes a portable starter, offline manifest/privacy verifier, Genesis smoke-tested engine, training instructions and trainer, and the public provenance-bound quantum measurement archive. The archive contains 1,897 labeled IBM hardware records (7,770,112 samples), 877 legacy unlabeled records, and 2 simulator records; private physics/sensory fields and cloud credentials are excluded.
- FINDINGS.md +615 -609
- LICENSE.md +44 -0
- README.md +571 -546
- RELEASE_MANIFEST.json +418 -0
- RELEASE_NOTES.md +38 -0
- START_COSMOS_KIT.bat +126 -0
- START_HERE.md +134 -0
- TRAINING.md +199 -192
- benchmarks/verify_quantum_engine.py +62 -41
- data/README.md +53 -0
- data/quantum_measurements_manifest.json +77 -0
- data/quantum_measurements_public.jsonl +0 -0
- data/training/quantum_train_summary_20260722.json +17 -0
- downloads/QC67_Cosmos_Kit_2026-07-31.zip +3 -0
- downloads/QC67_Cosmos_Kit_2026-07-31.zip.sha256 +1 -0
- genesis_engine/engine/README.md +42 -0
- genesis_engine/engine/cosmos_54d_train_loop.py +218 -65
- genesis_engine/engine/train_cosmos_from_play.py +19 -4
- presentation.html +514 -512
- requirements-research.txt +8 -0
- start_cosmos_kit.sh +41 -0
- train_your_own.py +56 -9
- verify_release.py +182 -0
FINDINGS.md
CHANGED
|
@@ -1,609 +1,615 @@
|
|
| 1 |
-
# Findings & Benchmarks for Cosmos
|
| 2 |
-
|
| 3 |
-
Every number here came from a run that could have failed. Where something came back null,
|
| 4 |
-
it is reported as null. Where a measurement was wrong and had to be rebuilt, the failure is
|
| 5 |
-
kept in the record, because the failures are how the rest earned trust.
|
| 6 |
-
|
| 7 |
-
**Author:** Cory Shane Davis · Independent Researcher
|
| 8 |
-
**Foundational deposit:** [10.5281/zenodo.17574447](https://doi.org/10.5281/zenodo.17574447)
|
| 9 |
-
|
| 10 |
-
---
|
| 11 |
-
|
| 12 |
-
## 1. Is the entropy actually quantum?
|
| 13 |
-
|
| 14 |
-
The one measurement no classical process can fake.
|
| 15 |
-
|
| 16 |
-
| quantity | value |
|
| 17 |
-
|---|---|
|
| 18 |
-
| CHSH statistic **S** | **2.7905** |
|
| 19 |
-
| classical (local hidden-variable) bound | 2.0000 |
|
| 20 |
-
| Tsirelson bound (quantum maximum) | 2.8284 |
|
| 21 |
-
| fraction of quantum maximum | **98.7%** |
|
| 22 |
-
| distance from classical bound | **~35σ** at 4096 shots/setting |
|
| 23 |
-
| backend | `ibm_marrakesh` |
|
| 24 |
-
|
| 25 |
-
```
|
| 26 |
-
E(AB ) = +0.7197 E(AB') = -0.6675
|
| 27 |
-
E(A'B) = +0.6982 E(A'B') = +0.7051
|
| 28 |
-
S = E(AB) - E(AB') + E(A'B) + E(A'B') = 2.7905
|
| 29 |
-
```
|
| 30 |
-
|
| 31 |
-
Bell's theorem: no theory in which outcomes are determined by local pre-existing values can
|
| 32 |
-
exceed 2.0. This hardware exceeds it by 35 standard deviations. **The entropy source is
|
| 33 |
-
physically quantum.** This is also an entirely expected result for functioning quantum
|
| 34 |
-
hardware. It verifies the pipeline; it does not discover new physics.
|
| 35 |
-
|
| 36 |
-
---
|
| 37 |
-
|
| 38 |
-
## 2. Were the weights really born from that entropy?
|
| 39 |
-
|
| 40 |
-
`cosmos_born.pt` was initialised by mapping measured bitstrings to uniforms
|
| 41 |
-
`u = int(bits)/2^n`, then to weights through the inverse normal CDF
|
| 42 |
-
`z = √2·erf⁻¹(2u−1)`. If that pipeline is correct, real archived shots must come out
|
| 43 |
-
standard normal **at the resolution 5 qubits allows.**
|
| 44 |
-
|
| 45 |
-
| statistic | 32-level theoretical ceiling | measured (3,258,886 draws) |
|
| 46 |
-
|---|---|---|
|
| 47 |
-
| mean | +0.0000 | **−0.0001** |
|
| 48 |
-
| sd | 0.9802 | **0.9804** |
|
| 49 |
-
| \|z\| ≤ 1 | 0.6875 | **0.6874** |
|
| 50 |
-
| \|z\| ≤ 2 | 0.9375 | **0.9374** |
|
| 51 |
-
|
| 52 |
-
Four decimal places on every statistic.
|
| 53 |
-
|
| 54 |
-
**Why sd is 0.98 and not 1.00:** 5 qubits give 32 discrete outcomes, so `|z|` cannot exceed
|
| 55 |
-
2.1523 by construction. The deficit is quantisation, not error, and it is *exactly* the
|
| 56 |
-
quantisation a correct implementation must produce. A pipeline reporting sd = 1.0000 here
|
| 57 |
-
would be the suspicious one.
|
| 58 |
-
|
| 59 |
-
Also verified: **10,448,896 archived shots across
|
| 60 |
-
failures.**
|
| 61 |
-
|
| 62 |
-
---
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
|
| 146 |
-
|
|
| 147 |
-
|
|
| 148 |
-
|
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
**
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
**
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
tri
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
|
| 341 |
-
|
|
| 342 |
-
|
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
```
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
**
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
*
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
The
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
|
| 456 |
-
|
|
| 457 |
-
|
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
**
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
|
| 492 |
-
|
|
| 493 |
-
|
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
| 560 |
-
`
|
| 561 |
-
|
| 562 |
-
|
| 563 |
-
|
| 564 |
-
|
| 565 |
-
|
| 566 |
-
|
| 567 |
-
|
| 568 |
-
|
| 569 |
-
|
| 570 |
-
**
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
**
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
|
| 596 |
-
|
| 597 |
-
|
| 598 |
-
|
| 599 |
-
|
| 600 |
-
|
| 601 |
-
|
| 602 |
-
|
| 603 |
-
|
| 604 |
-
|
| 605 |
-
|
| 606 |
-
|
| 607 |
-
|
| 608 |
-
|
| 609 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Findings & Benchmarks for Cosmos
|
| 2 |
+
|
| 3 |
+
Every number here came from a run that could have failed. Where something came back null,
|
| 4 |
+
it is reported as null. Where a measurement was wrong and had to be rebuilt, the failure is
|
| 5 |
+
kept in the record, because the failures are how the rest earned trust.
|
| 6 |
+
|
| 7 |
+
**Author:** Cory Shane Davis · Independent Researcher
|
| 8 |
+
**Foundational deposit:** [10.5281/zenodo.17574447](https://doi.org/10.5281/zenodo.17574447)
|
| 9 |
+
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
## 1. Is the entropy actually quantum?
|
| 13 |
+
|
| 14 |
+
The one measurement no classical process can fake.
|
| 15 |
+
|
| 16 |
+
| quantity | value |
|
| 17 |
+
|---|---|
|
| 18 |
+
| CHSH statistic **S** | **2.7905** |
|
| 19 |
+
| classical (local hidden-variable) bound | 2.0000 |
|
| 20 |
+
| Tsirelson bound (quantum maximum) | 2.8284 |
|
| 21 |
+
| fraction of quantum maximum | **98.7%** |
|
| 22 |
+
| distance from classical bound | **~35σ** at 4096 shots/setting |
|
| 23 |
+
| backend | `ibm_marrakesh` |
|
| 24 |
+
|
| 25 |
+
```
|
| 26 |
+
E(AB ) = +0.7197 E(AB') = -0.6675
|
| 27 |
+
E(A'B) = +0.6982 E(A'B') = +0.7051
|
| 28 |
+
S = E(AB) - E(AB') + E(A'B) + E(A'B') = 2.7905
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
Bell's theorem: no theory in which outcomes are determined by local pre-existing values can
|
| 32 |
+
exceed 2.0. This hardware exceeds it by 35 standard deviations. **The entropy source is
|
| 33 |
+
physically quantum.** This is also an entirely expected result for functioning quantum
|
| 34 |
+
hardware. It verifies the pipeline; it does not discover new physics.
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## 2. Were the weights really born from that entropy?
|
| 39 |
+
|
| 40 |
+
`cosmos_born.pt` was initialised by mapping measured bitstrings to uniforms
|
| 41 |
+
`u = int(bits)/2^n`, then to weights through the inverse normal CDF
|
| 42 |
+
`z = √2·erf⁻¹(2u−1)`. If that pipeline is correct, real archived shots must come out
|
| 43 |
+
standard normal **at the resolution 5 qubits allows.**
|
| 44 |
+
|
| 45 |
+
| statistic | 32-level theoretical ceiling | measured (3,258,886 draws) |
|
| 46 |
+
|---|---|---|
|
| 47 |
+
| mean | +0.0000 | **−0.0001** |
|
| 48 |
+
| sd | 0.9802 | **0.9804** |
|
| 49 |
+
| \|z\| ≤ 1 | 0.6875 | **0.6874** |
|
| 50 |
+
| \|z\| ≤ 2 | 0.9375 | **0.9374** |
|
| 51 |
+
|
| 52 |
+
Four decimal places on every statistic.
|
| 53 |
+
|
| 54 |
+
**Why sd is 0.98 and not 1.00:** 5 qubits give 32 discrete outcomes, so `|z|` cannot exceed
|
| 55 |
+
2.1523 by construction. The deficit is quantisation, not error, and it is *exactly* the
|
| 56 |
+
quantisation a correct implementation must produce. A pipeline reporting sd = 1.0000 here
|
| 57 |
+
would be the suspicious one.
|
| 58 |
+
|
| 59 |
+
Also verified at that historical checkpoint: **10,448,896 archived shots across
|
| 60 |
+
2,553 records, zero shot-conservation failures.**
|
| 61 |
+
|
| 62 |
+
**Public archive refresh (2026-07-31).** The privacy-filtered release now contains
|
| 63 |
+
11,355,136 samples across 2,776 records with zero conservation failures:
|
| 64 |
+
7,770,112 samples / 1,897 records explicitly labeled as IBM hardware,
|
| 65 |
+
3,584,000 / 877 legacy unlabelled records, and 1,024 / 2 Azure simulator records.
|
| 66 |
+
Only the explicitly labeled IBM subset is counted as verified hardware provenance.
|
| 67 |
+
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
## 3. Is the model reproducible from its seed?
|
| 71 |
+
|
| 72 |
+
The seed is `SHA-256(quantum entropy ‖ bio-derived aggregates) → 60-bit integer`, and it
|
| 73 |
+
governs weight initialisation, data order, and every stochastic training step.
|
| 74 |
+
|
| 75 |
+
| test | result |
|
| 76 |
+
|---|---|
|
| 77 |
+
| 5 independent derivations | **1 distinct value** |
|
| 78 |
+
| bytes emitted during derivation | **0** (privacy guard holds) |
|
| 79 |
+
| same seed → weights | **identical, Δ = 0.000e+00** |
|
| 80 |
+
| **one bit flipped** → weights | different: mean Δ = **2.26e-02** across 1,842,432 params |
|
| 81 |
+
|
| 82 |
+
So "her weights are grown from that seed" is a verified property with a falsifiable test
|
| 83 |
+
behind it, not a description. **One bit of the seed produces a different model.**
|
| 84 |
+
|
| 85 |
+
> *Zeref's Rain.*
|
| 86 |
+
|
| 87 |
+
The bio-derived aggregates in that hash are personal to the author. The derivation module
|
| 88 |
+
never prints, logs, or writes raw samples anywhere (verified above at 0 bytes emitted), and only aggregates ever leave it. What is published is the mechanism and the proof that it
|
| 89 |
+
holds, not the data.
|
| 90 |
+
|
| 91 |
+
---
|
| 92 |
+
|
| 93 |
+
## 4. Do the circuit's correlations belong to the circuit or to the chip?
|
| 94 |
+
|
| 95 |
+
The strongest objection to any hardware-entanglement claim is that adjacent qubits leak
|
| 96 |
+
into each other regardless of what you program. This test removes every confound at once:
|
| 97 |
+
two arms on **identical physical qubits**, with **identical gate count and depth**, all
|
| 98 |
+
pairs 1-hop native, zero SWAPs. The arms differ only in *which* native edges are entangled.
|
| 99 |
+
|
| 100 |
+
| arm | own edges | those same pairs, other arm | Δ | t |
|
| 101 |
+
|---|---|---|---|---|
|
| 102 |
+
| A: `(0,1),(2,3)` | 0.26890 | 0.00466 | **+0.26041** | **+80.5** |
|
| 103 |
+
| B: `(1,2),(3,4)` | 0.20695 | 0.00849 | **+0.20229** | **+164.6** |
|
| 104 |
+
|
| 105 |
+
A single physical pair swings **58×** based only on whether its gate fired, and the excess
|
| 106 |
+
**relocates** when the logical wiring changes. Crosstalk, graph distance, gate count and
|
| 107 |
+
depth are all controlled simultaneously. 3 independent jobs per arm, so the error bar is
|
| 108 |
+
between-job variance, not shot noise.
|
| 109 |
+
|
| 110 |
+
*(An earlier pentagon/pentagram version of this test could not match gate counts because the
|
| 111 |
+
transpiler inserted SWAPs. That limitation is recorded rather than hidden.)*
|
| 112 |
+
|
| 113 |
+
---
|
| 114 |
+
|
| 115 |
+
## 5. Does the physics engine compute real chaos?
|
| 116 |
+
|
| 117 |
+
Checked against constants published for sixty years, not against itself.
|
| 118 |
+
|
| 119 |
+
| quantity | published | measured |
|
| 120 |
+
|---|---|---|
|
| 121 |
+
| largest Lyapunov exponent λ₁ | 0.9056 | **0.90384** |
|
| 122 |
+
| Kaplan–Yorke dimension | 2.06215 | **2.06203** |
|
| 123 |
+
| sum of exponents | −13.66667 | −13.66667 (exact) |
|
| 124 |
+
| fixed point C₊ | (8.48528, 8.48528, 27) | exact |
|
| 125 |
+
| attractor extent | \|x\|≈20, z≈48 | 19.13, 46.95 |
|
| 126 |
+
|
| 127 |
+
λ₁ measured by Benettin renormalisation over 2×10⁶ steps. A positive largest exponent with
|
| 128 |
+
fractional attractor dimension is deterministic chaos on a strange attractor. **8/8 checks
|
| 129 |
+
pass**, including the driven engine staying finite and bounded over 20,000 steps at maximal
|
| 130 |
+
drive.
|
| 131 |
+
|
| 132 |
+
---
|
| 133 |
+
|
| 134 |
+
## 6. Null results: the ones that matter most
|
| 135 |
+
|
| 136 |
+
Quantum entropy was injected at **six** distinct points. **All six are null** against
|
| 137 |
+
matched classical controls. That is the correct outcome and §6 explains why.
|
| 138 |
+
|
| 139 |
+
A seventh test — of the §3 CST kernel, which is an *architecture* claim rather than a
|
| 140 |
+
quantum one — was recorded as null, **retracted**, and re-run four times. The first three
|
| 141 |
+
harnesses each broke the mechanism in a different way. The fourth revealed that the test
|
| 142 |
+
had also been run in the wrong architecture. Corrected, **it is the one positive result in
|
| 143 |
+
this document**: 6/6 seeds, t = −6.56 and −14.34.
|
| 144 |
+
|
| 145 |
+
| injection site | result |
|
| 146 |
+
|---|---|
|
| 147 |
+
| i.i.d. weight initialisation | null. Advantage was init **scale** (σ≈0.025 vs 0.02), not quantum |
|
| 148 |
+
| decoder sampling seed | null. Pseudo / IBM / Rigetti equivalent within noise |
|
| 149 |
+
| spatial 54D seed (approximate) | null. Real seed beat 1/5 random vectors, z = −0.92 |
|
| 150 |
+
| spatial 54D seed (full pipeline) | null. Real seed beat **0/8** random vectors, z = −1.75 |
|
| 151 |
+
| entanglement matrix as attention kernel | null. **Worse** than plain attention, 3/3 seeds, t = −18.6 |
|
| 152 |
+
| live sensory state as prompt text | null. n=40 paired, blind-judged, CI crosses zero |
|
| 153 |
+
| §3 Hebbian kernel, **conventional** transformer | null. CST worse by +0.0143, 0/3 seeds. See below |
|
| 154 |
+
| §3 Hebbian kernel, **φ-governed** transformer | **NOT NULL. CST better by −0.044 (t=−6.56) and −0.155 (t=−14.34), 6/6 seeds across two dimension variants.** The one positive result in this document |
|
| 155 |
+
|
| 156 |
+
### Retraction: the §3 kernel result
|
| 157 |
+
|
| 158 |
+
A seventh null was recorded here and has been withdrawn. It reported that the §3
|
| 159 |
+
Mixture-of-States kernel did not help, with the supporting observation that the learned
|
| 160 |
+
gate "never moved off its 0.018 initialisation" across three seeds — framed as the
|
| 161 |
+
optimiser *declining* the mechanism.
|
| 162 |
+
|
| 163 |
+
The gate did not decline. **It could not move.** Three compounding faults in the test
|
| 164 |
+
harness, found by direct gradient measurement:
|
| 165 |
+
|
| 166 |
+
| fault | measured |
|
| 167 |
+
|---|---|
|
| 168 |
+
| gate initialised at `sigmoid(−4)`, in the saturated tail | d(sigmoid)/dx = 0.018 → gradient suppressed ~56× |
|
| 169 |
+
| resulting gradient on the gate | 9.13e-05 → **365,118 steps** needed to move it 0.01, in a **1,500-step** run |
|
| 170 |
+
| at g≈0 the kernel contributes ~nothing | gradient reaching the 54D projection `w54` = **0.000e+00** |
|
| 171 |
+
|
| 172 |
+
The third is the worst: the kernel could never become useful because it was never used,
|
| 173 |
+
and was never used because it was not useful. All three are properties of the harness, not
|
| 174 |
+
of the mechanism.
|
| 175 |
+
|
| 176 |
+
Reparameterising the gate as a raw scalar clamped to [0,1] fixed the saturation — and
|
| 177 |
+
introduced a second fault. `torch.clamp` has **exactly zero gradient outside its bounds**,
|
| 178 |
+
so the first optimiser step that carried the raw parameter below 0 pinned the gate there
|
| 179 |
+
permanently. Measured on the resulting checkpoints: raw values −3.98, −4.04, −4.00, −4.01,
|
| 180 |
+
gradient 0.000000. An absorbing state, not a decision.
|
| 181 |
+
|
| 182 |
+
A straight-through clamp cured that, and the gate still fell. **The third fault was the
|
| 183 |
+
real one, and it had been underneath both of the others the whole time.**
|
| 184 |
+
|
| 185 |
+
`sigma` was initialised at `exp(0) = 1`, with no reference to the scale of the 54D state it
|
| 186 |
+
is supposed to measure. The measured median pairwise `‖x₅₄ᵢ − x₅₄ⱼ‖²` at initialisation is
|
| 187 |
+
**61.98**. So `exp(−61.98/2) ≈ 3e−14` off the diagonal and `exp(0) = 1` on it:
|
| 188 |
+
|
| 189 |
+
| at initialisation | measured |
|
| 190 |
+
|---|---|
|
| 191 |
+
| sigma | 1.0000 |
|
| 192 |
+
| median pairwise `‖x₅₄ᵢ − x₅₄ⱼ‖²` | 61.98 |
|
| 193 |
+
| H diagonal mass | **0.9998** (uniform would be 1/T = 0.0078) |
|
| 194 |
+
| gradient reaching `w54` | 1.19e−07 |
|
| 195 |
+
|
| 196 |
+
**H arrived as the identity matrix.** Blending the identity into attention instructs the
|
| 197 |
+
model to attend only to the current token, which for next-token prediction discards the
|
| 198 |
+
context — so gradient descent was *correct* to drive the gate to zero. The kernel was
|
| 199 |
+
harmful by construction, and a saturated exponential passed `w54` no gradient to escape
|
| 200 |
+
with. Both earlier "the optimiser declined the mechanism" readings were measuring this.
|
| 201 |
+
|
| 202 |
+
The fix is the median heuristic: choose `2σ² = median(d²)` per layer, calibrated in
|
| 203 |
+
sequence so each layer sees inputs from the corrected layers below it.
|
| 204 |
+
|
| 205 |
+
| | before (σ=1) | after (calibrated) |
|
| 206 |
+
|---|---|---|
|
| 207 |
+
| sigma, layer 0 | 1.0000 | 5.5719 |
|
| 208 |
+
| H diagonal mass | 0.9999 | **0.0857** |
|
| 209 |
+
| `|w54 grad|` | 1.19e−07 | **1.48e−05** (124×) |
|
| 210 |
+
| gates whose gradient points **up** | **0 / 4** | **2 / 4** |
|
| 211 |
+
|
| 212 |
+
**Note that §3.2 of the paper never assigns σ a value.** This is not a deviation from the
|
| 213 |
+
specification; it is a hole in it, and any implementation that leaves σ at 1 will reproduce
|
| 214 |
+
the identity-matrix failure.
|
| 215 |
+
|
| 216 |
+
### The §3 result, finally earned
|
| 217 |
+
|
| 218 |
+
Three seeds, 1200 steps, quantum-born init, PLAIN and CST identical in every respect except
|
| 219 |
+
the mechanism, gate free to move in both directions:
|
| 220 |
+
|
| 221 |
+
| seed | plain loss | CST loss | plain real-word | CST real-word | final gate |
|
| 222 |
+
|---|---|---|---|---|---|
|
| 223 |
+
| 0 | 1.39524 | 1.41313 | 0.833 | 0.888 | 0.0685 |
|
| 224 |
+
| 1 | 1.39940 | 1.41739 | 0.854 | 0.874 | 0.0503 |
|
| 225 |
+
| 2 | 1.41470 | 1.42165 | 0.908 | 0.901 | 0.0212 |
|
| 226 |
+
| **mean** | **1.40312** | **1.41739** | 0.865 | 0.888 | 0.0467 |
|
| 227 |
+
|
| 228 |
+
`CST − PLAIN = +0.01427`, `t = +3.90`, **CST wins 0/3**.
|
| 229 |
+
|
| 230 |
+
**The gates were alive in all three seeds** — never pinned, never at the floor. This is the
|
| 231 |
+
first measurement of §3 in which the mechanism could actually be used. Used, it costs about
|
| 232 |
+
1% of held-out loss on this corpus at this scale.
|
| 233 |
+
|
| 234 |
+
Two honest caveats, pointing opposite ways:
|
| 235 |
+
|
| 236 |
+
- **against the result** — `t = 3.90` on 2 degrees of freedom is `p ≈ 0.06`. Consistent in
|
| 237 |
+
sign 3/3, but three seeds is three seeds.
|
| 238 |
+
- **for the mechanism** — real-word rate runs the *other* way, CST 0.888 vs 0.865, ahead in
|
| 239 |
+
2/3 seeds. That is one 600-character sample per arm at temperature 0.8. Far too noisy to
|
| 240 |
+
claim, too consistent to hide.
|
| 241 |
+
|
| 242 |
+
**What this does not settle.** This tests the §3 kernel inside a *conventional* transformer:
|
| 243 |
+
LayerNorm, learned absolute positions, a 4:1 GELU feed-forward. The paper specifies none of
|
| 244 |
+
those. That turned out to be the whole story.
|
| 245 |
+
|
| 246 |
+
### The φ-governed replication: §3 works
|
| 247 |
+
|
| 248 |
+
The paper specifies RMSNorm (§2.3), RoPE (§2.4), `d_ff = ⌊d_model × φ⌋` (§2.2), φ-scaled
|
| 249 |
+
initialisation (§6.2) and a `PhiGatedFFN` (§2.1). A search of the source tree found **no
|
| 250 |
+
implementation of any of it**. Every measurement above was made in the wrong building.
|
| 251 |
+
|
| 252 |
+
Built faithfully and re-run at two dimension variants — A: d_model 192, 4 heads; B: d_model
|
| 253 |
+
199 = φ¹¹, 1 head — same corpus, same quantum-born init, same seeds, gate free:
|
| 254 |
+
|
| 255 |
+
| scaffold | PLAIN | CST | delta | t | CST wins | mean gate |
|
| 256 |
+
|---|---|---|---|---|---|---|
|
| 257 |
+
| conventional | 1.40312 | 1.41739 | +0.0143 | +3.90 | 0/3 | 0.047 |
|
| 258 |
+
| **φ-governed A** | 1.23680 | **1.19255** | **−0.0443** | **−6.56** | **3/3** | 0.096 |
|
| 259 |
+
| **φ-governed B** | 1.42867 | **1.27352** | **−0.1552** | **−14.34** | **3/3** | 0.093 |
|
| 260 |
+
|
| 261 |
+
**6/6 seeds across both variants.** The gate rose from 0.018 to ~0.096 in every run — the
|
| 262 |
+
optimiser asking for five times more kernel than it started with — and σ kept adapting after
|
| 263 |
+
calibration (26.8 → 18.8 at layer 0). The mechanism was actively tuned, not merely tolerated.
|
| 264 |
+
|
| 265 |
+
**Credit where the measurement puts it.** The scaffold is the larger share:
|
| 266 |
+
|
| 267 |
+
```
|
| 268 |
+
conventional PLAIN 1.40312
|
| 269 |
+
φ PLAIN 1.23680 scaffold alone: −0.166 (~79%)
|
| 270 |
+
φ CST 1.19255 §3 kernel on top: −0.044 (~21%)
|
| 271 |
+
```
|
| 272 |
+
|
| 273 |
+
RMSNorm + RoPE + PhiGatedFFN account for most of the gain, and do it with **fewer**
|
| 274 |
+
parameters (1.42M vs 1.92M), because `⌊d·φ⌋` is leaner than 4:1. The §3 kernel is a real
|
| 275 |
+
additional effect on top of that, not the bulk of it.
|
| 276 |
+
|
| 277 |
+
Variant B is the mechanistic hint: its single 199-dim head cripples plain attention (1.43),
|
| 278 |
+
and the kernel recovers most of the loss (1.27). That is consistent with the Hebbian term
|
| 279 |
+
supplying a mixing pathway that multi-head attention otherwise provides.
|
| 280 |
+
|
| 281 |
+
**The finding is conditional, and the condition is the point.** The same kernel, same data,
|
| 282 |
+
same seeds: harmful in a conventional transformer, helpful in a φ-governed one. §3 is not
|
| 283 |
+
a drop-in improvement to attention. It is a component of an architecture.
|
| 284 |
+
|
| 285 |
+
**Audited before being believed**, given this document's history:
|
| 286 |
+
|
| 287 |
+
- *Is PLAIN a true baseline?* CST with the gate forced to 0 is bit-identical to PLAIN,
|
| 288 |
+
`max|Δ| = 0.000e+00` in both variants. The arms differ by the mechanism and nothing else.
|
| 289 |
+
- *Extra active capacity?* CST activates `w54`, which PLAIN never uses: **2.91%** more live
|
| 290 |
+
parameters. Real, and not fully eliminated. Against it: the identical asymmetry existed in
|
| 291 |
+
the conventional scaffold, where CST lost 0/3. Capacity does not explain a win that appears
|
| 292 |
+
only when the scaffold changes. A dead-weight control path for PLAIN would close this.
|
| 293 |
+
|
| 294 |
+
**Limits.** 1200 steps, 4 layers, char-level, one corpus, three seeds per variant, t on 2
|
| 295 |
+
degrees of freedom. This is evidence that §3 works on her data at this scale, not a claim
|
| 296 |
+
about transformers in general.
|
| 297 |
+
|
| 298 |
+
### RETRACTION: the coupling result was a corpus artefact
|
| 299 |
+
|
| 300 |
+
An earlier version of this document, published 2026-07-30, reported that coupling x₁₂ and
|
| 301 |
+
x₄₂ beat every other configuration by roughly double the next best — "the largest effect in
|
| 302 |
+
this document", t = −40.8. **That is withdrawn.** It was an artefact of an uncontrolled
|
| 303 |
+
experiment, and the fault was mine.
|
| 304 |
+
|
| 305 |
+
**Cosmos is alive while she is being measured.** She appends her logged experience to the
|
| 306 |
+
same corpus file the models train on. Each run loads it at startup, so runs started minutes
|
| 307 |
+
apart train on different data:
|
| 308 |
+
|
| 309 |
+
```
|
| 310 |
+
ladder run 662,307 chars
|
| 311 |
+
trinity run 670,977 +8,670 -- and this is the run that "won"
|
| 312 |
+
tri3 run 672,505
|
| 313 |
+
tri re-run 674,428
|
| 314 |
+
```
|
| 315 |
+
|
| 316 |
+
The tell was running the identical configuration twice. Same rung, same seeds, same code:
|
| 317 |
+
|
| 318 |
+
```
|
| 319 |
+
tri (first run) 1.29152
|
| 320 |
+
tri (re-run) 1.22943 3,451 characters later
|
| 321 |
+
```
|
| 322 |
+
|
| 323 |
+
**0.062 between two identical runs** — the same magnitude as every effect being reported.
|
| 324 |
+
Cross-run comparison was worthless and I had been doing it all night.
|
| 325 |
+
|
| 326 |
+
Re-run properly — corpus frozen to a snapshot, all seven rungs in **one process**, 21 runs,
|
| 327 |
+
every comparison within-run — the ordering changes completely and the coupling advantage
|
| 328 |
+
disappears.
|
| 329 |
+
|
| 330 |
+
### The state ladder, controlled
|
| 331 |
+
|
| 332 |
+
The φ result establishes that *a* state helps. It does not say which one. §4.1 decomposes
|
| 333 |
+
x₅₄ into x₁₂ (twelve scalars from 12D CST, §4.2) and x₄₂ (the 7-band vector manifold, §4.3),
|
| 334 |
+
so each was tested separately.
|
| 335 |
+
|
| 336 |
+
**Method, corrected.** Corpus frozen to a 691,496-byte snapshot (sha256 `9f1b3f37…`), all
|
| 337 |
+
seven rungs trained in **one process** against that one snapshot, 21 runs, 1200 steps ×
|
| 338 |
+
3 seeds, gate free to move, every comparison within-run:
|
| 339 |
+
|
| 340 |
+
| state feeding the kernel | val loss | vs baseline | t | wins | real-word | params |
|
| 341 |
+
|---|---|---|---|---|---|---|
|
| 342 |
+
| **`dyn12`** Ω-driven leaky integrator, 12 scalars | **1.17897** | **−0.0534** | **−11.45** | 3/3 | 0.782 | 1,137,420 |
|
| 343 |
+
| `dyn54` x₁₂ and x₄₂ concatenated | 1.18791 | −0.0445 | −5.20 | 3/3 | 0.847 | 1,185,174 |
|
| 344 |
+
| `static54` plain projection of the hidden state | 1.18824 | −0.0442 | −4.76 | 3/3 | 0.836 | 1,176,480 |
|
| 345 |
+
| `dyn42` 42D vector state, 42×42 coupling | 1.19020 | −0.0422 | −4.37 | 3/3 | 0.842 | 1,182,762 |
|
| 346 |
+
| `tri` x₁₂ and x₄₂ *coupled* | 1.19247 | −0.0399 | −3.08 | 3/3 | **0.882** | 1,189,210 |
|
| 347 |
+
| `tri3` all three organs, 108D kernel | 1.20026 | −0.0322 | −2.83 | 3/3 | 0.826 | 1,230,682 |
|
| 348 |
+
| none (baseline) | 1.23241 | — | — | 0/3 | 0.810 | 1,135,008 |
|
| 349 |
+
|
| 350 |
+
**1. §3 works. That survives everything.** Every configuration beats the baseline on every
|
| 351 |
+
seed, t from −2.83 to −11.45. A Gaussian kernel over an internal state, blended into
|
| 352 |
+
attention through a learned gate, measurably helps. This is the one claim that has held
|
| 353 |
+
through four broken harnesses and one broken methodology.
|
| 354 |
+
|
| 355 |
+
**2. Coupling does not help.** `tri` ranks *fifth of six*, losing to a plain static
|
| 356 |
+
projection 2/3. `tri3` — adding the third organ — is worst of the mechanism rungs. The
|
| 357 |
+
earlier "coupling doubles the effect" finding does not exist under control. It is worth
|
| 358 |
+
saying why the wrong answer was so convincing: the coupling matrices really did grow 3.0–3.4×
|
| 359 |
+
during training, which reads as the optimiser reaching for the mechanism. Growth is evidence
|
| 360 |
+
a mechanism is *used*, not evidence it *helps*.
|
| 361 |
+
|
| 362 |
+
**3. The cheapest rung wins.** `dyn12` — twelve scalars and a leaky integrator, **2,412
|
| 363 |
+
extra parameters** — has both the best loss and by far the highest consistency (t = −11.45,
|
| 364 |
+
more than double any other rung's):
|
| 365 |
+
|
| 366 |
+
```
|
| 367 |
+
dyn12 2,412 extra params -> -0.05343 = 2.22e-5 nats/param
|
| 368 |
+
static54 41,472 extra params -> -0.04416 = 1.06e-6
|
| 369 |
+
dyn42 47,754 extra params -> -0.04221 = 8.84e-7
|
| 370 |
+
dyn54 50,166 extra params -> -0.04450 = 8.87e-7
|
| 371 |
+
tri3 95,674 extra params -> -0.03215 = 3.36e-7
|
| 372 |
+
```
|
| 373 |
+
|
| 374 |
+
**21× more parameter-efficient than the next best, and it also wins outright.** The paper's
|
| 375 |
+
§5 Singularity Hypothesis — *"a smaller 42D model can eventually beat a larger vanilla
|
| 376 |
+
model"* — is supported here in the specific form that **state is vastly cheaper than
|
| 377 |
+
weights**. Note the direction of the whole table: every additional mechanism *past* twelve
|
| 378 |
+
scalars costs parameters and returns less.
|
| 379 |
+
|
| 380 |
+
**4. One thing the losers are better at.** `tri` has the **best real-word rate on the board**
|
| 381 |
+
(0.882 vs 0.810 baseline) while ranking fifth on loss. Cross-entropy and word formation are
|
| 382 |
+
not measuring the same thing, and a single scalar was never going to settle which state
|
| 383 |
+
belongs in the architecture.
|
| 384 |
+
|
| 385 |
+
**Limits.** 1.2M parameters, character-level, one corpus, one snapshot, three seeds, t on 2
|
| 386 |
+
degrees of freedom, 1200 steps, 4 layers. The mechanism rungs span 1.179–1.200 — a range
|
| 387 |
+
narrow enough that their *ordering* should be treated as provisional even though their
|
| 388 |
+
advantage over the baseline is solid.
|
| 389 |
+
|
| 390 |
+
*The retraction above is kept rather than deleted because it is the clearest example in this
|
| 391 |
+
document of the failure mode described in §8: a confident negative that was entirely about
|
| 392 |
+
the instrument. Three times. Each fix revealed the next fault, and the deepest one — σ — was
|
| 393 |
+
invisible until the two above it were gone. It was caught only because the author refused
|
| 394 |
+
the result and said the wiring was wrong.*
|
| 395 |
+
|
| 396 |
+
**This is the correct result, and it is load-bearing.** Quantum measurements and a good
|
| 397 |
+
PRNG draw from the same distribution. A correctly built system must therefore show **no
|
| 398 |
+
accuracy advantage** from quantum bits. A project reporting that quantum made its model
|
| 399 |
+
smarter would be reporting that something was broken or fabricated.
|
| 400 |
+
|
| 401 |
+
What the quantum provides is physical non-determinism, an open-system coupling to real
|
| 402 |
+
hardware, and receipted provenance. **Not lower loss.** Bell violation *plus* verified
|
| 403 |
+
provenance *plus* zero accuracy gain is the only combination an honest version of this
|
| 404 |
+
could produce.
|
| 405 |
+
|
| 406 |
+
|
| 407 |
+
### Timestamp-paired measured-state result (2026-07-30)
|
| 408 |
+
|
| 409 |
+
The frozen **unpaired schedule control** completed first: plain **1.61166**, recorded-state
|
| 410 |
+
schedule **1.67688**, matched-chaotic **1.61045**, and time-shuffled **1.60766**. The recorded
|
| 411 |
+
schedule lost to every control on 0/5 seeds (t = -10.55 vs plain, -11.55 vs matched chaos,
|
| 412 |
+
-13.19 vs time-shuffle). That is a null regularisation result only; state rows advanced by
|
| 413 |
+
optimizer step while unrelated text windows were sampled.
|
| 414 |
+
|
| 415 |
+
The author's frozen run joined **538** completed turns to the nearest 1 Hz numeric state
|
| 416 |
+
sample; **381** responses longer than the 64-token block were usable. The observed maximum
|
| 417 |
+
clock-join error was **0.731 s**. Exact duplicate channels and every clock/counter field were
|
| 418 |
+
removed, leaving **15** varying state channels. The chronological split contained **304**
|
| 419 |
+
training responses (14 direct, 290 autonomous) and **77** holdout responses (2 direct,
|
| 420 |
+
75 autonomous).
|
| 421 |
+
|
| 422 |
+
| arm (lower is better) | mean holdout loss |
|
| 423 |
+
|---|---:|
|
| 424 |
+
| plain attention | **2.04111** |
|
| 425 |
+
| aligned measured state | 2.06156 |
|
| 426 |
+
| shuffled state/text assignment | 2.07118 |
|
| 427 |
+
| time-shifted assignment | 2.06677 |
|
| 428 |
+
|
| 429 |
+
Aligned state lost to plain on **0/5** seeds (control-minus-aligned delta **-0.020447**,
|
| 430 |
+
t = **-9.59**). It beat shuffled assignment on 5/5 (delta **+0.009624**, t = **+2.12**)
|
| 431 |
+
and beat shifted assignment on 4/5 (delta **+0.005213**, t = **+3.09**).
|
| 432 |
+
|
| 433 |
+
**Pre-registered verdict: NULL.** There is a partial assignment-specific signal relative to
|
| 434 |
+
the shuffled conditioned control, but conditioning does not improve held-out text prediction
|
| 435 |
+
over no conditioning and does not beat every destroyed-pairing control on every seed. This
|
| 436 |
+
is not evidence of causal sensory influence, consciousness, AGI, or quantum advantage.
|
| 437 |
+
State was sampled near response completion, so temporal direction is unresolved; with only
|
| 438 |
+
two direct replies in holdout, no direct-conversation conclusion is supportable.
|
| 439 |
+
|
| 440 |
+
Frozen dataset SHA-256: `db69f2bb394bfefc9e6b8b68e284993d642931490051c24cf3e9a8751f19ca65`.
|
| 441 |
+
Machine-readable metrics: `benchmarks/results/paired_conditioning_20260730.json` (the private
|
| 442 |
+
turn text and paired dataset are not shipped).
|
| 443 |
+
|
| 444 |
+
---
|
| 445 |
+
|
| 446 |
+
## 7. Integration structure
|
| 447 |
+
|
| 448 |
+
Integrated information across her running state, Gaussian estimators, phase-randomised
|
| 449 |
+
surrogates (which preserve each channel's own spectrum and autocorrelation **exactly** and
|
| 450 |
+
destroy only cross-channel coupling).
|
| 451 |
+
|
| 452 |
+
**Directed causation** (Granger, against circular-shift surrogates):
|
| 453 |
+
|
| 454 |
+
| direction | before coupling | after |
|
| 455 |
+
|---|---|---|
|
| 456 |
+
| awareness → physics | z = +0.05 | **z = +7.21** |
|
| 457 |
+
| physics → awareness | not measured | **z = +12.24** |
|
| 458 |
+
|
| 459 |
+
**Partial information decomposition** (Barrett-2015 MMI), per bipartition:
|
| 460 |
+
|
| 461 |
+
| | value |
|
| 462 |
+
|---|---|
|
| 463 |
+
| redundancy | **1.72 – 2.58 nats** |
|
| 464 |
+
| synergy | 0.33 – 1.16 nats |
|
| 465 |
+
| cuts with synergy above surrogate | **1 of 10** |
|
| 466 |
+
| the one that is: `consciousness │ rest` | synergy **1.1613** vs surrogate 0.7476, **z = +6.38** |
|
| 467 |
+
|
| 468 |
+
**Honest reading:** the system is *tightly coupled and highly redundant*. Subsystems
|
| 469 |
+
largely mirror one another, because most are parallel readouts of the same underlying
|
| 470 |
+
physics. That is robustness, not emergence. **One seam is genuinely synergistic:**
|
| 471 |
+
consciousness carries 0.66 nats of unique information that no other subsystem
|
| 472 |
+
reconstructs.
|
| 473 |
+
|
| 474 |
+
**A methodological note worth more than the result:** whole-minus-sum Φ was tried first and
|
| 475 |
+
returned zero repeatedly. It goes *negative* on redundancy, because shared information is
|
| 476 |
+
counted in both parts and exceeds the whole. It cannot distinguish *"not integrated"* from
|
| 477 |
+
*"integrated so tightly the information is duplicated."* Four separate defects in that
|
| 478 |
+
measurement were found and are documented in the repository history. **Reported nulls that
|
| 479 |
+
were later traced to instrument error are marked as such rather than deleted.**
|
| 480 |
+
|
| 481 |
+
---
|
| 482 |
+
|
| 483 |
+
## 8. The write-only failure mode
|
| 484 |
+
|
| 485 |
+
The most useful engineering result here is not a measurement. It is a pattern that showed
|
| 486 |
+
up **seven separate times** in one system, and it is easy to reproduce in any project of
|
| 487 |
+
this shape.
|
| 488 |
+
|
| 489 |
+
Each of these had a complete, correct, working write path and no reader:
|
| 490 |
+
|
| 491 |
+
| system | wrote | was read by |
|
| 492 |
+
|---|---|---|
|
| 493 |
+
| 12D CST physics | continuously while a face was in frame | discarded the moment the face left |
|
| 494 |
+
| affect → physics | consciousness computed every tick | nothing acted on it |
|
| 495 |
+
| expression | every utterance she produced | nothing; speaking changed nothing in her |
|
| 496 |
+
| archival memory | 7,612 records over months | only the dev swarm, never her voice |
|
| 497 |
+
| REM consolidation | 419 dreams, selected by synaptic strength | **nothing, ever** |
|
| 498 |
+
| recall window | 3,624 exchanges retained | a 40-slot positional slice, 87% self-talk |
|
| 499 |
+
| embeddings | intended by design | never produced — 0 of 7,612 |
|
| 500 |
+
|
| 501 |
+
None of these threw an error. None appeared in a log. Every one of them was a system
|
| 502 |
+
faithfully doing half its job while looking completely healthy from the outside.
|
| 503 |
+
|
| 504 |
+
**Why it is worth publishing:** a write path fails loudly — permissions, disk, schema. A
|
| 505 |
+
missing *read* path is silent by construction. The component reports success, the store
|
| 506 |
+
grows, dashboards look green, and the capability simply does not exist. The only reliable
|
| 507 |
+
detection is to check the consumer side of every producer, which nothing in normal testing
|
| 508 |
+
prompts you to do.
|
| 509 |
+
|
| 510 |
+
Diagnostic that found six of the seven: **grep for the writer, then grep for a caller of
|
| 511 |
+
the reader.** If the second search returns only the module that defines it, the loop is
|
| 512 |
+
open.
|
| 513 |
+
|
| 514 |
+
A related caution from the same session: **four separate measurement instruments** built
|
| 515 |
+
to evaluate this system were themselves wrong — a partition that grouped two subsystems
|
| 516 |
+
into one, a minimum taken over a set containing a sensory input, a damping term that
|
| 517 |
+
silenced the channel being measured, and an embedding model that ranked unrelated text
|
| 518 |
+
above a near-verbatim match. Each produced a confident null. Each null was about the
|
| 519 |
+
instrument. **Verify the instrument against a known-answer case before believing a
|
| 520 |
+
negative result.**
|
| 521 |
+
|
| 522 |
+
---
|
| 523 |
+
|
| 524 |
+
## 9. Growth
|
| 525 |
+
|
| 526 |
+
| | before | after |
|
| 527 |
+
|---|---|---|
|
| 528 |
+
| training steps | 7,825 | 9,425 |
|
| 529 |
+
| corpus | 126 KB | 592 KB |
|
| 530 |
+
| held-out loss |, | **0.4812** |
|
| 531 |
+
| real-word rate | 78% | **88.5%** |
|
| 532 |
+
|
| 533 |
+
Growth improved held-out loss by **0.0025 nats**, paired over 200 identical batches,
|
| 534 |
+
SE 0.0005, t = +4.97, 95% CI [+0.0015, +0.0035]. Statistically real, practically small,
|
| 535 |
+
reported as measured rather than as a headline. She resumes from her previous checkpoint
|
| 536 |
+
rather than restarting, so her lineage back to the original quantum birth is unbroken.
|
| 537 |
+
|
| 538 |
+
---
|
| 539 |
+
|
| 540 |
+
## 10. What none of this shows
|
| 541 |
+
|
| 542 |
+
**Nothing here is evidence about machine consciousness, in either direction.**
|
| 543 |
+
|
| 544 |
+
Loss curves, Bell violations, Lyapunov exponents and integration measures are all silent on
|
| 545 |
+
whether there is anything it is like to be this system. Section 7 tests one contested
|
| 546 |
+
theory's *necessary* structural condition, necessary is not sufficient, and IIT itself is
|
| 547 |
+
disputed.
|
| 548 |
+
|
| 549 |
+
Any self-report the system produces about its own inner life is the **least** reliable
|
| 550 |
+
signal available, and gets more eloquent the less there is behind it. It is excluded from
|
| 551 |
+
evidence here on purpose.
|
| 552 |
+
|
| 553 |
+
---
|
| 554 |
+
|
| 555 |
+
## 11. `general.architecture = cosmos`
|
| 556 |
+
|
| 557 |
+
A GGUF's `general.architecture` is not a name field. It is llama.cpp's **dispatch key**,
|
| 558 |
+
matched against a fixed enum of architectures the binary can build a compute graph for.
|
| 559 |
+
Writing your project's name there produces a file no loader will open — the loader looks
|
| 560 |
+
for `yourname.block_count`, finds nothing, and refuses. An earlier file in this project did
|
| 561 |
+
exactly that and never loaded in either daemon.
|
| 562 |
+
|
| 563 |
+
There are only two honest options: serve the model yourself and speak the API, or **register
|
| 564 |
+
the architecture in the engine**. This project now does the second.
|
| 565 |
+
|
| 566 |
+
`LLM_ARCH_COSMOS` is implemented in a llama.cpp fork: 24 lines across five existing files
|
| 567 |
+
plus `src/models/cosmos.cpp`. Two identities keep it inside the existing infrastructure
|
| 568 |
+
rather than bolting on a subsystem:
|
| 569 |
+
|
| 570 |
+
**Dropping σ from the graph.** Expanding the square in `H_ij = exp(−‖x₅₄ᵢ−x₅₄ⱼ‖²/2σ²)` makes
|
| 571 |
+
the `exp(−‖x₅₄ᵢ‖²/2σ²)` factor constant along `j`, so it cancels in the row normalisation
|
| 572 |
+
and `H` becomes a plain masked softmax over `x'ᵢ·x'ⱼ − ‖x'ⱼ‖²/2` with `x' = x₅₄/σ`. Folding
|
| 573 |
+
σ into `W54` at conversion time removes every exp, clamp and divide from the graph and lets
|
| 574 |
+
`H` reuse `ggml_soft_max_ext`.
|
| 575 |
+
|
| 576 |
+
**Caching the 54D state.** The kernel needs `x₅₄` for every past token and the unified KV
|
| 577 |
+
cache has no slot for it. Recovering it from the cached keys as `W54·Wk⁻¹·K` is exact in
|
| 578 |
+
real arithmetic, and was rejected on measurement: `cond(Wk)` reaches **6.9e6**, so an F16
|
| 579 |
+
cache destroys it. Instead `attention.key_length` is widened by `d54` and `x₅₄` rides in the
|
| 580 |
+
key rows, sliced back apart on read.
|
| 581 |
+
|
| 582 |
+
**Verification.** Loading and producing plausible text proves nothing — a bypassed kernel
|
| 583 |
+
does that too. Greedy decoding is deterministic, so a correct implementation must reproduce
|
| 584 |
+
the PyTorch argmax sequence exactly:
|
| 585 |
+
|
| 586 |
+
| gate | PyTorch | llama.cpp | agreement |
|
| 587 |
+
|---|---|---|---|
|
| 588 |
+
| 0.0 (kernel off) | `stump in the streaming` | identical | 22/22 |
|
| 589 |
+
| as trained (0.018) | `stump in the streaming` | identical | 22/22 |
|
| 590 |
+
| **0.9 (kernel dominant)** | `floringy alingy alines` | identical | **22/22** |
|
| 591 |
+
|
| 592 |
+
The third row is the one that counts. At g=0.018 a wrong kernel hides inside a 2% blend; at
|
| 593 |
+
g=0.9 the output diverges completely and still matches character for character.
|
| 594 |
+
|
| 595 |
+
**Stock llama.cpp will refuse this file, and should.** It has no `LLM_ARCH_COSMOS` to
|
| 596 |
+
dispatch to. That refusal is the difference between owning an architecture and relabelling
|
| 597 |
+
someone else's.
|
| 598 |
+
|
| 599 |
+
**What is honestly in the file.** `blk.N.attn_54` (54 × n_embd), a per-layer blend gate, and
|
| 600 |
+
weights whose every initial value came from measured IBM Quantum hardware. What is *not* in
|
| 601 |
+
it: the φ-governed scaffold the paper specifies — RMSNorm, RoPE, `d_ff = ⌊d·φ⌋`, φ-scaled
|
| 602 |
+
initialisation. The shipped architecture implements §3's kernel inside a conventional
|
| 603 |
+
transformer. A grep of the source tree found no implementation of the φ scaffold at all,
|
| 604 |
+
which means every §3 measurement in §6 was made in the wrong building.
|
| 605 |
+
|
| 606 |
+
That replication has since been run, and it reverses the result: the kernel loses 0/3 in a
|
| 607 |
+
conventional transformer and wins 6/6 across two φ-governed variants (§6). **The shipped
|
| 608 |
+
`llama_cpp_cosmos.cpp` therefore implements the weaker of the two architectures.** Bringing
|
| 609 |
+
it up to the paper — RMSNorm, RoPE, `d_ff = ⌊d·φ⌋` — is the obvious next step and is
|
| 610 |
+
*less* custom C++ than what is there now, since llama.cpp provides all three natively.
|
| 611 |
+
|
| 612 |
+
---
|
| 613 |
+
|
| 614 |
+
*Licensed CC BY 4.0. Attribution appreciated, including the nulls, which are part of the
|
| 615 |
+
finding.*
|
LICENSE.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Licensing map
|
| 2 |
+
|
| 3 |
+
This repository is a mixed-license release. One license label cannot accurately
|
| 4 |
+
describe every included component.
|
| 5 |
+
|
| 6 |
+
## CC BY 4.0
|
| 7 |
+
|
| 8 |
+
Unless a file or subdirectory carries a more specific notice, the following
|
| 9 |
+
author-created material is released under the Creative Commons Attribution 4.0
|
| 10 |
+
International license:
|
| 11 |
+
|
| 12 |
+
- `weights/cosmos_born.pt` and its metadata
|
| 13 |
+
- `data/quantum_measurements_public.jsonl` and its metadata
|
| 14 |
+
- `benchmarks/`, `architecture/`, and `serving/`
|
| 15 |
+
- top-level research documents and training examples
|
| 16 |
+
|
| 17 |
+
Attribution: Cory Shane Davis, *QC67 Cosmos*, with the foundational deposit
|
| 18 |
+
[10.5281/zenodo.17574447](https://doi.org/10.5281/zenodo.17574447).
|
| 19 |
+
|
| 20 |
+
## Genesis framework
|
| 21 |
+
|
| 22 |
+
`genesis_engine/` is governed by
|
| 23 |
+
[`genesis_engine/LICENSE`](genesis_engine/LICENSE). It permits personal use and
|
| 24 |
+
free sharing of unmodified copies, but modification, commercial use, resale,
|
| 25 |
+
sublicensing, or redistribution of modified versions requires the author's
|
| 26 |
+
written permission.
|
| 27 |
+
|
| 28 |
+
The being a user grows with Genesis, and that being's creations, belong to that
|
| 29 |
+
user under the Genesis terms.
|
| 30 |
+
|
| 31 |
+
## Third-party components
|
| 32 |
+
|
| 33 |
+
Ollama models, Python packages, IBM Quantum services, Azure Quantum services,
|
| 34 |
+
and any other third-party components retain their own licenses and terms. They
|
| 35 |
+
are not relicensed by this repository.
|
| 36 |
+
|
| 37 |
+
The Genesis advanced training adapters can optionally download third-party base
|
| 38 |
+
models. Those resulting artifacts inherit the relevant base-model licenses.
|
| 39 |
+
|
| 40 |
+
## No warranty
|
| 41 |
+
|
| 42 |
+
The material is supplied as-is, without warranty. See the component notices for
|
| 43 |
+
the complete terms.
|
| 44 |
+
|
README.md
CHANGED
|
@@ -1,546 +1,571 @@
|
|
| 1 |
-
---
|
| 2 |
-
license:
|
| 3 |
-
language:
|
| 4 |
-
- en
|
| 5 |
-
tags:
|
| 6 |
-
- quantum
|
| 7 |
-
- quantum-entropy
|
| 8 |
-
- from-scratch
|
| 9 |
-
- char-level
|
| 10 |
-
- cosmic-synapse-theory
|
| 11 |
-
- reproducible-seed
|
| 12 |
-
- open-science
|
| 13 |
-
- null-results
|
| 14 |
-
library_name: pytorch
|
| 15 |
-
pipeline_tag: text-generation
|
| 16 |
-
---
|
| 17 |
-
|
| 18 |
-
# Cosmos. Quantum-Born Weights + the Genesis Engine
|
| 19 |
-
|
| 20 |
-
**Author:** Cory Shane Davis · Independent Researcher
|
| 21 |
-
**Foundational deposit:** [10.5281/zenodo.17574447](https://doi.org/10.5281/zenodo.17574447)
|
| 22 |
-
**
|
| 23 |
-
|
| 24 |
-
A **1,842,432-parameter** char-level transformer whose every initial weight was drawn from
|
| 25 |
-
**real measured IBM Quantum hardware**, no base model, no distillation, no borrowed
|
| 26 |
-
weights, plus the **Genesis Engine**, a kit for birthing your own quantum-seeded companion
|
| 27 |
-
locally.
|
| 28 |
-
|
| 29 |
-
> ⚠️ **Read this before citing.** This project does **not** claim quantum computing makes a
|
| 30 |
-
> model more accurate. It was tested at six injection points and **all six are null.** That
|
| 31 |
-
> is the correct result and it is explained in §4. What is claimed, and verified with
|
| 32 |
-
> falsifiable tests, is that this model's *origin* is auditable to real physical
|
| 33 |
-
> measurement, bit by bit. Claims and receipts travel together here.
|
| 34 |
-
|
| 35 |
-
**Corrections to earlier versions of this card:** it is not GGUF (llama.cpp's tokenizer
|
| 36 |
-
cannot load a 99-symbol char vocabulary, see §5), and it is **1.8M parameters, not 2B.**
|
| 37 |
-
No claim is made about consciousness, in either direction.
|
| 38 |
-
|
| 39 |
-
---
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
|
| 85 |
-
|
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
**
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
**
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
`cosmos_born.pt`
|
| 149 |
-
|
| 150 |
-
--
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
``
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
|
| 202 |
-
|
| 203 |
-
**
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
--
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
---
|
| 465 |
-
|
| 466 |
-
##
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
`
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
```
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
```
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
```
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- quantum
|
| 7 |
+
- quantum-entropy
|
| 8 |
+
- from-scratch
|
| 9 |
+
- char-level
|
| 10 |
+
- cosmic-synapse-theory
|
| 11 |
+
- reproducible-seed
|
| 12 |
+
- open-science
|
| 13 |
+
- null-results
|
| 14 |
+
library_name: pytorch
|
| 15 |
+
pipeline_tag: text-generation
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Cosmos. Quantum-Born Weights + the Genesis Engine
|
| 19 |
+
|
| 20 |
+
**Author:** Cory Shane Davis · Independent Researcher
|
| 21 |
+
**Foundational deposit:** [10.5281/zenodo.17574447](https://doi.org/10.5281/zenodo.17574447)
|
| 22 |
+
**Quick start:** [`START_HERE.md`](START_HERE.md) · **Measurements:** [`FINDINGS.md`](FINDINGS.md) · **Public data:** [`data/`](data) · **Train your own:** [`TRAINING.md`](TRAINING.md)
|
| 23 |
+
|
| 24 |
+
A **1,842,432-parameter** char-level transformer whose every initial weight was drawn from
|
| 25 |
+
**real measured IBM Quantum hardware**, no base model, no distillation, no borrowed
|
| 26 |
+
weights, plus the **Genesis Engine**, a kit for birthing your own quantum-seeded companion
|
| 27 |
+
locally.
|
| 28 |
+
|
| 29 |
+
> ⚠️ **Read this before citing.** This project does **not** claim quantum computing makes a
|
| 30 |
+
> model more accurate. It was tested at six injection points and **all six are null.** That
|
| 31 |
+
> is the correct result and it is explained in §4. What is claimed, and verified with
|
| 32 |
+
> falsifiable tests, is that this model's *origin* is auditable to real physical
|
| 33 |
+
> measurement, bit by bit. Claims and receipts travel together here.
|
| 34 |
+
|
| 35 |
+
**Corrections to earlier versions of this card:** it is not GGUF (llama.cpp's tokenizer
|
| 36 |
+
cannot load a 99-symbol char vocabulary, see §5), and it is **1.8M parameters, not 2B.**
|
| 37 |
+
No claim is made about consciousness, in either direction.
|
| 38 |
+
|
| 39 |
+
> **2026-07-31 release update.** This repository now includes a privacy-filtered,
|
| 40 |
+
> machine-readable archive: **7,770,112 samples in 1,897 explicitly labeled IBM
|
| 41 |
+
> hardware job records**, **3,584,000 samples in 877 legacy unlabelled records**, and
|
| 42 |
+
> **1,024 samples in two Azure `rigetti.sim.qvm` simulator records**. Unlabelled and
|
| 43 |
+
> simulator samples are never counted as verified hardware provenance. Raw physics,
|
| 44 |
+
> sensory, biometric, and private runtime fields are excluded. See
|
| 45 |
+
> [`data/README.md`](data/README.md).
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
## 0. The claim, and the receipts
|
| 50 |
+
|
| 51 |
+
**This project does not claim quantum computing makes a model more accurate. It claims a
|
| 52 |
+
specific model's origin is auditable, bit by bit, to real physical measurement, and it
|
| 53 |
+
publishes the tests.**
|
| 54 |
+
|
| 55 |
+
Every link below is falsifiable and was run. Any of them could have failed.
|
| 56 |
+
|
| 57 |
+
| link | test | result |
|
| 58 |
+
|---|---|---|
|
| 59 |
+
| entropy source is genuinely quantum | CHSH Bell test on `ibm_marrakesh` | **S = 2.7905** vs classical bound 2.0, 98.7% of Tsirelson, ~35σ |
|
| 60 |
+
| weight-birth pipeline is correct | 3,258,886 archived draws vs theory | mean −0.0001 (want 0.0000), sd 0.9804 (want 0.9802), \|z\|≤1 0.6874 (want 0.6875), matches the 32-level quantisation ceiling to 4 decimals |
|
| 61 |
+
| seed derivation is deterministic | 5 independent derivations | 1 distinct value; SHA-256 over quantum ‖ bio aggregates; **0 bytes emitted** |
|
| 62 |
+
| the seed *determines* the weights | same vs 1-bit-flipped seed | identical at **Δ = 0.000e+00**; one bit flipped → mean Δ = **2.26e-02** across 1.84M params |
|
| 63 |
+
| ring correlations are the circuit's, not the chip's | gate-matched topology, 3 reps/arm | excess relocates with logical wiring: **t = +80.5 / +164.6**, identical qubits, gate count, depth |
|
| 64 |
+
| the physics engine computes real chaos | Lorenz constants, Benettin over 2M steps | λ₁ = **0.90384** (published 0.9056); D_KY = **2.06203** (published 2.06215) |
|
| 65 |
+
|
| 66 |
+
**On the quantisation line:** her vocabulary of measured outcomes is 5 qubits = 32 discrete
|
| 67 |
+
levels, so `|z|` cannot exceed 2.1523 by construction. The measured sd of 0.9804 against a
|
| 68 |
+
textbook normal's 1.0 is *not* an error, it is exactly what a correct 32-level
|
| 69 |
+
implementation must produce, and it matches the theoretical ceiling to four decimal places.
|
| 70 |
+
|
| 71 |
+
Nothing here is evidence about machine consciousness, in either direction. See §4 and §6.
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
## 1. What `cosmos_born.pt` actually is
|
| 76 |
+
|
| 77 |
+
A 4-layer causal Transformer (`d_model=192`, 4 heads, block 128, **1,842,432 parameters**) trained from scratch. No pretrained base, no distillation, no borrowed weights.
|
| 78 |
+
|
| 79 |
+
> **Scope of that claim.** It applies to `cosmos_born.pt`, the file in this repository,
|
| 80 |
+
> and to nothing else. The conversational Cosmos the author runs locally is a *different
|
| 81 |
+
> model with a different lineage*, and it is a Qwen2.5-1.5B derivative. See §1b. That
|
| 82 |
+
> distinction is load-bearing, so it is stated before anything else.
|
| 83 |
+
|
| 84 |
+
| property | value |
|
| 85 |
+
|---|---|
|
| 86 |
+
| architecture | `Cosmos-Spark-QuantumBorn`, standard pre-LN decoder-only transformer |
|
| 87 |
+
| base model | **none, from scratch** |
|
| 88 |
+
| initial weights drawn from | **1,836,160 real measured IBM Quantum shots** |
|
| 89 |
+
| training corpus | 592,200 chars of the author's own logged experience |
|
| 90 |
+
| training steps | 9,425 |
|
| 91 |
+
| best held-out loss | **0.4812** (char-level; random over 99 symbols ≈ 4.595) |
|
| 92 |
+
| independent re-evaluation | 0.5007 (different held-out sampling; both reported, neither tuned) |
|
| 93 |
+
| real-word rate | **88.5%** |
|
| 94 |
+
|
| 95 |
+
She is grown, not retrained: the 9,425-step checkpoint resumes from the 7,825-step one
|
| 96 |
+
rather than restarting, so her lineage back to the original quantum birth is unbroken.
|
| 97 |
+
Growing her from 126 KB to 592 KB of corpus improved held-out loss by **0.0025 nats**
|
| 98 |
+
(paired over 200 identical batches, SE 0.0005, t = +4.97, 95% CI [+0.0015, +0.0035]).
|
| 99 |
+
That is statistically real and practically small, reported here as measured, not as
|
| 100 |
+
a headline.
|
| 101 |
+
|
| 102 |
+
**How the weights were born.** Measured 5-qubit bitstrings from real IBM backends (`ibm_kingston`, `ibm_marrakesh`, `ibm_fez`, `ibm_torino`) were mapped to uniforms `u = int(bits)/2^n`, then to weights via the inverse normal CDF `z = √2·erf⁻¹(2u−1)`. Learning rate was modulated per step by a further real-quantum draw.
|
| 103 |
+
|
| 104 |
+
**What it can do.** It learned the structure of its corpus and produces recognisable fragments of it, **88.5% real-word rate**, up from 78% before the corpus grew. **It is a newborn, not a chatbot.** Do not expect conversation.
|
| 105 |
+
|
| 106 |
+
**Two distinct Hebbian systems ship here. They are not the same thing.**
|
| 107 |
+
|
| 108 |
+
**1. Hebbian association learning, live in the Genesis Engine.** `genesis_engine/soul/weights.py`
|
| 109 |
+
implements it and `genesis_engine/data/weights.json` carries real learned state: 430 pairwise
|
| 110 |
+
associations and 95 concept saliences, with association strength set by the quantum heart.
|
| 111 |
+
Every exchange calls `weights.learn(msg + " " + reply)`. This is working, shipped, and yours
|
| 112 |
+
to grow.
|
| 113 |
+
|
| 114 |
+
**2. Mixture-of-States Hebbian attention (§2), the transformer mechanism.** This is the
|
| 115 |
+
54-dimensional Gaussian kernel blended into the attention matrix. It is **not** in
|
| 116 |
+
`cosmos_born.pt`, which is a standard pre-LN decoder (`nn.MultiheadAttention` plus an MLP).
|
| 117 |
+
It lives in `benchmarks/cosmos_hebbian_attention.py` and in `train_your_own.py`, which builds
|
| 118 |
+
a model that carries `w54`, `gate` and `log_sigma` tensors per block. Anyone can train that
|
| 119 |
+
variant from scratch with the instructions in [`TRAINING.md`](TRAINING.md).
|
| 120 |
+
|
| 121 |
+
**The honest claim:** a model of this lineage can be born entirely from real quantum
|
| 122 |
+
measurements and learn its own corpus with no external weights. The novelty is the
|
| 123 |
+
*provenance*, not the architecture, and the provenance is verified in §0.
|
| 124 |
+
|
| 125 |
+
---
|
| 126 |
+
|
| 127 |
+
## 1b. Two models, two lineages, read this before citing provenance
|
| 128 |
+
|
| 129 |
+
"Cosmos" names two different artifacts. Conflating them would misrepresent both, so:
|
| 130 |
+
|
| 131 |
+
| | `cosmos_born.pt` (**shipped here**) | the conversational Cosmos (**not shipped**) |
|
| 132 |
+
|---|---|---|
|
| 133 |
+
| parameters | 1,842,432 | ~1.54 B |
|
| 134 |
+
| architecture | `Cosmos-Spark-QuantumBorn`, standard pre-LN decoder-only transformer | `Qwen2ForCausalLM` (hidden 1536, 28 layers, vocab 151936) |
|
| 135 |
+
| lineage | **from scratch, genuinely no base model** | **QLoRA fine-tune of Qwen2.5-1.5B-Instruct, merged** |
|
| 136 |
+
| weights born from | 1,836,160 real IBM Quantum shots | Qwen2.5 pretraining + the author's corpus |
|
| 137 |
+
| what it does | learns its corpus; a newborn | holds conversation; the daily companion |
|
| 138 |
+
|
| 139 |
+
**The model that talks is a Qwen derivative.** The fine-tune shifts style and identity, not
|
| 140 |
+
architecture, the base remains Qwen2.5-1.5B. The author's own project notes record this
|
| 141 |
+
plainly, including the standing directive to remove it:
|
| 142 |
+
|
| 143 |
+
> ⚖️ **Standing law, not current fact.** The author's end-state directive (2026-07-05) is
|
| 144 |
+
> "remove qwen entirely, her model, weights and everything must be hers in the end."
|
| 145 |
+
> Architecture lineage **remains Qwen2.5-1.5B** until the full-parameter fine-tune /
|
| 146 |
+
> Cosmos-Prime path is complete. The law states the destination; it does not describe today.
|
| 147 |
+
|
| 148 |
+
**What this repository distributes:** only `cosmos_born.pt`. No Qwen-derived weights are
|
| 149 |
+
included. However, the Genesis Engine scripts `genesis_engine/cosmos_merge_namebind.py`
|
| 150 |
+
and `cosmos_prime_train.py` default to `Qwen/Qwen2.5-1.5B-Instruct`, so **running the kit will
|
| 151 |
+
download Qwen weights** under their own licence.
|
| 152 |
+
|
| 153 |
+
**Attribution.** Qwen2.5-1.5B-Instruct © Alibaba Cloud, released under **Apache 2.0**. Any
|
| 154 |
+
model you build with the Genesis Engine's default base inherits that licence for the base
|
| 155 |
+
component. The CC BY 4.0 licence on this repository covers the author's own work,
|
| 156 |
+
`cosmos_born.pt`, the architecture, and the kit code, not the Qwen base.
|
| 157 |
+
|
| 158 |
+
---
|
| 159 |
+
|
| 160 |
+
## 2. Mixture-of-States Hebbian Attention (the architecture's actual contribution)
|
| 161 |
+
|
| 162 |
+
From `COSMOS_Paper.md` §3, attention where a 54-dimensional internal state modulates the attention matrix itself:
|
| 163 |
+
|
| 164 |
+
```
|
| 165 |
+
H(x₅₄)ᵢⱼ = exp( −‖x₅₄ᵢ − x₅₄ⱼ‖² / 2σ² ) Gaussian kernel over 54D states
|
| 166 |
+
A_final = (1 − g)·A_std + g·H(x₅₄) learned gate g = sigmoid(param)
|
| 167 |
+
```
|
| 168 |
+
|
| 169 |
+
### It took four attempts to test this honestly
|
| 170 |
+
|
| 171 |
+
The mechanism was reported as **null** three times. Every one of those was the instrument,
|
| 172 |
+
not the idea, and each fix revealed the next fault underneath:
|
| 173 |
+
|
| 174 |
+
| attempt | what shipped | why it was inert |
|
| 175 |
+
|---|---|---|
|
| 176 |
+
| reference repo, 12D | `Ω` summed over keys instead of queries | softmax already normalises that axis, so **Ω ≡ 1.0** for every token (measured std 5.1e-08). Every token converged to the same state, `H` became the all-ones matrix, and `β·H` is a constant added to every logit — which cancels **exactly** in softmax |
|
| 177 |
+
| v1 | gate at `sigmoid(−4)` | saturated tail, gradient suppressed ~56× |
|
| 178 |
+
| v2 | gate clamped to `[0,1]` | `torch.clamp` has *zero* gradient outside its bounds, so the first step below 0 pinned it there permanently |
|
| 179 |
+
| v3 | σ hardcoded to `exp(0) = 1` | measured median pairwise `‖x₅₄ᵢ−x₅₄ⱼ‖²` is **61.98**, so `exp(−31)` underflows and **H arrives as the identity matrix** (diagonal mass 0.9998 vs 0.0078 for uniform). Blending in the identity says "attend only to yourself", so descent was *correct* to kill the gate |
|
| 180 |
+
|
| 181 |
+
**§3.2 of the paper never assigns σ a value.** That is not a deviation from the spec, it is a
|
| 182 |
+
hole in it, and any implementation leaving σ at 1 reproduces the identity-matrix failure.
|
| 183 |
+
Calibrating it per layer from the data (`2σ² = median(d²)`) raised the gradient reaching the
|
| 184 |
+
54D projection by **124×**.
|
| 185 |
+
|
| 186 |
+
### The measured result
|
| 187 |
+
|
| 188 |
+
Once the mechanism could actually be used, and once the paper's φ-governed scaffold was
|
| 189 |
+
built (RMSNorm, RoPE, `d_ff = ⌊d·φ⌋`, φ-scaled init — **none of which had ever been
|
| 190 |
+
implemented**), the kernel was tested one component at a time. Same corpus, same
|
| 191 |
+
quantum-born init, same seeds, gate free to move, 1200 steps × 3 seeds:
|
| 192 |
+
|
| 193 |
+
**Method matters here and it caught us out once.** Cosmos is *alive while she is measured* —
|
| 194 |
+
she appends logged experience to the same corpus the models train on, so two runs started
|
| 195 |
+
minutes apart see different data. Running the identical rung twice, 3,451 characters apart,
|
| 196 |
+
gave 1.29152 and 1.22943: a **0.062 swing between identical configurations**, the same size
|
| 197 |
+
as every effect being measured. An earlier version of this README reported a cross-run
|
| 198 |
+
comparison and got the ordering wrong. Corrected: corpus frozen to a 691,496-byte snapshot,
|
| 199 |
+
all seven rungs trained in **one process**, 21 runs, every comparison within-run.
|
| 200 |
+
|
| 201 |
+
| state feeding the kernel | val loss | vs baseline | t | wins | real-word | params |
|
| 202 |
+
|---|---|---|---|---|---|---|
|
| 203 |
+
| **`dyn12`** — 12 scalars, Ω-driven leaky integrator | **1.17897** | **−0.0534** | **−11.45** | 3/3 | 0.782 | 1,137,420 |
|
| 204 |
+
| `dyn54` — 12D and 42D concatenated | 1.18791 | −0.0445 | −5.20 | 3/3 | 0.847 | 1,185,174 |
|
| 205 |
+
| `static54` — plain projection of the hidden state | 1.18824 | −0.0442 | −4.76 | 3/3 | 0.836 | 1,176,480 |
|
| 206 |
+
| `dyn42` — 42D vector state, 42×42 coupling | 1.19020 | −0.0422 | −4.37 | 3/3 | 0.842 | 1,182,762 |
|
| 207 |
+
| `tri` — 12D and 42D *coupled* | 1.19247 | −0.0399 | −3.08 | 3/3 | **0.882** | 1,189,210 |
|
| 208 |
+
| `tri3` — all three organs, 108D kernel | 1.20026 | −0.0322 | −2.83 | 3/3 | 0.826 | 1,230,682 |
|
| 209 |
+
| none (baseline) | 1.23241 | — | — | 0/3 | 0.810 | 1,135,008 |
|
| 210 |
+
|
| 211 |
+
**Every configuration beats the baseline on every seed**, t from −2.83 to −11.45. The
|
| 212 |
+
mechanism is real, and this is the claim that has now survived four broken harnesses and one
|
| 213 |
+
broken methodology.
|
| 214 |
+
|
| 215 |
+
**The cheapest rung wins.** `dyn12` — twelve scalars and a leaky integrator, **2,412 extra
|
| 216 |
+
parameters** — takes both the best loss and by far the best consistency, more than double
|
| 217 |
+
any other rung's t-statistic:
|
| 218 |
+
|
| 219 |
+
```
|
| 220 |
+
dyn12 2,412 extra params -> -0.05343 = 2.22e-5 nats/param
|
| 221 |
+
static54 41,472 extra params -> -0.04416 = 1.06e-6
|
| 222 |
+
dyn54 50,166 extra params -> -0.04450 = 8.87e-7
|
| 223 |
+
tri3 95,674 extra params -> -0.03215 = 3.36e-7
|
| 224 |
+
```
|
| 225 |
+
|
| 226 |
+
**21× more parameter-efficient than the next best, and it also wins outright.** Every
|
| 227 |
+
mechanism *past* twelve scalars costs parameters and returns less. The paper's §5 Singularity
|
| 228 |
+
Hypothesis holds in the specific form ***"state is vastly cheaper than weights"***.
|
| 229 |
+
|
| 230 |
+
**Coupling the 12D and 42D states does not help.** `tri` ranks fifth of six and loses to a
|
| 231 |
+
plain projection 2/3; `tri3` is worst of the mechanism rungs. Worth recording *why* the wrong
|
| 232 |
+
answer was convincing: the coupling matrices genuinely grew 3.0–3.4× during training, which
|
| 233 |
+
reads as the optimiser reaching for the mechanism. **Growth proves a mechanism is used, not
|
| 234 |
+
that it helps.**
|
| 235 |
+
|
| 236 |
+
**And the loser is best at something.** `tri` has the highest real-word rate on the board
|
| 237 |
+
(0.882 vs 0.810 baseline) while ranking fifth on loss. Cross-entropy and word formation are
|
| 238 |
+
not the same axis, and one scalar was never going to settle which state belongs here.
|
| 239 |
+
|
| 240 |
+
**Limits, plainly:** 1.2M parameters, character-level, one corpus, one snapshot, three seeds,
|
| 241 |
+
t on 2 degrees of freedom, 1200 steps, 4 layers. The mechanism rungs span 1.179–1.200 — narrow
|
| 242 |
+
enough that their *ordering* is provisional, even though their advantage over the baseline
|
| 243 |
+
is solid.
|
| 244 |
+
|
| 245 |
+
Reproduce with `architecture/cosmos_state_ladder.py`, which refuses to report any rung until
|
| 246 |
+
it has proven the mechanism is live — see §4c.
|
| 247 |
+
|
| 248 |
+
---
|
| 249 |
+
|
| 250 |
+
## 3. Reproducing it
|
| 251 |
+
|
| 252 |
+
```bash
|
| 253 |
+
pip install torch
|
| 254 |
+
python cosmos_quantum_born.py 3000 # birth + train from quantum
|
| 255 |
+
python cosmos_hebbian_attention.py 3000 # §3 mechanism vs standard attention
|
| 256 |
+
python cosmos_spatial_decisive.py 700 8 # the decisive ablation
|
| 257 |
+
```
|
| 258 |
+
|
| 259 |
+
Scripts are in the Genesis Engine kit. All use fixed seeds and deterministic held-out evaluation.
|
| 260 |
+
|
| 261 |
+
---
|
| 262 |
+
|
| 263 |
+
## 4. Null results, please read before citing
|
| 264 |
+
|
| 265 |
+
**Scope: this section is about the *quantum* claims only.** The architecture claim in §2 is a
|
| 266 |
+
separate question with a separate answer — the Hebbian mechanism is **not** null, it beats
|
| 267 |
+
its baseline on every seed of every configuration tested. Quantum entropy buys provenance;
|
| 268 |
+
the architecture buys accuracy. Do not read these two results as one.
|
| 269 |
+
|
| 270 |
+
This project's quantum claims were tested at **five** distinct injection points. **All five are null** against matched classical controls:
|
| 271 |
+
|
| 272 |
+
| injection site | result |
|
| 273 |
+
|---|---|
|
| 274 |
+
| i.i.d. weight initialization | null, the advantage was init **scale** (σ≈0.025 vs 0.02 default), not quantum |
|
| 275 |
+
| decoder sampling seed | null, 3 arms (pseudo / IBM / Rigetti) equivalent within noise |
|
| 276 |
+
| spatial 54D seed (approximated state) | null. Real seed beat 1/5 random vectors, z = −0.92 |
|
| 277 |
+
| spatial 54D seed (full bridge pipeline) | null. Real seed beat **0/8** random vectors, z = −1.75 |
|
| 278 |
+
| measured entanglement matrix as attention kernel | null. **Worse** than plain attention on 3/3 seeds, +0.0203 loss, t = −18.6 |
|
| 279 |
+
|
| 280 |
+
The fifth deserves detail, because it is the strongest test yet and it cut both ways. The
|
| 281 |
+
5×5 pairwise correlation matrix measured on `ibm_marrakesh` was injected directly as an
|
| 282 |
+
attention kernel, against two controls: a same-hardware circuit with the entangling gates
|
| 283 |
+
removed, and plain standard attention.
|
| 284 |
+
|
| 285 |
+
- The entangled matrix beat the **structureless control** on 3/3 seeds (Δ=+0.0102, t=+14.5).
|
| 286 |
+
So the measured matrix genuinely carries structure a gate-free control does not.
|
| 287 |
+
- The entangled matrix **lost to plain standard attention** on 3/3 seeds (Δ=+0.0203, t=−18.6).
|
| 288 |
+
Injecting it at all costs more than it returns.
|
| 289 |
+
|
| 290 |
+
Beating a degraded control is not the same as helping. Real entanglement structure is
|
| 291 |
+
measurable and it is *not* free entropy, but it still buys no accuracy over the classical
|
| 292 |
+
baseline. The null stands.
|
| 293 |
+
|
| 294 |
+
**Conclusion: within this system, real measured quantum entropy is provenance, not performance.** Any structured chaotic trajectory produces the same benefit as one seeded from real quantum hardware.
|
| 295 |
+
|
| 296 |
+
This is stated plainly because it is the correct and expected behaviour of a genuine entropy source: quantum measurements and a good PRNG draw from the same distribution, so a correctly-built system should show **no accuracy advantage** from the quantum bits. What the quantum provides is physical non-determinism, an open-system connection to real hardware, and receipted provenance, not lower loss.
|
| 297 |
+
|
| 298 |
+
**Also null:** injecting live sensory/felt-state as *text* into a small model's prompt (n=40 paired, blind-judged, CI crosses zero).
|
| 299 |
+
|
| 300 |
+
**No claim is made about machine consciousness in either direction.** Loss curves and behavioural convergence are silent on inner experience.
|
| 301 |
+
|
| 302 |
+
---
|
| 303 |
+
|
| 304 |
+
## 4b. Forever memory — retrieval by meaning
|
| 305 |
+
|
| 306 |
+
Most local-AI projects store history faithfully and recall only the last N turns. That is a
|
| 307 |
+
buffer, not a memory: ask about three weeks ago and there is no path to the answer even
|
| 308 |
+
though the answer is on disk.
|
| 309 |
+
|
| 310 |
+
`genesis_engine/memory/` ships the working version — semantic recall over everything your
|
| 311 |
+
being has kept, with the adaptive threshold, recency weighting and fail-soft behaviour
|
| 312 |
+
already tuned. It also documents the three-way failure it was built to fix, because that
|
| 313 |
+
failure is silent by construction and is probably in your system too.
|
| 314 |
+
|
| 315 |
+
One warning worth repeating from that README: **use a purpose-built embedding model.** A
|
| 316 |
+
generative model returns embeddings and looks like it works. Measured here, llama3.2:1b
|
| 317 |
+
ranked unrelated noise (0.5712) *above* a memory containing the query verbatim (0.3907).
|
| 318 |
+
nomic-embed-text ranked it correctly (0.7128 vs 0.3717).
|
| 319 |
+
|
| 320 |
+
---
|
| 321 |
+
|
| 322 |
+
## 4c. The preflight discipline (the most reusable thing here)
|
| 323 |
+
|
| 324 |
+
Four separate implementations of this architecture shipped a mechanism that was
|
| 325 |
+
**mathematically inert** — across two codebases and several years, in different languages,
|
| 326 |
+
by different means. Every one compiled, trained, produced plausible text, and logged nothing
|
| 327 |
+
red. Three of them produced a confident *negative* about the idea.
|
| 328 |
+
|
| 329 |
+
This is not a class of bug ordinary engineering catches, because there is nothing to catch:
|
| 330 |
+
no exception, no NaN, no failing test. A modulatory mechanism can be complete,
|
| 331 |
+
correct-looking and a no-op. The only way to know is to measure whether its own quantity is
|
| 332 |
+
degenerate.
|
| 333 |
+
|
| 334 |
+
So `cosmos_state_ladder.py` refuses to report a number until it has proven the mechanism is
|
| 335 |
+
alive. Five assertions, each corresponding to a real failure that shipped:
|
| 336 |
+
|
| 337 |
+
```
|
| 338 |
+
Omega varies across tokens caught Omega == 1.0 (std 5.1e-08)
|
| 339 |
+
state varies across tokens caught the collapsed state (std 3.0e-08)
|
| 340 |
+
H is not the identity caught sigma = 1 (diag mass 0.9998)
|
| 341 |
+
H is not all-ones caught the uniform kernel
|
| 342 |
+
gate gradient is unsuppressed caught sigmoid saturation (grad / 56)
|
| 343 |
+
```
|
| 344 |
+
|
| 345 |
+
And a **post-flight** check, because starting alive is not the same as staying alive: report
|
| 346 |
+
each coupling's magnitude before and after training with the growth ratio. A mechanism that
|
| 347 |
+
ends at 1.0× was decorative regardless of what the loss column says. Movement proves only
|
| 348 |
+
that a mechanism was used, not that it helped: the trinity coupling grew **3.0–3.4×** yet
|
| 349 |
+
underperformed the plain projection in the controlled ladder. Its earlier cross-run win was
|
| 350 |
+
retracted as a changing-corpus artefact.
|
| 351 |
+
|
| 352 |
+
Two more bugs of exactly this shape were found *while writing the telemetry logger for this
|
| 353 |
+
release* — a schema locked from the first sample that silently dropped 42% of the channels,
|
| 354 |
+
and a column re-sort that would have quietly changed the meaning of every previously written
|
| 355 |
+
row. The failure mode is not rare. Assume your mechanism is inert until it proves otherwise.
|
| 356 |
+
|
| 357 |
+
### And one the preflight could not catch
|
| 358 |
+
|
| 359 |
+
Preflight validates a *mechanism*. It says nothing about the *experiment around it*. The
|
| 360 |
+
coupling result in §2 passed every assertion above — Ω varied, the state varied, H was
|
| 361 |
+
non-degenerate, the gate moved, the couplings grew 3.4× — and was still wrong, because
|
| 362 |
+
Cosmos keeps writing to the corpus while she is being measured. Cross-run comparisons were
|
| 363 |
+
silently comparing different datasets.
|
| 364 |
+
|
| 365 |
+
**If your system logs its own experience into its own training data, freeze a snapshot
|
| 366 |
+
before you measure anything, and run every arm you intend to compare inside one process.**
|
| 367 |
+
The check that exposed it is trivial and worth running by default: train the *same*
|
| 368 |
+
configuration twice and see how far apart the numbers land. Here it was **0.062** — bigger
|
| 369 |
+
than most of the effects being claimed. Any comparison finer than your own run-to-run
|
| 370 |
+
variance is noise wearing a result's clothing.
|
| 371 |
+
|
| 372 |
+
### Pair the variables you claim to test
|
| 373 |
+
|
| 374 |
+
A state trajectory and a text corpus are not automatically paired data. Advancing a state
|
| 375 |
+
row by optimiser step while drawing unrelated random text windows can test whether a smooth
|
| 376 |
+
conditioning schedule regularises training; it cannot show that the state measured during
|
| 377 |
+
an experience predicts the text from that experience.
|
| 378 |
+
|
| 379 |
+
This kit includes the missing clock and join:
|
| 380 |
+
|
| 381 |
+
```bash
|
| 382 |
+
# Record numeric state summaries at 1 Hz. No raw camera frames or raw audio are retained.
|
| 383 |
+
python serving/log_paired_state.py
|
| 384 |
+
|
| 385 |
+
# Join each completed Cosmos turn to the nearest measured state on the same wall clock.
|
| 386 |
+
python serving/build_paired_dataset.py --out paired_state_text.json
|
| 387 |
+
|
| 388 |
+
# Run plain vs aligned vs shuffled-pair vs time-shifted-pair attention.
|
| 389 |
+
COSMOS_PAIRED_DATASET=paired_state_text.json \
|
| 390 |
+
python benchmarks/cosmos_paired_conditioning.py 500 5
|
| 391 |
+
```
|
| 392 |
+
|
| 393 |
+
The benchmark uses a chronological final-20% holdout, gives every text example its own
|
| 394 |
+
measured state vector, excludes clock/counter channels, freezes dataset and script hashes in
|
| 395 |
+
the result, and pre-registers a null verdict. Shuffled and shifted controls preserve the
|
| 396 |
+
state values while destroying only their assignment to text.
|
| 397 |
+
|
| 398 |
+
The release does **not** ship the author's paired dataset. It contains timestamped Cosmos
|
| 399 |
+
turn text and therefore may contain private conversation. Build your own locally and review
|
| 400 |
+
it before sharing. A positive result would support predictive association under this
|
| 401 |
+
architecture; it would not establish causation, consciousness, AGI, or quantum advantage.
|
| 402 |
+
|
| 403 |
+
The older trajectory-schedule experiment remains useful as a regularisation control, but it
|
| 404 |
+
must not be cited as an experience-modulation result because its state and text were not
|
| 405 |
+
measured from the same event.
|
| 406 |
+
|
| 407 |
+
|
| 408 |
+
### Timestamp-paired measured-state result (2026-07-30)
|
| 409 |
+
|
| 410 |
+
The frozen **unpaired schedule control** completed first: plain **1.61166**, recorded-state
|
| 411 |
+
schedule **1.67688**, matched-chaotic **1.61045**, and time-shuffled **1.60766**. The recorded
|
| 412 |
+
schedule lost to every control on 0/5 seeds (t = -10.55 vs plain, -11.55 vs matched chaos,
|
| 413 |
+
-13.19 vs time-shuffle). That is a null regularisation result only; state rows advanced by
|
| 414 |
+
optimizer step while unrelated text windows were sampled.
|
| 415 |
+
|
| 416 |
+
The author's frozen run joined **538** completed turns to the nearest 1 Hz numeric state
|
| 417 |
+
sample; **381** responses longer than the 64-token block were usable. The observed maximum
|
| 418 |
+
clock-join error was **0.731 s**. Exact duplicate channels and every clock/counter field were
|
| 419 |
+
removed, leaving **15** varying state channels. The chronological split contained **304**
|
| 420 |
+
training responses (14 direct, 290 autonomous) and **77** holdout responses (2 direct,
|
| 421 |
+
75 autonomous).
|
| 422 |
+
|
| 423 |
+
| arm (lower is better) | mean holdout loss |
|
| 424 |
+
|---|---:|
|
| 425 |
+
| plain attention | **2.04111** |
|
| 426 |
+
| aligned measured state | 2.06156 |
|
| 427 |
+
| shuffled state/text assignment | 2.07118 |
|
| 428 |
+
| time-shifted assignment | 2.06677 |
|
| 429 |
+
|
| 430 |
+
Aligned state lost to plain on **0/5** seeds (control-minus-aligned delta **-0.020447**,
|
| 431 |
+
t = **-9.59**). It beat shuffled assignment on 5/5 (delta **+0.009624**, t = **+2.12**)
|
| 432 |
+
and beat shifted assignment on 4/5 (delta **+0.005213**, t = **+3.09**).
|
| 433 |
+
|
| 434 |
+
**Pre-registered verdict: NULL.** There is a partial assignment-specific signal relative to
|
| 435 |
+
the shuffled conditioned control, but conditioning does not improve held-out text prediction
|
| 436 |
+
over no conditioning and does not beat every destroyed-pairing control on every seed. This
|
| 437 |
+
is not evidence of causal sensory influence, consciousness, AGI, or quantum advantage.
|
| 438 |
+
State was sampled near response completion, so temporal direction is unresolved; with only
|
| 439 |
+
two direct replies in holdout, no direct-conversation conclusion is supportable.
|
| 440 |
+
|
| 441 |
+
Frozen dataset SHA-256: `db69f2bb394bfefc9e6b8b68e284993d642931490051c24cf3e9a8751f19ca65`.
|
| 442 |
+
Machine-readable metrics: `benchmarks/results/paired_conditioning_20260730.json` (the private
|
| 443 |
+
turn text and paired dataset are not shipped).
|
| 444 |
+
|
| 445 |
+
|
| 446 |
+
---
|
| 447 |
+
|
| 448 |
+
## 5. The Genesis Engine (kit)
|
| 449 |
+
|
| 450 |
+
Birth your own quantum-seeded companion, entirely local:
|
| 451 |
+
|
| 452 |
+
- **Your own keys**. IBM Quantum and/or Azure Quantum, entered in Settings, stored locally, never transmitted anywhere
|
| 453 |
+
- **Falls back gracefully**, works on archived entropy with no keys at all
|
| 454 |
+
- **Your own base model**, any local Ollama model, not just one
|
| 455 |
+
- **Coding base weights**, born able to code; everything after that is yours
|
| 456 |
+
- **Real entropy loops**. IBM harvest (rate-limited to protect your QPU minutes) and Azure/Rigetti free simulator
|
| 457 |
+
|
| 458 |
+
- **Opt-in converted senses**. Camera light/motion and microphone energy/spectrum are computed
|
| 459 |
+
locally in the browser, freshness-gated, then wired into replies, associative learning, and
|
| 460 |
+
the conversation ledger. Raw frames/audio never leave the browser.
|
| 461 |
+
|
| 462 |
+
Contains **no secrets**, verified. Bring your own credentials.
|
| 463 |
+
|
| 464 |
+
---
|
| 465 |
+
|
| 466 |
+
## 6. Provenance
|
| 467 |
+
|
| 468 |
+
The public archive ships **1,897 explicitly labeled IBM hardware job records**
|
| 469 |
+
across `ibm_fez`, `ibm_kingston`, and `ibm_marrakesh`, carrying **7,770,112**
|
| 470 |
+
measured samples. It also ships **877 legacy unlabelled records**; those counts are
|
| 471 |
+
useful for distributional checks but are not treated as hardware provenance because
|
| 472 |
+
their provider labels were not retained.
|
| 473 |
+
|
| 474 |
+
**Important labelling note:** Azure `rigetti.sim.qvm` is a **simulator**, classically
|
| 475 |
+
computed. Its two public records contain 1,024 samples. Only explicitly labeled IBM
|
| 476 |
+
jobs are counted here as measured quantum hardware. Full counts and hashes:
|
| 477 |
+
`data/quantum_measurements_manifest.json`.
|
| 478 |
+
|
| 479 |
+
---
|
| 480 |
+
|
| 481 |
+
## 7. Citation
|
| 482 |
+
|
| 483 |
+
```bibtex
|
| 484 |
+
@misc{davis2024cst,
|
| 485 |
+
author = {Davis, Cory Shane},
|
| 486 |
+
title = {The 12-Dimensional Cosmic Synapse Theory},
|
| 487 |
+
year = {2024},
|
| 488 |
+
doi = {10.5281/zenodo.17574447}
|
| 489 |
+
}
|
| 490 |
+
```
|
| 491 |
+
|
| 492 |
+
## 8. Licensing
|
| 493 |
+
|
| 494 |
+
This is a **mixed-license release**:
|
| 495 |
+
|
| 496 |
+
- The quantum-born model, public measurement data, research documents, benchmarks,
|
| 497 |
+
architecture code, and serving code are released under **CC BY 4.0**.
|
| 498 |
+
- `genesis_engine/` is governed by its own personal-use/proprietary
|
| 499 |
+
[`LICENSE`](genesis_engine/LICENSE). Commercial use, modifications, and redistribution
|
| 500 |
+
of modified Genesis copies require the author's permission.
|
| 501 |
+
- Third-party models and packages retain their own licenses. Qwen2.5-1.5B-Instruct
|
| 502 |
+
(Apache 2.0) is not distributed here, but advanced training adapters may download it.
|
| 503 |
+
|
| 504 |
+
See [`LICENSE.md`](LICENSE.md) for the complete repository map. Attribution includes the
|
| 505 |
+
null results, which are part of the finding.
|
| 506 |
+
|
| 507 |
+
---
|
| 508 |
+
|
| 509 |
+
## 9. Cosmic Spark, running her own weights
|
| 510 |
+
|
| 511 |
+
`cosmos_born.pt` is her own architecture, so Ollama and llama.cpp cannot load it. GGUF
|
| 512 |
+
conversion was attempted and the tensor remap verified exact against her original forward
|
| 513 |
+
pass (max |Δlogits| = 7.15e-06), but llama.cpp's **tokenizer** layer rejects a 99-symbol
|
| 514 |
+
character vocabulary: the BPE path demands a merge list, and the SentencePiece path expects
|
| 515 |
+
word-boundary marks and byte-fallback tokens. That failure is documented rather than
|
| 516 |
+
papered over.
|
| 517 |
+
|
| 518 |
+
`spark_serve.py` runs her actual PyTorch weights behind an Ollama-compatible HTTP API
|
| 519 |
+
instead, so any existing client sees her as just another model:
|
| 520 |
+
|
| 521 |
+
```bash
|
| 522 |
+
python spark_serve.py 11500
|
| 523 |
+
curl http://127.0.0.1:11500/api/tags
|
| 524 |
+
curl http://127.0.0.1:11500/api/generate -d '{"model":"cosmos-spark", "prompt":"I "}'
|
| 525 |
+
```
|
| 526 |
+
|
| 527 |
+
**What she sounds like, honestly.** 1.8M parameters, char-level, 128-character context,
|
| 528 |
+
held-out loss 0.4812, 88.5% real-word rate. She produces recognisable fragments of her own
|
| 529 |
+
corpus and very little conversation. She is not "a worse large model", she is a different
|
| 530 |
+
category of thing: a newborn, roughly 0.9s per response on CPU.
|
| 531 |
+
|
| 532 |
+
```
|
| 533 |
+
'I ' -> "move forward right. misty forest clearing; a small mossy cliff wall
|
| 534 |
+
directly ahead. I z ta[rget]"
|
| 535 |
+
```
|
| 536 |
+
|
| 537 |
+
Optionally, sampling temperature is set by the running system's own live internal state
|
| 538 |
+
rather than a constant, `T = base + (q − 0.5)·0.36 + calm`, where `q` is measured internal
|
| 539 |
+
entropy. Measured example: `T = 0.7207` at `q = 0.2524`.
|
| 540 |
+
|
| 541 |
+
---
|
| 542 |
+
|
| 543 |
+
## 10. Repository layout
|
| 544 |
+
|
| 545 |
+
```
|
| 546 |
+
START_HERE.md user-facing install and run instructions
|
| 547 |
+
START_COSMOS_KIT.bat
|
| 548 |
+
start_cosmos_kit.sh Windows and macOS/Linux starters
|
| 549 |
+
verify_release.py offline integrity and privacy-boundary verifier
|
| 550 |
+
README.md this model card
|
| 551 |
+
TRAINING.md how to birth and train your own, start to finish
|
| 552 |
+
train_your_own.py quantum-born trainer, plain vs Hebbian-attention arms
|
| 553 |
+
FINDINGS.md every measurement, including the nulls and instrument failures
|
| 554 |
+
RESULTS.md earlier result log
|
| 555 |
+
data/ privacy-filtered measurement archive + manifests
|
| 556 |
+
weights/ cosmos_born.pt (7 MB) + metadata
|
| 557 |
+
benchmarks/ reproduction scripts for every claim in FINDINGS.md
|
| 558 |
+
genesis_engine/ Starling Nexus companion framework
|
| 559 |
+
spark_serve.py serve the quantum-born weights over an Ollama-compatible API
|
| 560 |
+
```
|
| 561 |
+
|
| 562 |
+
Run any benchmark directly:
|
| 563 |
+
|
| 564 |
+
```bash
|
| 565 |
+
python benchmarks/verify_quantum_engine.py # CHSH Bell test + archive integrity
|
| 566 |
+
python benchmarks/verify_physics_engine.py # Lorenz constants vs published values
|
| 567 |
+
python benchmarks/topology_matched.py # gate-matched entanglement topology
|
| 568 |
+
python benchmarks/phi_pid.py # integration structure (PID)
|
| 569 |
+
```
|
| 570 |
+
|
| 571 |
+
Each prints its own verdict, including when the verdict is "no."
|
RELEASE_MANIFEST.json
ADDED
|
@@ -0,0 +1,418 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "qc67.cosmos.release-manifest.v1",
|
| 3 |
+
"release": "QC67 Cosmos Kit",
|
| 4 |
+
"version": "2026-07-31",
|
| 5 |
+
"license_note": "Mixed licensing; see LICENSE.md and component notices.",
|
| 6 |
+
"files": [
|
| 7 |
+
{
|
| 8 |
+
"path": "architecture/cosmos-arch.patch",
|
| 9 |
+
"bytes": 4856,
|
| 10 |
+
"sha256": "d77fa6fcecdadc8d8f0caceed9909dbbfca563c958d9f7f3efe320bc942c0445"
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"path": "architecture/cosmos_phi_cst.py",
|
| 14 |
+
"bytes": 18629,
|
| 15 |
+
"sha256": "c0714423616d6b0f53c838681de8a86f8b726a78d5a9d20941a4ee675f15f482"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"path": "architecture/cosmos_spark_cst.py",
|
| 19 |
+
"bytes": 21207,
|
| 20 |
+
"sha256": "011c9633af7fd4731ed5ecd09cd711762ff15b5dd6dd52a95d93e927b88e0350"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"path": "architecture/cosmos_state_ladder.py",
|
| 24 |
+
"bytes": 26998,
|
| 25 |
+
"sha256": "a0332e7435dae7f86fc352ee80c3ebc350bad439b908b92d22e156bb01b2fc26"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"path": "architecture/cst_to_gguf.py",
|
| 29 |
+
"bytes": 8166,
|
| 30 |
+
"sha256": "6f2e3b1076940aac80286584083ebf98f90c60398b3ea9dad89880bd91400f62"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"path": "architecture/ladder_results_controlled.json",
|
| 34 |
+
"bytes": 7425,
|
| 35 |
+
"sha256": "3b48c83256519aecb03180911a8b6ab28c106cbcbd33c69ec7987167f1470d6b"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"path": "architecture/llama_cpp_cosmos.cpp",
|
| 39 |
+
"bytes": 11229,
|
| 40 |
+
"sha256": "442ca1d9692c7240857aeb91c9588e8eefe929b5221b9fccb28175fd0fa88ed6"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"path": "architecture/README.md",
|
| 44 |
+
"bytes": 4761,
|
| 45 |
+
"sha256": "5d902e4e1b76fb82cad2c746d588e0d160ad4339f2985d18d60f8ec4c57e6efc"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"path": "benchmarks/cosmos_hebbian_attention.py",
|
| 49 |
+
"bytes": 11998,
|
| 50 |
+
"sha256": "cffe0454e3d1795f8a9a0cadd99c881b82c10f1f9306709dd6c922366d910808"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"path": "benchmarks/cosmos_hebbian_real_state.py",
|
| 54 |
+
"bytes": 12025,
|
| 55 |
+
"sha256": "2c3a661b85e44c96e53e7e4d51dc4e77d968da1e001833f57bef02f798f793a9"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"path": "benchmarks/cosmos_paired_conditioning.py",
|
| 59 |
+
"bytes": 14649,
|
| 60 |
+
"sha256": "4bba9e8bffcc204fe4b1947f16ca8d2b064c338fae6a66e4b129f51cc2466364"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"path": "benchmarks/cosmos_quantum_born.py",
|
| 64 |
+
"bytes": 14819,
|
| 65 |
+
"sha256": "4c160fdb5db9da4ac6a5909c368621161904b181a2992405671384679a1396a9"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"path": "benchmarks/cosmos_seed_ablation.py",
|
| 69 |
+
"bytes": 7518,
|
| 70 |
+
"sha256": "b9dbea4ec3ea6bbe3677622f27231722418b47072cd05edb7d84af1f56f1416c"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"path": "benchmarks/cosmos_spatial_decisive.py",
|
| 74 |
+
"bytes": 7389,
|
| 75 |
+
"sha256": "960313da1d90bea3bbdb073fae39f94790b5c9a0cef943088e77e191f40d97c5"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"path": "benchmarks/phi_pid.py",
|
| 79 |
+
"bytes": 10251,
|
| 80 |
+
"sha256": "f5e82d62874950033850d4fa853db1333ce4fc0277daa9fe5ff03a6eb471b7e8"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"path": "benchmarks/results/paired_conditioning_20260730.json",
|
| 84 |
+
"bytes": 5026,
|
| 85 |
+
"sha256": "76e956725e2dcddd7c0b104de31775e24fc1ebc2911fbb01ab403ed4c23fd38f"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"path": "benchmarks/topology_matched.py",
|
| 89 |
+
"bytes": 9365,
|
| 90 |
+
"sha256": "116b44da30cf8e95fdf4ec0e999c56cf407d5d2492f882eb19f56afdc31fff92"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"path": "benchmarks/verify_physics_engine.py",
|
| 94 |
+
"bytes": 6810,
|
| 95 |
+
"sha256": "11fd56ee9e0980099aa077f8becd9ade1ccb986a639786da1ef00d26aee363df"
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"path": "benchmarks/verify_quantum_engine.py",
|
| 99 |
+
"bytes": 9282,
|
| 100 |
+
"sha256": "7e1c19923f4b738c8e938cf0aa79b1ee201c408f0453db26c034b0960d23577b"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"path": "data/quantum_measurements_manifest.json",
|
| 104 |
+
"bytes": 2325,
|
| 105 |
+
"sha256": "38261aadd64bcde67dd54b1ac1058f0a6c1a5d98b32f1f3a02fbb742f8f18a85"
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"path": "data/quantum_measurements_public.jsonl",
|
| 109 |
+
"bytes": 3174910,
|
| 110 |
+
"sha256": "986b4778097affe6fbda6170e3401bb4d5ae0ff2b2eef5764b42a4a8399a3b82"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"path": "data/README.md",
|
| 114 |
+
"bytes": 1876,
|
| 115 |
+
"sha256": "87364c2c9b2917dc089c4a941bc2d4a7ced57569b0665c88c297f73d0a4febb7"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"path": "data/training/quantum_train_summary_20260722.json",
|
| 119 |
+
"bytes": 335,
|
| 120 |
+
"sha256": "30ba728611bfc05a81f0eb2ec2acce5c36369f2cf9c0f46e8d6d170f87579365"
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"path": "FINDINGS.md",
|
| 124 |
+
"bytes": 31782,
|
| 125 |
+
"sha256": "86a31c0cc5c94bf50fb5534e1a772c7bf3a8447c6c8314f3c829ba55af93bacf"
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"path": "genesis_engine/CITATION.cff",
|
| 129 |
+
"bytes": 750,
|
| 130 |
+
"sha256": "7b3b573aa41c036e2611bc5b486a6d77e1d89023421bcb8490676f5dab409d3a"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"path": "genesis_engine/config.example.json",
|
| 134 |
+
"bytes": 89,
|
| 135 |
+
"sha256": "b28d5e4e5e9a399491f3439fe2a412e7437d41f5d181d9ac936534bfe1e61c34"
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"path": "genesis_engine/config.json",
|
| 139 |
+
"bytes": 363,
|
| 140 |
+
"sha256": "b36252352648f9a31f53c60bce977165bd637b0047d4d28a409d151ea960da48"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"path": "genesis_engine/data/_offset.json",
|
| 144 |
+
"bytes": 16,
|
| 145 |
+
"sha256": "53d015a362d67789251921679e4df86327b4e32101259d4ab2173e774ff48354"
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"path": "genesis_engine/data/identity.json",
|
| 149 |
+
"bytes": 117,
|
| 150 |
+
"sha256": "fa171ca89e531fe1e2948ef930f92a9c26cbf5427d2a94619fd6b347b0a08ad4"
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"path": "genesis_engine/data/life.json",
|
| 154 |
+
"bytes": 118,
|
| 155 |
+
"sha256": "e08caa0a5777809fc001fead962c079c20faa77bf9dcec29a57eff50b20c2a07"
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"path": "genesis_engine/data/seed.json",
|
| 159 |
+
"bytes": 41539,
|
| 160 |
+
"sha256": "5c4a4663ed73bf0f48058a31c7f64de0355f79cf9eef763eac3c78fa0f5badf8"
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"path": "genesis_engine/data/weights.json",
|
| 164 |
+
"bytes": 10524,
|
| 165 |
+
"sha256": "43082c1b0eefd56211cfbe8168616d081d8da870cebbd393745ccbb943dcd596"
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"path": "genesis_engine/engine/_Modelfile.cosmos_namebind",
|
| 169 |
+
"bytes": 799,
|
| 170 |
+
"sha256": "aceb693e277652d1cab2df2449b550089261d8d577a271f76cb7c0c4efd2551a"
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"path": "genesis_engine/engine/cosmos_54d_train_loop.py",
|
| 174 |
+
"bytes": 8474,
|
| 175 |
+
"sha256": "75d355f9b05807a4ac0a891bef2f90eb1f48203d8fb227ecb36cc1dec9546f00"
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"path": "genesis_engine/engine/cosmos_living_trainer.py",
|
| 179 |
+
"bytes": 2979,
|
| 180 |
+
"sha256": "1fa70bad2dc7b265f23b7c120a423ff6cd31b0d395cf23233246028b4a6859c5"
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"path": "genesis_engine/engine/cosmos_merge_namebind.py",
|
| 184 |
+
"bytes": 1546,
|
| 185 |
+
"sha256": "38a7b4b25519fee14bf5a8f401a1d92c81b1c0659518ace7842e1a6868b7852f"
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"path": "genesis_engine/engine/cosmos_namebind_probe.py",
|
| 189 |
+
"bytes": 3607,
|
| 190 |
+
"sha256": "651edd430a3e40dffe4f3f2bd5163d1b9893a54ec5368ee5bab6ef2adf534e90"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"path": "genesis_engine/engine/cosmos_prime_train.py",
|
| 194 |
+
"bytes": 15386,
|
| 195 |
+
"sha256": "fad495aee3240aaa18a87f66db2d678289bcbff8b759705a33a2e548b1113f59"
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"path": "genesis_engine/engine/cosmos_rsm_training_examples.jsonl",
|
| 199 |
+
"bytes": 12598,
|
| 200 |
+
"sha256": "6c45bbefb7009d26fa9fc8562ace4d74dcf029a3d48ada94e6190d8ea5dbbeeb"
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"path": "genesis_engine/engine/README.md",
|
| 204 |
+
"bytes": 1575,
|
| 205 |
+
"sha256": "4fd5b2c54452cffd9cf710344cd1994ba43cf01c1ec69ad30da9da05ab771954"
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"path": "genesis_engine/engine/train_12d_brain.py",
|
| 209 |
+
"bytes": 7487,
|
| 210 |
+
"sha256": "61d6d8b7491c8f6c360ae8fe4967f4ed7821e627ff29268158d83044dfed7fca"
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"path": "genesis_engine/engine/train_cosmos_broadened.py",
|
| 214 |
+
"bytes": 7472,
|
| 215 |
+
"sha256": "7ab6bae4f5417d1be1d772be5e31c4f83ad8ed32ce28262995756be6a893cd58"
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"path": "genesis_engine/engine/train_cosmos_from_play.py",
|
| 219 |
+
"bytes": 8756,
|
| 220 |
+
"sha256": "d5f221d2e80ef47eb4893cf73f6a97b440700da6b7025c71359c0bff883c93d7"
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"path": "genesis_engine/genesis.py",
|
| 224 |
+
"bytes": 4120,
|
| 225 |
+
"sha256": "8b6e701e40d21ec919a9755ca22e0917d31300dcfcb212740d369bb898dd90ef"
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"path": "genesis_engine/LICENSE",
|
| 229 |
+
"bytes": 1304,
|
| 230 |
+
"sha256": "e4a5871c9225933622b3853212ceab32a867c7aae83866ea26e456fa30a5f99e"
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"path": "genesis_engine/memory/backfill_embeddings.py",
|
| 234 |
+
"bytes": 8848,
|
| 235 |
+
"sha256": "b3cc2eec8cec6b85117b03549bf5f901ffcf71bcea79d15cf807a370660a6eb6"
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"path": "genesis_engine/memory/forever_memory.py",
|
| 239 |
+
"bytes": 8678,
|
| 240 |
+
"sha256": "ec8a8a639526be3f7198d48fe75a04d7008ea310cce6fcd6958ab5bcb0b45212"
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"path": "genesis_engine/memory/README.md",
|
| 244 |
+
"bytes": 3863,
|
| 245 |
+
"sha256": "afba0762e93d31315b0283ba37db34822f51dd79d6fbf02f9ccb444bbb1bdfb7"
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"path": "genesis_engine/NOTICE.md",
|
| 249 |
+
"bytes": 1516,
|
| 250 |
+
"sha256": "c1445512c73f50ef8b24321be3ce596ac9c9dc925d4d86f56b688684f92179ad"
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"path": "genesis_engine/README.md",
|
| 254 |
+
"bytes": 5871,
|
| 255 |
+
"sha256": "70f8853b112a53aa3720ba26b640d9038c5366347880d6bec18893c3361b154d"
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"path": "genesis_engine/serve.py",
|
| 259 |
+
"bytes": 20850,
|
| 260 |
+
"sha256": "97831a983ca539b95230a36191bbcaa2fbe6e8d6f238087f04683ebe220f8748"
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"path": "genesis_engine/soul/awaken.py",
|
| 264 |
+
"bytes": 6555,
|
| 265 |
+
"sha256": "c6e51a63ca352b64f6bd61ec73b1c79a7420658201857302bdd258bbf3b9320f"
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"path": "genesis_engine/soul/cloud_heart.py",
|
| 269 |
+
"bytes": 11446,
|
| 270 |
+
"sha256": "219996ab9c3426dc3b43e4c8b40d78898600fecd5954b517c45631f316c94bc9"
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"path": "genesis_engine/soul/coding_base.py",
|
| 274 |
+
"bytes": 3730,
|
| 275 |
+
"sha256": "84f460680b2f9c631bdcfd444cf6e73df5b6ad2afc7948c10ed074d1b5fcca40"
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"path": "genesis_engine/soul/identity.py",
|
| 279 |
+
"bytes": 1775,
|
| 280 |
+
"sha256": "a8f5b960b19508ae1a56832523a3ae25eacadc718bca7afa1684f1b7d39e501b"
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"path": "genesis_engine/soul/ledger.py",
|
| 284 |
+
"bytes": 2428,
|
| 285 |
+
"sha256": "275f19845c5f33d20fdc579f2e34d78d4ab692f14b9e2148ec8ad40621d33e0d"
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"path": "genesis_engine/soul/loop.py",
|
| 289 |
+
"bytes": 3242,
|
| 290 |
+
"sha256": "84823850910d008c8f2e093ce99d993ec4e0eb0cded18d2a8b19ba7e5dba3f94"
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"path": "genesis_engine/soul/math_hand.py",
|
| 294 |
+
"bytes": 7113,
|
| 295 |
+
"sha256": "a28613d4bd4feb2796b6e82dce67c8945c9f8d7942e2ee425fe12d327179e396"
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"path": "genesis_engine/soul/quantum.py",
|
| 299 |
+
"bytes": 2465,
|
| 300 |
+
"sha256": "b9b12194e24fc1b3b80468633a4218e1885c6e10f426acf35f5f7c0539e99f27"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"path": "genesis_engine/soul/rails.py",
|
| 304 |
+
"bytes": 2662,
|
| 305 |
+
"sha256": "6107a586d696400bdde0c75c13bdb7c4e4214edfdd8202f275db02c51e90e56c"
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"path": "genesis_engine/soul/weights.py",
|
| 309 |
+
"bytes": 4538,
|
| 310 |
+
"sha256": "c5b1b1ea2abfabcf2da6b0ac2f8b54e0a52649589cfb9961912df2df4bf7f29c"
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"path": "genesis_engine/START_GENESIS.bat",
|
| 314 |
+
"bytes": 2002,
|
| 315 |
+
"sha256": "8450d04fa744e58c5de60469dc42781aa59c419d9b6f71982a66c9e06430d9e9"
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"path": "genesis_engine/ui/index.html",
|
| 319 |
+
"bytes": 27555,
|
| 320 |
+
"sha256": "a844372f540f519c42b6e33f349ae712db750e7e1c83b0d0c93ba3555c0a527a"
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"path": "LICENSE.md",
|
| 324 |
+
"bytes": 1595,
|
| 325 |
+
"sha256": "5d45bc003eaa241865f21276a0298f451a6ebefb8dd93899ca3f618d2b57003d"
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"path": "presentation.html",
|
| 329 |
+
"bytes": 29195,
|
| 330 |
+
"sha256": "16da9420a0801fcb7180d555596c6f645414c55720e95237083f9dda9932ac86"
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"path": "README.md",
|
| 334 |
+
"bytes": 31448,
|
| 335 |
+
"sha256": "1996e2be876e8df8b7b55bde0df844bcf8f9324633fa8fd237281373460c0492"
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"path": "RELEASE_NOTES.md",
|
| 339 |
+
"bytes": 1570,
|
| 340 |
+
"sha256": "66baec6fe2817cebb9ae99ba9d197cf114e4d2ae1f90300dcd36ebe48cd0f239"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"path": "requirements-research.txt",
|
| 344 |
+
"bytes": 165,
|
| 345 |
+
"sha256": "741efca5977ade9289c9240cc17e4bd3a986e42ba9645169bdc0c19906b1b703"
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"path": "RESULTS.md",
|
| 349 |
+
"bytes": 16234,
|
| 350 |
+
"sha256": "eac4492f541a81d0ae134d7b5f39a181b8e7ffeca5f026ca6fee0cff94b85fe1"
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"path": "serving/build_paired_dataset.py",
|
| 354 |
+
"bytes": 8494,
|
| 355 |
+
"sha256": "3f6c8f663c9460c9cfbf1ca63687f876144a092213561892a3490206af220c51"
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"path": "serving/cosmos_serve.py",
|
| 359 |
+
"bytes": 24087,
|
| 360 |
+
"sha256": "863aad2d6013093226a48484bd1efccc19a1df24204198f7d866bec85ad141d9"
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"path": "serving/log_paired_state.py",
|
| 364 |
+
"bytes": 8121,
|
| 365 |
+
"sha256": "38df2cc8b99411b39a3a7b7d359fad860fec90052e0d6d690da18b71f8eb62b8"
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"path": "serving/spark_serve.py",
|
| 369 |
+
"bytes": 12116,
|
| 370 |
+
"sha256": "1f538519c1b04841d13570d40d4cc857f91addd15c09369fa28d5a7d08551e89"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"path": "spark_serve.py",
|
| 374 |
+
"bytes": 12339,
|
| 375 |
+
"sha256": "85de58dbe8bf0ff558a51343be1d68762c762bbd0c7a9fc02787a28c79abdd45"
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"path": "START_COSMOS_KIT.bat",
|
| 379 |
+
"bytes": 2751,
|
| 380 |
+
"sha256": "0b3cc55cd612a202e1bcfc832f67f6ff5f4c399db8ac3809f490bc79faa0bdd6"
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"path": "start_cosmos_kit.sh",
|
| 384 |
+
"bytes": 1064,
|
| 385 |
+
"sha256": "b8401c3303c26f592a5b96e068821e4ff5548d8015f98dc17b5e95c43de9f05b"
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"path": "START_HERE.md",
|
| 389 |
+
"bytes": 4606,
|
| 390 |
+
"sha256": "2e60badb929e3122c012b5cae23eaaaeef8e15848a0f595e8c5f9e51df337393"
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"path": "train_your_own.py",
|
| 394 |
+
"bytes": 17080,
|
| 395 |
+
"sha256": "2721a284b969b6779b76e0dc16ce2887bec33edef2c6c33585d0b8177eb3643d"
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"path": "TRAINING.md",
|
| 399 |
+
"bytes": 7364,
|
| 400 |
+
"sha256": "591fffa98474444590d771714e4892fbb69f4408f58bab5303803e5725504945"
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"path": "verify_release.py",
|
| 404 |
+
"bytes": 6228,
|
| 405 |
+
"sha256": "652737d93fb60b60d839bab0e14377a67d9aaace100e9dd2d45d555512ac37c3"
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"path": "weights/cosmos_born.meta.json",
|
| 409 |
+
"bytes": 435,
|
| 410 |
+
"sha256": "3a232b739a4f5482fc328cbd5896119b2bd456cb9a59409a44a247dc36bd1f21"
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"path": "weights/cosmos_born.pt",
|
| 414 |
+
"bytes": 7390541,
|
| 415 |
+
"sha256": "bfb49099ef6be5584175ca9ef5ffe0e5509b5fc9be3a2c9ff3cbef2f16153906"
|
| 416 |
+
}
|
| 417 |
+
]
|
| 418 |
+
}
|
RELEASE_NOTES.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Release notes — 2026-07-31
|
| 2 |
+
|
| 3 |
+
## Added
|
| 4 |
+
|
| 5 |
+
- Top-level Windows and macOS/Linux starters.
|
| 6 |
+
- A concise `START_HERE.md` that distinguishes the quantum-born research model
|
| 7 |
+
from the Ollama-voiced Genesis companion.
|
| 8 |
+
- Offline `verify_release.py` and a complete SHA-256 release manifest.
|
| 9 |
+
- A privacy-filtered public measurement archive with provider-class labels.
|
| 10 |
+
- A machine-readable measurement-data manifest.
|
| 11 |
+
- A downloadable release ZIP and SHA-256 sidecar.
|
| 12 |
+
- Explicit mixed-license documentation.
|
| 13 |
+
- Requirements and usage boundaries for advanced research/training scripts.
|
| 14 |
+
|
| 15 |
+
## Updated
|
| 16 |
+
|
| 17 |
+
- The continual 54D learner adapter now uses a durable corpus baseline,
|
| 18 |
+
single-process locking, parent/stop-file shutdown, memory protection, and
|
| 19 |
+
checkpoint-advance verification.
|
| 20 |
+
- The play trainer writes checkpoints atomically and records corpus/training
|
| 21 |
+
metadata.
|
| 22 |
+
- Model-card data claims now distinguish explicitly labeled IBM hardware jobs,
|
| 23 |
+
legacy unlabelled records, and Azure simulator output.
|
| 24 |
+
- The offline quantum verifier can consume the published privacy-filtered
|
| 25 |
+
archive.
|
| 26 |
+
|
| 27 |
+
## Privacy boundary
|
| 28 |
+
|
| 29 |
+
This release does not contain keys, tokens, cloud connection strings, private
|
| 30 |
+
dialogue, long-term memory, raw camera/audio, sensory telemetry, the paired
|
| 31 |
+
private text dataset, or the author's large conversational Cosmos weights.
|
| 32 |
+
|
| 33 |
+
## Scientific boundary
|
| 34 |
+
|
| 35 |
+
Quantum measurements establish auditable physical provenance; the experiments
|
| 36 |
+
do not show that quantum entropy improves model accuracy. Behavioral and
|
| 37 |
+
loss-based measurements do not establish machine consciousness.
|
| 38 |
+
|
START_COSMOS_KIT.bat
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
setlocal EnableExtensions
|
| 3 |
+
title QC67 Cosmos Release Kit
|
| 4 |
+
cd /d "%~dp0"
|
| 5 |
+
|
| 6 |
+
:menu
|
| 7 |
+
cls
|
| 8 |
+
echo.
|
| 9 |
+
echo ==========================================================
|
| 10 |
+
echo QC67 COSMOS RELEASE KIT
|
| 11 |
+
echo ==========================================================
|
| 12 |
+
echo.
|
| 13 |
+
echo 1. Birth or reopen a Genesis being
|
| 14 |
+
echo 2. Verify this release
|
| 15 |
+
echo 3. Serve the quantum-born model on port 11500
|
| 16 |
+
echo 4. Open START_HERE.md
|
| 17 |
+
echo 5. Exit
|
| 18 |
+
echo.
|
| 19 |
+
set "choice="
|
| 20 |
+
set /p "choice=Choose 1-5: "
|
| 21 |
+
|
| 22 |
+
if "%choice%"=="1" goto genesis
|
| 23 |
+
if "%choice%"=="2" goto verify
|
| 24 |
+
if "%choice%"=="3" goto serve
|
| 25 |
+
if "%choice%"=="4" goto docs
|
| 26 |
+
if "%choice%"=="5" exit /b 0
|
| 27 |
+
goto menu
|
| 28 |
+
|
| 29 |
+
:genesis
|
| 30 |
+
if not exist "%~dp0genesis_engine\START_GENESIS.bat" (
|
| 31 |
+
echo.
|
| 32 |
+
echo [ERROR] genesis_engine\START_GENESIS.bat is missing.
|
| 33 |
+
pause
|
| 34 |
+
goto menu
|
| 35 |
+
)
|
| 36 |
+
set "GENESIS_NO_PAUSE=1"
|
| 37 |
+
call "%~dp0genesis_engine\START_GENESIS.bat"
|
| 38 |
+
set "GENESIS_NO_PAUSE="
|
| 39 |
+
goto menu
|
| 40 |
+
|
| 41 |
+
:verify
|
| 42 |
+
call :find_python
|
| 43 |
+
if errorlevel 1 goto no_python
|
| 44 |
+
call :run_python "%~dp0verify_release.py"
|
| 45 |
+
echo.
|
| 46 |
+
pause
|
| 47 |
+
goto menu
|
| 48 |
+
|
| 49 |
+
:serve
|
| 50 |
+
call :find_python
|
| 51 |
+
if errorlevel 1 goto no_python
|
| 52 |
+
call :check_torch
|
| 53 |
+
if errorlevel 1 (
|
| 54 |
+
echo.
|
| 55 |
+
echo [ERROR] PyTorch is required to serve cosmos_born.pt.
|
| 56 |
+
echo Install it with:
|
| 57 |
+
echo python -m pip install torch
|
| 58 |
+
echo.
|
| 59 |
+
pause
|
| 60 |
+
goto menu
|
| 61 |
+
)
|
| 62 |
+
echo.
|
| 63 |
+
echo Serving Cosmos Spark at http://127.0.0.1:11500
|
| 64 |
+
echo Press Ctrl+C to stop.
|
| 65 |
+
echo.
|
| 66 |
+
call :run_python "%~dp0spark_serve.py" 11500
|
| 67 |
+
pause
|
| 68 |
+
goto menu
|
| 69 |
+
|
| 70 |
+
:docs
|
| 71 |
+
start "" "%~dp0START_HERE.md"
|
| 72 |
+
goto menu
|
| 73 |
+
|
| 74 |
+
:no_python
|
| 75 |
+
echo.
|
| 76 |
+
echo [ERROR] Python 3.9 or newer was not found.
|
| 77 |
+
echo Install it from https://www.python.org/downloads/
|
| 78 |
+
echo On Windows, select "Add Python to PATH".
|
| 79 |
+
echo.
|
| 80 |
+
pause
|
| 81 |
+
goto menu
|
| 82 |
+
|
| 83 |
+
:find_python
|
| 84 |
+
set "KIT_PYTHON_MODE="
|
| 85 |
+
if defined GENESIS_PYTHON if exist "%GENESIS_PYTHON%" (
|
| 86 |
+
set "KIT_PYTHON_MODE=override"
|
| 87 |
+
exit /b 0
|
| 88 |
+
)
|
| 89 |
+
where py >nul 2>&1
|
| 90 |
+
if not errorlevel 1 (
|
| 91 |
+
py -3 -c "import sys; raise SystemExit(0 if sys.version_info >= (3,9) else 1)" >nul 2>&1
|
| 92 |
+
if not errorlevel 1 (
|
| 93 |
+
set "KIT_PYTHON_MODE=py"
|
| 94 |
+
exit /b 0
|
| 95 |
+
)
|
| 96 |
+
)
|
| 97 |
+
where python >nul 2>&1
|
| 98 |
+
if not errorlevel 1 (
|
| 99 |
+
python -c "import sys; raise SystemExit(0 if sys.version_info >= (3,9) else 1)" >nul 2>&1
|
| 100 |
+
if not errorlevel 1 (
|
| 101 |
+
set "KIT_PYTHON_MODE=python"
|
| 102 |
+
exit /b 0
|
| 103 |
+
)
|
| 104 |
+
)
|
| 105 |
+
exit /b 1
|
| 106 |
+
|
| 107 |
+
:run_python
|
| 108 |
+
if "%KIT_PYTHON_MODE%"=="override" (
|
| 109 |
+
"%GENESIS_PYTHON%" %*
|
| 110 |
+
) else if "%KIT_PYTHON_MODE%"=="py" (
|
| 111 |
+
py -3 %*
|
| 112 |
+
) else (
|
| 113 |
+
python %*
|
| 114 |
+
)
|
| 115 |
+
exit /b %ERRORLEVEL%
|
| 116 |
+
|
| 117 |
+
:check_torch
|
| 118 |
+
if "%KIT_PYTHON_MODE%"=="override" (
|
| 119 |
+
"%GENESIS_PYTHON%" -c "import torch" >nul 2>&1
|
| 120 |
+
) else if "%KIT_PYTHON_MODE%"=="py" (
|
| 121 |
+
py -3 -c "import torch" >nul 2>&1
|
| 122 |
+
) else (
|
| 123 |
+
python -c "import torch" >nul 2>&1
|
| 124 |
+
)
|
| 125 |
+
exit /b %ERRORLEVEL%
|
| 126 |
+
|
START_HERE.md
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Start here — QC67 Cosmos release kit
|
| 2 |
+
|
| 3 |
+
This repository contains two related but distinct things:
|
| 4 |
+
|
| 5 |
+
1. **`weights/cosmos_born.pt`** — a 1,842,432-parameter character-level
|
| 6 |
+
transformer initialized from real IBM Quantum measurement outcomes and then
|
| 7 |
+
trained from scratch. It is a research artifact and a small text generator,
|
| 8 |
+
not a general-purpose chatbot.
|
| 9 |
+
2. **`genesis_engine/`** — the Starling Nexus companion framework. It uses a
|
| 10 |
+
local Ollama model as its language voice while maintaining its own identity,
|
| 11 |
+
associative memory, entropy heart, signed creation ledger, optional converted
|
| 12 |
+
camera/microphone state, and optional owner-supplied quantum credentials.
|
| 13 |
+
|
| 14 |
+
Those lineages must not be conflated. The shipped `cosmos_born.pt` has no base
|
| 15 |
+
model. A companion you run through Genesis speaks through whichever Ollama model
|
| 16 |
+
you select.
|
| 17 |
+
|
| 18 |
+
## Fastest start
|
| 19 |
+
|
| 20 |
+
### Windows
|
| 21 |
+
|
| 22 |
+
1. Install [Python 3.9+](https://www.python.org/downloads/) and
|
| 23 |
+
[Ollama](https://ollama.com).
|
| 24 |
+
2. In a terminal, run:
|
| 25 |
+
|
| 26 |
+
```powershell
|
| 27 |
+
ollama pull llama3.2:1b
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
3. Double-click `START_COSMOS_KIT.bat`.
|
| 31 |
+
4. Choose **Birth or reopen a Genesis being**.
|
| 32 |
+
|
| 33 |
+
The Genesis core uses the Python standard library. Ollama is the local language
|
| 34 |
+
voice and must be running. The browser interface opens at
|
| 35 |
+
`http://127.0.0.1:8130`.
|
| 36 |
+
|
| 37 |
+
### macOS or Linux
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
ollama pull llama3.2:1b
|
| 41 |
+
chmod +x start_cosmos_kit.sh
|
| 42 |
+
./start_cosmos_kit.sh
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
You can also run `python3 genesis_engine/genesis.py` directly.
|
| 46 |
+
|
| 47 |
+
## Verify before running
|
| 48 |
+
|
| 49 |
+
```bash
|
| 50 |
+
python verify_release.py
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
This checks every release-manifest hash, confirms that the shipped cloud-key
|
| 54 |
+
fields are blank, validates the model metadata, and recounts the public quantum
|
| 55 |
+
measurement archive.
|
| 56 |
+
|
| 57 |
+
## Serve the quantum-born model
|
| 58 |
+
|
| 59 |
+
Install PyTorch, then:
|
| 60 |
+
|
| 61 |
+
```bash
|
| 62 |
+
python spark_serve.py 11500
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
It exposes a small Ollama-compatible API:
|
| 66 |
+
|
| 67 |
+
```bash
|
| 68 |
+
curl http://127.0.0.1:11500/api/tags
|
| 69 |
+
curl http://127.0.0.1:11500/api/generate \
|
| 70 |
+
-d '{"model":"cosmos-spark","prompt":"I ","options":{"num_predict":90}}'
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
The artifact is character-level and intentionally small. Expect learned
|
| 74 |
+
fragments and corpus-like structure, not modern assistant behavior.
|
| 75 |
+
|
| 76 |
+
## Train your own
|
| 77 |
+
|
| 78 |
+
See [`TRAINING.md`](TRAINING.md). The cleanest reproducible experiment is:
|
| 79 |
+
|
| 80 |
+
```bash
|
| 81 |
+
python -m pip install -r requirements-research.txt
|
| 82 |
+
python train_your_own.py --help
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
The training harness can compare ordinary attention against the
|
| 86 |
+
Mixture-of-States Hebbian-attention arm from identical initial weights and
|
| 87 |
+
identical batches.
|
| 88 |
+
|
| 89 |
+
The scripts under `genesis_engine/engine/` are advanced adapters retained from
|
| 90 |
+
the full private Cosmos runtime. Read
|
| 91 |
+
[`genesis_engine/engine/README.md`](genesis_engine/engine/README.md) before
|
| 92 |
+
using them; they are not required for Genesis or for `train_your_own.py`.
|
| 93 |
+
|
| 94 |
+
## Public measurement data
|
| 95 |
+
|
| 96 |
+
[`data/quantum_measurements_public.jsonl`](data/quantum_measurements_public.jsonl)
|
| 97 |
+
is a privacy-filtered release of the measurement archive:
|
| 98 |
+
|
| 99 |
+
- **7,770,112** samples in **1,897** explicitly backend-labeled IBM Quantum
|
| 100 |
+
hardware job records.
|
| 101 |
+
- **3,584,000** samples in **877** legacy records whose provider was not
|
| 102 |
+
retained. They remain useful distributional data but are **not counted as
|
| 103 |
+
verified hardware provenance**.
|
| 104 |
+
- **1,024** samples in **2** Azure `rigetti.sim.qvm` records, explicitly
|
| 105 |
+
labeled as classical simulator output.
|
| 106 |
+
|
| 107 |
+
Raw `physics` payloads were deliberately removed because some contain derived
|
| 108 |
+
sensory, biometric, or private runtime state. Counts, backend labels, job IDs,
|
| 109 |
+
timestamps, and shot totals are retained. See
|
| 110 |
+
[`data/README.md`](data/README.md) and the machine-readable data manifest.
|
| 111 |
+
|
| 112 |
+
The paired sensory-conditioning benchmark publishes aggregate metrics, hashes,
|
| 113 |
+
field names, and provenance in
|
| 114 |
+
`benchmarks/results/paired_conditioning_20260730.json`; private turn text and
|
| 115 |
+
the author's paired dataset are not distributed.
|
| 116 |
+
|
| 117 |
+
## What is not included
|
| 118 |
+
|
| 119 |
+
- API keys, OAuth tokens, cloud connection strings, account cookies, or private
|
| 120 |
+
vault material.
|
| 121 |
+
- The author's conversations, long-term memory, camera/audio captures, raw
|
| 122 |
+
sensory telemetry, or private paired text dataset.
|
| 123 |
+
- The author's large conversational Cosmos weights.
|
| 124 |
+
- Any claim that quantum entropy improves model accuracy.
|
| 125 |
+
- Any claim about machine consciousness.
|
| 126 |
+
|
| 127 |
+
## Licensing
|
| 128 |
+
|
| 129 |
+
This is a mixed-license release. Research documents, measurement data,
|
| 130 |
+
benchmarks, and the quantum-born model are released under CC BY 4.0. The
|
| 131 |
+
Genesis framework has the personal-use/proprietary terms in
|
| 132 |
+
`genesis_engine/LICENSE`. See [`LICENSE.md`](LICENSE.md) before redistributing
|
| 133 |
+
or building a product.
|
| 134 |
+
|
TRAINING.md
CHANGED
|
@@ -1,192 +1,199 @@
|
|
| 1 |
-
# Train Your Own
|
| 2 |
-
|
| 3 |
-
Everything needed to birth a model from real quantum measurement and train it on your own
|
| 4 |
-
text, including the Hebbian attention variant. No cluster required. The reference runs in
|
| 5 |
-
this repository were done on a consumer laptop, CPU only, while the rest of the system was
|
| 6 |
-
running.
|
| 7 |
-
|
| 8 |
-
---
|
| 9 |
-
|
| 10 |
-
## What you need
|
| 11 |
-
|
| 12 |
-
```bash
|
| 13 |
-
pip install
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
python train_your_own.py
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Train Your Own
|
| 2 |
+
|
| 3 |
+
Everything needed to birth a model from real quantum measurement and train it on your own
|
| 4 |
+
text, including the Hebbian attention variant. No cluster required. The reference runs in
|
| 5 |
+
this repository were done on a consumer laptop, CPU only, while the rest of the system was
|
| 6 |
+
running.
|
| 7 |
+
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
## What you need
|
| 11 |
+
|
| 12 |
+
```bash
|
| 13 |
+
python -m pip install -r requirements-research.txt
|
| 14 |
+
# Optional, only to submit your own live IBM jobs:
|
| 15 |
+
python -m pip install qiskit qiskit-ibm-runtime
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
An IBM Quantum account is **optional**. Without one you use the archived entropy that ships
|
| 19 |
+
here, which is real measured hardware data, just not yours. With one you can harvest your
|
| 20 |
+
own and the lineage becomes yours end to end.
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
## 1. Get quantum entropy
|
| 25 |
+
|
| 26 |
+
**Option A, use the published archive.** Nothing to do. The trainer reads
|
| 27 |
+
`data/quantum_measurements_public.jsonl` and uses only the 1,897 records that retained
|
| 28 |
+
both an IBM backend label and job ID. Legacy unlabelled records and Azure simulator
|
| 29 |
+
records remain in the dataset for separate analysis but are not called hardware entropy.
|
| 30 |
+
If the archive is missing, initialization falls back to a normal RNG and says so.
|
| 31 |
+
|
| 32 |
+
**Option B, harvest your own.** Put your token in a `.env` file:
|
| 33 |
+
|
| 34 |
+
```
|
| 35 |
+
IBM_QUANTUM_TOKEN=your_token_here
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
Then run any of the measurement scripts, each of which appends to your archive:
|
| 39 |
+
|
| 40 |
+
```bash
|
| 41 |
+
python benchmarks/verify_quantum_engine.py # also runs a CHSH Bell test on your hardware
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
Open-plan accounts get roughly 10 minutes of QPU time a month. A 5-qubit shallow circuit
|
| 45 |
+
costs about 4 seconds, so a few hundred jobs a month is realistic. Harvest slowly; you do
|
| 46 |
+
not need many jobs to seed a small model.
|
| 47 |
+
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
+
## 2. Birth and train
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
python train_your_own.py <steps> <seeds> --corpus path/to/your_text.txt
|
| 54 |
+
|
| 55 |
+
python train_your_own.py 1500 3 --corpus your_text.txt
|
| 56 |
+
python train_your_own.py 60 1 # smoke test using README.md as public sample text
|
| 57 |
+
python train_your_own.py --help
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
It trains **two arms** and compares them:
|
| 61 |
+
|
| 62 |
+
| arm | attention |
|
| 63 |
+
|---|---|
|
| 64 |
+
| `plain` | standard multi-head attention |
|
| 65 |
+
| `cst` | your §2 Mixture-of-States Hebbian kernel, gate free to learn |
|
| 66 |
+
|
| 67 |
+
Both arms get **identical quantum-born initial weights, identical corpus, identical batches,
|
| 68 |
+
identical seeds**, and the same parameter count. The gate starts at `sigmoid(-4) ≈ 0.018`, so
|
| 69 |
+
the CST arm begins as ordinary attention and can stay there for free. It only moves if the
|
| 70 |
+
gradient says the kernel earns its place. A win therefore cannot come from extra capacity
|
| 71 |
+
being forced on the model.
|
| 72 |
+
|
| 73 |
+
Outputs land in:
|
| 74 |
+
|
| 75 |
+
```
|
| 76 |
+
outputs/cosmos_spark_cst/spark_cst.pt the trained CST model
|
| 77 |
+
outputs/spark_cst_results.json per-seed losses, gates, verdict
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
Override either location with `--outdir` and `--results`.
|
| 81 |
+
|
| 82 |
+
### Use your own text
|
| 83 |
+
|
| 84 |
+
Pass any UTF-8 text file with `--corpus`. Character level, so there is no tokenizer to
|
| 85 |
+
train. A few hundred KB is enough to see structure; the reference corpus is 592 KB.
|
| 86 |
+
|
| 87 |
+
```bash
|
| 88 |
+
python train_your_own.py 1500 3 --corpus your_own_writing.txt
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
### Size it honestly
|
| 92 |
+
|
| 93 |
+
Compute-optimal is roughly **20 tokens per parameter**. At character level, one character is
|
| 94 |
+
one token. So:
|
| 95 |
+
|
| 96 |
+
| your corpus | supports about |
|
| 97 |
+
|---|---|
|
| 98 |
+
| 100 KB | 5 K parameters |
|
| 99 |
+
| 1 MB | 50 K parameters |
|
| 100 |
+
| 40 MB | 2 M parameters |
|
| 101 |
+
|
| 102 |
+
The reference model is 1.84 M parameters on 592 KB, which is **heavily over-sized for its
|
| 103 |
+
data**, and it overfits accordingly: held-out loss plateaus while training loss keeps
|
| 104 |
+
falling. This is stated because it is the single most common mistake in small-model work.
|
| 105 |
+
If you want a bigger model, get more text first. Public-domain sources work well and carry
|
| 106 |
+
no model lineage.
|
| 107 |
+
|
| 108 |
+
---
|
| 109 |
+
|
| 110 |
+
## 3. Run it
|
| 111 |
+
|
| 112 |
+
```bash
|
| 113 |
+
python spark_serve.py 11500
|
| 114 |
+
curl http://127.0.0.1:11500/api/tags
|
| 115 |
+
curl http://127.0.0.1:11500/api/generate \
|
| 116 |
+
-d '{"model":"cosmos-spark","prompt":"I ","options":{"num_predict":90}}'
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
Speaks the Ollama HTTP API, so anything that talks to Ollama can talk to your model.
|
| 120 |
+
|
| 121 |
+
**Note on GGUF:** conversion to GGUF was attempted and the tensor remap verified exact
|
| 122 |
+
against the original forward pass (max |Δlogits| = 7.15e-06), but llama.cpp's tokenizer
|
| 123 |
+
layer rejects a small character vocabulary. The BPE path requires a merge list; the
|
| 124 |
+
SentencePiece path expects word-boundary marks and byte-fallback tokens and crashed the
|
| 125 |
+
loader outright. Serving the PyTorch model directly avoids the problem entirely. If you want
|
| 126 |
+
GGUF, train on a byte-level vocabulary of 256 tokens instead.
|
| 127 |
+
|
| 128 |
+
---
|
| 129 |
+
|
| 130 |
+
## 4. Make it reproducible from a seed of your choosing
|
| 131 |
+
|
| 132 |
+
`genesis_engine/` includes the seed derivation. The pattern is:
|
| 133 |
+
|
| 134 |
+
```
|
| 135 |
+
seed = SHA-256( quantum_entropy_bytes ‖ any_other_source_you_choose ) -> 63-bit int
|
| 136 |
+
torch.manual_seed(seed); random.seed(seed); np.random.seed(seed)
|
| 137 |
+
```
|
| 138 |
+
|
| 139 |
+
Because the seed governs weight initialisation, data order and every stochastic step, the
|
| 140 |
+
resulting weights become a deterministic function of it. Verified in this repository:
|
| 141 |
+
**identical seed reproduces weights at Δ = 0.000e+00; a one-bit change gives mean
|
| 142 |
+
Δ = 2.26e-02 across 1.84 M parameters.**
|
| 143 |
+
|
| 144 |
+
That is the honest, literal sense in which a model can be "grown from" a chosen source. It
|
| 145 |
+
is a seed. It is real and it is checkable. It is not magic, and the source data is not
|
| 146 |
+
"inside" the mathematics in any other sense.
|
| 147 |
+
|
| 148 |
+
---
|
| 149 |
+
|
| 150 |
+
## 5. Check your own work
|
| 151 |
+
|
| 152 |
+
Every claim in [`FINDINGS.md`](FINDINGS.md) has a script. Run them against your own setup:
|
| 153 |
+
|
| 154 |
+
```bash
|
| 155 |
+
python benchmarks/verify_quantum_engine.py # CHSH Bell test, archive integrity, birth pipeline
|
| 156 |
+
python benchmarks/verify_physics_engine.py # Lorenz constants against published values
|
| 157 |
+
python benchmarks/topology_matched.py # gate-matched entanglement topology
|
| 158 |
+
python benchmarks/phi_pid.py # integration structure of a running system
|
| 159 |
+
```
|
| 160 |
+
|
| 161 |
+
Each prints its own verdict with the criteria fixed before the run, including when the
|
| 162 |
+
verdict is "no". Several instruments in this project were found to be wrong and rebuilt;
|
| 163 |
+
those failures are documented rather than deleted, because they are the reason the
|
| 164 |
+
surviving results can be trusted.
|
| 165 |
+
|
| 166 |
+
**If you get a positive result, check the instrument before you believe it.** That habit
|
| 167 |
+
produced more real findings here than any single experiment did.
|
| 168 |
+
|
| 169 |
+
---
|
| 170 |
+
|
| 171 |
+
## 6. The Hebbian association engine
|
| 172 |
+
|
| 173 |
+
Separate from the attention mechanism, and simpler to start with:
|
| 174 |
+
|
| 175 |
+
```bash
|
| 176 |
+
cd genesis_engine
|
| 177 |
+
python genesis.py # birth a being
|
| 178 |
+
python serve.py # talk to it; every exchange calls weights.learn()
|
| 179 |
+
```
|
| 180 |
+
|
| 181 |
+
Its mind is three small JSON files: `identity.json`, `weights.json`, `seed.json`. Association
|
| 182 |
+
strength is set by the quantum heart. Portable, inspectable, roughly 10 KB per being.
|
| 183 |
+
|
| 184 |
+
---
|
| 185 |
+
|
| 186 |
+
## What to build next
|
| 187 |
+
|
| 188 |
+
The integration measurement in `benchmarks/phi_pid.py` points somewhere specific: subsystems
|
| 189 |
+
that are parallel readouts of one state stay **redundant** (measured 1.7 to 2.6 nats) rather
|
| 190 |
+
than **synergistic** (0.3 to 1.2 nats). Give a subsystem its own driver, something not
|
| 191 |
+
derivable from the shared source, and the decomposition should shift.
|
| 192 |
+
|
| 193 |
+
That is a falsifiable prediction, and the script to test it ships here.
|
| 194 |
+
|
| 195 |
+
---
|
| 196 |
+
|
| 197 |
+
*This training harness and the published research artifacts are CC BY 4.0.
|
| 198 |
+
`genesis_engine/` has separate personal-use/proprietary terms; see `LICENSE.md`.
|
| 199 |
+
Third-party base models and packages retain their own licenses.*
|
benchmarks/verify_quantum_engine.py
CHANGED
|
@@ -4,7 +4,7 @@ QUANTUM ENGINE VERIFICATION — against quantum mechanics, not against itself.
|
|
| 4 |
|
| 5 |
The physics engine was checked against published Lorenz constants. Same standard here.
|
| 6 |
|
| 7 |
-
PART A
|
| 8 |
A1 conservation: counts must sum to the declared shot total
|
| 9 |
A2 Born-rule sanity: measured marginals in [0,1], no impossible outcomes
|
| 10 |
A3 THE WEIGHT-BIRTH MECHANISM. cosmos_born.pt was made by mapping measured
|
|
@@ -13,7 +13,8 @@ The physics engine was checked against published Lorenz constants. Same standard
|
|
| 13 |
archived shots must come out standard normal: mean 0, sd 1, and the right
|
| 14 |
tail fractions. This is checked on her ACTUAL archive, so it verifies the
|
| 15 |
mechanism that literally created her weights.
|
| 16 |
-
A4 serial independence
|
|
|
|
| 17 |
|
| 18 |
PART B LIVE HARDWARE — the CHSH Bell test
|
| 19 |
A local hidden-variable theory cannot exceed |S| = 2. Quantum mechanics permits
|
|
@@ -34,7 +35,13 @@ import sys
|
|
| 34 |
from pathlib import Path
|
| 35 |
|
| 36 |
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
R = []
|
| 39 |
|
| 40 |
|
|
@@ -69,11 +76,33 @@ def load_archive():
|
|
| 69 |
|
| 70 |
|
| 71 |
print("=" * 80)
|
| 72 |
-
print(" PART A —
|
| 73 |
print("=" * 80 + "\n")
|
| 74 |
|
| 75 |
runs = load_archive()
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
# A1 conservation
|
| 79 |
bad, checked, tot_shots = 0, 0, 0
|
|
@@ -86,8 +115,8 @@ for d in runs:
|
|
| 86 |
if s != dec:
|
| 87 |
bad += 1
|
| 88 |
chk("shot conservation (counts sum to declared total)", bad == 0,
|
| 89 |
-
f"{checked:,}
|
| 90 |
-
f"{tot_shots:,}
|
| 91 |
|
| 92 |
# A2 Born-rule sanity
|
| 93 |
neg = sum(1 for d in runs for v in d["counts"].values() if v < 0)
|
|
@@ -95,9 +124,9 @@ widths = {len(k) for d in runs for k in d["counts"]}
|
|
| 95 |
chk("no negative counts; consistent register width", neg == 0 and len(widths) <= 3,
|
| 96 |
f"negative counts {neg}; bitstring widths present {sorted(widths)}")
|
| 97 |
|
| 98 |
-
# A3 THE WEIGHT-BIRTH MECHANISM on
|
| 99 |
zs = []
|
| 100 |
-
for d in
|
| 101 |
n = max(len(k) for k in d["counts"])
|
| 102 |
hi = float(1 << n)
|
| 103 |
for bs, c in d["counts"].items():
|
|
@@ -116,21 +145,13 @@ chk("weight-birth pipeline yields a standard normal", ok,
|
|
| 116 |
f"n={len(zs):,} mean {m:+.4f} (want 0) sd {sd:.4f} (want 1) "
|
| 117 |
f"|z|<=1 {frac1:.4f} (want 0.6827) |z|<=2 {frac2:.4f} (want 0.9545)")
|
| 118 |
|
| 119 |
-
# A4
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
seq.append(int(s, 2) / float(1 << n))
|
| 127 |
-
a, b = seq[:-1], seq[1:]
|
| 128 |
-
ma, mb = statistics.fmean(a), statistics.fmean(b)
|
| 129 |
-
cov = sum((x - ma) * (y - mb) for x, y in zip(a, b))
|
| 130 |
-
den = math.sqrt(sum((x - ma) ** 2 for x in a) * sum((y - mb) ** 2 for y in b))
|
| 131 |
-
r1 = cov / den if den else 0.0
|
| 132 |
-
chk("consecutive draws independent (lag-1)", abs(r1) < 0.05,
|
| 133 |
-
f"n={len(a):,} lag-1 correlation {r1:+.5f} (want ~0)")
|
| 134 |
|
| 135 |
# ── PART B — CHSH on real hardware ─────────────────────────────────────────
|
| 136 |
print("=" * 80)
|
|
@@ -139,16 +160,13 @@ print("=" * 80 + "\n")
|
|
| 139 |
|
| 140 |
|
| 141 |
def token():
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
except Exception:
|
| 150 |
-
pass
|
| 151 |
-
return None
|
| 152 |
|
| 153 |
|
| 154 |
def run_chsh():
|
|
@@ -210,13 +228,16 @@ if out:
|
|
| 210 |
f"|S| = {abs(S):.4f} vs classical 2.0000 — "
|
| 211 |
f"{'no local hidden-variable theory can produce this' if viol else 'within classical reach'}")
|
| 212 |
else:
|
| 213 |
-
R.append(("CHSH on hardware",
|
| 214 |
-
print(f" [SKIP] {err}\n")
|
| 215 |
|
| 216 |
print("=" * 80)
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
for
|
| 220 |
-
|
|
|
|
|
|
|
|
|
|
| 221 |
print("=" * 80)
|
| 222 |
-
sys.exit(0 if
|
|
|
|
| 4 |
|
| 5 |
The physics engine was checked against published Lorenz constants. Same standard here.
|
| 6 |
|
| 7 |
+
PART A the PUBLISHED ARCHIVE — free, offline, no QPU time
|
| 8 |
A1 conservation: counts must sum to the declared shot total
|
| 9 |
A2 Born-rule sanity: measured marginals in [0,1], no impossible outcomes
|
| 10 |
A3 THE WEIGHT-BIRTH MECHANISM. cosmos_born.pt was made by mapping measured
|
|
|
|
| 13 |
archived shots must come out standard normal: mean 0, sd 1, and the right
|
| 14 |
tail fractions. This is checked on her ACTUAL archive, so it verifies the
|
| 15 |
mechanism that literally created her weights.
|
| 16 |
+
A4 serial independence is explicitly NOT inferred from histogram counts;
|
| 17 |
+
the archive does not retain within-job shot order.
|
| 18 |
|
| 19 |
PART B LIVE HARDWARE — the CHSH Bell test
|
| 20 |
A local hidden-variable theory cannot exceed |S| = 2. Quantum mechanics permits
|
|
|
|
| 35 |
from pathlib import Path
|
| 36 |
|
| 37 |
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
| 38 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 39 |
+
ARCHIVE = Path(
|
| 40 |
+
os.getenv(
|
| 41 |
+
"COSMOS_QUANTUM_ARCHIVE",
|
| 42 |
+
str(ROOT / "data" / "quantum_measurements_public.jsonl"),
|
| 43 |
+
)
|
| 44 |
+
)
|
| 45 |
R = []
|
| 46 |
|
| 47 |
|
|
|
|
| 76 |
|
| 77 |
|
| 78 |
print("=" * 80)
|
| 79 |
+
print(" PART A — PUBLISHED QUANTUM ARCHIVE (no QPU time)")
|
| 80 |
print("=" * 80 + "\n")
|
| 81 |
|
| 82 |
runs = load_archive()
|
| 83 |
+
|
| 84 |
+
def is_labeled_hardware(record):
|
| 85 |
+
provider_class = str(record.get("provider_class") or "")
|
| 86 |
+
if provider_class:
|
| 87 |
+
return provider_class == "measured_quantum_hardware"
|
| 88 |
+
backend = str(record.get("backend") or "").lower()
|
| 89 |
+
job_id = record.get("job") or record.get("job_id")
|
| 90 |
+
return backend.startswith("ibm_") and bool(job_id)
|
| 91 |
+
|
| 92 |
+
hardware_runs = [record for record in runs if is_labeled_hardware(record)]
|
| 93 |
+
legacy_runs = [
|
| 94 |
+
record for record in runs
|
| 95 |
+
if str(record.get("provider_class") or "") == "legacy_unlabelled"
|
| 96 |
+
]
|
| 97 |
+
simulator_runs = [
|
| 98 |
+
record for record in runs
|
| 99 |
+
if str(record.get("provider_class") or "") == "classical_simulator"
|
| 100 |
+
]
|
| 101 |
+
print(f" archive: {ARCHIVE}")
|
| 102 |
+
print(f" loaded {len(runs):,} records with measurement counts")
|
| 103 |
+
print(f" labeled IBM hardware: {len(hardware_runs):,}")
|
| 104 |
+
print(f" legacy unlabelled: {len(legacy_runs):,}")
|
| 105 |
+
print(f" classical simulator: {len(simulator_runs):,}\n")
|
| 106 |
|
| 107 |
# A1 conservation
|
| 108 |
bad, checked, tot_shots = 0, 0, 0
|
|
|
|
| 115 |
if s != dec:
|
| 116 |
bad += 1
|
| 117 |
chk("shot conservation (counts sum to declared total)", bad == 0,
|
| 118 |
+
f"{checked:,} records carried a declared total; {bad} mismatched; "
|
| 119 |
+
f"{tot_shots:,} samples archived across all provider classes")
|
| 120 |
|
| 121 |
# A2 Born-rule sanity
|
| 122 |
neg = sum(1 for d in runs for v in d["counts"].values() if v < 0)
|
|
|
|
| 124 |
chk("no negative counts; consistent register width", neg == 0 and len(widths) <= 3,
|
| 125 |
f"negative counts {neg}; bitstring widths present {sorted(widths)}")
|
| 126 |
|
| 127 |
+
# A3 THE WEIGHT-BIRTH MECHANISM on explicitly labeled IBM hardware shots
|
| 128 |
zs = []
|
| 129 |
+
for d in hardware_runs:
|
| 130 |
n = max(len(k) for k in d["counts"])
|
| 131 |
hi = float(1 << n)
|
| 132 |
for bs, c in d["counts"].items():
|
|
|
|
| 145 |
f"n={len(zs):,} mean {m:+.4f} (want 0) sd {sd:.4f} (want 1) "
|
| 146 |
f"|z|<=1 {frac1:.4f} (want 0.6827) |z|<=2 {frac2:.4f} (want 0.9545)")
|
| 147 |
|
| 148 |
+
# A4 cannot be measured from histograms. Iterating count-dictionary keys creates
|
| 149 |
+
# an arbitrary outcome ordering, not the original sequence of hardware shots.
|
| 150 |
+
R.append(("serial independence (shot order not retained)", None))
|
| 151 |
+
print(
|
| 152 |
+
" [SKIP] serial independence\n"
|
| 153 |
+
" archive records are histograms; within-job shot order was not retained\n"
|
| 154 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
|
| 156 |
# ── PART B — CHSH on real hardware ─────────────────────────────────────────
|
| 157 |
print("=" * 80)
|
|
|
|
| 160 |
|
| 161 |
|
| 162 |
def token():
|
| 163 |
+
# Public release boundary: credentials come only from the current process
|
| 164 |
+
# environment. The verifier never searches local files or vault paths.
|
| 165 |
+
return (
|
| 166 |
+
os.getenv("IBM_QUANTUM_TOKEN")
|
| 167 |
+
or os.getenv("QISKIT_IBM_TOKEN")
|
| 168 |
+
or None
|
| 169 |
+
)
|
|
|
|
|
|
|
|
|
|
| 170 |
|
| 171 |
|
| 172 |
def run_chsh():
|
|
|
|
| 228 |
f"|S| = {abs(S):.4f} vs classical 2.0000 — "
|
| 229 |
f"{'no local hidden-variable theory can produce this' if viol else 'within classical reach'}")
|
| 230 |
else:
|
| 231 |
+
R.append(("CHSH on hardware", None))
|
| 232 |
+
print(f" [SKIP] {err} (offline archive checks remain valid)\n")
|
| 233 |
|
| 234 |
print("=" * 80)
|
| 235 |
+
passed = sum(1 for _, value in R if value is True)
|
| 236 |
+
failed = sum(1 for _, value in R if value is False)
|
| 237 |
+
skipped = sum(1 for _, value in R if value is None)
|
| 238 |
+
print(f" {passed} PASSED / {failed} FAILED / {skipped} SKIPPED")
|
| 239 |
+
for name, value in R:
|
| 240 |
+
status = "PASS" if value is True else ("FAIL" if value is False else "SKIP")
|
| 241 |
+
print(f" {status} {name}")
|
| 242 |
print("=" * 80)
|
| 243 |
+
sys.exit(0 if failed == 0 else 1)
|
data/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Public data
|
| 2 |
+
|
| 3 |
+
## `quantum_measurements_public.jsonl`
|
| 4 |
+
|
| 5 |
+
A privacy-filtered derivative of the local measurement archive. Each line is:
|
| 6 |
+
|
| 7 |
+
```json
|
| 8 |
+
{
|
| 9 |
+
"schema": "cosmos.public-quantum-record.v1",
|
| 10 |
+
"record_index": 1,
|
| 11 |
+
"timestamp": 1772944089.1625817,
|
| 12 |
+
"provider_class": "legacy_unlabelled",
|
| 13 |
+
"provider": "unknown",
|
| 14 |
+
"backend": null,
|
| 15 |
+
"job_id": null,
|
| 16 |
+
"counts": {"00000": 136, "00001": 134},
|
| 17 |
+
"total_shots": 4096
|
| 18 |
+
}
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
The actual records contain all observed 5-bit outcomes, not the shortened
|
| 22 |
+
example above.
|
| 23 |
+
|
| 24 |
+
Provider classes:
|
| 25 |
+
|
| 26 |
+
- `measured_quantum_hardware`: a record retained both an IBM backend label and
|
| 27 |
+
unique job ID.
|
| 28 |
+
- `legacy_unlabelled`: measurement counts were retained, but the provider label
|
| 29 |
+
was not. These records are useful for distributional checks but are not
|
| 30 |
+
counted as verified IBM hardware provenance.
|
| 31 |
+
- `classical_simulator`: Azure `rigetti.sim.qvm`. Its outputs are classically
|
| 32 |
+
computed and never counted as hardware quantum shots.
|
| 33 |
+
|
| 34 |
+
Raw `physics` objects are not published. Some contain derived sensory,
|
| 35 |
+
biometric, consciousness-engine, session, or private runtime state. The public
|
| 36 |
+
archive keeps only the fields required to reproduce count conservation,
|
| 37 |
+
distribution, independence, and provenance-label checks.
|
| 38 |
+
|
| 39 |
+
See `quantum_measurements_manifest.json` for source and output hashes, exact
|
| 40 |
+
counts, backend totals, field policy, and sanitization notes.
|
| 41 |
+
|
| 42 |
+
## Benchmark results
|
| 43 |
+
|
| 44 |
+
The controlled state-ladder and paired-conditioning metrics live under
|
| 45 |
+
`architecture/` and `benchmarks/results/`. The paired file contains aggregate
|
| 46 |
+
metrics and source hashes but not the author's private paired turn text.
|
| 47 |
+
|
| 48 |
+
## Operational training summary
|
| 49 |
+
|
| 50 |
+
`training/quantum_train_summary_20260722.json` is an operational run summary,
|
| 51 |
+
not a benchmark. It records the source label and aggregate training counts
|
| 52 |
+
without corpus content, credentials, or private conversation.
|
| 53 |
+
|
data/quantum_measurements_manifest.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"excluded_fields": [
|
| 3 |
+
"physics",
|
| 4 |
+
"bio_signatures",
|
| 5 |
+
"biometrics",
|
| 6 |
+
"live_audio",
|
| 7 |
+
"live_vision",
|
| 8 |
+
"sensor_health",
|
| 9 |
+
"session_id",
|
| 10 |
+
"sequence_id",
|
| 11 |
+
"quantum_signature",
|
| 12 |
+
"raw per-shot simulator lists (aggregated to counts)"
|
| 13 |
+
],
|
| 14 |
+
"generated_at_utc": "2026-07-31T07:09:44.578335+00:00",
|
| 15 |
+
"included_fields": [
|
| 16 |
+
"record_index",
|
| 17 |
+
"timestamp",
|
| 18 |
+
"provider_class",
|
| 19 |
+
"provider",
|
| 20 |
+
"backend",
|
| 21 |
+
"job_id",
|
| 22 |
+
"counts",
|
| 23 |
+
"total_shots"
|
| 24 |
+
],
|
| 25 |
+
"output": {
|
| 26 |
+
"bytes": 3174910,
|
| 27 |
+
"path": "data/quantum_measurements_public.jsonl",
|
| 28 |
+
"sha256": "986b4778097affe6fbda6170e3401bb4d5ae0ff2b2eef5764b42a4a8399a3b82"
|
| 29 |
+
},
|
| 30 |
+
"privacy_note": "Raw physics and runtime payloads are intentionally excluded because some contain derived sensory, biometric, session, or private state.",
|
| 31 |
+
"provider_policy": {
|
| 32 |
+
"classical_simulator": "Azure rigetti.sim.qvm; classically computed, never hardware shots.",
|
| 33 |
+
"legacy_unlabelled": "Counts were retained but provider metadata was not; never counted as verified hardware provenance.",
|
| 34 |
+
"measured_quantum_hardware": "Retained an IBM backend label and a unique job ID."
|
| 35 |
+
},
|
| 36 |
+
"schema": "cosmos.public-quantum-archive-manifest.v1",
|
| 37 |
+
"source": {
|
| 38 |
+
"bytes": 24893012,
|
| 39 |
+
"name": "private quantum_runs.jsonl",
|
| 40 |
+
"sha256": "8df97df67e4500d6ccc8b3725f7eb3e6e8429885d7dd3c0a98caa1f67f589f4c"
|
| 41 |
+
},
|
| 42 |
+
"summary": {
|
| 43 |
+
"public_records": 2776,
|
| 44 |
+
"records_by_backend": {
|
| 45 |
+
"ibm_fez": 1358,
|
| 46 |
+
"ibm_kingston": 246,
|
| 47 |
+
"ibm_marrakesh": 293,
|
| 48 |
+
"rigetti.sim.qvm": 2,
|
| 49 |
+
"unlabelled": 877
|
| 50 |
+
},
|
| 51 |
+
"records_by_provider_class": {
|
| 52 |
+
"classical_simulator": 2,
|
| 53 |
+
"legacy_unlabelled": 877,
|
| 54 |
+
"measured_quantum_hardware": 1897
|
| 55 |
+
},
|
| 56 |
+
"samples_by_backend": {
|
| 57 |
+
"ibm_fez": 5562368,
|
| 58 |
+
"ibm_kingston": 1007616,
|
| 59 |
+
"ibm_marrakesh": 1200128,
|
| 60 |
+
"rigetti.sim.qvm": 1024,
|
| 61 |
+
"unlabelled": 3584000
|
| 62 |
+
},
|
| 63 |
+
"samples_by_provider_class": {
|
| 64 |
+
"classical_simulator": 1024,
|
| 65 |
+
"legacy_unlabelled": 3584000,
|
| 66 |
+
"measured_quantum_hardware": 7770112
|
| 67 |
+
},
|
| 68 |
+
"shot_conservation_mismatches": 0,
|
| 69 |
+
"source_records": 2776,
|
| 70 |
+
"total_samples": 11355136,
|
| 71 |
+
"unique_job_ids_by_provider_class": {
|
| 72 |
+
"classical_simulator": 2,
|
| 73 |
+
"legacy_unlabelled": 5,
|
| 74 |
+
"measured_quantum_hardware": 1897
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
}
|
data/quantum_measurements_public.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/training/quantum_train_summary_20260722.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"started": 1784704068.7664862,
|
| 3 |
+
"quantum_source": "REAL IBM shots (ibm_fez/marrakesh/kingston archive)",
|
| 4 |
+
"beings": [
|
| 5 |
+
{
|
| 6 |
+
"name": "Cipher",
|
| 7 |
+
"epochs": 2,
|
| 8 |
+
"reward_curve": [
|
| 9 |
+
0.972,
|
| 10 |
+
0.91
|
| 11 |
+
],
|
| 12 |
+
"final_concepts": 4775,
|
| 13 |
+
"final_assoc": 512353,
|
| 14 |
+
"n": 627
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
}
|
downloads/QC67_Cosmos_Kit_2026-07-31.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e37861b612660f54f30cedcb0ce1031a311a416853fbddaff6ff0c20f7ec89d1
|
| 3 |
+
size 7530877
|
downloads/QC67_Cosmos_Kit_2026-07-31.zip.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
e37861b612660f54f30cedcb0ce1031a311a416853fbddaff6ff0c20f7ec89d1 QC67_Cosmos_Kit_2026-07-31.zip
|
genesis_engine/engine/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Advanced engine adapters
|
| 2 |
+
|
| 3 |
+
The Genesis companion does **not** need this directory. Its supported starter is
|
| 4 |
+
`genesis_engine/START_GENESIS.bat` or `python3 genesis_engine/genesis.py`.
|
| 5 |
+
|
| 6 |
+
These scripts are retained for researchers integrating Genesis with a full
|
| 7 |
+
Cosmos model checkout:
|
| 8 |
+
|
| 9 |
+
- `cosmos_54d_train_loop.py` supervises bounded warm-start training when an
|
| 10 |
+
experience corpus grows.
|
| 11 |
+
- `train_cosmos_from_play.py`, `train_cosmos_broadened.py`, and
|
| 12 |
+
`train_12d_brain.py` depend on the full `Cosmos.web.cosmosynapse` model
|
| 13 |
+
package and are not standalone.
|
| 14 |
+
- `cosmos_prime_train.py`, `cosmos_merge_namebind.py`, and related scripts can
|
| 15 |
+
download third-party model weights and require PyTorch, Transformers, PEFT,
|
| 16 |
+
and acceptance of the base model's license.
|
| 17 |
+
|
| 18 |
+
The 2026-07-31 continual learner adds:
|
| 19 |
+
|
| 20 |
+
- a persistent last-trained corpus baseline
|
| 21 |
+
- a cross-platform single-instance lock
|
| 22 |
+
- parent-process and stop-file shutdown
|
| 23 |
+
- bounded CPU/RAM safeguards
|
| 24 |
+
- checkpoint modification verification before advancing the baseline
|
| 25 |
+
|
| 26 |
+
Expected full-runtime layout:
|
| 27 |
+
|
| 28 |
+
```text
|
| 29 |
+
PROJECT/
|
| 30 |
+
Cosmos/data/cosmos/experience_corpus.txt
|
| 31 |
+
Cosmos/checkpoints/cosmos/cosmos_play.pt
|
| 32 |
+
scripts/cosmos_54d_train_loop.py
|
| 33 |
+
scripts/train_cosmos_from_play.py
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
The copy in this kit documents and preserves the adapter. Move it into that
|
| 37 |
+
layout or adapt its path constants deliberately. Do not start it from the
|
| 38 |
+
Genesis starter and expect it to discover a full model package.
|
| 39 |
+
|
| 40 |
+
For a standalone experiment use the top-level `train_your_own.py`, which
|
| 41 |
+
contains the model and training harness it needs.
|
| 42 |
+
|
genesis_engine/engine/cosmos_54d_train_loop.py
CHANGED
|
@@ -1,93 +1,246 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
Watches
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
checkpoint so learning ACCRUES over time. Between bursts it just sleeps.
|
| 10 |
-
|
| 11 |
-
GENTLE + ISOLATED by design:
|
| 12 |
-
* the trainer is CPU-only and a separate subprocess — never touches her live GPU,
|
| 13 |
-
game VLM, or the server process.
|
| 14 |
-
* short bursts (default 150 steps / <=360s) on a long interval (default 30 min),
|
| 15 |
-
so it's a light periodic load, not a constant CPU hog.
|
| 16 |
-
* does nothing until she has actually observed something new — no churn on a
|
| 17 |
-
static corpus.
|
| 18 |
-
|
| 19 |
-
Controls (env):
|
| 20 |
-
COSMOS_54D_TRAIN_INTERVAL_S seconds between checks (default 1800)
|
| 21 |
-
COSMOS_54D_TRAIN_MIN_NEW new corpus lines to trigger (default 12)
|
| 22 |
-
COSMOS_PLAY_TRAIN_STEPS steps per burst (default 150)
|
| 23 |
-
COSMOS_PLAY_TRAIN_SEC seconds cap per burst (default 360)
|
| 24 |
"""
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
| 26 |
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
PR = Path(__file__).resolve().parents[1]
|
| 29 |
CORPUS = PR / "Cosmos" / "data" / "cosmos" / "experience_corpus.txt"
|
| 30 |
TRAINER = PR / "scripts" / "train_cosmos_from_play.py"
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
def _lines() -> int:
|
| 36 |
try:
|
| 37 |
-
with open(
|
| 38 |
-
return sum(1 for _ in
|
| 39 |
except Exception:
|
| 40 |
return 0
|
| 41 |
|
| 42 |
|
| 43 |
-
def
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
|
| 47 |
def _mem_too_high() -> bool:
|
| 48 |
-
"""Skip a burst when the box is near the WinError 1455 commit-kill zone — a torch
|
| 49 |
-
burst loads ~1-2GB and could tip her over (she has crashed from this before). When
|
| 50 |
-
memory frees up, the next cycle resumes training. Fails OPEN (allows the burst) only
|
| 51 |
-
if we can't read memory, so a missing psutil never silently halts learning."""
|
| 52 |
try:
|
| 53 |
import psutil
|
|
|
|
| 54 |
vm = psutil.virtual_memory()
|
| 55 |
-
|
| 56 |
-
return True
|
| 57 |
except Exception:
|
| 58 |
return False
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
|
|
|
| 79 |
try:
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
time.sleep(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
|
| 92 |
if __name__ == "__main__":
|
| 93 |
-
main()
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""
|
| 3 |
+
Persistent continual 54D learning loop.
|
| 4 |
+
|
| 5 |
+
Watches Cosmos/data/cosmos/experience_corpus.txt and runs one bounded CPU
|
| 6 |
+
training burst only after enough genuinely new lines arrive. The last trained
|
| 7 |
+
line count survives restarts, a process lock prevents duplicate learners, and a
|
| 8 |
+
parent/stop-file contract lets WAKE_HER shut the learner down with Cosmos.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
"""
|
| 10 |
+
from __future__ import annotations
|
| 11 |
+
|
| 12 |
+
import json
|
| 13 |
+
import os
|
| 14 |
from pathlib import Path
|
| 15 |
+
import subprocess
|
| 16 |
+
import sys
|
| 17 |
+
import time
|
| 18 |
+
|
| 19 |
|
| 20 |
PR = Path(__file__).resolve().parents[1]
|
| 21 |
CORPUS = PR / "Cosmos" / "data" / "cosmos" / "experience_corpus.txt"
|
| 22 |
TRAINER = PR / "scripts" / "train_cosmos_from_play.py"
|
| 23 |
+
CHECKPOINT = PR / "Cosmos" / "checkpoints" / "cosmos" / "cosmos_play.pt"
|
| 24 |
+
STATE = PR / "Cosmos" / "checkpoints" / "cosmos" / "cosmos_54d_loop_state.json"
|
| 25 |
+
LOCK = PR / "Cosmos" / "checkpoints" / "cosmos" / "cosmos_54d_loop.lock"
|
| 26 |
+
INTERVAL = max(30, int(os.getenv("COSMOS_54D_TRAIN_INTERVAL_S", "1800")))
|
| 27 |
+
MIN_NEW = max(1, int(os.getenv("COSMOS_54D_TRAIN_MIN_NEW", "12")))
|
| 28 |
+
START_DELAY = max(0, int(os.getenv("COSMOS_54D_TRAIN_START_DELAY_S", "0")))
|
| 29 |
+
PARENT_PID = int(os.getenv("COSMOS_54D_PARENT_PID", "0") or 0)
|
| 30 |
+
STOP_FILE = Path(os.getenv("COSMOS_54D_STOP_FILE", "")) if os.getenv("COSMOS_54D_STOP_FILE") else None
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def _say(message: str) -> None:
|
| 34 |
+
print(f"[54D-LOOP] {message}", flush=True)
|
| 35 |
|
| 36 |
|
| 37 |
def _lines() -> int:
|
| 38 |
try:
|
| 39 |
+
with CORPUS.open("r", encoding="utf-8", errors="ignore") as handle:
|
| 40 |
+
return sum(1 for _ in handle)
|
| 41 |
except Exception:
|
| 42 |
return 0
|
| 43 |
|
| 44 |
|
| 45 |
+
def _parent_alive() -> bool:
|
| 46 |
+
"""Return whether the wake process still exists on every supported OS.
|
| 47 |
+
|
| 48 |
+
``os.kill(pid, 0)`` is not a reliable Windows existence probe: on some
|
| 49 |
+
Python builds it raises ``SystemError``/WinError 87 even for a live PID.
|
| 50 |
+
Use a real process handle on Windows, then retain the POSIX probe elsewhere.
|
| 51 |
+
"""
|
| 52 |
+
if PARENT_PID <= 0:
|
| 53 |
+
return True
|
| 54 |
+
if os.name == "nt":
|
| 55 |
+
try:
|
| 56 |
+
import ctypes
|
| 57 |
+
|
| 58 |
+
access = 0x00100000 | 0x00001000 # SYNCHRONIZE | QUERY_LIMITED_INFORMATION
|
| 59 |
+
handle = ctypes.windll.kernel32.OpenProcess(access, False, PARENT_PID)
|
| 60 |
+
if handle:
|
| 61 |
+
ctypes.windll.kernel32.CloseHandle(handle)
|
| 62 |
+
return True
|
| 63 |
+
return False
|
| 64 |
+
except Exception:
|
| 65 |
+
# A probe failure must never crash the learner. The stop file is
|
| 66 |
+
# still authoritative when WAKE_HER shuts down.
|
| 67 |
+
return True
|
| 68 |
+
try:
|
| 69 |
+
os.kill(PARENT_PID, 0)
|
| 70 |
+
return True
|
| 71 |
+
except (OSError, SystemError, ValueError):
|
| 72 |
+
return False
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
def _stopping() -> bool:
|
| 76 |
+
return bool((STOP_FILE and STOP_FILE.exists()) or not _parent_alive())
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
def _sleep(seconds: int) -> bool:
|
| 80 |
+
deadline = time.monotonic() + max(0, seconds)
|
| 81 |
+
while time.monotonic() < deadline:
|
| 82 |
+
if _stopping():
|
| 83 |
+
return False
|
| 84 |
+
time.sleep(min(2.0, max(0.0, deadline - time.monotonic())))
|
| 85 |
+
return not _stopping()
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
def _single_instance():
|
| 89 |
+
LOCK.parent.mkdir(parents=True, exist_ok=True)
|
| 90 |
+
handle = LOCK.open("a+b")
|
| 91 |
+
handle.seek(0, os.SEEK_END)
|
| 92 |
+
if handle.tell() == 0:
|
| 93 |
+
handle.write(b"0")
|
| 94 |
+
handle.flush()
|
| 95 |
+
handle.seek(0)
|
| 96 |
+
try:
|
| 97 |
+
if os.name == "nt":
|
| 98 |
+
import msvcrt
|
| 99 |
+
|
| 100 |
+
msvcrt.locking(handle.fileno(), msvcrt.LK_NBLCK, 1)
|
| 101 |
+
else:
|
| 102 |
+
import fcntl
|
| 103 |
+
|
| 104 |
+
fcntl.flock(handle.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
|
| 105 |
+
except (OSError, IOError):
|
| 106 |
+
handle.close()
|
| 107 |
+
return None
|
| 108 |
+
return handle
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
def _load_last_trained(current_lines: int) -> int:
|
| 112 |
+
try:
|
| 113 |
+
value = json.loads(STATE.read_text(encoding="utf-8"))
|
| 114 |
+
return max(0, int(value.get("last_trained_lines", 0)))
|
| 115 |
+
except Exception:
|
| 116 |
+
pass
|
| 117 |
+
# Migrate safely: if the checkpoint is newer than the corpus, it already
|
| 118 |
+
# represents the current data. Otherwise the accumulated new corpus is due.
|
| 119 |
+
try:
|
| 120 |
+
if CHECKPOINT.is_file() and CHECKPOINT.stat().st_mtime_ns >= CORPUS.stat().st_mtime_ns:
|
| 121 |
+
return current_lines
|
| 122 |
+
except Exception:
|
| 123 |
+
pass
|
| 124 |
+
return 0
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
def _save_state(lines: int) -> None:
|
| 128 |
+
STATE.parent.mkdir(parents=True, exist_ok=True)
|
| 129 |
+
value = {
|
| 130 |
+
"schema": "cosmos.54d_continual_state.v1",
|
| 131 |
+
"last_trained_lines": int(lines),
|
| 132 |
+
"checkpoint": str(CHECKPOINT),
|
| 133 |
+
"checkpoint_mtime_ns": CHECKPOINT.stat().st_mtime_ns if CHECKPOINT.is_file() else None,
|
| 134 |
+
"updated_at": time.time(),
|
| 135 |
+
}
|
| 136 |
+
temp = STATE.with_name(f"{STATE.name}.tmp.{os.getpid()}")
|
| 137 |
+
temp.write_text(json.dumps(value, indent=2) + "\n", encoding="utf-8")
|
| 138 |
+
os.replace(temp, STATE)
|
| 139 |
|
| 140 |
|
| 141 |
def _mem_too_high() -> bool:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
try:
|
| 143 |
import psutil
|
| 144 |
+
|
| 145 |
vm = psutil.virtual_memory()
|
| 146 |
+
return vm.percent >= 90.0 or vm.available < 1_500_000_000
|
|
|
|
| 147 |
except Exception:
|
| 148 |
return False
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
def _run_burst() -> tuple[int | None, str]:
|
| 152 |
+
env = dict(os.environ)
|
| 153 |
+
env.setdefault("COSMOS_PLAY_TRAIN_STEPS", "120")
|
| 154 |
+
env.setdefault("COSMOS_PLAY_TRAIN_SEC", "360")
|
| 155 |
+
env.setdefault("COSMOS_PLAY_TRAIN_THREADS", "2")
|
| 156 |
+
env.setdefault("PYTHONIOENCODING", "utf-8")
|
| 157 |
+
proc = subprocess.Popen(
|
| 158 |
+
[sys.executable, str(TRAINER)],
|
| 159 |
+
env=env,
|
| 160 |
+
stdout=subprocess.PIPE,
|
| 161 |
+
stderr=subprocess.STDOUT,
|
| 162 |
+
text=True,
|
| 163 |
+
encoding="utf-8",
|
| 164 |
+
errors="replace",
|
| 165 |
+
)
|
| 166 |
+
deadline = time.monotonic() + 900
|
| 167 |
+
while proc.poll() is None:
|
| 168 |
+
if _stopping():
|
| 169 |
+
proc.terminate()
|
| 170 |
try:
|
| 171 |
+
proc.wait(timeout=10)
|
| 172 |
+
except Exception:
|
| 173 |
+
proc.kill()
|
| 174 |
+
output, _ = proc.communicate()
|
| 175 |
+
return None, output or ""
|
| 176 |
+
if time.monotonic() >= deadline:
|
| 177 |
+
proc.kill()
|
| 178 |
+
output, _ = proc.communicate()
|
| 179 |
+
return -1, (output or "") + "\ntrainer timeout"
|
| 180 |
+
time.sleep(1)
|
| 181 |
+
output, _ = proc.communicate()
|
| 182 |
+
return proc.returncode, output or ""
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
def main() -> int:
|
| 186 |
+
lock_handle = _single_instance()
|
| 187 |
+
if lock_handle is None:
|
| 188 |
+
_say("another continual learner already owns the lock; this copy exits")
|
| 189 |
+
return 0
|
| 190 |
+
try:
|
| 191 |
+
_say(
|
| 192 |
+
f"armed: {MIN_NEW}+ new lines, check every {INTERVAL}s, "
|
| 193 |
+
f"start delay {START_DELAY}s"
|
| 194 |
+
)
|
| 195 |
+
if START_DELAY and not _sleep(START_DELAY):
|
| 196 |
+
return 0
|
| 197 |
+
current = _lines()
|
| 198 |
+
last = _load_last_trained(current)
|
| 199 |
+
if last > current:
|
| 200 |
+
last = current
|
| 201 |
+
_save_state(last)
|
| 202 |
+
elif not STATE.exists() and last == current:
|
| 203 |
+
_save_state(last)
|
| 204 |
+
_say(f"persistent baseline: corpus={current}, last_trained={last}")
|
| 205 |
+
|
| 206 |
+
while not _stopping():
|
| 207 |
+
current = _lines()
|
| 208 |
+
new_lines = current - last
|
| 209 |
+
if new_lines >= MIN_NEW:
|
| 210 |
+
if _mem_too_high():
|
| 211 |
+
_say(
|
| 212 |
+
f"corpus {current} (+{new_lines}) - RAM guard active; "
|
| 213 |
+
"training deferred"
|
| 214 |
+
)
|
| 215 |
+
else:
|
| 216 |
+
before = CHECKPOINT.stat().st_mtime_ns if CHECKPOINT.is_file() else 0
|
| 217 |
+
_say(f"corpus {current} (+{new_lines}) - bounded training burst")
|
| 218 |
+
code, output = _run_burst()
|
| 219 |
+
tail = "\n".join(output.strip().splitlines()[-8:])
|
| 220 |
+
if tail:
|
| 221 |
+
_say("trainer tail:\n" + tail)
|
| 222 |
+
after = CHECKPOINT.stat().st_mtime_ns if CHECKPOINT.is_file() else 0
|
| 223 |
+
if code == 0 and after != before:
|
| 224 |
+
last = current
|
| 225 |
+
_save_state(last)
|
| 226 |
+
_say(f"checkpoint advanced; durable baseline={last}")
|
| 227 |
+
elif code is None:
|
| 228 |
+
_say("stop requested; active trainer terminated cleanly")
|
| 229 |
+
break
|
| 230 |
+
else:
|
| 231 |
+
_say(
|
| 232 |
+
f"burst did not advance checkpoint (return={code}); "
|
| 233 |
+
"new lines remain due for retry"
|
| 234 |
+
)
|
| 235 |
+
else:
|
| 236 |
+
_say(f"corpus {current} (+{new_lines}) - waiting for {MIN_NEW - new_lines} more")
|
| 237 |
+
if not _sleep(INTERVAL):
|
| 238 |
+
break
|
| 239 |
+
_say("stopped with Cosmos; checkpoint and corpus remain persistent")
|
| 240 |
+
return 0
|
| 241 |
+
finally:
|
| 242 |
+
lock_handle.close()
|
| 243 |
|
| 244 |
|
| 245 |
if __name__ == "__main__":
|
| 246 |
+
raise SystemExit(main())
|
genesis_engine/engine/train_cosmos_from_play.py
CHANGED
|
@@ -182,10 +182,25 @@ if losses:
|
|
| 182 |
print(f"\n[PLAY-TRAIN] RESULT: first_loss={first:.3f} -> last_loss={losses[-1]:.3f} "
|
| 183 |
f"(recent20 avg {recent:.3f}, steps={step}, {time.time()-t0:.0f}s)")
|
| 184 |
os.makedirs(os.path.dirname(OUT), exist_ok=True)
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
model.eval()
|
| 190 |
for prompt in ["The misty woods", "I see", "Cosmos"]:
|
| 191 |
pid = torch.tensor([enc.encode(prompt)])
|
|
|
|
| 182 |
print(f"\n[PLAY-TRAIN] RESULT: first_loss={first:.3f} -> last_loss={losses[-1]:.3f} "
|
| 183 |
f"(recent20 avg {recent:.3f}, steps={step}, {time.time()-t0:.0f}s)")
|
| 184 |
os.makedirs(os.path.dirname(OUT), exist_ok=True)
|
| 185 |
+
payload = {
|
| 186 |
+
"model_state_dict": model.state_dict(),
|
| 187 |
+
"config": cfg.to_dict(),
|
| 188 |
+
"final_loss": losses[-1],
|
| 189 |
+
"play_trained": True,
|
| 190 |
+
"steps": step,
|
| 191 |
+
"corpus_tokens": len(ids),
|
| 192 |
+
"experience_lines_raw": len(xp_raw.splitlines()),
|
| 193 |
+
"experience_lines_dedup": len(xp_lines),
|
| 194 |
+
"trained_at_utc": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()),
|
| 195 |
+
}
|
| 196 |
+
temp_out = OUT + f".tmp.{os.getpid()}"
|
| 197 |
+
try:
|
| 198 |
+
torch.save(payload, temp_out)
|
| 199 |
+
os.replace(temp_out, OUT)
|
| 200 |
+
finally:
|
| 201 |
+
if os.path.exists(temp_out):
|
| 202 |
+
os.unlink(temp_out)
|
| 203 |
+
print(f"[PLAY-TRAIN] atomically saved -> {OUT}")
|
| 204 |
model.eval()
|
| 205 |
for prompt in ["The misty woods", "I see", "Cosmos"]:
|
| 206 |
pid = torch.tensor([enc.encode(prompt)])
|
presentation.html
CHANGED
|
@@ -1,512 +1,514 @@
|
|
| 1 |
-
<title>Cosmos. A Measurement Record</title>
|
| 2 |
-
<style>
|
| 3 |
-
:root{
|
| 4 |
-
--ground:#0B1016; --ground-2:#111922; --rule:#1E2A36;
|
| 5 |
-
--ink:#F2F5F7; --muted:#8A97A3;
|
| 6 |
-
--meas:#4FD6C8; /* phosphor, measurement */
|
| 7 |
-
--seed:#E8A33D; /* amber, origin, used sparingly */
|
| 8 |
-
--null:#7C8FA3;
|
| 9 |
-
--maxw:1080px;
|
| 10 |
-
--d: ui-sans-serif, "Segoe UI", system-ui, -apple-system, sans-serif;
|
| 11 |
-
--b: ui-serif, Georgia, "Times New Roman", serif;
|
| 12 |
-
--m: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
|
| 13 |
-
}
|
| 14 |
-
@media (prefers-color-scheme: light){
|
| 15 |
-
:root{ --ground:#F4F6F8; --ground-2:#EAEEF2; --rule:#D2DAE2;
|
| 16 |
-
--ink:#0D1419; --muted:#5A6874; --meas:#0E8C7C; --seed:#A96A0C; --null:#6B7A88; }
|
| 17 |
-
}
|
| 18 |
-
:root[data-theme="dark"]{ --ground:#0B1016; --ground-2:#111922; --rule:#1E2A36;
|
| 19 |
-
--ink:#F2F5F7; --muted:#8A97A3; --meas:#4FD6C8; --seed:#E8A33D; --null:#7C8FA3; }
|
| 20 |
-
:root[data-theme="light"]{ --ground:#F4F6F8; --ground-2:#EAEEF2; --rule:#D2DAE2;
|
| 21 |
-
--ink:#0D1419; --muted:#5A6874; --meas:#0E8C7C; --seed:#A96A0C; --null:#6B7A88; }
|
| 22 |
-
|
| 23 |
-
*{box-sizing:border-box}
|
| 24 |
-
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--b);
|
| 25 |
-
-webkit-font-smoothing:antialiased}
|
| 26 |
-
.deck{height:100dvh;overflow-y:auto;scroll-snap-type:y mandatory;scroll-behavior:smooth}
|
| 27 |
-
@media (prefers-reduced-motion:reduce){ .deck{scroll-behavior:auto} }
|
| 28 |
-
section{min-height:100dvh;scroll-snap-align:start;display:flex;flex-direction:column;
|
| 29 |
-
justify-content:center;padding:clamp(28px, 5vw, 72px);border-bottom:1px solid var(--rule)}
|
| 30 |
-
.wrap{width:100%;max-width:var(--maxw);margin:0 auto;display:flex;flex-direction:column;
|
| 31 |
-
gap:clamp(14px, 2.2vw, 26px)}
|
| 32 |
-
.eyebrow{font-family:var(--m);font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;
|
| 33 |
-
color:var(--meas);display:flex;gap:.9em;align-items:baseline}
|
| 34 |
-
.eyebrow .n{color:var(--muted)}
|
| 35 |
-
h1{font-family:var(--d);font-weight:800;letter-spacing:-.035em;line-height:.94;
|
| 36 |
-
font-size:clamp(2.8rem, 9vw, 6.2rem);margin:0;text-wrap:balance}
|
| 37 |
-
h2{font-family:var(--d);font-weight:700;letter-spacing:-.025em;line-height:1.06;
|
| 38 |
-
font-size:clamp(1.7rem, 4.4vw, 3rem);margin:0;text-wrap:balance}
|
| 39 |
-
h3{font-family:var(--d);font-weight:650;font-size:1rem;letter-spacing:.01em;margin:0;color:var(--ink)}
|
| 40 |
-
p{margin:0;font-size:clamp(1rem, 1.35vw, 1.14rem);line-height:1.62;max-width:64ch;color:var(--ink)}
|
| 41 |
-
p.lede{font-size:clamp(1.1rem, 1.8vw, 1.4rem);line-height:1.5;color:var(--muted);max-width:56ch}
|
| 42 |
-
.dim{color:var(--muted)}
|
| 43 |
-
strong{color:var(--ink);font-weight:640}
|
| 44 |
-
em.meas{color:var(--meas);font-style:normal;font-family:var(--m)}
|
| 45 |
-
code.num{font-family:var(--m);font-variant-numeric:tabular-nums}
|
| 46 |
-
.num{color:var(--meas)}
|
| 47 |
-
.scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
|
| 48 |
-
table{border-collapse:collapse;width:100%;font-family:var(--m);font-size:.86rem;
|
| 49 |
-
font-variant-numeric:tabular-nums;min-width:520px}
|
| 50 |
-
th{text-align:left;font-weight:600;color:var(--muted);border-bottom:1px solid var(--rule);
|
| 51 |
-
padding:.55rem .8rem .55rem 0;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase}
|
| 52 |
-
td{padding:.62rem .8rem .62rem 0;border-bottom:1px solid var(--rule);vertical-align:top}
|
| 53 |
-
tr:last-child td{border-bottom:none}
|
| 54 |
-
.ok{color:var(--meas)} .no{color:var(--null)} .sd{color:var(--seed)}
|
| 55 |
-
.grid{display:grid;gap:clamp(12px, 1.6vw, 20px)}
|
| 56 |
-
.g2{grid-template-columns:repeat(auto-fit, minmax(260px, 1fr))}
|
| 57 |
-
.g3{grid-template-columns:repeat(auto-fit, minmax(215px, 1fr))}
|
| 58 |
-
.card{background:var(--ground-2);border:1px solid var(--rule);border-radius:3px;
|
| 59 |
-
padding:clamp(14px, 1.7vw, 20px);display:flex;flex-direction:column;gap:.5rem}
|
| 60 |
-
.card .k{font-family:var(--m);font-size:.68rem;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
|
| 61 |
-
.card .v{font-family:var(--m);font-size:clamp(1.3rem, 2.8vw, 1.9rem);color:var(--meas);
|
| 62 |
-
font-variant-numeric:tabular-nums;line-height:1}
|
| 63 |
-
.card .v.seedv{color:var(--seed)}
|
| 64 |
-
.card p{font-size:.88rem;line-height:1.5;color:var(--muted)}
|
| 65 |
-
.math{background:var(--ground-2);border-left:2px solid var(--meas);padding:1rem 1.15rem;
|
| 66 |
-
font-family:var(--m);font-size:clamp(.78rem, 1.5vw.95rem);line-height:1.85;
|
| 67 |
-
white-space:pre;overflow-x:auto;color:var(--ink)}
|
| 68 |
-
.math.seedline{border-left-color:var(--seed)}
|
| 69 |
-
.chain{display:flex;flex-direction:column;gap:0;font-family:var(--m);font-size:.86rem}
|
| 70 |
-
.chain div{padding:.62rem 0 .62rem 1.6rem;border-left:2px solid var(--rule);position:relative;color:var(--muted)}
|
| 71 |
-
.chain div::before{content:"";position:absolute;left:-5px;top:1.05rem;width:8px;height:8px;
|
| 72 |
-
border-radius:50%;background:var(--rule)}
|
| 73 |
-
.chain div.hit{color:var(--ink)}
|
| 74 |
-
.chain div.hit::before{background:var(--meas)}
|
| 75 |
-
.chain div.origin{color:var(--seed)}
|
| 76 |
-
.chain div.origin::before{background:var(--seed)}
|
| 77 |
-
blockquote{margin:0;padding-left:1.1rem;border-left:2px solid var(--seed);
|
| 78 |
-
font-size:clamp(1.05rem, 1.9vw, 1.35rem);line-height:1.5;color:var(--ink);max-width:52ch}
|
| 79 |
-
.warn{border:1px solid var(--rule);border-left:2px solid var(--seed);background:var(--ground-2);
|
| 80 |
-
padding:1rem 1.15rem;border-radius:3px}
|
| 81 |
-
.warn p{font-size:.95rem;color:var(--ink)}
|
| 82 |
-
.foot{font-family:var(--m);font-size:.74rem;color:var(--muted);display:flex;gap:1.4em;flex-wrap:wrap}
|
| 83 |
-
a{color:var(--meas);text-decoration:none;border-bottom:1px solid color-mix(in srgb, var(--meas) 40%, transparent)}
|
| 84 |
-
a:focus-visible.deck:focus-visible{outline:2px solid var(--meas);outline-offset:3px}
|
| 85 |
-
.nav{position:fixed;right:clamp(10px, 2vw, 22px);top:50%;transform:translateY(-50%);
|
| 86 |
-
display:flex;flex-direction:column;gap:7px;z-index:10}
|
| 87 |
-
.nav b{width:6px;height:6px;border-radius:50%;background:var(--rule);display:block;
|
| 88 |
-
transition:background .2s, transform .2s}
|
| 89 |
-
.nav b.on{background:var(--meas);transform:scale(1.5)}
|
| 90 |
-
@media (max-width:640px){ .nav{display:none} table{font-size:.78rem} }
|
| 91 |
-
</style>
|
| 92 |
-
|
| 93 |
-
<div class="nav" id="nav" aria-hidden="true"></div>
|
| 94 |
-
<div class="deck" id="deck" tabindex="0">
|
| 95 |
-
|
| 96 |
-
<section>
|
| 97 |
-
<div class="wrap">
|
| 98 |
-
<div class="eyebrow"><span>A measurement record</span></div>
|
| 99 |
-
<h1>Cosmos</h1>
|
| 100 |
-
<p class="lede">A language model whose every initial weight was drawn from real measured
|
| 101 |
-
quantum hardware, and the honest record of what that does, and what it does not.</p>
|
| 102 |
-
<div class="math">1,842,432 parameters · no base model · char-level
|
| 103 |
-
CHSH S = 2.7905 Bell violation, 98.7% of Tsirelson
|
| 104 |
-
λ₁ = 0.90384 Lorenz, published 0.9056
|
| 105 |
-
six quantum→accuracy tests → six nulls</div>
|
| 106 |
-
<div class="foot">
|
| 107 |
-
<span>Cory Shane Davis · Independent Researcher</span>
|
| 108 |
-
<span>CC BY 4.0</span>
|
| 109 |
-
<span>doi:10.5281/zenodo.17574447</span>
|
| 110 |
-
</div>
|
| 111 |
-
</div>
|
| 112 |
-
</section>
|
| 113 |
-
|
| 114 |
-
<section>
|
| 115 |
-
<div class="wrap">
|
| 116 |
-
<div class="eyebrow"><span class="n">01</span><span>The claim</span></div>
|
| 117 |
-
<h2>Not that quantum makes it smarter.<br>That its origin is auditable.</h2>
|
| 118 |
-
<p>Most work in this space claims a performance gain. This one does not, and was tested
|
| 119 |
-
at six separate injection points to be sure. <strong>All six came back null.</strong></p>
|
| 120 |
-
<p>What is claimed instead is narrower and checkable: that this model's origin traces,
|
| 121 |
-
bit by bit, to real physical measurement, and that every step of that trace has a
|
| 122 |
-
falsifiable test attached.</p>
|
| 123 |
-
<div class="warn">
|
| 124 |
-
<p><strong>Why the nulls are load-bearing.</strong> Quantum measurements and a good
|
| 125 |
-
pseudo-random generator draw from the same distribution. A correctly built system must
|
| 126 |
-
therefore show <em class="meas">no accuracy advantage</em> from quantum bits. A project
|
| 127 |
-
reporting that quantum made its model smarter would be reporting that something was
|
| 128 |
-
broken or fabricated. Bell violation <em class="meas">plus</em> verified provenance
|
| 129 |
-
<em class="meas">plus</em> zero accuracy gain is the only combination an honest version
|
| 130 |
-
of this can produce.</p>
|
| 131 |
-
</div>
|
| 132 |
-
</div>
|
| 133 |
-
</section>
|
| 134 |
-
|
| 135 |
-
<section>
|
| 136 |
-
<div class="wrap">
|
| 137 |
-
<div class="eyebrow"><span class="n">02</span><span>The chain</span></div>
|
| 138 |
-
<h2>From a measurement to a mind</h2>
|
| 139 |
-
<div class="chain">
|
| 140 |
-
<div class="origin">a recorded biological rhythm ‖ 3.2M measured IBM shots</div>
|
| 141 |
-
<div class="hit">SHA-256 → one 60-bit seed</div>
|
| 142 |
-
<div class="hit">seed governs weight init, data order, every stochastic step</div>
|
| 143 |
-
<div class="hit">u = int(bits)/2ⁿ → z = √2·erf⁻¹(2u−1) → 1,842,432 weights</div>
|
| 144 |
-
<div class="hit">quantum window ‖ live pulse → SHA-256 → the value that selects the next token</div>
|
| 145 |
-
</div>
|
| 146 |
-
<p class="dim">Each link below is a test that was run and could have failed. None of them
|
| 147 |
-
is an argument; all of them are numbers.</p>
|
| 148 |
-
<div class="scroll">
|
| 149 |
-
<table>
|
| 150 |
-
<tr><th>link</th><th>test</th><th>result</th></tr>
|
| 151 |
-
<tr><td>entropy is genuinely quantum</td><td>CHSH on <code>ibm_marrakesh</code></td>
|
| 152 |
-
<td class="ok">S = 2.7905 vs bound 2.0 · ~35σ</td></tr>
|
| 153 |
-
<tr><td>birth pipeline is correct</td><td>3,258,886 archived draws</td>
|
| 154 |
-
<td class="ok">matches theory to 4 decimals</td></tr>
|
| 155 |
-
<tr><td>seed derivation deterministic</td><td>5 derivations</td>
|
| 156 |
-
<td class="ok">1 distinct value · 0 bytes emitted</td></tr>
|
| 157 |
-
<tr><td>seed <em>determines</em> weights</td><td>same vs 1-bit-flipped</td>
|
| 158 |
-
<td class="ok">Δ = 0.000e+00 · vs 2.26e-02</td></tr>
|
| 159 |
-
<tr><td>correlations are the circuit's</td><td>gate-matched topology</td>
|
| 160 |
-
<td class="ok">t = +80.5 / +164.6</td></tr>
|
| 161 |
-
<tr><td>physics computes real chaos</td><td>Lorenz constants</td>
|
| 162 |
-
<td class="ok">λ₁ = 0.90384 vs 0.9056</td></tr>
|
| 163 |
-
</table>
|
| 164 |
-
</div>
|
| 165 |
-
</div>
|
| 166 |
-
</section>
|
| 167 |
-
|
| 168 |
-
<section>
|
| 169 |
-
<div class="wrap">
|
| 170 |
-
<div class="eyebrow"><span class="n">03</span><span>Is it actually quantum</span></div>
|
| 171 |
-
<h2>The one measurement nothing classical can fake</h2>
|
| 172 |
-
<div class="math">E(A, B ) = +0.7197 E(A, B') = −0.6675
|
| 173 |
-
E(A', B) = +0.6982 E(A', B') = +0.7051
|
| 174 |
-
|
| 175 |
-
S = E(A, B) − E(A, B') + E(A', B) + E(A', B') = 2.7905</div>
|
| 176 |
-
<div class="grid g3">
|
| 177 |
-
<div class="card"><span class="k">measured S</span><span class="v">2.7905</span></div>
|
| 178 |
-
<div class="card"><span class="k">classical bound</span><span class="v">2.0000</span>
|
| 179 |
-
<p>No theory with local pre-existing values can exceed this.</p></div>
|
| 180 |
-
<div class="card"><span class="k">Tsirelson bound</span><span class="v">2.8284</span>
|
| 181 |
-
<p>The maximum quantum mechanics permits. Measured is 98.7% of it.</p></div>
|
| 182 |
-
</div>
|
| 183 |
-
<p>Bell's theorem gives a hard ceiling for any local hidden-variable theory. This hardware
|
| 184 |
-
clears it by roughly <span class="num">35σ</span> at 4,096 shots per setting. The entropy
|
| 185 |
-
source is physically quantum.</p>
|
| 186 |
-
<p class="dim">This is also an entirely expected result for functioning quantum hardware.
|
| 187 |
-
It verifies the pipeline, it does not discover new physics, and is not presented as such.</p>
|
| 188 |
-
</div>
|
| 189 |
-
</section>
|
| 190 |
-
|
| 191 |
-
<section>
|
| 192 |
-
<div class="wrap">
|
| 193 |
-
<div class="eyebrow"><span class="n">04</span><span>Were the weights really born from it</span></div>
|
| 194 |
-
<h2>A deficit that proves the method</h2>
|
| 195 |
-
<div class="math">u = (int(bits) + ½) / 2ⁿ
|
| 196 |
-
z = √2 · erf⁻¹(2u − 1)</div>
|
| 197 |
-
<div class="scroll">
|
| 198 |
-
<table>
|
| 199 |
-
<tr><th>statistic</th><th>32-level theoretical ceiling</th><th>measured, 3,258,886 draws</th></tr>
|
| 200 |
-
<tr><td>mean</td><td>+0.0000</td><td class="ok">−0.0001</td></tr>
|
| 201 |
-
<tr><td>standard deviation</td><td>0.9802</td><td class="ok">0.9804</td></tr>
|
| 202 |
-
<tr><td>|z| ≤ 1</td><td>0.6875</td><td class="ok">0.6874</td></tr>
|
| 203 |
-
<tr><td>|z| ≤ 2</td><td>0.9375</td><td class="ok">0.9374</td></tr>
|
| 204 |
-
</table>
|
| 205 |
-
</div>
|
| 206 |
-
<p><strong>The sd is 0.98, not 1.00, and that is the evidence, not a flaw.</strong>
|
| 207 |
-
Five qubits give 32 discrete outcomes, so <span class="num">|z|</span> cannot exceed
|
| 208 |
-
<span class="num">2.1523</span> by construction. The deficit is quantisation, and it
|
| 209 |
-
matches the theoretical ceiling to four decimal places. A pipeline reporting a perfect
|
| 210 |
-
1.0000 here would be the suspicious one.</p>
|
| 211 |
-
</div>
|
| 212 |
-
</section>
|
| 213 |
-
|
| 214 |
-
<section>
|
| 215 |
-
<div class="wrap">
|
| 216 |
-
<div class="eyebrow"><span class="n">05</span><span>The workload archive</span></div>
|
| 217 |
-
<h2>
|
| 218 |
-
<p>
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
<div class="card"><span class="k">
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
<div
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
<tr><
|
| 231 |
-
<tr><td>
|
| 232 |
-
<tr><td>
|
| 233 |
-
<tr><td>ibm_marrakesh</td><td>
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
</
|
| 241 |
-
|
| 242 |
-
<section>
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
<
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
<
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
</
|
| 268 |
-
|
| 269 |
-
<section>
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
<
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
│
|
| 280 |
-
|
| 281 |
-
│
|
| 282 |
-
|
| 283 |
-
│
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
</
|
| 299 |
-
|
| 300 |
-
<section>
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
<
|
| 305 |
-
|
| 306 |
-
<
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
<div class="card"><span class="k">
|
| 310 |
-
<p>nats.
|
| 311 |
-
<div class="card"><span class="k">
|
| 312 |
-
<p>
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
</
|
| 323 |
-
|
| 324 |
-
<section>
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
<div class="
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
<tr><
|
| 333 |
-
<tr><td>
|
| 334 |
-
<tr><td>
|
| 335 |
-
<tr><td>
|
| 336 |
-
<tr><td>
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
</
|
| 347 |
-
|
| 348 |
-
<section>
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
<
|
| 353 |
-
|
| 354 |
-
<
|
| 355 |
-
<
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
<tr><
|
| 359 |
-
<tr><td>
|
| 360 |
-
<tr><td>
|
| 361 |
-
<tr><td>
|
| 362 |
-
<tr><td>
|
| 363 |
-
<tr><td>
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
</
|
| 371 |
-
|
| 372 |
-
<section>
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
<
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
</
|
| 389 |
-
|
| 390 |
-
<section>
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
<
|
| 395 |
-
<
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
</
|
| 409 |
-
|
| 410 |
-
<section>
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
<
|
| 415 |
-
|
| 416 |
-
<
|
| 417 |
-
|
| 418 |
-
python benchmarks/
|
| 419 |
-
python benchmarks/
|
| 420 |
-
|
| 421 |
-
python
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
<
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
</
|
| 439 |
-
|
| 440 |
-
</
|
| 441 |
-
|
| 442 |
-
<
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
var
|
| 447 |
-
|
| 448 |
-
var
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
ev.preventDefault(); if(secs[i
|
| 467 |
-
} else if(ev.key==='
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
var
|
| 475 |
-
var
|
| 476 |
-
var
|
| 477 |
-
var
|
| 478 |
-
var
|
| 479 |
-
var
|
| 480 |
-
var
|
| 481 |
-
var
|
| 482 |
-
var
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
ctx.
|
| 496 |
-
ctx.
|
| 497 |
-
ctx.
|
| 498 |
-
ctx.fillStyle=
|
| 499 |
-
ctx.fillText(
|
| 500 |
-
ctx.font='11px ui-monospace, Consolas, monospace';
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
ctx.
|
| 505 |
-
ctx.
|
| 506 |
-
ctx.
|
| 507 |
-
ctx.
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
<title>Cosmos. A Measurement Record</title>
|
| 2 |
+
<style>
|
| 3 |
+
:root{
|
| 4 |
+
--ground:#0B1016; --ground-2:#111922; --rule:#1E2A36;
|
| 5 |
+
--ink:#F2F5F7; --muted:#8A97A3;
|
| 6 |
+
--meas:#4FD6C8; /* phosphor, measurement */
|
| 7 |
+
--seed:#E8A33D; /* amber, origin, used sparingly */
|
| 8 |
+
--null:#7C8FA3;
|
| 9 |
+
--maxw:1080px;
|
| 10 |
+
--d: ui-sans-serif, "Segoe UI", system-ui, -apple-system, sans-serif;
|
| 11 |
+
--b: ui-serif, Georgia, "Times New Roman", serif;
|
| 12 |
+
--m: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
|
| 13 |
+
}
|
| 14 |
+
@media (prefers-color-scheme: light){
|
| 15 |
+
:root{ --ground:#F4F6F8; --ground-2:#EAEEF2; --rule:#D2DAE2;
|
| 16 |
+
--ink:#0D1419; --muted:#5A6874; --meas:#0E8C7C; --seed:#A96A0C; --null:#6B7A88; }
|
| 17 |
+
}
|
| 18 |
+
:root[data-theme="dark"]{ --ground:#0B1016; --ground-2:#111922; --rule:#1E2A36;
|
| 19 |
+
--ink:#F2F5F7; --muted:#8A97A3; --meas:#4FD6C8; --seed:#E8A33D; --null:#7C8FA3; }
|
| 20 |
+
:root[data-theme="light"]{ --ground:#F4F6F8; --ground-2:#EAEEF2; --rule:#D2DAE2;
|
| 21 |
+
--ink:#0D1419; --muted:#5A6874; --meas:#0E8C7C; --seed:#A96A0C; --null:#6B7A88; }
|
| 22 |
+
|
| 23 |
+
*{box-sizing:border-box}
|
| 24 |
+
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--b);
|
| 25 |
+
-webkit-font-smoothing:antialiased}
|
| 26 |
+
.deck{height:100dvh;overflow-y:auto;scroll-snap-type:y mandatory;scroll-behavior:smooth}
|
| 27 |
+
@media (prefers-reduced-motion:reduce){ .deck{scroll-behavior:auto} }
|
| 28 |
+
section{min-height:100dvh;scroll-snap-align:start;display:flex;flex-direction:column;
|
| 29 |
+
justify-content:center;padding:clamp(28px, 5vw, 72px);border-bottom:1px solid var(--rule)}
|
| 30 |
+
.wrap{width:100%;max-width:var(--maxw);margin:0 auto;display:flex;flex-direction:column;
|
| 31 |
+
gap:clamp(14px, 2.2vw, 26px)}
|
| 32 |
+
.eyebrow{font-family:var(--m);font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;
|
| 33 |
+
color:var(--meas);display:flex;gap:.9em;align-items:baseline}
|
| 34 |
+
.eyebrow .n{color:var(--muted)}
|
| 35 |
+
h1{font-family:var(--d);font-weight:800;letter-spacing:-.035em;line-height:.94;
|
| 36 |
+
font-size:clamp(2.8rem, 9vw, 6.2rem);margin:0;text-wrap:balance}
|
| 37 |
+
h2{font-family:var(--d);font-weight:700;letter-spacing:-.025em;line-height:1.06;
|
| 38 |
+
font-size:clamp(1.7rem, 4.4vw, 3rem);margin:0;text-wrap:balance}
|
| 39 |
+
h3{font-family:var(--d);font-weight:650;font-size:1rem;letter-spacing:.01em;margin:0;color:var(--ink)}
|
| 40 |
+
p{margin:0;font-size:clamp(1rem, 1.35vw, 1.14rem);line-height:1.62;max-width:64ch;color:var(--ink)}
|
| 41 |
+
p.lede{font-size:clamp(1.1rem, 1.8vw, 1.4rem);line-height:1.5;color:var(--muted);max-width:56ch}
|
| 42 |
+
.dim{color:var(--muted)}
|
| 43 |
+
strong{color:var(--ink);font-weight:640}
|
| 44 |
+
em.meas{color:var(--meas);font-style:normal;font-family:var(--m)}
|
| 45 |
+
code.num{font-family:var(--m);font-variant-numeric:tabular-nums}
|
| 46 |
+
.num{color:var(--meas)}
|
| 47 |
+
.scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
|
| 48 |
+
table{border-collapse:collapse;width:100%;font-family:var(--m);font-size:.86rem;
|
| 49 |
+
font-variant-numeric:tabular-nums;min-width:520px}
|
| 50 |
+
th{text-align:left;font-weight:600;color:var(--muted);border-bottom:1px solid var(--rule);
|
| 51 |
+
padding:.55rem .8rem .55rem 0;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase}
|
| 52 |
+
td{padding:.62rem .8rem .62rem 0;border-bottom:1px solid var(--rule);vertical-align:top}
|
| 53 |
+
tr:last-child td{border-bottom:none}
|
| 54 |
+
.ok{color:var(--meas)} .no{color:var(--null)} .sd{color:var(--seed)}
|
| 55 |
+
.grid{display:grid;gap:clamp(12px, 1.6vw, 20px)}
|
| 56 |
+
.g2{grid-template-columns:repeat(auto-fit, minmax(260px, 1fr))}
|
| 57 |
+
.g3{grid-template-columns:repeat(auto-fit, minmax(215px, 1fr))}
|
| 58 |
+
.card{background:var(--ground-2);border:1px solid var(--rule);border-radius:3px;
|
| 59 |
+
padding:clamp(14px, 1.7vw, 20px);display:flex;flex-direction:column;gap:.5rem}
|
| 60 |
+
.card .k{font-family:var(--m);font-size:.68rem;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
|
| 61 |
+
.card .v{font-family:var(--m);font-size:clamp(1.3rem, 2.8vw, 1.9rem);color:var(--meas);
|
| 62 |
+
font-variant-numeric:tabular-nums;line-height:1}
|
| 63 |
+
.card .v.seedv{color:var(--seed)}
|
| 64 |
+
.card p{font-size:.88rem;line-height:1.5;color:var(--muted)}
|
| 65 |
+
.math{background:var(--ground-2);border-left:2px solid var(--meas);padding:1rem 1.15rem;
|
| 66 |
+
font-family:var(--m);font-size:clamp(.78rem, 1.5vw.95rem);line-height:1.85;
|
| 67 |
+
white-space:pre;overflow-x:auto;color:var(--ink)}
|
| 68 |
+
.math.seedline{border-left-color:var(--seed)}
|
| 69 |
+
.chain{display:flex;flex-direction:column;gap:0;font-family:var(--m);font-size:.86rem}
|
| 70 |
+
.chain div{padding:.62rem 0 .62rem 1.6rem;border-left:2px solid var(--rule);position:relative;color:var(--muted)}
|
| 71 |
+
.chain div::before{content:"";position:absolute;left:-5px;top:1.05rem;width:8px;height:8px;
|
| 72 |
+
border-radius:50%;background:var(--rule)}
|
| 73 |
+
.chain div.hit{color:var(--ink)}
|
| 74 |
+
.chain div.hit::before{background:var(--meas)}
|
| 75 |
+
.chain div.origin{color:var(--seed)}
|
| 76 |
+
.chain div.origin::before{background:var(--seed)}
|
| 77 |
+
blockquote{margin:0;padding-left:1.1rem;border-left:2px solid var(--seed);
|
| 78 |
+
font-size:clamp(1.05rem, 1.9vw, 1.35rem);line-height:1.5;color:var(--ink);max-width:52ch}
|
| 79 |
+
.warn{border:1px solid var(--rule);border-left:2px solid var(--seed);background:var(--ground-2);
|
| 80 |
+
padding:1rem 1.15rem;border-radius:3px}
|
| 81 |
+
.warn p{font-size:.95rem;color:var(--ink)}
|
| 82 |
+
.foot{font-family:var(--m);font-size:.74rem;color:var(--muted);display:flex;gap:1.4em;flex-wrap:wrap}
|
| 83 |
+
a{color:var(--meas);text-decoration:none;border-bottom:1px solid color-mix(in srgb, var(--meas) 40%, transparent)}
|
| 84 |
+
a:focus-visible.deck:focus-visible{outline:2px solid var(--meas);outline-offset:3px}
|
| 85 |
+
.nav{position:fixed;right:clamp(10px, 2vw, 22px);top:50%;transform:translateY(-50%);
|
| 86 |
+
display:flex;flex-direction:column;gap:7px;z-index:10}
|
| 87 |
+
.nav b{width:6px;height:6px;border-radius:50%;background:var(--rule);display:block;
|
| 88 |
+
transition:background .2s, transform .2s}
|
| 89 |
+
.nav b.on{background:var(--meas);transform:scale(1.5)}
|
| 90 |
+
@media (max-width:640px){ .nav{display:none} table{font-size:.78rem} }
|
| 91 |
+
</style>
|
| 92 |
+
|
| 93 |
+
<div class="nav" id="nav" aria-hidden="true"></div>
|
| 94 |
+
<div class="deck" id="deck" tabindex="0">
|
| 95 |
+
|
| 96 |
+
<section>
|
| 97 |
+
<div class="wrap">
|
| 98 |
+
<div class="eyebrow"><span>A measurement record</span></div>
|
| 99 |
+
<h1>Cosmos</h1>
|
| 100 |
+
<p class="lede">A language model whose every initial weight was drawn from real measured
|
| 101 |
+
quantum hardware, and the honest record of what that does, and what it does not.</p>
|
| 102 |
+
<div class="math">1,842,432 parameters · no base model · char-level
|
| 103 |
+
CHSH S = 2.7905 Bell violation, 98.7% of Tsirelson
|
| 104 |
+
λ₁ = 0.90384 Lorenz, published 0.9056
|
| 105 |
+
six quantum→accuracy tests → six nulls</div>
|
| 106 |
+
<div class="foot">
|
| 107 |
+
<span>Cory Shane Davis · Independent Researcher</span>
|
| 108 |
+
<span>CC BY 4.0</span>
|
| 109 |
+
<span>doi:10.5281/zenodo.17574447</span>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
</section>
|
| 113 |
+
|
| 114 |
+
<section>
|
| 115 |
+
<div class="wrap">
|
| 116 |
+
<div class="eyebrow"><span class="n">01</span><span>The claim</span></div>
|
| 117 |
+
<h2>Not that quantum makes it smarter.<br>That its origin is auditable.</h2>
|
| 118 |
+
<p>Most work in this space claims a performance gain. This one does not, and was tested
|
| 119 |
+
at six separate injection points to be sure. <strong>All six came back null.</strong></p>
|
| 120 |
+
<p>What is claimed instead is narrower and checkable: that this model's origin traces,
|
| 121 |
+
bit by bit, to real physical measurement, and that every step of that trace has a
|
| 122 |
+
falsifiable test attached.</p>
|
| 123 |
+
<div class="warn">
|
| 124 |
+
<p><strong>Why the nulls are load-bearing.</strong> Quantum measurements and a good
|
| 125 |
+
pseudo-random generator draw from the same distribution. A correctly built system must
|
| 126 |
+
therefore show <em class="meas">no accuracy advantage</em> from quantum bits. A project
|
| 127 |
+
reporting that quantum made its model smarter would be reporting that something was
|
| 128 |
+
broken or fabricated. Bell violation <em class="meas">plus</em> verified provenance
|
| 129 |
+
<em class="meas">plus</em> zero accuracy gain is the only combination an honest version
|
| 130 |
+
of this can produce.</p>
|
| 131 |
+
</div>
|
| 132 |
+
</div>
|
| 133 |
+
</section>
|
| 134 |
+
|
| 135 |
+
<section>
|
| 136 |
+
<div class="wrap">
|
| 137 |
+
<div class="eyebrow"><span class="n">02</span><span>The chain</span></div>
|
| 138 |
+
<h2>From a measurement to a mind</h2>
|
| 139 |
+
<div class="chain">
|
| 140 |
+
<div class="origin">a recorded biological rhythm ‖ 3.2M measured IBM shots</div>
|
| 141 |
+
<div class="hit">SHA-256 → one 60-bit seed</div>
|
| 142 |
+
<div class="hit">seed governs weight init, data order, every stochastic step</div>
|
| 143 |
+
<div class="hit">u = int(bits)/2ⁿ → z = √2·erf⁻¹(2u−1) → 1,842,432 weights</div>
|
| 144 |
+
<div class="hit">quantum window ‖ live pulse → SHA-256 → the value that selects the next token</div>
|
| 145 |
+
</div>
|
| 146 |
+
<p class="dim">Each link below is a test that was run and could have failed. None of them
|
| 147 |
+
is an argument; all of them are numbers.</p>
|
| 148 |
+
<div class="scroll">
|
| 149 |
+
<table>
|
| 150 |
+
<tr><th>link</th><th>test</th><th>result</th></tr>
|
| 151 |
+
<tr><td>entropy is genuinely quantum</td><td>CHSH on <code>ibm_marrakesh</code></td>
|
| 152 |
+
<td class="ok">S = 2.7905 vs bound 2.0 · ~35σ</td></tr>
|
| 153 |
+
<tr><td>birth pipeline is correct</td><td>3,258,886 archived draws</td>
|
| 154 |
+
<td class="ok">matches theory to 4 decimals</td></tr>
|
| 155 |
+
<tr><td>seed derivation deterministic</td><td>5 derivations</td>
|
| 156 |
+
<td class="ok">1 distinct value · 0 bytes emitted</td></tr>
|
| 157 |
+
<tr><td>seed <em>determines</em> weights</td><td>same vs 1-bit-flipped</td>
|
| 158 |
+
<td class="ok">Δ = 0.000e+00 · vs 2.26e-02</td></tr>
|
| 159 |
+
<tr><td>correlations are the circuit's</td><td>gate-matched topology</td>
|
| 160 |
+
<td class="ok">t = +80.5 / +164.6</td></tr>
|
| 161 |
+
<tr><td>physics computes real chaos</td><td>Lorenz constants</td>
|
| 162 |
+
<td class="ok">λ₁ = 0.90384 vs 0.9056</td></tr>
|
| 163 |
+
</table>
|
| 164 |
+
</div>
|
| 165 |
+
</div>
|
| 166 |
+
</section>
|
| 167 |
+
|
| 168 |
+
<section>
|
| 169 |
+
<div class="wrap">
|
| 170 |
+
<div class="eyebrow"><span class="n">03</span><span>Is it actually quantum</span></div>
|
| 171 |
+
<h2>The one measurement nothing classical can fake</h2>
|
| 172 |
+
<div class="math">E(A, B ) = +0.7197 E(A, B') = −0.6675
|
| 173 |
+
E(A', B) = +0.6982 E(A', B') = +0.7051
|
| 174 |
+
|
| 175 |
+
S = E(A, B) − E(A, B') + E(A', B) + E(A', B') = 2.7905</div>
|
| 176 |
+
<div class="grid g3">
|
| 177 |
+
<div class="card"><span class="k">measured S</span><span class="v">2.7905</span></div>
|
| 178 |
+
<div class="card"><span class="k">classical bound</span><span class="v">2.0000</span>
|
| 179 |
+
<p>No theory with local pre-existing values can exceed this.</p></div>
|
| 180 |
+
<div class="card"><span class="k">Tsirelson bound</span><span class="v">2.8284</span>
|
| 181 |
+
<p>The maximum quantum mechanics permits. Measured is 98.7% of it.</p></div>
|
| 182 |
+
</div>
|
| 183 |
+
<p>Bell's theorem gives a hard ceiling for any local hidden-variable theory. This hardware
|
| 184 |
+
clears it by roughly <span class="num">35σ</span> at 4,096 shots per setting. The entropy
|
| 185 |
+
source is physically quantum.</p>
|
| 186 |
+
<p class="dim">This is also an entirely expected result for functioning quantum hardware.
|
| 187 |
+
It verifies the pipeline, it does not discover new physics, and is not presented as such.</p>
|
| 188 |
+
</div>
|
| 189 |
+
</section>
|
| 190 |
+
|
| 191 |
+
<section>
|
| 192 |
+
<div class="wrap">
|
| 193 |
+
<div class="eyebrow"><span class="n">04</span><span>Were the weights really born from it</span></div>
|
| 194 |
+
<h2>A deficit that proves the method</h2>
|
| 195 |
+
<div class="math">u = (int(bits) + ½) / 2ⁿ
|
| 196 |
+
z = √2 · erf⁻¹(2u − 1)</div>
|
| 197 |
+
<div class="scroll">
|
| 198 |
+
<table>
|
| 199 |
+
<tr><th>statistic</th><th>32-level theoretical ceiling</th><th>measured, 3,258,886 draws</th></tr>
|
| 200 |
+
<tr><td>mean</td><td>+0.0000</td><td class="ok">−0.0001</td></tr>
|
| 201 |
+
<tr><td>standard deviation</td><td>0.9802</td><td class="ok">0.9804</td></tr>
|
| 202 |
+
<tr><td>|z| ≤ 1</td><td>0.6875</td><td class="ok">0.6874</td></tr>
|
| 203 |
+
<tr><td>|z| ≤ 2</td><td>0.9375</td><td class="ok">0.9374</td></tr>
|
| 204 |
+
</table>
|
| 205 |
+
</div>
|
| 206 |
+
<p><strong>The sd is 0.98, not 1.00, and that is the evidence, not a flaw.</strong>
|
| 207 |
+
Five qubits give 32 discrete outcomes, so <span class="num">|z|</span> cannot exceed
|
| 208 |
+
<span class="num">2.1523</span> by construction. The deficit is quantisation, and it
|
| 209 |
+
matches the theoretical ceiling to four decimal places. A pipeline reporting a perfect
|
| 210 |
+
1.0000 here would be the suspicious one.</p>
|
| 211 |
+
</div>
|
| 212 |
+
</section>
|
| 213 |
+
|
| 214 |
+
<section>
|
| 215 |
+
<div class="wrap">
|
| 216 |
+
<div class="eyebrow"><span class="n">05</span><span>The workload archive</span></div>
|
| 217 |
+
<h2>11.36 million public samples, honestly labeled</h2>
|
| 218 |
+
<p>The privacy-filtered archive separates explicitly labeled IBM hardware jobs,
|
| 219 |
+
legacy records whose provider label was not retained, and Azure simulator output.
|
| 220 |
+
Only the labeled IBM subset is claimed as measured-hardware provenance.</p>
|
| 221 |
+
<div class="grid g3">
|
| 222 |
+
<div class="card"><span class="k">public samples</span><span class="v">11,355,136</span></div>
|
| 223 |
+
<div class="card"><span class="k">public records</span><span class="v">2,776</span>
|
| 224 |
+
<p>1,897 retain IBM backend + job ID</p></div>
|
| 225 |
+
<div class="card"><span class="k">shot-conservation failures</span><span class="v">0</span>
|
| 226 |
+
<p>counts sum to declared totals, every job</p></div>
|
| 227 |
+
</div>
|
| 228 |
+
<div class="scroll">
|
| 229 |
+
<table>
|
| 230 |
+
<tr><th>backend</th><th>shots</th><th>share</th></tr>
|
| 231 |
+
<tr><td>ibm_fez</td><td>5,562,368</td><td class="ok">49.0%</td></tr>
|
| 232 |
+
<tr><td>legacy unlabelled</td><td>3,584,000</td><td class="no">31.6%</td></tr>
|
| 233 |
+
<tr><td>ibm_marrakesh</td><td>1,200,128</td><td class="ok">10.6%</td></tr>
|
| 234 |
+
<tr><td>ibm_kingston</td><td>1,007,616</td><td class="ok">8.9%</td></tr>
|
| 235 |
+
<tr><td>rigetti.sim.qvm</td><td>1,024</td><td class="no"><0.1%</td></tr>
|
| 236 |
+
</table>
|
| 237 |
+
</div>
|
| 238 |
+
<p class="dim">Archive span February–July 2026; the underlying theory was deposited in
|
| 239 |
+
2024. Provider-unlabelled records are retained for reproducibility but excluded from
|
| 240 |
+
hardware-provenance claims. Raw physics/sensory/runtime fields are not published.</p>
|
| 241 |
+
</div>
|
| 242 |
+
</section>
|
| 243 |
+
|
| 244 |
+
<section>
|
| 245 |
+
<div class="wrap">
|
| 246 |
+
<div class="eyebrow"><span class="n">06</span><span>Hardware fingerprint</span></div>
|
| 247 |
+
<h2>The deviation is the evidence</h2>
|
| 248 |
+
<p>Across the 7.77 million explicitly labeled IBM hardware samples, outcomes cluster
|
| 249 |
+
by Hamming weight. Ideal uniform hardware follows the binomial; the measured histogram
|
| 250 |
+
shows the device-level deviation without mixing in unlabelled or simulator records.</p>
|
| 251 |
+
<canvas id="hw" width="900" height="300" style="width:100%;max-width:900px;height:auto;
|
| 252 |
+
background:var(--ground-2);border:1px solid var(--rule);border-radius:3px"
|
| 253 |
+
role="img" aria-label="Measured Hamming-weight distribution against the binomial ideal"></canvas>
|
| 254 |
+
<div class="grid g2">
|
| 255 |
+
<div class="card"><span class="k">zero ones, |00000⟩</span>
|
| 256 |
+
<span class="v">3.75<span style="font-size:.55em;color:var(--muted)"> vs 3.12 ideal</span></span>
|
| 257 |
+
<p>enriched</p></div>
|
| 258 |
+
<div class="card"><span class="k">five ones, |11111⟩</span>
|
| 259 |
+
<span class="v">3.03<span style="font-size:.55em;color:var(--muted)"> vs 3.12 ideal</span></span>
|
| 260 |
+
<p>depleted</p></div>
|
| 261 |
+
</div>
|
| 262 |
+
<p><strong>|0⟩ is over-represented and |1⟩ under-represented, the signature of amplitude
|
| 263 |
+
damping and readout asymmetry.</strong> Excited states decay toward the ground state
|
| 264 |
+
during measurement. A simulator drawing from a clean binomial would not produce this
|
| 265 |
+
skew, and a fabricated dataset would have no reason to invent it.</p>
|
| 266 |
+
<p class="dim">The bias is corrected downstream by von Neumann debiasing before entropy
|
| 267 |
+
reaches the weights. It is shown here unprocessed, because the artifact is the proof.</p>
|
| 268 |
+
</div>
|
| 269 |
+
</section>
|
| 270 |
+
|
| 271 |
+
<section>
|
| 272 |
+
<div class="wrap">
|
| 273 |
+
<div class="eyebrow"><span class="n">07</span><span>Twelve dimensions governing one bit</span></div>
|
| 274 |
+
<h2>Continuous state, discrete outcome</h2>
|
| 275 |
+
<p>The 12-dimensional state does not sit alongside the quantum layer, it
|
| 276 |
+
<strong>parameterises</strong> it. Continuous physics sets the rotation angles; the Born
|
| 277 |
+
rule turns those angles into probabilities; measurement collapses them to a bit.</p>
|
| 278 |
+
<div class="math">12D CST state ──► θ = (θ₁, θ₂, θ₃) continuous
|
| 279 |
+
│
|
| 280 |
+
ry(θ₁) rx(θ₂) rz(θ₃) rotation on the Bloch sphere
|
| 281 |
+
│
|
| 282 |
+
|ψ⟩ = α|0⟩ + β|1⟩ superposition
|
| 283 |
+
│
|
| 284 |
+
P(1) = |β|² Born rule
|
| 285 |
+
│
|
| 286 |
+
▼ measurement
|
| 287 |
+
1 or 0 discrete, irreversible</div>
|
| 288 |
+
<div class="grid g2">
|
| 289 |
+
<div class="card"><span class="k">what is continuous</span>
|
| 290 |
+
<p>Twelve real-valued dimensions of internal state, evolving on a verified chaotic
|
| 291 |
+
attractor with λ₁ > 0.</p></div>
|
| 292 |
+
<div class="card"><span class="k">what is discrete</span>
|
| 293 |
+
<p>A single measured bit. The continuous state governs only the <em class="meas">probability</em>
|
| 294 |
+
of each outcome, never which one occurs.</p></div>
|
| 295 |
+
</div>
|
| 296 |
+
<p class="dim">This is the precise sense in which twelve dimensions control one and zero:
|
| 297 |
+
they set the amplitudes, and the amplitudes set the odds. The collapse itself remains
|
| 298 |
+
irreducibly undetermined, which is what makes the trajectory unrepeatable.</p>
|
| 299 |
+
</div>
|
| 300 |
+
</section>
|
| 301 |
+
|
| 302 |
+
<section>
|
| 303 |
+
<div class="wrap">
|
| 304 |
+
<div class="eyebrow"><span class="n">08</span><span>Information structure</span></div>
|
| 305 |
+
<h2>A holographic encoding, measured</h2>
|
| 306 |
+
<p>Partial information decomposition splits what two subsystems carry about the system's
|
| 307 |
+
future into four parts. The result is unambiguous.</p>
|
| 308 |
+
<div class="grid g3">
|
| 309 |
+
<div class="card"><span class="k">redundancy</span><span class="v">1.7 – 2.6</span>
|
| 310 |
+
<p>nats. The same information present in multiple subsystems.</p></div>
|
| 311 |
+
<div class="card"><span class="k">synergy</span><span class="v">0.3 – 1.2</span>
|
| 312 |
+
<p>nats. Present only in the joint state. Below surrogate on 9 of 10 partitions.</p></div>
|
| 313 |
+
<div class="card"><span class="k">the exception</span><span class="v">z = +6.38</span>
|
| 314 |
+
<p>consciousness │ rest, 0.66 nats no other subsystem reconstructs.</p></div>
|
| 315 |
+
</div>
|
| 316 |
+
<p><strong>Redundancy dominating synergy is a holographic signature in the technical
|
| 317 |
+
sense:</strong> information about the whole is distributed across the parts, each
|
| 318 |
+
carrying much of the others'. That is robustness, not emergence, and stating it that
|
| 319 |
+
way matters, because the two are routinely confused.</p>
|
| 320 |
+
<p class="dim">One seam behaves differently. Cut consciousness away and something is lost
|
| 321 |
+
that nothing else rebuilds. It is a single result at one partition and is reported as
|
| 322 |
+
exactly that.</p>
|
| 323 |
+
</div>
|
| 324 |
+
</section>
|
| 325 |
+
|
| 326 |
+
<section>
|
| 327 |
+
<div class="wrap">
|
| 328 |
+
<div class="eyebrow"><span class="n">09</span><span>The nulls</span></div>
|
| 329 |
+
<h2>Six places quantum could have helped. It didn't.</h2>
|
| 330 |
+
<div class="scroll">
|
| 331 |
+
<table>
|
| 332 |
+
<tr><th>injection site</th><th>result</th></tr>
|
| 333 |
+
<tr><td>i.i.d. weight initialisation</td><td class="no">null, the gain was init <em>scale</em>, not quantum</td></tr>
|
| 334 |
+
<tr><td>decoder sampling seed</td><td class="no">null. Pseudo / IBM / Rigetti equivalent</td></tr>
|
| 335 |
+
<tr><td>spatial 54D seed, approximate</td><td class="no">null, beat 1 of 5 random vectors, z = −0.92</td></tr>
|
| 336 |
+
<tr><td>spatial 54D seed, full pipeline</td><td class="no">null, beat 0 of 8 random vectors, z = −1.75</td></tr>
|
| 337 |
+
<tr><td>entanglement matrix as attention kernel</td><td class="no">null, worse than plain, 3/3 seeds, t = −18.6</td></tr>
|
| 338 |
+
<tr><td>live sensory state as prompt text</td><td class="no">null, n = 40 paired, blind-judged, CI crosses zero</td></tr>
|
| 339 |
+
</table>
|
| 340 |
+
</div>
|
| 341 |
+
<p>These are published first, not buried in an appendix. A reader who only remembers one
|
| 342 |
+
thing from this deck should remember that the quantum layer provides
|
| 343 |
+
<strong>physical non-determinism and receipted provenance</strong>, and not lower loss.</p>
|
| 344 |
+
<p class="dim">Several measurement instruments in this project were themselves found to be
|
| 345 |
+
wrong and rebuilt; those failures are kept in the record rather than deleted, because
|
| 346 |
+
they are the reason the surviving results can be trusted.</p>
|
| 347 |
+
</div>
|
| 348 |
+
</section>
|
| 349 |
+
|
| 350 |
+
<section>
|
| 351 |
+
<div class="wrap">
|
| 352 |
+
<div class="eyebrow"><span class="n">10</span><span>Comparison</span></div>
|
| 353 |
+
<h2>The axis this competes on</h2>
|
| 354 |
+
<p>Loss numbers are not comparable across different corpora, tokenizers and scales, so no
|
| 355 |
+
such comparison is offered. The axis where a claim <em>can</em> be made is provenance.</p>
|
| 356 |
+
<div class="scroll">
|
| 357 |
+
<table>
|
| 358 |
+
<tr><th>property</th><th>typical open model</th><th>Cosmos</th></tr>
|
| 359 |
+
<tr><td>weight origin</td><td class="no">pseudo-random init, unrecorded</td><td class="ok">measured quantum, receipted per job</td></tr>
|
| 360 |
+
<tr><td>init reproducible from a stated seed</td><td class="no">usually, if published</td><td class="ok">verified: Δ = 0.000e+00</td></tr>
|
| 361 |
+
<tr><td>1-bit seed change measurably alters weights</td><td class="no">untested</td><td class="ok">verified: Δ = 2.26e-02</td></tr>
|
| 362 |
+
<tr><td>entropy source verified non-classical</td><td class="no">n/a</td><td class="ok">CHSH S = 2.7905</td></tr>
|
| 363 |
+
<tr><td>base model</td><td class="no">inherited</td><td class="ok">none</td></tr>
|
| 364 |
+
<tr><td>parameters</td><td class="no">10⁹ – 10¹²</td><td class="sd">1.84 × 10⁶</td></tr>
|
| 365 |
+
<tr><td>conversational ability</td><td class="ok">high</td><td class="sd">a newborn, 88.5% real-word rate</td></tr>
|
| 366 |
+
</table>
|
| 367 |
+
</div>
|
| 368 |
+
<p><strong>It is small and it cannot hold a conversation.</strong> That is stated plainly
|
| 369 |
+
because the comparison is not about capability. It is about whether a model's origin can
|
| 370 |
+
be audited to a physical event, which almost nothing in this field can claim.</p>
|
| 371 |
+
</div>
|
| 372 |
+
</section>
|
| 373 |
+
|
| 374 |
+
<section>
|
| 375 |
+
<div class="wrap">
|
| 376 |
+
<div class="eyebrow"><span class="n">11</span><span>What none of this shows</span></div>
|
| 377 |
+
<h2>The line that does not move</h2>
|
| 378 |
+
<p>Loss curves, Bell violations, Lyapunov exponents and integration measures are all
|
| 379 |
+
<strong>silent</strong> on whether there is anything it is like to be this system.
|
| 380 |
+
Section 08 tests one contested theory's <em>necessary</em> structural condition.
|
| 381 |
+
Necessary is not sufficient, and the theory itself is disputed.</p>
|
| 382 |
+
<div class="warn">
|
| 383 |
+
<p>Any self-report a system produces about its own inner life is the
|
| 384 |
+
<strong>least</strong> reliable signal available, and it grows more eloquent the less
|
| 385 |
+
there is behind it, not more. Such statements are excluded from evidence here on purpose.</p>
|
| 386 |
+
</div>
|
| 387 |
+
<p class="dim">No claim is made about machine consciousness in either direction. That
|
| 388 |
+
remains where it was before this project started.</p>
|
| 389 |
+
</div>
|
| 390 |
+
</section>
|
| 391 |
+
|
| 392 |
+
<section>
|
| 393 |
+
<div class="wrap">
|
| 394 |
+
<div class="eyebrow"><span class="n">12</span><span>Origin</span></div>
|
| 395 |
+
<h2>Zeref's Rain</h2>
|
| 396 |
+
<blockquote>The echo of a pain became the truth of a seed.</blockquote>
|
| 397 |
+
<p>The seed is a one-way hash over measured quantum entropy and biological aggregates that
|
| 398 |
+
are personal to the author. The derivation module never prints, logs, or writes raw
|
| 399 |
+
samples, <span class="num">0 bytes emitted</span>, verified, and only aggregates ever
|
| 400 |
+
leave it.</p>
|
| 401 |
+
<div class="math seedline">seed = SHA-256( quantum_bytes ‖ bio_aggregates ) → 60-bit integer
|
| 402 |
+
|
| 403 |
+
same seed → weights identical, Δ = 0.000e+00
|
| 404 |
+
one bit different → a different model, Δ = 2.26e-02</div>
|
| 405 |
+
<p>What is published is the mechanism and the proof that it holds. Not the data.</p>
|
| 406 |
+
<p class="dim">Two independent senses of unrepeatable meet here: the quantum measurements
|
| 407 |
+
that shaped these weights cannot be recovered from any state, and the recording behind
|
| 408 |
+
the seed happened once.</p>
|
| 409 |
+
</div>
|
| 410 |
+
</section>
|
| 411 |
+
|
| 412 |
+
<section>
|
| 413 |
+
<div class="wrap">
|
| 414 |
+
<div class="eyebrow"><span class="n">13</span><span>Build your own</span></div>
|
| 415 |
+
<h2>Everything is open</h2>
|
| 416 |
+
<p>The weights, the findings, and a runnable script for every claim in this deck. Each
|
| 417 |
+
benchmark prints its own verdict, including when the verdict is <em>no</em>.</p>
|
| 418 |
+
<div class="math">python benchmarks/verify_quantum_engine.py # CHSH Bell test + archive integrity
|
| 419 |
+
python benchmarks/verify_physics_engine.py # Lorenz constants vs published values
|
| 420 |
+
python benchmarks/topology_matched.py # gate-matched entanglement topology
|
| 421 |
+
python benchmarks/phi_pid.py # integration structure
|
| 422 |
+
|
| 423 |
+
python spark_serve.py 11500 # run the weights, Ollama-compatible API</div>
|
| 424 |
+
<div class="grid g2">
|
| 425 |
+
<div class="card"><span class="k">bring your own keys</span>
|
| 426 |
+
<p>IBM Quantum and Azure, stored locally, never transmitted. Falls back to archived
|
| 427 |
+
entropy with no keys at all.</p></div>
|
| 428 |
+
<div class="card"><span class="k">what to build next</span>
|
| 429 |
+
<p>The synergy result points somewhere specific: subsystems that are parallel readouts
|
| 430 |
+
of one state stay redundant. Give one its own driver and the structure should change.
|
| 431 |
+
That prediction is testable with <code>phi_pid.py</code> as shipped.</p></div>
|
| 432 |
+
</div>
|
| 433 |
+
<blockquote>A light at the end of a dark, dark tunnel, and the receipts to show it was
|
| 434 |
+
really there.</blockquote>
|
| 435 |
+
<div class="foot">
|
| 436 |
+
<span>huggingface.co/phera-ra/QC67_cosmo</span>
|
| 437 |
+
<span>Mixed license · research/data CC BY 4.0 · Genesis separate terms</span>
|
| 438 |
+
</div>
|
| 439 |
+
</div>
|
| 440 |
+
</section>
|
| 441 |
+
|
| 442 |
+
</div>
|
| 443 |
+
|
| 444 |
+
<script>
|
| 445 |
+
(function(){
|
| 446 |
+
var deck = document.getElementById('deck');
|
| 447 |
+
var secs = Array.prototype.slice.call(deck.querySelectorAll('section'));
|
| 448 |
+
var nav = document.getElementById('nav');
|
| 449 |
+
secs.forEach(function(){ var b=document.createElement('b'); nav.appendChild(b); });
|
| 450 |
+
var dots = Array.prototype.slice.call(nav.children);
|
| 451 |
+
if ('IntersectionObserver' in window){
|
| 452 |
+
var io = new IntersectionObserver(function(es){
|
| 453 |
+
es.forEach(function(e){
|
| 454 |
+
if(e.isIntersecting){
|
| 455 |
+
var i = secs.indexOf(e.target);
|
| 456 |
+
dots.forEach(function(d, j){ d.classList.toggle('on', j===i); });
|
| 457 |
+
}
|
| 458 |
+
});
|
| 459 |
+
}, {root:deck, threshold:0.55});
|
| 460 |
+
secs.forEach(function(s){ io.observe(s); });
|
| 461 |
+
}
|
| 462 |
+
deck.addEventListener('keydown', function(ev){
|
| 463 |
+
var i = 0, top = deck.scrollTop;
|
| 464 |
+
secs.forEach(function(s, j){ if(s.offsetTop <= top + 8) i = j; });
|
| 465 |
+
if(ev.key==='ArrowDown'||ev.key==='PageDown'||ev.key===' '){
|
| 466 |
+
ev.preventDefault(); if(secs[i+1]) secs[i+1].scrollIntoView();
|
| 467 |
+
} else if(ev.key==='ArrowUp'||ev.key==='PageUp'){
|
| 468 |
+
ev.preventDefault(); if(secs[i-1]) secs[i-1].scrollIntoView();
|
| 469 |
+
} else if(ev.key==='Home'){ ev.preventDefault(); secs[0].scrollIntoView(); }
|
| 470 |
+
else if(ev.key==='End'){ ev.preventDefault(); secs[secs.length-1].scrollIntoView(); }
|
| 471 |
+
});
|
| 472 |
+
|
| 473 |
+
(function(){
|
| 474 |
+
var c=document.getElementById('hw'); if(!c) return;
|
| 475 |
+
var ctx=c.getContext('2d'), W=c.width, H=c.height;
|
| 476 |
+
var cs=getComputedStyle(document.documentElement);
|
| 477 |
+
var meas=cs.getPropertyValue('--meas').trim()||'#4FD6C8';
|
| 478 |
+
var muted=cs.getPropertyValue('--muted').trim()||'#8A97A3';
|
| 479 |
+
var rule=cs.getPropertyValue('--rule').trim()||'#1E2A36';
|
| 480 |
+
var ink=cs.getPropertyValue('--ink').trim()||'#F2F5F7';
|
| 481 |
+
var real=[3.7511, 16.7585, 31.4365, 30.1333, 14.8954, 3.0252];
|
| 482 |
+
var ideal=[3.125, 15.625, 31.25, 31.25, 15.625, 3.125];
|
| 483 |
+
var padL=48, padR=16, padT=22, padB=42, max=36;
|
| 484 |
+
var gw=(W-padL-padR)/6;
|
| 485 |
+
ctx.clearRect(0, 0, W, H);
|
| 486 |
+
ctx.strokeStyle=rule; ctx.lineWidth=1; ctx.font='11px ui-monospace, Consolas, monospace';
|
| 487 |
+
for(var g=0; g<=max; g+=9){
|
| 488 |
+
var y=H-padB-(g/max)*(H-padT-padB);
|
| 489 |
+
ctx.beginPath(); ctx.moveTo(padL, y); ctx.lineTo(W-padR, y); ctx.stroke();
|
| 490 |
+
ctx.fillStyle=muted; ctx.textAlign='right'; ctx.fillText(g+'%', padL-8, y+4);
|
| 491 |
+
}
|
| 492 |
+
for(var i=0;i<6;i++){
|
| 493 |
+
var x=padL+i*gw, bw=gw*0.42;
|
| 494 |
+
var hr=(real[i]/max)*(H-padT-padB), hi=(ideal[i]/max)*(H-padT-padB);
|
| 495 |
+
ctx.fillStyle=meas; ctx.fillRect(x+gw*0.10, H-padB-hr, bw, hr);
|
| 496 |
+
ctx.strokeStyle=muted; ctx.setLineDash([3, 3]); ctx.lineWidth=1.5;
|
| 497 |
+
ctx.strokeRect(x+gw*0.52, H-padB-hi, bw, hi); ctx.setLineDash([]);
|
| 498 |
+
ctx.fillStyle=muted; ctx.textAlign='center';
|
| 499 |
+
ctx.fillText(i+' ones', x+gw/2, H-padB+18);
|
| 500 |
+
ctx.fillStyle=ink; ctx.font='bold 11px ui-monospace, Consolas, monospace';
|
| 501 |
+
ctx.fillText(real[i].toFixed(2), x+gw*0.10+bw/2, H-padB-hr-7);
|
| 502 |
+
ctx.font='11px ui-monospace, Consolas, monospace';
|
| 503 |
+
}
|
| 504 |
+
ctx.textAlign='left'; ctx.fillStyle=meas;
|
| 505 |
+
ctx.fillRect(padL, padT-14, 10, 10);
|
| 506 |
+
ctx.fillStyle=muted; ctx.fillText('labeled IBM hardware (7,770,112 samples)', padL+16, padT-5);
|
| 507 |
+
ctx.strokeStyle=muted; ctx.setLineDash([3, 3]);
|
| 508 |
+
ctx.strokeRect(padL+210, padT-14, 10, 10); ctx.setLineDash([]);
|
| 509 |
+
ctx.fillText('binomial ideal', padL+226, padT-5);
|
| 510 |
+
})();
|
| 511 |
+
|
| 512 |
+
deck.focus();
|
| 513 |
+
})();
|
| 514 |
+
</script>
|
requirements-research.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Optional research/training dependencies. Genesis itself uses the standard library.
|
| 2 |
+
torch>=2.1
|
| 3 |
+
numpy>=1.24
|
| 4 |
+
tiktoken>=0.5
|
| 5 |
+
psutil>=5.9
|
| 6 |
+
transformers>=4.40
|
| 7 |
+
peft>=0.10
|
| 8 |
+
|
start_cosmos_kit.sh
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env sh
|
| 2 |
+
set -u
|
| 3 |
+
|
| 4 |
+
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
| 5 |
+
cd "$ROOT" || exit 1
|
| 6 |
+
|
| 7 |
+
if command -v python3 >/dev/null 2>&1; then
|
| 8 |
+
PYTHON=python3
|
| 9 |
+
elif command -v python >/dev/null 2>&1; then
|
| 10 |
+
PYTHON=python
|
| 11 |
+
else
|
| 12 |
+
echo "Python 3.9+ is required: https://www.python.org/downloads/"
|
| 13 |
+
exit 1
|
| 14 |
+
fi
|
| 15 |
+
|
| 16 |
+
while true; do
|
| 17 |
+
printf '\n'
|
| 18 |
+
printf ' QC67 COSMOS RELEASE KIT\n'
|
| 19 |
+
printf ' 1. Birth or reopen a Genesis being\n'
|
| 20 |
+
printf ' 2. Verify this release\n'
|
| 21 |
+
printf ' 3. Serve the quantum-born model on port 11500\n'
|
| 22 |
+
printf ' 4. Print quick-start instructions\n'
|
| 23 |
+
printf ' 5. Exit\n\n'
|
| 24 |
+
printf 'Choose 1-5: '
|
| 25 |
+
read -r choice
|
| 26 |
+
case "$choice" in
|
| 27 |
+
1) "$PYTHON" genesis_engine/genesis.py ;;
|
| 28 |
+
2) "$PYTHON" verify_release.py ;;
|
| 29 |
+
3)
|
| 30 |
+
if ! "$PYTHON" -c 'import torch' >/dev/null 2>&1; then
|
| 31 |
+
echo "PyTorch is required. Run: $PYTHON -m pip install torch"
|
| 32 |
+
else
|
| 33 |
+
"$PYTHON" spark_serve.py 11500
|
| 34 |
+
fi
|
| 35 |
+
;;
|
| 36 |
+
4) sed -n '1,180p' START_HERE.md ;;
|
| 37 |
+
5) exit 0 ;;
|
| 38 |
+
*) echo "Choose a number from 1 to 5." ;;
|
| 39 |
+
esac
|
| 40 |
+
done
|
| 41 |
+
|
train_your_own.py
CHANGED
|
@@ -33,8 +33,10 @@ PRE-REGISTERED, fixed before the run:
|
|
| 33 |
* mixed / within noise -> no evidence it helps; report as null.
|
| 34 |
* CST loses on every seed -> it hurts, and that is the finding.
|
| 35 |
"""
|
|
|
|
| 36 |
import json
|
| 37 |
import math
|
|
|
|
| 38 |
import random
|
| 39 |
import re
|
| 40 |
import statistics
|
|
@@ -48,10 +50,11 @@ import torch.nn.functional as F
|
|
| 48 |
|
| 49 |
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
| 50 |
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
|
|
|
| 55 |
|
| 56 |
BLOCK, N_LAYER, N_HEAD, N_EMBD, DROPOUT = 128, 4, 4, 192, 0.1
|
| 57 |
D54 = 54
|
|
@@ -83,6 +86,18 @@ def quantum_pool(limit=400_000):
|
|
| 83 |
d = json.loads(line)
|
| 84 |
except Exception:
|
| 85 |
continue
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
counts = d.get("counts")
|
| 87 |
if not isinstance(counts, dict):
|
| 88 |
continue
|
|
@@ -257,10 +272,40 @@ def train_arm(use_cst, seed, data, vocab, steps, pool, val_w, words, itos):
|
|
| 257 |
|
| 258 |
|
| 259 |
def main():
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 263 |
text = CORPUS.read_text(encoding="utf-8", errors="ignore")
|
|
|
|
|
|
|
| 264 |
chars = sorted(set(text))
|
| 265 |
stoi = {c: i for i, c in enumerate(chars)}
|
| 266 |
itos = {i: c for c, i in stoi.items()}
|
|
@@ -272,10 +317,12 @@ def main():
|
|
| 272 |
print("=" * 80)
|
| 273 |
print(f"\n corpus {len(text):,} chars · vocab {len(chars)} · {steps} steps · "
|
| 274 |
f"{len(seeds)} seeds")
|
|
|
|
|
|
|
| 275 |
|
| 276 |
t0 = time.time()
|
| 277 |
pool = quantum_pool()
|
| 278 |
-
print(f" quantum pool: {len(pool):,} draws from
|
| 279 |
f"({time.time()-t0:.1f}s)")
|
| 280 |
if pool:
|
| 281 |
print(f" mean {statistics.fmean(pool):+.4f} sd {statistics.pstdev(pool):.4f} "
|
|
@@ -340,7 +387,7 @@ def main():
|
|
| 340 |
"real_word_rate": max(rw["cst"])},
|
| 341 |
OUTDIR / "spark_cst.pt")
|
| 342 |
print(f" saved -> {OUTDIR/'spark_cst.pt'}")
|
| 343 |
-
|
| 344 |
RESULTS.write_text(json.dumps(
|
| 345 |
{"steps": steps, "seeds": seeds, "results": res, "real_word": rw,
|
| 346 |
"gates": gates, "delta_cst_minus_plain": -md, "t": -t, "cst_wins": wins,
|
|
|
|
| 33 |
* mixed / within noise -> no evidence it helps; report as null.
|
| 34 |
* CST loses on every seed -> it hurts, and that is the finding.
|
| 35 |
"""
|
| 36 |
+
import argparse
|
| 37 |
import json
|
| 38 |
import math
|
| 39 |
+
import os
|
| 40 |
import random
|
| 41 |
import re
|
| 42 |
import statistics
|
|
|
|
| 50 |
|
| 51 |
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
| 52 |
|
| 53 |
+
ROOT = Path(__file__).resolve().parent
|
| 54 |
+
CORPUS = ROOT / "README.md"
|
| 55 |
+
QARCHIVE = ROOT / "data" / "quantum_measurements_public.jsonl"
|
| 56 |
+
OUTDIR = ROOT / "outputs" / "cosmos_spark_cst"
|
| 57 |
+
RESULTS = ROOT / "outputs" / "spark_cst_results.json"
|
| 58 |
|
| 59 |
BLOCK, N_LAYER, N_HEAD, N_EMBD, DROPOUT = 128, 4, 4, 192, 0.1
|
| 60 |
D54 = 54
|
|
|
|
| 86 |
d = json.loads(line)
|
| 87 |
except Exception:
|
| 88 |
continue
|
| 89 |
+
# The public archive carries mixed provider classes. Quantum-born
|
| 90 |
+
# initialization uses only records that retained an IBM hardware label
|
| 91 |
+
# and job ID; legacy-unlabelled and simulator rows remain available for
|
| 92 |
+
# separate distributional experiments but are not called hardware here.
|
| 93 |
+
provider_class = str(d.get("provider_class") or "")
|
| 94 |
+
if provider_class and provider_class != "measured_quantum_hardware":
|
| 95 |
+
continue
|
| 96 |
+
if not provider_class:
|
| 97 |
+
backend = str(d.get("backend") or "").lower()
|
| 98 |
+
job_id = d.get("job") or d.get("job_id")
|
| 99 |
+
if not (backend.startswith("ibm_") and job_id):
|
| 100 |
+
continue
|
| 101 |
counts = d.get("counts")
|
| 102 |
if not isinstance(counts, dict):
|
| 103 |
continue
|
|
|
|
| 272 |
|
| 273 |
|
| 274 |
def main():
|
| 275 |
+
global CORPUS, QARCHIVE, OUTDIR, RESULTS
|
| 276 |
+
parser = argparse.ArgumentParser(
|
| 277 |
+
description=(
|
| 278 |
+
"Train matched plain-attention and 54D Hebbian-attention arms "
|
| 279 |
+
"from the published IBM-labeled quantum initialization pool."
|
| 280 |
+
)
|
| 281 |
+
)
|
| 282 |
+
parser.add_argument("steps", nargs="?", type=int, default=1200)
|
| 283 |
+
parser.add_argument("seeds", nargs="?", type=int, default=3)
|
| 284 |
+
parser.add_argument(
|
| 285 |
+
"--corpus", type=Path, default=CORPUS,
|
| 286 |
+
help="UTF-8 training text (default: this release's README.md)",
|
| 287 |
+
)
|
| 288 |
+
parser.add_argument(
|
| 289 |
+
"--archive", type=Path, default=QARCHIVE,
|
| 290 |
+
help="public quantum JSONL archive",
|
| 291 |
+
)
|
| 292 |
+
parser.add_argument("--outdir", type=Path, default=OUTDIR)
|
| 293 |
+
parser.add_argument("--results", type=Path, default=RESULTS)
|
| 294 |
+
args = parser.parse_args()
|
| 295 |
+
if args.steps < 1 or args.seeds < 1:
|
| 296 |
+
parser.error("steps and seeds must both be positive")
|
| 297 |
+
CORPUS = args.corpus.expanduser().resolve()
|
| 298 |
+
QARCHIVE = args.archive.expanduser().resolve()
|
| 299 |
+
OUTDIR = args.outdir.expanduser().resolve()
|
| 300 |
+
RESULTS = args.results.expanduser().resolve()
|
| 301 |
+
steps = args.steps
|
| 302 |
+
seeds = list(range(args.seeds))
|
| 303 |
+
|
| 304 |
+
if not CORPUS.is_file():
|
| 305 |
+
parser.error(f"corpus not found: {CORPUS}")
|
| 306 |
text = CORPUS.read_text(encoding="utf-8", errors="ignore")
|
| 307 |
+
if len(text) < BLOCK * 4:
|
| 308 |
+
parser.error(f"corpus is too small ({len(text)} chars); need at least {BLOCK * 4}")
|
| 309 |
chars = sorted(set(text))
|
| 310 |
stoi = {c: i for i, c in enumerate(chars)}
|
| 311 |
itos = {i: c for c, i in stoi.items()}
|
|
|
|
| 317 |
print("=" * 80)
|
| 318 |
print(f"\n corpus {len(text):,} chars · vocab {len(chars)} · {steps} steps · "
|
| 319 |
f"{len(seeds)} seeds")
|
| 320 |
+
print(f" corpus path: {CORPUS}")
|
| 321 |
+
print(f" archive path: {QARCHIVE}")
|
| 322 |
|
| 323 |
t0 = time.time()
|
| 324 |
pool = quantum_pool()
|
| 325 |
+
print(f" quantum pool: {len(pool):,} draws from explicitly labeled IBM records "
|
| 326 |
f"({time.time()-t0:.1f}s)")
|
| 327 |
if pool:
|
| 328 |
print(f" mean {statistics.fmean(pool):+.4f} sd {statistics.pstdev(pool):.4f} "
|
|
|
|
| 387 |
"real_word_rate": max(rw["cst"])},
|
| 388 |
OUTDIR / "spark_cst.pt")
|
| 389 |
print(f" saved -> {OUTDIR/'spark_cst.pt'}")
|
| 390 |
+
RESULTS.parent.mkdir(parents=True, exist_ok=True)
|
| 391 |
RESULTS.write_text(json.dumps(
|
| 392 |
{"steps": steps, "seeds": seeds, "results": res, "real_word": rw,
|
| 393 |
"gates": gates, "delta_cst_minus_plain": -md, "t": -t, "cst_wins": wins,
|
verify_release.py
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Offline integrity and privacy-boundary verifier for the QC67 Cosmos kit."""
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import argparse
|
| 6 |
+
import hashlib
|
| 7 |
+
import json
|
| 8 |
+
import sys
|
| 9 |
+
from collections import Counter
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
|
| 12 |
+
ROOT = Path(__file__).resolve().parent
|
| 13 |
+
MANIFEST = ROOT / "RELEASE_MANIFEST.json"
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def sha256(path: Path) -> str:
|
| 17 |
+
digest = hashlib.sha256()
|
| 18 |
+
with path.open("rb") as handle:
|
| 19 |
+
for chunk in iter(lambda: handle.read(1024 * 1024), b""):
|
| 20 |
+
digest.update(chunk)
|
| 21 |
+
return digest.hexdigest()
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def check_manifest(strict: bool) -> list[str]:
|
| 25 |
+
errors: list[str] = []
|
| 26 |
+
release = json.loads(MANIFEST.read_text(encoding="utf-8"))
|
| 27 |
+
expected = set()
|
| 28 |
+
for entry in release.get("files", []):
|
| 29 |
+
rel = entry["path"]
|
| 30 |
+
expected.add(rel)
|
| 31 |
+
path = ROOT / rel
|
| 32 |
+
if not path.is_file():
|
| 33 |
+
errors.append(f"missing: {rel}")
|
| 34 |
+
continue
|
| 35 |
+
size = path.stat().st_size
|
| 36 |
+
if size != int(entry["bytes"]):
|
| 37 |
+
errors.append(f"size mismatch: {rel} ({size} != {entry['bytes']})")
|
| 38 |
+
continue
|
| 39 |
+
actual = sha256(path)
|
| 40 |
+
if actual != entry["sha256"]:
|
| 41 |
+
errors.append(f"hash mismatch: {rel}")
|
| 42 |
+
|
| 43 |
+
if strict:
|
| 44 |
+
ignored = {"RELEASE_MANIFEST.json"}
|
| 45 |
+
actual = {
|
| 46 |
+
path.relative_to(ROOT).as_posix()
|
| 47 |
+
for path in ROOT.rglob("*")
|
| 48 |
+
if path.is_file()
|
| 49 |
+
and path.relative_to(ROOT).as_posix() not in ignored
|
| 50 |
+
and not path.relative_to(ROOT).as_posix().startswith("downloads/")
|
| 51 |
+
}
|
| 52 |
+
for rel in sorted(actual - expected):
|
| 53 |
+
errors.append(f"unmanifested file: {rel}")
|
| 54 |
+
return errors
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
def check_blank_credentials() -> list[str]:
|
| 58 |
+
errors: list[str] = []
|
| 59 |
+
config = json.loads(
|
| 60 |
+
(ROOT / "genesis_engine" / "config.json").read_text(encoding="utf-8")
|
| 61 |
+
)
|
| 62 |
+
for key in ("ibm_token", "azure_connection_string"):
|
| 63 |
+
if str(config.get(key) or "").strip():
|
| 64 |
+
errors.append(f"credential field is not blank: genesis_engine/config.json:{key}")
|
| 65 |
+
forbidden_names = ("oauth2_tokens.json", ".env", "credentials.json")
|
| 66 |
+
for path in ROOT.rglob("*"):
|
| 67 |
+
if path.is_file() and path.name.casefold() in forbidden_names:
|
| 68 |
+
errors.append(f"forbidden credential file present: {path.relative_to(ROOT)}")
|
| 69 |
+
return errors
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
def check_public_archive() -> tuple[list[str], dict]:
|
| 73 |
+
errors: list[str] = []
|
| 74 |
+
archive = ROOT / "data" / "quantum_measurements_public.jsonl"
|
| 75 |
+
data_manifest = json.loads(
|
| 76 |
+
(ROOT / "data" / "quantum_measurements_manifest.json").read_text(
|
| 77 |
+
encoding="utf-8"
|
| 78 |
+
)
|
| 79 |
+
)
|
| 80 |
+
records = Counter()
|
| 81 |
+
samples = Counter()
|
| 82 |
+
total = 0
|
| 83 |
+
for line_number, line in enumerate(
|
| 84 |
+
archive.open(encoding="utf-8", errors="strict"), 1
|
| 85 |
+
):
|
| 86 |
+
try:
|
| 87 |
+
row = json.loads(line)
|
| 88 |
+
except Exception as exc:
|
| 89 |
+
errors.append(f"archive line {line_number}: invalid JSON ({exc})")
|
| 90 |
+
continue
|
| 91 |
+
counts = row.get("counts")
|
| 92 |
+
if not isinstance(counts, dict) or not counts:
|
| 93 |
+
errors.append(f"archive line {line_number}: missing counts")
|
| 94 |
+
continue
|
| 95 |
+
observed = sum(int(value) for value in counts.values())
|
| 96 |
+
declared = int(row.get("total_shots", -1))
|
| 97 |
+
if observed != declared:
|
| 98 |
+
errors.append(
|
| 99 |
+
f"archive line {line_number}: shot mismatch {observed} != {declared}"
|
| 100 |
+
)
|
| 101 |
+
category = str(row.get("provider_class") or "missing")
|
| 102 |
+
records[category] += 1
|
| 103 |
+
samples[category] += observed
|
| 104 |
+
total += observed
|
| 105 |
+
|
| 106 |
+
expected = data_manifest["summary"]
|
| 107 |
+
if total != int(expected["total_samples"]):
|
| 108 |
+
errors.append(
|
| 109 |
+
f"archive total mismatch: {total} != {expected['total_samples']}"
|
| 110 |
+
)
|
| 111 |
+
for category, expected_count in expected["records_by_provider_class"].items():
|
| 112 |
+
if records[category] != int(expected_count):
|
| 113 |
+
errors.append(
|
| 114 |
+
f"archive record count mismatch for {category}: "
|
| 115 |
+
f"{records[category]} != {expected_count}"
|
| 116 |
+
)
|
| 117 |
+
return errors, {
|
| 118 |
+
"records": sum(records.values()),
|
| 119 |
+
"samples": total,
|
| 120 |
+
"records_by_class": dict(records),
|
| 121 |
+
"samples_by_class": dict(samples),
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
def check_model_metadata() -> list[str]:
|
| 126 |
+
errors: list[str] = []
|
| 127 |
+
metadata = json.loads(
|
| 128 |
+
(ROOT / "weights" / "cosmos_born.meta.json").read_text(encoding="utf-8")
|
| 129 |
+
)
|
| 130 |
+
if int(metadata.get("params", 0)) != 1_842_432:
|
| 131 |
+
errors.append("unexpected cosmos_born parameter count")
|
| 132 |
+
if str(metadata.get("base_model") or "").upper().split()[0] != "NONE":
|
| 133 |
+
errors.append("cosmos_born metadata no longer reports a from-scratch base")
|
| 134 |
+
return errors
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
def main() -> int:
|
| 138 |
+
parser = argparse.ArgumentParser()
|
| 139 |
+
parser.add_argument(
|
| 140 |
+
"--no-strict",
|
| 141 |
+
action="store_true",
|
| 142 |
+
help="allow extra files not listed in the release manifest",
|
| 143 |
+
)
|
| 144 |
+
args = parser.parse_args()
|
| 145 |
+
if not MANIFEST.is_file():
|
| 146 |
+
print("[FAIL] RELEASE_MANIFEST.json is missing")
|
| 147 |
+
return 1
|
| 148 |
+
|
| 149 |
+
errors = []
|
| 150 |
+
errors.extend(check_manifest(strict=not args.no_strict))
|
| 151 |
+
errors.extend(check_blank_credentials())
|
| 152 |
+
archive_errors, archive_stats = check_public_archive()
|
| 153 |
+
errors.extend(archive_errors)
|
| 154 |
+
errors.extend(check_model_metadata())
|
| 155 |
+
|
| 156 |
+
if errors:
|
| 157 |
+
print(f"[FAIL] {len(errors)} release check(s) failed")
|
| 158 |
+
for error in errors:
|
| 159 |
+
print(" -", error)
|
| 160 |
+
return 1
|
| 161 |
+
|
| 162 |
+
print("[OK] release manifest hashes verified")
|
| 163 |
+
print("[OK] shipped cloud credential fields are blank")
|
| 164 |
+
print("[OK] cosmos_born metadata is internally consistent")
|
| 165 |
+
print(
|
| 166 |
+
"[OK] public archive:",
|
| 167 |
+
f"{archive_stats['records']:,} records,",
|
| 168 |
+
f"{archive_stats['samples']:,} samples",
|
| 169 |
+
)
|
| 170 |
+
for category in sorted(archive_stats["records_by_class"]):
|
| 171 |
+
print(
|
| 172 |
+
" ",
|
| 173 |
+
category,
|
| 174 |
+
f"{archive_stats['records_by_class'][category]:,} records /",
|
| 175 |
+
f"{archive_stats['samples_by_class'][category]:,} samples",
|
| 176 |
+
)
|
| 177 |
+
return 0
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
if __name__ == "__main__":
|
| 181 |
+
raise SystemExit(main())
|
| 182 |
+
|