End-to-End CPU TrainingΒΆ
Last Updated: 2026-06-22
Train, evaluate, and inspect a full Codex symbolic pipeline on CPU β no GPU or cloud required.
PrerequisitesΒΆ
1 β Prepare dataΒΆ
2 β Run the pipelineΒΆ
python deploy/deploy_codex_pipeline.py \
--corpus data/corpus.jsonl \
--demos data/demos.jsonl \
--prefs data/prefs.jsonl \
--output-dir runs/cpu_test
This executes three stages in sequence:
| Stage | Script section | Output |
|---|---|---|
| Pretraining | pretrain() |
runs/cpu_test/M0/ |
| SFT | sft() |
runs/cpu_test/M1/ |
| RLHF | rlhf() |
runs/cpu_test/M2/ |
3 β EvaluateΒΆ
Expected: all assertions pass, reproducible outputs (seed=0).
4 β Inspect checkpointsΒΆ
ls runs/cpu_test/
# M0/ M1/ M2/ metrics.json
python -c "import json; print(json.load(open('runs/cpu_test/metrics.json')))"
5 β Containerised runΒΆ
docker compose run --rm trainer \
python deploy/deploy_codex_pipeline.py \
--corpus /data/corpus.jsonl \
--output-dir /runs/exp1
Artifacts are written to the mounted volume at /runs/.