One line: Type a prompt and watch an LLM’s hidden state as a fluid 3D trajectory in the browser. High-dimensional geometry, token-by-token streaming, layer river — all in one place.
See VISION.md for intent and roadmap.
pip install -r requirements.txt
uvicorn viz_server:app --reload --host 0.0.0.0
Open http://localhost:8000, enter a prompt, click Run. The 3D trajectory (point cloud + line) grows in real time as the model generates. Each point is last-layer hidden state reduced to 3D (PCA or random projection). Drag to rotate, scroll to zoom.
stream: false).stream_mock: true in the WebSocket payload to force mock when a model is available.transformers + torch: a small model (e.g. TinyLlama) loads on first use. See docs/STREAMING_API.md for the WebSocket protocol.| Path | Purpose |
|---|---|
| viz_server.py | FastAPI + WebSocket: LLM hidden-state extraction, dimension reduction, stream to frontend. |
| viz_static/ | Browser frontend: WebGL (Three.js), streaming trajectory + Layer river. |
| VISION.md | Intent, current state, and roadmap. |
| docs/STREAMING_API.md | WebSocket protocol. |
| docs/PLAN_CEO_REVIEW.md | Focus and cleanup rationale. |
| Legacy / optional | launch_visualizer.py, visualization_manager.py, pattern_manager.py, flock_generator.py, swarm_vignettes.py — Pyglet, swarm, mandala experiments. connect_client.py, client.py, git_petals/ — Petals distributed demo (no hidden-state viz). |
python launch_visualizer.py. Legacy quantum gravity / mandala style; see --help.torch, numpy, pyglet, matplotlib, pillow (see requirements.txt).fastapi, uvicorn, scikit-learn (optional; used for PCA in viz_server.py; falls back to random projection if missing).MIT (see LICENSE).
36 commits
Jupyter Notebook
52.9%
Python
44.3%
JavaScript
1.5%
One line: Type a prompt and watch an LLM’s hidden state as a fluid 3D trajectory in the browser. High-dimensional geometry, token-by-token streaming, layer river — all in one place.
See VISION.md for intent and roadmap.
pip install -r requirements.txt
uvicorn viz_server:app --reload --host 0.0.0.0
Open http://localhost:8000, enter a prompt, click Run. The 3D trajectory (point cloud + line) grows in real time as the model generates. Each point is last-layer hidden state reduced to 3D (PCA or random projection). Drag to rotate, scroll to zoom.
stream: false).stream_mock: true in the WebSocket payload to force mock when a model is available.transformers + torch: a small model (e.g. TinyLlama) loads on first use. See docs/STREAMING_API.md for the WebSocket protocol.| Path | Purpose |
|---|---|
| viz_server.py | FastAPI + WebSocket: LLM hidden-state extraction, dimension reduction, stream to frontend. |
| viz_static/ | Browser frontend: WebGL (Three.js), streaming trajectory + Layer river. |
| VISION.md | Intent, current state, and roadmap. |
| docs/STREAMING_API.md | WebSocket protocol. |
| docs/PLAN_CEO_REVIEW.md | Focus and cleanup rationale. |
| Legacy / optional | launch_visualizer.py, visualization_manager.py, pattern_manager.py, flock_generator.py, swarm_vignettes.py — Pyglet, swarm, mandala experiments. connect_client.py, client.py, git_petals/ — Petals distributed demo (no hidden-state viz). |
python launch_visualizer.py. Legacy quantum gravity / mandala style; see --help.torch, numpy, pyglet, matplotlib, pillow (see requirements.txt).fastapi, uvicorn, scikit-learn (optional; used for PCA in viz_server.py; falls back to random projection if missing).MIT (see LICENSE).
36 commits
Jupyter Notebook
52.9%
Python
44.3%
JavaScript
1.5%