58-attune-level-4: Attune (Bittensor SN58) "Vector" level-4 working repo
This repo snapshots the whole working state of our attempt to take the crown in the Attune SN58 Vector king-of-the-hill. It holds:
- the code, scripts, logs and notes;
- the models that matter;
- the full Claude Code session, so the work can resume on any machine.
The datasets live in the companion private dataset repo Jason4715/58-attune-level-4-data. See the
section "Datasets" below.
Snapshot taken 2026-11-19 (US Eastern). Everything below is rooted at /root/bt/attune, the path the scripts
expect.
1. The task in one paragraph
Format. SN58 "Vector" is a king of the hill.
- A miner commits one
model.safetensors: architecture vector_v1.1, 781M parameters, 753 fp32 tensors, defined invector-orchestrator/packages/vector-runtime/src/vector_runtime/net.py. - The validator duels it against the current king on 240 units (16 RoboTwin tasks × 15 scenes), simulated by
RoboTwin-Vector/robotensor_bench. - The challenger takes the crown only if its success rate is at least king + 3.0 points.
Rules.
- One submission per registration (UID): the first commitment of any kind after registering is the only one
that counts (upstream commit
f6bb8de, 2026-11-13). - A submission is the subnet's own
attune miner submit. It uploads to a private gated HF repo, commits on chain, then reveals the repo.
Current king (2026-11-19): magicvec/vector-mine3, key 1ad44eaa065b318e. Its weights are mirrored by the
subnet's kings repo; weights/kings/kings.json has the keys. Re-download them; they are not stored here.
2. Where it stands (read this first)
2.1 History
- rlk4A was submitted 2026-11-16 from hotkey
sponser/581(UID 71). It lost: +0.83, with +3 needed. That UID's shot is spent. - Hotkey
sponser/582= UID 73 (address5D4R42eh52SAyunSWLS7rEFMaHjjStPaveHgUDfmmyeKsJHW) is registered and has not committed: its one shot is unused. Its immunity has ended, but the risk of losing the UID is low. - The user said: do NOT submit without their explicit go. The wallets are NOT in this repo and must never go on rented hosts. Signing happens on the user's dev box.
2.2 The faithful local judge
An RTX 3090 (OIDN denoiser on) reproduces the validator. The king's local result vs the validator's record on the same units:
| duel replay | local king | validator king | diff | same per-unit result |
|---|---|---|---|---|
| a55ec81e | 86.2 | 86.7 | -0.6 | 84 % |
| fea881e0 | 85.0 | 85.0 | 0.0 | 81 % |
| 004bac5d | 86.8 | 86.5 | +0.3 | 83 % |
| 2583c425 | 83.4 | 78.8 | +4.6 | 72 % |
RTX 5090 boxes (Blackwell renders WITHOUT OIDN) over-rated every model by ~5 pts. Judge on non-Blackwell GPUs.
2.3 Candidates, paired edge vs the king on the 3090 (same units, ± = paired SE)
| model | a55ec81e | 2583c425 | fea881e0 | 004bac5d | mean |
|---|---|---|---|---|---|
| n1R_s3 (lead) | +4.76 ± 1.96 | +5.26 ± 2.38 (*) | running | queued | ~+5.0 ± 1.5 (2 duels) |
| rlk5C | 0.0 ± 2.0 | +6.14 ± 2.81 | +1.75 ± 2.40 | -1.76 ± 2.41 | ~+1.5 ± 1.2 |
(*) n1R_s3 was picked on a box-2 screen of duel 2583c425, so that duel is not independent. a55ec81e is the clean test.
Next step: finish n1R_s3 on fea881e0 + 004bac5d.
- Run
bash scripts/b3_judge.sh logs/judge2.txt, then compare withpython3 scripts/paired.py --a n1R_s3_b3_replay_<duel> --b king1b3_replay_<duel>. - If it holds ≥ ~+4 over the 4 duels, it is the crown candidate. Then run the G8 check
(
tools/g8_check.py), write a submit script likesubmit/submit_rlk5C.sh, and ask the user.
2.4 Models in this repo (train/runs/<name>/final/model.safetensors)
| name | what | sha256 (first 16) |
|---|---|---|
| n1R_s3 | rlk5C continued 1 epoch on all data (king rollouts + rlk5C new-scene rollouts), seed 3 | 5660536c82b844c4 |
| rlk5C | king + PPO on 11.9k king rollouts (lr 3e-6, clip 0.1, 3 ep, kl 0.3) | 73efc1c82845afbc |
| n1R | same recipe as n1R_s3, seed 0 | see SHA256SUMS |
| n1C | king + all data, 3 epochs (needed as --src old weights for the n2_n1C rollouts) |
see SHA256SUMS |
| n1Rsoupall | uniform weight average of 10 n1R seeds (untested) | ad204d9b22c95410 |
| n1Csoup13 | average of 13 seeds of n1C (king + all data, 3 ep), untested | 29724b7e0d15369a |
SHA256SUMS has the full hashes. Every other run keeps only its small files (args.json, log.jsonl,
val.jsonl, evk/): about 170 runs from 11-13 to 11-18. Their weights are superseded and were not uploaded.
The king's own weights are public. rlk4A (submitted) is in the user's repo Jason4715/58-attune-vector-models.
2.5 What was learned (details in claude_session/ and docs/attune-sn58-project.md)
- Self-imitation and SFT on the king's own successes did not beat the king (sp*, dpo*, expo*, fx* runs).
- RL helps a little. Stochastic DDIM (eta 1) recorded rollouts, GRPO advantages, PPO-clip on the U-Net only, EMA 0.99: about +1 to +2.5 out of sample.
- The direction comes from the data, not the training settings. About 35 training settings (lr, epochs, clip, kl, ema, min-group, batch, late steps, task subsets) all land on one held-out line, cov ≈ 0.41 × KL.
- The held-out proxy cannot rank models. It is
rl.py --val-frac 0.15 --eval-only: val_cov / val_kl. Real paired duel replays decide. - Continuing from rlk5C for 1 epoch on all data (n1R recipe) is the best so far. Iteration-2 models (it2*) did not add.
- Winner's curse. Screening many candidates on one pool inflates the best; confirm on untouched duels.
3. Repo layout
attune/ = /root/bt/attune (code + small state)
CLAUDE.md, HANDOFF.md rules + handoff of the original box (older; this README is newer)
scripts/ run_eval.py (sim evaluation/collection), run_demos.py (scene builder),
paired.py (paired comparison), replay_check.py (vs validator record),
attune_rl.py (stochastic recording policy wrapper), b2_*.sh (box-2 controllers),
b3_*.sh (box-3: judge queue, curobo rebuild, sync), setup_box.sh (env install)
train/ rl.py (PPO/GRPO trainer + held-out proxy), fit.py (SFT), dpo.py, convert.py,
parity.py; runs/<run>/ (args, logs, val curves; weights only for section 2.4)
tools/ g8_check.py (pre-submit checks), soup.py, grpstat.py, rl_lists.py, sweep_val.py,
fresh_units.py, watch_duel.py, box*.env/box.sh (ssh helpers; box2 is gone)
dash/ dashboard (server.py on 127.0.0.1:20000, prog.py to post notes); .token removed
logs/ all job logs, judge queues (judge1.txt, judge2.txt), b3_judge.out
submit/ submit_rlk5C.sh / submit_rlk4A.sh (templates; weights not included)
data/ small metadata (records/, rl/, units*.json, queue snapshots); big data -> dataset repo
eval/replay_*/meta.json, check_*.json duel-replay build metadata (scenes -> dataset repo)
reports/, research_notes/ the level-4 plan and research notes
weights/kings/kings.json king keys (weights: download)
claude_session/ the Claude Code session (secrets replaced by placeholders, emails removed)
projects/-root-bt/ed8c82c4-58c3-4d9a-b4a7-5aaa81fddb7f.jsonl transcript
projects/-root-bt/ed8c82c4-58c3-4d9a-b4a7-5aaa81fddb7f/ subagents + tool results
projects/-root-bt/memory/ Attune memory files (MEMORY.md index + attune-sn58-project.md = day-by-day log)
file-history/ed8c82c4-.../ edit history
docs/attune-sn58-project.md copy of the day-by-day project memory (the most complete log of every result)
SHA256SUMS hashes of the uploaded model weights
4. Resume on a new machine
4.1 Hardware
- Judging: a non-Blackwell RT GPU (RTX 3090/4090/A6000/L40S). A 3090 runs 2 sims at a time, ~40 units/h. The container must give Vulkan/EGL.
- Training: any 24 GB+ GPU. One rl.py run is ~15-20 GB VRAM (3 data sources) and ~20-30 min per epoch on a
4.2 Code and weights
mkdir -p /root/bt && cd /root/bt
HF_TOKEN=<token> hf download Jason4715/58-attune-level-4 --local-dir /root/bt/hf-level4
mv /root/bt/hf-level4/attune /root/bt/attune && cd /root/bt/attune
git clone https://github.com/robotensor/attune-subnet.git # reference; never modify
git clone -b vector https://github.com/robotensor/RoboTwin-Vector.git && git -C RoboTwin-Vector checkout e87619a
git clone https://github.com/robotensor/vector-orchestrator.git && git -C vector-orchestrator checkout 9b14b23
bash scripts/setup_box.sh all # apt libs, conda sim env (/opt/miniforge3/envs/robotwin), RoboTwin assets
# (TianxingChen/RoboTwin2.0, 15 GB), uv venvs .venvs/vector-policy + .venvs/subnet
Then download the king (key 1ad44eaa065b318e, repo magicvec/vector-mine3) into
weights/kings/1ad44eaa065b318e/model.safetensors. The way setup_box.sh policy fetched kings works.
CuRobo arch gotcha. CuRobo is compiled for the GPU it is built on. On a different GPU generation, rebuild:
bash scripts/b3_curobo.sh # TORCH_CUDA_ARCH_LIST="8.6;12.0", conda nvcc 12.8, CPATH=$CUDA_HOME/targets/x86_64-linux/include
Smoke test (2 units):
python3 scripts/run_eval.py --pool eval/replay_a55ec81e --weights weights/kings/1ad44eaa065b318e/model.safetensors \
--label smoke --gpus 0 --per-gpu 1 --limit 2
A few units void with "scene drift" when the scene was built on another GPU: ~2-4 % is normal.
4.3 Data
Download only what the next step needs from Jason4715/58-attune-level-4-data, then
tar -xf <file> -C /root/bt/attune:
- training:
rollouts/*.tar - judging:
replays/*.tar+results/results_json.tar(the king references) - new collection:
pool_r2/*.tar,hard600/*.tar
4.4 Core commands
# judge a model on a duel replay (2 workers on one 3090), then compare paired with the king's run
python3 scripts/run_eval.py --pool eval/replay_a55ec81e --weights train/runs/n1R_s3/final/model.safetensors \
--label n1R_s3_b3_replay_a55ec81e --gpus 0 --per-gpu 2 --shuffle 1 --unit-timeout 1500
python3 scripts/paired.py --a n1R_s3_b3_replay_a55ec81e --b king1b3_replay_a55ec81e
python3 scripts/replay_check.py --pool eval/replay_a55ec81e --label king1b3_replay_a55ec81e # vs validator record
bash scripts/b3_judge.sh logs/judge2.txt # queue: lines "label weights pool [units-file]", 3 passes for voids
# collect stochastic on-policy rollouts (training data) with a model
python3 scripts/run_eval.py --pool data/selfplay/pool_r2 --weights <w> --label <tag>_s1 --gpus 0 --per-gpu 2 \
--record --salt 701 --wrap scripts/attune_rl.py:RLPolicy --wrap-kwargs '{"eta": 1.0}' --shuffle 1 --units-file <units.json>
# train (n1R recipe: continue rlk5C 1 epoch on all data; each --src = rollouts played by those weights)
K=weights/kings/1ad44eaa065b318e/model.safetensors; R=train/runs/rlk5C/final/model.safetensors
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True .venvs/vector-policy/bin/python train/rl.py \
--data 'eval/results/rl1_s*' --old $K --weights $R --src "eval/results/n1[hm]_s*=$R" --src "eval/results/it1_s*=$R" \
--out train/runs/<new> --lr 3e-6 --clip-ratio 0.1 --epochs 1 --kl 0.3 --std-norm --min-group 4 --batch 512 --seed <s>
# held-out proxy (screen only): add --val-frac 0.15, then --eval-only ... --out train/runs/<run>/evk
python3 tools/g8_check.py <model> weights/kings/1ad44eaa065b318e/model.safetensors <demo prompt.npz> # before any submit
4.5 Resume the Claude session
mkdir -p ~/.claude/projects/-root-bt ~/.claude/file-history
cp -a claude_session/projects/-root-bt/* ~/.claude/projects/-root-bt/
cp -a claude_session/file-history/* ~/.claude/file-history/
cd /root/bt && claude --resume ed8c82c4-58c3-4d9a-b4a7-5aaa81fddb7f
Pasted API keys and tokens in the transcript are replaced by *_REMOVED placeholders, and user emails by
EMAIL_REMOVED.
5. Datasets (companion repo Jason4715/58-attune-level-4-data, private)
Its README lists every file. In short:
- Recorded on-policy rollouts (the RL training data; cannot be downloaded elsewhere):
rl1= king, 11.9k rolloutsit1= rlk5C on its training scenesn1h/n1m= rlk5C on new hard / mid scenesn2= rlk5C / n1C / n1R_s3 on 386 never-played hard scenes- (
rl2, played by the old rl1a model whose weights were not kept, is left out: PPO needs the playing weights)
- Result json of every evaluation label (king references for the paired comparisons).
- The four duel-replay scene sets (rebuilt from the validator's records: the faithful judge).
- The hard test scenes (hard600).
- New hard scene pool (pool_r2).
Not uploaded (old, or rebuildable with scripts/run_demos.py from the unit lists in data/selfplay/*.json):
pool_r1b(138 GB, the scenes of the rl1 rollouts; the rollouts already hold cond + chains, so training does not need them)expert_fix/ep_fix(old SFT data)- old candidate weights