BurnyCoder's picture
Research source and frozen data snapshot e89d734a5e4d2ebd656b0a5b280a93196f9bcc1d
520860c verified
|
Raw History Blame Contribute Delete
9.45 kB

Installation and execution

Current audit boundary (2026-11-19): use existing evidence only; the model commands below are a reference for future authorized experiments, not steps to run during this audit. The original pilot cannot select a retained budget because it recorded no tensor changes. See resume.md.

Use an Ubuntu WSL shell in the cloned repository. All commands below assume published source, Python 3.12, uv, a working NVIDIA CUDA driver and Docker. Never run model commands with a dirty or unpushed checkout. The CLI and pytest session enforce the Git publication gate.

# Authoring/setup only; the lockfile is already committed.
bash scripts/setup_wsl.sh
# Authenticate only if the machine does not already have access.
hf auth whoami
gh auth status

.env.example contains paths, not credentials. .env is ignored. Keep model caches, run outputs and checkpoints on D: to avoid filling the system drive. The local venv remains in this checkout. Do not enable hosted inference services. The compatible dependency set is in uv.lock; upstream Unsloth version bounds intentionally constrain Torch, Transformers and TRL.

Setup applies a hash-checked backport of the upstream lazy package-metadata lookup to the pinned Transformers. The original file is a uv-cache symlink; only the venv link is replaced, leaving the cache intact. Publish manifests/runtime-patch.json after first setup. This avoids repeated whole-wheel filesystem scans on Python/WSL and changes no model computation. If reinstalling dependencies separately, run .venv/bin/python scripts/backport_transformers.py again from a published checkout.

Publish checkpoints between phases

The setup script includes the standard user uv install directory in PATH for noninteractive WSL shells. It uses UV_LINK_MODE=symlink so the project-local venv links packages from the D: cache instead of duplicating large CUDA libraries on C:. Keep that cache available; deleting it would break those links.

Every phase may create publishable manifests, reports or README changes. Before running the next phase, review the files, commit and push them and verify the remote SHA. occam publish --source mirrors the current source snapshot to the single Hugging Face collection; retained training and pilots require that receipt for the exact current Git commit. git add should name intended files; never include .env, caches or raw weights.

git add README.md docs reports manifests configs src tests uv.lock site paper
git commit -m 'Describe the concrete change'
git push
git rev-parse HEAD
git ls-remote origin "refs/heads/$(git branch --show-current)"
uv run --frozen occam publish --source

Use meaningful feature branches and merged pull requests. The commands above show the recurring publication step; do not mechanically create empty commits.

Readiness

uv run --frozen pytest -m 'not sandbox'
uv run --frozen pytest -m sandbox
uv run --frozen occam resolve
# Publish the resolved revisions, then build the pinned CUDA llama.cpp runtime.
bash scripts/build_llama.sh
# If nvcc is unavailable, install the checksum-pinned official CUDA binary instead:
uv run --frozen python scripts/install_llama.py
# Set OCCAM_LLAMA_SERVER and OCCAM_LLAMA_CUDA_LIB in ignored .env to the printed paths.
uv run --frozen occam doctor
# Publish runtime manifest before the next phase.
uv run --frozen occam prepare
# Publish generated split IDs and hashes before any training.
uv run --frozen occam qualify qwen
# Publish the audit. Amendment 002 permits explicitly exploratory noisy-judge training.
uv run --frozen occam profile
uv run --frozen occam select-gemma
uv run --frozen occam qualify gemma

Publish changes between commands whenever the working tree changes. Qualification and GPU profiling are prerequisites, not standalone baseline runs. No training data are generated by a hosted model. The procedural-only flag is for exploratory debugging, not a replacement for the registered public comparison. An unsupported public answer type is excluded before policy performance is observed and reported in the exclusion log.

The published allow_unqualified_training_judge setting implements the user's instruction to try training despite residual judge-quality failures. A completed current Qwen audit is still mandatory; its failed status is preserved. This override cannot authorize an outdated model/prompt or an unqualified Gemma evaluator. All affected comparisons remain exploratory. See amendment 002.

