Matthew Ford commited on
Commit
ef8cced
·
1 Parent(s): 2e41740

docs: tidy README + TODO — accurate quick-start, paper package, green tests, READY gate

Browse files

README: quick-start now reflects the two-arm A/B path (structural-source train +
once-only frozen eval + paper artifacts), notes the test count, and adds a Paper
package section (export_paper_data + generate_paper_figures). TODO: cleared stale
IN PROGRESS / DO_NOT_TRAIN markers, marked the 531-instance gap closed (99.80%
coverage), recorded the green test suite, and reconciled the gate narrative to the
current READY state.

Former-commit-id: 1d7ca5a9a8a6f7e14c3b39eea19b847b4ffa9fa6
Former-commit-id: 00f0fbcbf85096df2050e4a2bd4e236256b07562

Files changed (2) hide show
  1. README.md +33 -22
  2. TODO.md +17 -11
README.md CHANGED
@@ -29,30 +29,27 @@ python -m venv .venv
29
  source .venv/bin/activate
30
  pip install -e .
31
 
32
- # Run tests
33
- python -m pytest tests/ -v
34
-
35
- # Generate the empirical dataset (5,600+ records, ~10 min on CPU)
36
- python scripts/generate_empirical_bootstrap.py --output data/empirical_dataset_v1.jsonl
37
-
38
- # Train locally (5 epochs, smoke-test config)
39
- python src/pino/train.py --epochs 5 --smoke-test
40
-
41
- # Publish the validated PIMT v9 substantivity GBM on Hugging Face Jobs.
42
- # This is the measured-only ~170-row GBM path, not the neural pyramid trainer.
43
- hf jobs run --detach --flavor cpu-upgrade --timeout 45m --secrets HF_TOKEN \
44
- python:3.11 bash -lc 'set -euo pipefail
45
- python -m pip install -q huggingface_hub
46
- python - <<PY
47
- import os
48
- from huggingface_hub import snapshot_download
49
- snapshot_download(repo_id="mattbitzesty/pino-source-code", repo_type="model", local_dir="/workspace/pino", token=os.environ.get("HF_TOKEN"))
50
- PY
51
- cd /workspace/pino
52
- python -m pip install -q -e .
53
- python -u scripts/pimt_v9_train_publish.py --upload'
54
  ```
55
 
 
 
 
 
 
56
  ## Repository layout
57
 
58
  | Path | Purpose |
@@ -101,6 +98,20 @@ Trained and evaluated once on the frozen benchmarks. Results live in
101
  triplets carry authoritative Fraterworks preference provenance + verified
102
  structural discordance.
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  ## Training-readiness gate
105
 
106
  Training is gated by `scripts/freeze_representation_validation.py`, which inspects on-disk artifacts and reports `READY_FOR_TRAINING` only when all five checks pass: genuine-POM asset present, representation ablation complete, ≥1 discordant substitution triplet admitted, 30–50 prospective formulas frozen, and prospective labels sequestered. Current status: `artifacts/training_readiness.json`.
 
29
  source .venv/bin/activate
30
  pip install -e .
31
 
32
+ # Run tests (112 passed, 4 skipped)
33
+ python -m pytest tests/ -q
34
+
35
+ # Train the two-arm representation A/B locally (Morgan vs genuine OpenPOM)
36
+ python src/pino/train.py --structural-source morgan --epochs 6 --checkpoint-name pimt_ab_morgan.pt
37
+ python src/pino/train.py --structural-source openpom_256 --epochs 6 --checkpoint-name pimt_ab_openpom.pt
38
+
39
+ # Single preregistered readout on the frozen benchmarks (once per arm)
40
+ python scripts/evaluate_frozen_benchmarks.py --checkpoint models/pimt_ab_openpom.pt \
41
+ --structural-source openpom_256 --arm-label openpom_256 --output artifacts/frozen_eval_openpom_256.json
42
+
43
+ # Paper artifacts: canonical data macros + figures (from on-disk artifacts only)
44
+ python scripts/export_paper_data.py # -> artifacts/paper_data.yaml
45
+ python scripts/generate_paper_figures.py # -> figures/*.pdf
 
 
 
 
 
 
 
 
46
  ```
