Skip to content
This repository was archived by the owner on Sep 14, 2026. It is now read-only.
RalphLabsAIPublic archive

About

ARCHIVED v1 canonical training recipe. Current Ralph / Bittensor SN40 work: RalphLabsAI/ralph.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

64 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important

This repository is archived v1 history and is not the current SN40 protocol. Continue at RalphLabsAI/ralph.

Ralph — canonical training recipe

The current best-known open recipe for the small-LLM pretraining track of the Ralph Bittensor subnet. Each accepted miner patch becomes a new commit on main, tagged as recipe-vX.Y.Z, with the resulting metrics in the release notes.

This repo is the artifact. The protocol that scores patches and crowns kings lives at RalphLabsAI/ralph; this repo is what miners patch.

Layout

Path What
model/ Ralph-base — Llama-style transformer (RMSNorm, RoPE, SwiGLU, MHA)
recipe/ Canonical training loop, optimizer, LR schedule
configs/ proxy_cpu_smoke.json, h100_proxy.json, h100_default.json, h100_scale.json
data/ Tokenizer, data manifest schema, FineWeb-Edu prepare script

Working on a patch (miner workflow)

  1. Fork this repo to your own GitHub account.
  2. Clone your fork and the protocol repo side-by-side:
    git clone git@github.com:<your-gh>/recipe.git
    git clone git@github.com:RalphLabsAI/ralph-v1.git
    
  3. Edit files in your recipe/ clone — change a learning-rate schedule, tweak the warmup, propose a new initialization, etc.
  4. Run the proof test from the protocol repo:
    cd ralph
    RALPH_RECIPE_DIR=../recipe python scripts/miner_run.py \
      --patch <(cd ../recipe && git diff main) \
      --label round1 \
      --config configs/h100_proxy.json \
      --tier unverified
    
  5. If the proof test produces a bundle and the validator scores it favourably, your patch gets merged here as a tagged release.

For full miner setup on a rented H100, see docs/h100_miner_setup.md in the protocol repo.

Releases

Each accepted king change publishes a release here named recipe-vX.Y.Z. The release body contains:

  • val_bpb improvement vs previous king
  • compute cost (H100-normalized)
  • miner hotkey + GitHub attribution
  • proof bundle URL (HuggingFace)
  • wandb run URL

This is the lineage of the canonical recipe.

License

Apache-2.0.

About

ARCHIVED v1 canonical training recipe. Current Ralph / Bittensor SN40 work: RalphLabsAI/ralph.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages