Learning & research

Tiny Recursive Model

Inspect recursive reasoning, model telemetry and a headless learning simulation.

A CLOSER LOOK

When does another reasoning pass help?

For researchers and evaluators: explore a small recursive model, early halting, synthetic task accuracy and the cost of repeated computation.

Trace the executable journey

The explain command introduces the model; simulate loads or creates the configured checkpoint, then compares synthetic trials under sentinel and thermostat controls.

demo/Tiny-Recursive-Model-v0/run_demo.py ↗

REAL REPOSITORY MATERIAL

Inspect. Understand. Reproduce.

Reading the exact source at revision 5b4cebb3.
This browser inspection does not execute the demo.

Repository source1,182 bytesDownload source ↓View on GitHub ↗

demo/Tiny-Recursive-Model-v0/config/trm_demo_config.yaml

Select a walkthrough step to explore its source.

Full source text
owner:
  address: "0xDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF"
  name: "AGI Jobs Superintelligence Steward"
thermostat:
  target_roi: 2.0
  window: 20
  min_inner_cycles: 3
  max_inner_cycles: 8
  min_outer_steps: 2
  max_outer_steps: 5
  min_halt_threshold: 0.45
  max_halt_threshold: 0.85
  min_concurrency: 1
  max_concurrency: 6
sentinel:
  min_roi: 1.25
  max_daily_cost: 75.0
  max_latency_ms: 2000
  max_total_cycles: 18
  failure_backoff_limit: 5
ledger:
  value_per_success: 100.0
  base_compute_cost: 0.001
  cost_per_cycle: 0.0001
  daily_budget: 50.0
trm:
  input_dim: 12
  latent_dim: 32
  hidden_dim: 48
  output_dim: 2
  inner_cycles: 6
  outer_steps: 3
  halt_threshold: 0.55
  max_cycles: 18
  ema_decay: 0.999
  learning_rate: 0.0015
  weight_decay: 0.0001
  batch_size: 64
  epochs: 4
  device: "cpu"
telemetry:
  enable_structured_logs: true
  write_path: "demo/Tiny-Recursive-Model-v0/assets/telemetry.jsonl"
ethereum:
  rpc_url: "https://mainnet.infura.io/v3/YOUR_KEY_HERE"
  chain_id: 1
  logging_contract: "0x0000000000000000000000000000000000000000"
  confirmations_required: 2

report:
  path: "demo/Tiny-Recursive-Model-v0/assets/trm_executive_report.md"

SHA-256 0635f054ae5c297dbd4ccee5725f05c495df26956f74fac6caea2bd6e88c0d56

FROM READING TO A REPRODUCIBLE RUN

Try the selected path.

Python + CPU model dependencies

Use Python 3.12 in an isolated environment. Install demo/Tiny-Recursive-Model-v0/requirements-core.txt with --extra-index-url https://download.pytorch.org/whl/cpu, then run python -m pip check. The optional dashboard has a separate dependency profile.

Copy the environment setup
python3.12 -m venv .venv-tiny-recursive-model-v0
. .venv-tiny-recursive-model-v0/bin/activate
python -m pip install -r demo/Tiny-Recursive-Model-v0/requirements-core.txt --extra-index-url https://download.pytorch.org/whl/cpu
python -m pip check
Dependency files for this demo and its variants (2)
Complete environment setup ↗
SELECTED EXECUTION PATH
python demo/Tiny-Recursive-Model-v0/run_demo.py explain
python demo/Tiny-Recursive-Model-v0/run_demo.py simulate --trials 24 --seed 7

What you should observe

The terminal shows strategy results, sentinel status and a thermostat trace. First execution may train a checkpoint; use the documented CPU dependency environment.

The source inspector above reads bundled repository material. Local commands run separately on your computer. Recorded examples may contain historical timestamps, placeholders and simulated metrics.

MAKE IT YOUR OWN

One useful experiment.

Repeat with the same seed, then change the number of trials. Explain how sample size affects confidence in an apparent improvement.

THE SYSTEM, MADE VISIBLE

Architecture & relationships

Architecture diagram · source preserved below
View original Mermaid source
flowchart LR
    Operators((Mission Owners)) --> demo_Tiny_Recursive_Model_v0[[Demo → Tiny Recursive Model v0]]
    demo_Tiny_Recursive_Model_v0 --> Core[[AGI Jobs v0 (v2) Core Intelligence]]
    Core --> Observability[[Unified CI / CD & Observability]]
    Core --> Governance[[Owner Control Plane]]

WHEN SOMETHING DOESN’T MATCH

Troubleshooting

Import or dependency error

Confirm the active virtual environment and the selected demo’s requirements. Run python -m pip check; do not install unrelated demo requirements over a working environment.

Unexpected result or missing file

Check the selected entry point, configuration and output argument. Keep the seed and implementation fixed before comparing outcomes.

TRACE THE CHECKS

Verification & next steps

9 tracked test source files are available in this directory. Inspect the tests and their environment before choosing a suite; file counts do not establish test results.

Browse the test sources

For live commissioning, consult the production readiness record.

EVERY VARIANT, PRESERVED

Complete document library

REPRODUCE & INSPECT

Registered commands

Run commands from the repository root after following this demo's guide. Network and owner actions require their documented setup.

No root-level launch command is associated with this source path. Follow the guide or source directory for its own entry point.

Full command catalog and troubleshooting ↗

ORIGINAL DIRECTORYdemo/Tiny-Recursive-Model-v0View on GitHub ↗