47
 
48
+ GPU training runs on Hugging Face Jobs against the published
49
+ `mattbitzesty/pino-source-code` model repo (`scripts/hf_gpu_ab_job.py`,
50
+ `scripts/hf_stats_job.py`); the legacy substantivity-GBM path is
51
+ `scripts/pimt_v9_train_publish.py`.
52
+
53
  ## Repository layout
54
 
55
  | Path | Purpose |
 
98
  triplets carry authoritative Fraterworks preference provenance + verified
99
  structural discordance.
100
 
101
+ ## Paper package
102
+
103
+ The paper build pulls facts from a single canonical source and renders figures
104
+ from on-disk artifacts — no retraining, no HF calls:
105
+
106
+ - `scripts/export_paper_data.py` → `artifacts/paper_data.yaml`: 49 lowerCamel
107
+ `data_macros` for the autopaper pipeline (builder prefixes `D`, digits→words;
108
+ e.g. `pomThreshRho` → `\DPomThreshRho`). Sourced verbatim from the frozen
109
+ ablation, the v10_line_drawn substantivity GBM, and the A/B frozen readout,
110
+ plus dataset curation stats and honest negatives.
111
+ - `scripts/generate_paper_figures.py` → `figures/*.pdf`: (a) ablation grouped
112
+ bars + 95% CI, (b) UMAP of genuine OpenPOM embeddings by odor family,
113
+ (c) objective-head trajectory pred-vs-target (sparsity annotated).
114
+
115
  ## Training-readiness gate
116
 
117
  Training is gated by `scripts/freeze_representation_validation.py`, which inspects on-disk artifacts and reports `READY_FOR_TRAINING` only when all five checks pass: genuine-POM asset present, representation ablation complete, ≥1 discordant substitution triplet admitted, 30–50 prospective formulas frozen, and prospective labels sequestered. Current status: `artifacts/training_readiness.json`.
TODO.md CHANGED
@@ -25,7 +25,7 @@ applicable) are committed. Results are recorded even when they are negative.
25
  expand with expert-rated perceptual preferences for publication scale.
26
  `data/benchmarks/substitution_triplets/`.
27
  - [x] Freeze a prospective formula benchmark containing 30--50 deliberately
28
- designed formulas (IN PROGRESS; see design decisions below).
29
  - DECISION: evaluated in-silico (model scoring/retrieval), no physical
30
  compounding. OPTION HELD OPEN: a community physical-compounding arm may be
31
  appended later; formulas are therefore restricted to common hobbyist-available
@@ -67,9 +67,12 @@ through every tier to a zero 138-D vector.
67
  may be more insightful. DECISION PENDING on target-space architecture:
68
  138-dim single-label coarse basis vs ~600-dim multi-label tag basis. This is a
69
  paper-defining architectural fork; see README "Open design decisions".
70
- - [ ] Close the residual 531-instance gap (15 CAS with no odor text anywhere:
71
- Musk tonkin, Ylang, absolutes, 3-Methoxyphenethylamine) via curated
72
- perfumer-tier labels.
 
 
 
73
 
74
  ## Completion evidence
75
 
@@ -77,11 +80,13 @@ through every tier to a zero 138-D vector.
77
  `artifacts/representation_ablation/`
78
  - [x] Discordant triplet manifest and report (8 admitted; honest coverage note):
79
  `data/benchmarks/substitution_triplets/`
80
- - [ ] Prospective formula protocol and blinded evaluation package (design in progress):
81
- `data/benchmarks/prospective_formulas/`
82
- - [x] Training-readiness gate report (`DO_NOT_TRAIN`; ablation+triplet blockers now cleared):
83
  `artifacts/training_readiness.json`
