Skip to content

Synaptic v2 architecture overhaul - #353

Open
cazala wants to merge 50 commits into
masterfrom
v2
Open

Synaptic v2 architecture overhaul#353
cazala wants to merge 50 commits into
masterfrom
v2

Conversation

@cazala

@cazala cazala commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • replace the legacy mutable runtime with a strict TypeScript workspace and portable model, snapshot, checkpoint, plan, backend, and session contracts
  • add Paper, CPU, persistent scalar/SIMD WebAssembly, and WebGPU inference/training backends
  • add deterministic shared parameters, cross-backend checkpoint restoration, WebGPU fallback/lifecycle handling, and Synaptic v1 migration
  • add a specialized WebGPU Growing Neural CA trainer with a 48-generation BPTT tape, exact identity/Sobel perception, pre/post life masking, per-tensor gradient normalization, Adam, sample-pool persistence, and damage training
  • export a versioned artifact consumed directly by Automata and add interactive XOR, MNIST, DSR, learn-to-paint, MNIST-to-CA, and Growing-NCA browser demos
  • remove ASM, Babel, Bower, Karma, Webpack, Travis, checked-in bundles, and the old v1 implementation
  • add comprehensive architecture, backend, artifact, migration, Growing-NCA, testing, and contribution documentation

Validation

  • 66 tests across 15 files
  • clean TypeScript and AssemblyScript build
  • real hardware WebGPU inference, training, recurrent, shared-parameter, checkpoint-resume, and Growing-NCA shader validation
  • Growing-NCA browser smoke test reduces loss and verifies Automata accepts the exported artifact
  • live 24×24 training runs four 48-generation samples in roughly 15–22 ms per update on the development machine
  • fresh npm ci installs the packed Automata PR build reproducibly
  • zero npm audit vulnerabilities

Related

Notes

  • Wasm remains an explicit backend until specialization benchmarks outperform the CPU path
  • unfinished synaptic2 artifacts are intentionally unsupported; migration is v1-only
  • ASM is intentionally excluded
  • the repository temporarily vendors the npm pack output from Automata PR connected() wrong/misused? #9; replace it with the released package version and remove vendor/ after release

@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown

Cloudflare Pages preview

Open the latest preview

Open this exact deployment

Built from 39a7d7b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant