BurnyCoder's picture
Publish resumable postponement before restoring the interrupted seed
f043c42 verified
|
Raw History Blame Contribute Delete
5.39 kB

Reproducing the study

The public preregistration fixes the reward, estimator, checkpoint rule, primary comparison, threshold and treatment of fallback levels. The run matrix defines separate claims for ordinary and delayed settings.

Install

Install uv and a CUDA driver supporting the locked PyTorch CUDA build. From the repository root run uv sync --locked. The project resolves Python 3.12. Copy .env.example to .env; choose a disk with storage for downloads and checkpoints. To place the package cache there set UV_CACHE_DIR in the shell before syncing. The experiment code loads .env when it starts.

Run and inspect

uv run pytest -q
uv run novel-tokens calibrate --domain cups
uv run novel-tokens train --run cups-symbols-17 --arm symbols --seed 17
uv run novel-tokens evaluate --checkpoint cups-symbols-17 --task cups --stage test-cups
uv run novel-tokens solve --checkpoint cups-symbols-17 --question "Four cups hold colored balls. Start: A=red, B=blue, C=green, D=gold. Swap these pairs in order: AB. Which cup holds the red ball? Answer A, B, C or D."
uv run novel-tokens dashboard --port 8765
uv run novel-tokens report

In PowerShell set $env:NTR_GPU_TEST='1' to include the real-checkpoint acceptance test in pytest. To run the entire matrix, use uv run novel-tokens campaign. Rerunning the same command resumes durable milestones and training states. The project owner's --publish option also updates GitHub and the Hugging Face collection at each milestone. Publications require existing Git and Hugging Face authentication. Keep credentials outside the repository. Open the dashboard at http://127.0.0.1:8765/; public Pages snapshots refresh after publication.

On a clean clone, pass a public adapter ID such as BurnyCoder/ntrd-cups-init-17 to --checkpoint for immediate inference. The initial weights provide a frozen control. Later checkpoints appear in the collection. For numeric answers add --numeric. For a delayed checkpoint, pass the writer's prefix in --question and the newly disclosed swap and query in --reader-question. Published metrics in a clone do not substitute for locally trained adapter weights when rerunning training.

To postpone a campaign, create an empty file named postpone.request inside the configured NTR_STORAGE directory. The trainer saves the current optimizer and generator state at the next update boundary. A held-out evaluation stops between batches and restarts from its fixed panel seed. To continue, remove that marker and rerun the original campaign command. Completed stage receipts prevent duplicate training or publication after an interruption.

Reading the data

Run uv run python scripts/audit_data.py to reproduce input-file hashes, exact question-overlap checks and the effective size of finite fallback panels. Data audit

  • Each experiment folder in results contains its run specification, training curve, panel metrics and compressed JSONL predictions. Accuracy is an exact fraction; subtracting donor accuracy from intact accuracy gives the trace effect. Convert the difference to percentage points by multiplying by 100.
  • Each prediction records the question, source and donor trace IDs, all intervened IDs, generated answers, solver answer, program and relevant counterfactual. Full timestamped rollouts also stream to stdout and compressed logs.
  • Variable NTR_STORAGE locates large artifacts. A checkpoint directory contains the pinned base identifier, trainable parameters in safetensors, tokenizer and a local restart file. The receiver reconstructs input embeddings from discrete IDs on every pass.
  • The model card documents the upstream training. The external GSM8K test assesses performance on a public benchmark and does not establish pretraining data isolation.

Mathematical check

Condition on an exogenous reveal order. The trajectory log probability is the sum of the selected symbols' log probabilities at their respective masked states, plus the sampled answer log probabilities. For rollout i, subtract the mean reward over the other three rollouts of the same question. Their independence from rollout i makes this a valid baseline. Multiply this advantage by the complete log probability, negate and average over rollouts. Each reveal round backpropagates separately for memory efficiency. RLOO · Mask-aware policy gradients

The exact gradient test enumerates every group of four trajectories of a two-action writer and an answer reader conditioned on the written action. It compares all three parameter derivatives with the analytically differentiated expected reward. The masking test inspects the actual numeric-reader canvas before and after the first committed digit. The real-checkpoint acceptance test checks same-position sampling, selective row updates, tokenizer serialization and restart. Policy tests · Real-checkpoint test