Occam first

uv run --frozen occam train occam --seed 17 --pilot
uv run --frozen occam budget
# Publish frozen update budget and source receipt before retained training.
uv run --frozen occam train occam --seed 17
# After interruption, keep the same configuration and data:
uv run --frozen occam train occam --seed 17 --resume
uv run --frozen occam report
# Publish generated paper/reports/README/site, then upload the completed run.
uv run --frozen occam publish --run occam-seed17
# Publish first-occam.json before baseline execution.

The implementation saves checkpoint state at optimizer boundaries, periodically and on a clean signal. It requests resumption from the latest checkpoint after interruption; actual interrupted-training resumption has not been demonstrated. Work since a saved checkpoint may be repeated, so preserve raw logs and do not count repeated attempts as independent samples. Identity checks reject changed scientific configuration. The first pilot is excluded from retained comparisons.

If startup failed before the first model prompt or rollout, --resume can restart from the original seed while preserving the failed log. It requires the same run identity. If any rollout or optimizer work exists, a full checkpoint is required; the command will not silently reset training. Frozen tasks are parsed before loading model weights.

Prompt-only and trained baselines

uv run --frozen occam evaluate prompt_ordinary --split calibration --seed 17
uv run --frozen occam calibrate
# Publish normalizers before any length training.
uv run --frozen occam evaluate prompt_ordinary --seed 17
uv run --frozen occam evaluate prompt_concise --seed 17
uv run --frozen occam evaluate prompt_occam --seed 17
uv run --frozen occam evaluate occam --seed 17
uv run --frozen occam train accuracy --seed 17
uv run --frozen occam train token --seed 17
uv run --frozen occam train formal --seed 17

After each trained model and each evaluation, regenerate/publish reports and upload that run before proceeding. Subsequent seeds follow the same order with Occam first; shuffled simplicity is the last trained control. --limit-per-domain produces clearly labeled exploratory evaluations. All arms use the same task IDs, generation settings, maximum completion, full-trace counting and independent evaluator. Prompt-only baselines use unchanged original-model weights; their instructions differ.

Monitoring and reporting

uv run --frozen occam dashboard --port 8765
# Open http://127.0.0.1:8765/?live=1
uv run --frozen occam report

The live view polls saved events and labels training accuracy as training accuracy. Static GitHub Pages uses generated site/data.json, with no remote model computation. The report command creates every measured table, plot, example list, aggregate report, per-run report, Markdown paper and PDF. Investigator notes belong in each run's notes.md; include what failed, why a fix was chosen, and whether an analysis was planned or post hoc. Inspect the rendered PDF before publication. No fabricated benchmark scores, sample outputs, uncertainty bars or training curves are included.

The generated PDF is output/pdf/paper.pdf; the editable report and template are in paper/.

occam report also regenerates model cards under docs/model-cards/ and the independent audit measurements/register report. The audit requires the original frozen JSONL splits and run/checkpoint files at the configured artifact paths; retrieve them from the existing artifact dataset and pilot model for a full reconstruction. Do not rerun prepare to overwrite those frozen files. Legacy evaluation records with missing provenance stay readable but are labeled unverified and excluded from primary inference. For renderer regressions, run node --test tests/ui.test.cjs after publishing changes; browser layout inspection is a separate check.

CPU-only scientific reporting

From the published WSL checkout, build the existing CPU verifier image and then run docker build -f docker/EvalPlus.Dockerfile -t occam-evalplus:0.3.1 docker. Use the artifact paths in the project configuration. The report needs the frozen splits, operations logs, pilot checkpoint, pinned upstream dataset caches and policy tokenizer files. EvalPlus uses its v0.2.0 data release cache. With these available, CUDA_VISIBLE_DEVICES=-1 HF_HUB_OFFLINE=1 uv run --no-sync occam report regenerates both audit reports, per-task evidence, tables, figures, cards, PDF and explorer. The CPU replay executes public reference programs in the isolated container and tokenizes prompts without loading model weights. Scoring amendment