84
- - [x] v11.6 substitution-corpus repair (Molequles enrichment; still not training-ready):
 
 
85
  `artifacts/pimt_v11_6_corrected_coverage_baseline.json`
86
 
87
  ## v11.6 substitution-corpus repair (2026-07-17)
@@ -105,10 +110,11 @@ independent enrichment source — never for eval-label construction.
105
  trustworthy-only.
106
  - Corrected baseline: rankable one-to-one 16→29 (+81%), median answer rank
107
  1022.5→253, best rank 8, top-5 hits still 0. Retrieval features (not ranking
108
- weights) remain the binding constraint. Gate stays `DO_NOT_TRAIN`.
 
109
 
110
- Remaining benchmark prerequisites (unchanged, still open): real POM asset,
111
- discordant-triplet benchmark, 30–50 prospective formulas.
112
 
113
  ## Compliant-repair pipeline (2026-07-17)
114
 
 
25
  expand with expert-rated perceptual preferences for publication scale.
26
  `data/benchmarks/substitution_triplets/`.
27
  - [x] Freeze a prospective formula benchmark containing 30--50 deliberately
28
+ designed formulas (COMPLETE; see design decisions below).
29
  - DECISION: evaluated in-silico (model scoring/retrieval), no physical
30
  compounding. OPTION HELD OPEN: a community physical-compounding arm may be
31
  appended later; formulas are therefore restricted to common hobbyist-available
 
67
  may be more insightful. DECISION PENDING on target-space architecture:
68
  138-dim single-label coarse basis vs ~600-dim multi-label tag basis. This is a
69
  paper-defining architectural fork; see README "Open design decisions".
70
+ - [x] Close the residual 531-instance gap (15 CAS with no odor text anywhere) via
71
+ curated perfumer-tier labels — coverage now 99.80% (36,049/36,122 instances;
72
+ 73-instance name-only naturals floor).
73
+ - [x] Test suite green: fixed pre-existing failures (draft_engine None-MW crash;
74
+ stale gate-failure test rewritten to hermetic tmp-dir + live-READY regression
75
+ guard). 112 passed, 4 skipped.
76
 
77
  ## Completion evidence
78
 
 
80
  `artifacts/representation_ablation/`
81
  - [x] Discordant triplet manifest and report (8 admitted; honest coverage note):
82
  `data/benchmarks/substitution_triplets/`
83
+ - [x] Prospective formula protocol and blinded evaluation package (40 frozen,
84
+ labels sequestered): `data/benchmarks/prospective_formulas/`
85
+ - [x] Training-readiness gate report (`READY_FOR_TRAINING`; all 5 checks green):
86
  `artifacts/training_readiness.json`
87
+ - [x] Paper data exporter (`artifacts/paper_data.yaml`, 49 macros) + figures
88
+ (`figures/*.pdf`): `scripts/export_paper_data.py`, `scripts/generate_paper_figures.py`
89
+ - [x] v11.6 substitution-corpus repair (Molequles enrichment; gate now READY):
90
  `artifacts/pimt_v11_6_corrected_coverage_baseline.json`
91
 
92
  ## v11.6 substitution-corpus repair (2026-07-17)
 
110
  trustworthy-only.
111
  - Corrected baseline: rankable one-to-one 16→29 (+81%), median answer rank
112
  1022.5→253, best rank 8, top-5 hits still 0. Retrieval features (not ranking
113
+ weights) remain the binding constraint. (Note: this baseline predates the
114
+ training-readiness gate, which has since gone READY on the benchmark checks.)
115
 
116
+ All three former prerequisites are now met (real POM asset, 20-triplet benchmark,
117
+ 40 prospective formulas), so the gate reads READY.
118
 
119
  ## Compliant-repair pipeline (2026-07-17)
120