A toolkit for exploring, measuring, comparing, and improving language models through interactive and reproducible experiments.
- Browser Demo: gamma-web-game.web.app
- Architecture Map: docs/ARCHITECTURE.md
- Full Documentation Index: docs/README.md
GAMMA is the stable project name and CLI command, but the acronym adapts to match your current workflow:
| Context | Reading | Focus Area |
|---|---|---|
| Interactive Game | Game Analyzing Model Methods Attentively | Predict model continuations and inspect token-level probability choices. |
| Benchmarking | Guessing Alternative Model Mechanics Analytically | Compare models, engines, decoding policies, and runtime performance. |
| Interpretability | Grasping Attention Mechanism Mysteries Accessibly | Demystify logits, tokenization, attention heads, and generation mechanics. |
| SAME-R Research | Generalized Approach Matching, Measurement, and Attribution | Test new methods under identical evaluation setups to isolate causes of improvement. |
| Surface | CLI Command / Link | Purpose |
|---|---|---|
| Game & Chat | python gamma.py game |
Interactively explore next-token prediction and model choices. |
| Benchmarking | python gamma.py comparisonpython gamma.py benchmark |
Measure speed, latency, output quality, and code generation. |
| Mind Meld | python gamma.py mind-meld |
Coordinate, route, and swap among multiple active model engines. |
| SAME-R Method | projects/samer/README.md | Controlled capability-transfer trials under matched baselines. |
| Domain Research | projects/ | Domain experiments (translation, embeddings, WGSL, compression). |
| Integrations | docs/integration-guide.md | Connect via APIs, Model Context Protocol (MCP), and external backends. |
# Set up environment
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Run the interactive game
python gamma.py game> For engine-specific setups (e.g., local GPUs, APIs), refer to src/engines/README.md.
SAME-R (Swappable Approaches under Matched Evaluation and Replication) is Gamma's methodology for controlled AI experiments.
Core Philosophy: "Different inners. Same rims."
- Inners (What you change): Prompts, dataset variations, human/agent labeling, SFT, distillation, RLVR, routing policies, custom kernels, etc.
- Rims (What stays fixed): Evaluation benchmarks, success metrics, objective functions, control environments, and replication contracts.
By keeping the "rim" strictly identical, SAME-R ensures that any measured improvement comes from the technique itself, not a shifting baseline.
To keep the root clean, top-level files are limited to entry points, metadata, and tool configs.
| Directory | Description / Contents |
|---|---|
src/ |
Core Gamma runtime, engine wrappers, game logic, benchmarks, and integrations. |
projects/ |
Self-contained research, distillation experiments, and custom workflows. |
tools/ |
Developer/operator utility scripts and model analysis scripts. |
requirements/ |
Dependency manifests grouped by hardware profile and engine requirements. |
docs/ |
Canonical architecture diagrams, user guides, and reference material. |
tests/ |
Automated test suites. |
> Note: Keep generated reports inside reports/ and project-specific outputs within their respective sub-directories in projects/.
python gamma.py [command] [options]game— Interactive next-token gameplay and chat interface.comparison— Side-by-side output and performance comparison.mind-meld— Orchestrate and swap across multiple model engines.benchmark— Measure system throughput and latency.codegen— Benchmark code generation abilities.list/select— Interactively list or select active models.help— Print command assistance.
python gamma.py help benchmark
python gamma.py help codegen
python gamma.py game --comparison --help
python gamma.py mind-meld --help- Docs Index: Complete documentation map and ownership.
- Benchmarking Guide: Performance, speed, quality, and Mind Meld testing.
- SAME-R Protocol: Experiment frameworks and promotion contracts.
- Verifier-Guided Learning: Reward taxonomies, prompt optimization, and RLVR.
- Integrations Guide: APIs, LangChain, and MCP setup.