Skip to content

docs(ml): report T7 retrain cycle results and add retrain mode - #31

Merged
Mani212005 merged 4 commits into
mainfrom
fm/digisim-t7-retrain
Nov 18, 2026
Merged

Mani212005 merged 4 commits into
mainfrom
fm/digisim-t7-retrain

Conversation

@Mani212005

@Mani212005 Mani212005 commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Scope: not docs-only. This PR is the T7 retrain results doc plus the retrain tooling that produced its numbers (DIGISIM_MODE=retrain in ml/kaggle/t7_session.py, the --augment profiles in ml/train.py / ml/kaggle/train_kaggle.py, and their tests). The accuracy gates are NOT met. The boosted class targets came from Run A's test-set misses, so the retrain numbers for those classes are slightly optimistic.

Intent

Report the T7 retrain cycle honestly. Firstmate/main approved opening the T7 retrain results as a PR through the normal validation path. The doc section in agent_docs/ml-pipeline.md ('T7 retrain cycle (2026-11-18): gates still NOT met') states plainly that the accuracy gates are NOT met: real tier A F1 0.724, JUNCTION recall 0.720 (gate 0.90), synthetic held-out VDD and OR fail. It compares the retrain with Run A and with an accidental replicate run (used to measure run-to-run noise), and lists what extra real data would help most (>=10 CGHD drafters, VDD/INPUT_PORT/NMOS-PMOS/OUTPUT_PORT, non-CGHD gate photos, resolving 907 uncertain_terminal regions, generator VDD variants) so the captain can decide whether to source it. The branch also includes the already-tested retrain tooling commit (DIGISIM_MODE=retrain in ml/kaggle/t7_session.py: stage-B checkpoint selection on real-only validation, patience 1000 = no early stop, x8 real oversampling, --augment strong profile in train.py/train_kaggle.py, boosted synthetic subset of all gate images plus the 1500 gate-free images richest in VDD/GND/INPUT_PORT) because the doc describes it and it produced the numbers; Firstmate called the PR docs-only, so keep code changes minimal. Weights, datasets and eval outputs stay outside git; no tuning on the test sets; do not claim gates are met. No em dashes; module and function docstrings required by AGENTS.md; ruff clean.

What Changed

  • Adds a "T7 retrain cycle (2026-11-18): gates still NOT met" section to agent_docs/ml-pipeline.md. It states that the gates are not met (real tier A F1 0.724, JUNCTION recall 0.720 against the 0.90 gate, synthetic held-out VDD and OR fail). It compares the retrain with Run A and with an accidental replicate run used to measure run-to-run noise, and lists the extra real data that would help most. It also documents --augment and DIGISIM_MODE=retrain in the Training Harness notes.
  • Adds retrain tooling in ml/kaggle/t7_session.py: DIGISIM_MODE=retrain runs a single stage B from an attached stage-A best.pt. It selects checkpoints on the real-only validation set, uses patience 1000 (no early stop), oversamples real images x8, and trains on a boosted synthetic subset (all gate images plus the 1500 gate-free images richest in VDD/GND/INPUT_PORT).
  • Adds an --augment default|strong option and an AUGMENT_PROFILES table, kept identical in ml/train.py and ml/kaggle/train_kaggle.py. patience and augment are now recorded in the metrics.json settings. New tests in ml/tests/test_kaggle_build.py and ml/tests/test_train_harness.py cover the retrain/augment additions.

Risk Assessment

✅ Low: The round 1 fix is a doc-only rewording that now discloses the test-informed class boost, keeps all numbers and the NOT-met statement, and contains no em dashes. The remaining tooling is opt-in, tested, and consistent across train.py and train_kaggle.py.

Testing

I exercised the change's runtime surface, the training CLI and the Kaggle retrain driver, against disposable throwaway data on CPU. train.py --augment strong passed the strong profile to real ultralytics and recorded it in metrics.json. t7_session.retrain() ran start to finish and produced weights, ONNX, metrics and a session summary. The yaml it wrote used the boosted synthetic list, real-only validation and the real test split, with patience 1000, strong augmentation and x8 real oversampling. The targeted pytest files passed. The missing-weights rejection and the doc content were checked only through a unit test and by reading, not live, so those scenarios are reported as untested. Two limits: there is no GPU or Kaggle here, so I used a stub nvidia-smi and a patched /kaggle root, and I did not re-verify the reported F1 numbers because the weights and datasets are not in the repo.

  • Live validation: ✅ go - 2 of 4 scenarios driven live against the product
Scenario Result Live Evidence
Run train.py with --augment strong: the plan reports it, and a real CPU training run applies the strong hyperparameters and records augment=strong in metrics.json ✅ pass live dryrun_strong.json, train_strong.log, args_strong.yaml
Run the retrain driver (DIGISIM_MODE=retrain path) on a disposable Kaggle-style layout: it finds the attached stage_a/best.pt, builds the boosted synthetic list plus a real-only val yaml, and trains w… ✅ pass live retrain_driver.log, retrain_settings.txt, retrain.yaml, session_summary.json
Missing attached stage_a/best.pt is rejected: find_stage_a_weights raises FileNotFoundError ⏸️ untested no The prior payload only cited a unit test in ml/tests/test_kaggle_build.py, not a run against the live retrain driver with the weights missing, so it did not establish a live result.
The doc states the gates are NOT met, keeps the numbers, discloses the test-informed boost, and has no em dashes; weights and eval outputs stay out of git ⏸️ untested no The prior payload established this only by reading agent_docs/ml-pipeline.md and inspecting the diff. That is a static doc review, not a live run of the product, so no live result was established.
Evidence: Dry-run plan with augment=strong
{
  "preset": "smoke",
  "model": "yolov8n.pt",
  "device": {
    "spec": "cpu",
    "cpu": true,
    "world_size": 1,
    "ddp": false
  },
  "batch_total": 8,
  "batch_per_process": 8,
  "workers": 8,
  "epochs": 2,
  "time_hours": null,
  "imgsz": 320,
  "lr0": 0.01,
  "patience": 2,
  "augment": "strong",
  "real_train": [],
  "real_oversample": 1,
  "resume": null,
  "run_dir": "~/.no-mistakes/worktrees/d6f1543da1b7/01M7Q1KEMJ8PP30Z8QJQR01Z2H/ml/experiments/run_20261118_1532",
  "dataset": {
    "data": "/tmp/t7smoke.bHHr/ds/data.yaml",
    "classes": 14,
    "eval_split": "test",
    "train_images": 28,
    "val_images": 6,
    "test_images": 6,
    "tier": "A"
  },
  "warnings": [
    "yolov8n.pt is a pretrained-weights name that ultralytics downloads on first use"
  ]
}
Evidence: Real train.py --augment strong CPU run log

^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 1% ──────────── 80.0KB/6.2MB 224.7KB/s 0.1s<28.1s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 2% ──────────── 160.0KB/6.2MB 379.3KB/s 0.2s<16.4s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 3% ──────────── 240.0KB/6.2MB 499.2KB/s 0.3s<12.3s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 4% ╸─────────── 304.0KB/6.2MB 496.5KB/s 0.4s<12.3s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 5% ╸─────────── 336.0KB/6.2MB 410.3KB/s 0.6s<14.8s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 5% ╸─────────── 368.0KB/6.2MB 357.5KB/s 0.7s<16.9s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 6% ╸─────────── 416.0KB/6.2MB 338.8KB/s 0.9s<17.7s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 7% ╸─────────── 464.0KB/6.2MB 323.7KB/s 1.1s<18.3s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 7% ╸─────────── 480.0KB/6.2MB 272.8KB/s 1.2s<21.7s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 8% ━─────────── 544.0KB/6.2MB 355.7KB/s 1.3s<16.5s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 9% ━─────────── 608.0KB/6.2MB 302.9KB/s 1.6s<19.1s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 10% ━─────────── 640.0KB/6.2MB 280.3KB/s 1.8s<20.5s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 10% ━─────────── 688.0KB/6.2MB 301.1KB/s 1.9s<19.0s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 11% ━─────────── 736.0KB/6.2MB 316.2KB/s 2.1s<17.9s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 12% ━─────────── 784.0KB/6.2MB 337.4KB/s 2.2s<16.6s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 13% ━╸────────── 832.0KB/6.2MB 344.8KB/s 2.3s<16.1s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 13% ━╸────────── 864.0KB/6.2MB 254.3KB/s 3.1s<21.8s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 14% ━╸────────── 912.0KB/6.2MB 290.2KB/s 3.2s<18.9s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 14% ━╸────────── 944.0KB/6.2MB 273.3KB/s 3.3s<19.9s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 15% ━╸────────── 960.0KB/6.2MB 194.3KB/s 4.9s<28.0s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 15% ━╸────────── 976.0KB/6.2MB 165.2KB/s 5.1s<32.8s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 15% ━╸────────── 1008.0KB/6.2MB 184.0KB/s 5.2s<29.3s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 16% ━╸────────── 1.0/6.2MB 215.2KB/s 5.4s<24.9s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 17% ━━────────── 1.1/6.2MB 380.5KB/s 5.5s<13.9s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 18% ━━────────── 1.2/6.2MB 484.4KB/s 5.6s<10.7s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 20% ━━────────── 1.3/6.2MB 579.8KB/s 5.7s<8.8s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 22% ━━╸───────── 1.4/6.2MB 1.1MB/s 5.8s<4.6s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 23% ━━╸───────── 1.5/6.2MB 596.4KB/s 5.9s<8.2s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 24% ━━╸───────── 1.5/6.2MB 626.0KB/s 6.0s<7.7s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 26% ━━━───────── 1.6/6.2MB 1.0MB/s 6.1s<4.6s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 28% ━━━───────── 1.8/6.2MB 1.4MB/s 6.2s<3.3s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 30% ━━━╸──────── 1.9/6.2MB 1.3MB/s 6.3s<3.2s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 33% ━━━━──────── 2.1/6.2MB 1.6MB/s 6.5s<2.7s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 35% ━━━━──────── 2.2/6.2MB 688.6KB/s 6.6s<6.0s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 36% ━━━━──────── 2.3/6.2MB 672.7KB/s 6.7s<6.0s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 37% ━━━━──────── 2.3/6.2MB 541.1KB/s 6.9s<7.4s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 37% ━━━━╸─────── 2.4/6.2MB 431.2KB/s 7.1s<9.2s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 38% ━━━━╸─────── 2.4/6.2MB 440.0KB/s 7.2s<8.9s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 39% ━━━━╸─────── 2.5/6.2MB 536.1KB/s 7.3s<7.2s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 40% ━━━━╸─────── 2.5/6.2MB 455.1KB/s 7.5s<8.4s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 41% ━━━━╸─────── 2.6/6.2MB 440.6KB/s 7.6s<8.5s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 42% ━━━━━─────── 2.6/6.2MB 483.9KB/s 7.7s<7.6s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 43% ━━━━━─────── 2.7/6.2MB 588.5KB/s 7.8s<6.1s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 45% ━━━━━─────── 2.8/6.2MB 566.6KB/s 7.9s<6.2s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 45% ━━━━━─────── 2.9/6.2MB 510.6KB/s 8.1s<6.8s
^[[KDownloading https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov8n.pt to 'yolov8n.pt': 46% ━━━━━╸──

... [14317 bytes truncated] ...

k.C2f             [192, 64, 1]                  
 16                  -1  1     36992  ultralytics.nn.modules.conv.Conv             [64, 64, 3, 2]                
 17            [-1, 12]  1         0  ultralytics.nn.modules.conv.Concat           [1]                           
 18                  -1  1    123648  ultralytics.nn.modules.block.C2f             [192, 128, 1]                 
 19                  -1  1    147712  ultralytics.nn.modules.conv.Conv             [128, 128, 3, 2]              
 20             [-1, 9]  1         0  ultralytics.nn.modules.conv.Concat           [1]                           
 21                  -1  1    493056  ultralytics.nn.modules.block.C2f             [384, 256, 1]                 
 22        [15, 18, 21]  1    754042  ultralytics.nn.modules.head.Detect           [14, 16, None, [64, 128, 256]]
Model summary: 130 layers, 3,013,578 parameters, 3,013,562 gradients, 8.2 GFLOPs

Transferred 319/355 items from pretrained weights
Freezing layer 'model.22.dfl.conv.weight'
^[[34m^[[1mtrain: ^[[0mFast image access ✅ (ping: 0.0±0.0 ms, read: 1440.6±559.7 MB/s, size: 17.6 KB)

^[[K^[[34m^[[1mtrain: ^[[0mScanning /tmp/t7smoke.bHHr/ds/labels/train... 28 images, 0 backgrounds, 0 corrupt: 100% ━━━━━━━━━━━━ 28/28 1.3Kit/s 0.0s
^[[34m^[[1mtrain: ^[[0mNew cache created: /tmp/t7smoke.bHHr/ds/labels/train.cache
^[[34m^[[1mval: ^[[0mFast image access ✅ (ping: 0.0±0.0 ms, read: 1054.8±288.0 MB/s, size: 17.8 KB)

^[[K^[[34m^[[1mval: ^[[0mScanning /tmp/t7smoke.bHHr/ds/labels/valid... 6 images, 0 backgrounds, 0 corrupt: 100% ━━━━━━━━━━━━ 6/6 2.5Kit/s 0.0s
^[[34m^[[1mval: ^[[0mNew cache created: /tmp/t7smoke.bHHr/ds/labels/valid.cache
^[[34m^[[1moptimizer:^[[0m 'optimizer=auto' found, ignoring 'lr0=0.01' and 'momentum=0.937' and determining best 'optimizer', 'lr0' and 'momentum' automatically... 
^[[34m^[[1moptimizer:^[[0m AdamW(lr=0.000556, momentum=0.9) with parameter groups 57 weight(decay=0.0), 64 weight(decay=0.0005), 63 bias(decay=0.0)
Image sizes 320 train, 320 val
Using 0 dataloader workers
Logging results to ^[[1m/tmp/t7smoke.bHHr/runs/strong/train^[[0m
Starting training for 2 epochs...

      Epoch    GPU_mem   box_loss   cls_loss   dfl_loss  Instances       Size

^[[K        1/2         0G      1.424      4.821       1.08         33        320: 0% ──────────── 0/4  0.4s
^[[K        1/2         0G       1.18      4.631      1.034         28        320: 25% ━━━───────── 1/4 1.2s/it 0.8s<3.7s
^[[K        1/2         0G      1.154      4.618      1.043         26        320: 50% ━━━━━━────── 2/4 1.4it/s 1.2s<1.4s
^[[K        1/2         0G      1.198      4.637      1.074          9        320: 75% ━━━━━━━━━─── 3/4 2.4it/s 1.4s<0.4s
^[[K        1/2         0G      1.198      4.637      1.074          9        320: 100% ━━━━━━━━━━━━ 4/4 2.9it/s 1.4s

^[[K                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95): 100% ━━━━━━━━━━━━ 1/1 8.0it/s 0.1s
                   all          6         11          0          0          0          0

      Epoch    GPU_mem   box_loss   cls_loss   dfl_loss  Instances       Size

^[[K        2/2         0G     0.7989      4.401     0.9231         15        320: 0% ──────────── 0/4  0.4s
^[[K        2/2         0G     0.8321      4.451     0.9208         24        320: 25% ━━━───────── 1/4 1.3s/it 0.8s<3.9s
^[[K        2/2         0G     0.8812      4.526     0.9391         26        320: 50% ━━━━━━────── 2/4 1.3it/s 1.2s<1.6s
^[[K        2/2         0G     0.8706      4.527     0.9485          7        320: 75% ━━━━━━━━━─── 3/4 2.0it/s 1.5s<0.5s
^[[K        2/2         0G     0.8706      4.527     0.9485          7        320: 100% ━━━━━━━━━━━━ 4/4 2.7it/s 1.5s

^[[K                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95): 100% ━━━━━━━━━━━━ 1/1 6.9it/s 0.1s
                   all          6         11          0          0          0          0

2 epochs completed in 0.001 hours.
Optimizer stripped from /tmp/t7smoke.bHHr/runs/strong/train/weights/last.pt, 6.2MB
Optimizer stripped from /tmp/t7smoke.bHHr/runs/strong/train/weights/best.pt, 6.2MB

Validating /tmp/t7smoke.bHHr/runs/strong/train/weights/best.pt...
Ultralytics 8.4.86 🚀 Python-3.14.6 torch-2.12.1+cu130 CPU (12th Gen Intel Core i7-1255U)
Model summary (fused): 73 layers, 3,008,378 parameters, 0 gradients, 8.1 GFLOPs

^[[K                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95): 100% ━━━━━━━━━━━━ 1/1 8.9it/s 0.1s
                   all          6         11          0          0          0          0
                   VDD          1          1          0          0          0          0
            INPUT_PORT          3          3          0          0          0          0
           OUTPUT_PORT          2          2          0          0          0          0
              JUNCTION          2          2          0          0          0          0
                   AND          1          1          0          0          0          0
                   XOR          2          2          0          0          0          0
Speed: 0.2ms preprocess, 17.1ms inference, 0.0ms loss, 0.1ms postprocess per image
Ultralytics 8.4.86 🚀 Python-3.14.6 torch-2.12.1+cu130 CPU (12th Gen Intel Core i7-1255U)
Model summary (fused): 73 layers, 3,008,378 parameters, 0 gradients, 8.1 GFLOPs
^[[34m^[[1mval: ^[[0mFast image access ✅ (ping: 0.0±0.0 ms, read: 1177.4±320.8 MB/s, size: 18.6 KB)

^[[K^[[34m^[[1mval: ^[[0mScanning /tmp/t7smoke.bHHr/ds/labels/test... 6 images, 0 backgrounds, 0 corrupt: 100% ━━━━━━━━━━━━ 6/6 2.5Kit/s 0.0s
^[[34m^[[1mval: ^[[0mNew cache created: /tmp/t7smoke.bHHr/ds/labels/test.cache

^[[K                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95): 100% ━━━━━━━━━━━━ 1/1 9.1it/s 0.1s
                   all          6         12          0          0          0          0
                  PMOS          1          1          0          0          0          0
                   VDD          1          1          0          0          0          0
                   GND          2          2          0          0          0          0
              JUNCTION          1          1          0          0          0          0
                  NAND          1          2          0          0          0          0
                   NOR          1          1          0          0          0          0
                   XOR          1          1          0          0          0          0
                  XNOR          3          3          0          0          0          0
Speed: 0.1ms preprocess, 16.7ms inference, 0.0ms loss, 0.1ms postprocess per image
Results saved to ^[[1m/tmp/t7smoke.bHHr/runs/strong/val^[[0m
Ultralytics 8.4.86 🚀 Python-3.14.6 torch-2.12.1+cu130 CPU (12th Gen Intel Core i7-1255U)

^[[34m^[[1mPyTorch:^[[0m starting from '/tmp/t7smoke.bHHr/runs/strong/train/weights/best.pt' with input shape (1, 3, 320, 320) BCHW and output shape(s) (1, 18, 2100) (5.9 MB)

^[[34m^[[1mONNX:^[[0m starting export with onnx 1.23.2 opset 17...
^[[34m^[[1mONNX:^[[0m slimming with onnxslim 0.1.99...
^[[34m^[[1mONNX:^[[0m export success ✅ 0.9s, saved as '/tmp/t7smoke.bHHr/runs/strong/train/weights/best.onnx' (11.6 MB)

Export complete (0.9s)
Results saved to ^[[1m/tmp/t7smoke.bHHr/runs/strong/train/weights/best.onnx^[[0m
Predict:         yolo predict task=detect model=/tmp/t7smoke.bHHr/runs/strong/train/weights/best.onnx imgsz=320 
Validate:        yolo val task=detect model=/tmp/t7smoke.bHHr/runs/strong/train/weights/best.onnx imgsz=320 data=/tmp/t7smoke.bHHr/ds/data.yaml  
Visualize:       https://netron.app

Run logged to /tmp/t7smoke.bHHr/runs/strong  (best.pt, best.onnx, metrics.json)
Run `uv run python evaluate.py` for the per-class F1/accuracy gate.
Evidence: Ultralytics args.yaml showing strong hyperparameters
task: detect
mode: train
model: yolov8n.pt
data: /tmp/t7smoke.bHHr/ds/data.yaml
epochs: 2
time: null
patience: 2
batch: 8
imgsz: 320
save: true
save_period: -1
cache: false
device: cpu
workers: 8
project: /tmp/t7smoke.bHHr/runs/strong
name: train
exist_ok: true
pretrained: true
optimizer: auto
verbose: true
seed: 0
deterministic: true
single_cls: false
rect: false
cos_lr: false
close_mosaic: 0
resume: false
amp: true
fraction: 1.0
profile: false
freeze: null
multi_scale: 0.0
compile: false
overlap_mask: true
mask_ratio: 4
dropout: 0.0
val: true
split: val
save_json: false
conf: null
iou: 0.7
max_det: 300
quantize: null
dnn: false
plots: false
end2end: null
source: null
vid_stride: 1
stream_buffer: false
visualize: false
augment: false
agnostic_nms: false
classes: null
retina_masks: false
embed: null
show: false
save_frames: false
save_txt: false
save_conf: false
save_crop: false
show_labels: true
show_conf: true
show_boxes: true
line_width: null
format: torchscript
keras: false
optimize: false
dynamic: false
simplify: true
opset: null
workspace: null
nms: false
lr0: 0.01
lrf: 0.01
momentum: 0.937
weight_decay: 0.0005
warmup_epochs: 0.0
warmup_momentum: 0.8
warmup_bias_lr: 0.1
distill_model: null
dis: 6.0
box: 7.5
cls: 0.5
cls_pw: 0.0
dfl: 1.5
pose: 12.0
kobj: 1.0
rle: 1.0
angle: 1.0
nbs: 64
hsv_h: 0.015
hsv_s: 0.6
hsv_v: 0.5
degrees: 5.0
translate: 0.15
scale: 0.6
shear: 2.0
perspective: 0.0005
flipud: 0.0
fliplr: 0.5
bgr: 0.0
mosaic: 1.0
mixup: 0.1
cutmix: 0.0
copy_paste: 0.0
copy_paste_mode: flip
auto_augment: randaugment
erasing: 0.4
cfg: null
tracker: tracktrack.yaml
save_dir: /tmp/t7smoke.bHHr/runs/strong/train
  • Evidence: t7_session retrain() driver log (local file: ~/.no-mistakes/evidence/01M7Q1KEMJ8PP30Z8QJQR01Z2H/retrain_driver.log)
Evidence: Retrain settings in metrics.json and args.yaml
== settings/args ==
{'model': '/tmp/t7smoke.bHHr/kaggle/input/prev/stage_a/best.pt', 'epochs': 40, 'time_hours': 0.02, 'imgsz': 320, 'device': 'cpu', 'workers': 8, 'seed': 0, 'lr0': 0.002, 'patience': 1000, 'augment': 'strong', 'batch': 8}
{'data': '/tmp/t7smoke.bHHr/kaggle/working/retrain_data/retrain.yaml', 'data_effective': '/tmp/t7smoke.bHHr/kaggle/working/stage_b_retrain/data.yaml', 'train_images': 48, 'val_images': 3, 'test_images': 6, 'real_oversample': 8}
{'patience': 1000, 'hsv_s': 0.6, 'mixup': 0.1, 'imgsz': 320}
Evidence: Generated retrain.yaml (boosted train list, real-only val)
train: /tmp/t7smoke.bHHr/kaggle/working/retrain_data/synth_boost.txt
val: /tmp/t7smoke.bHHr/kaggle/input/ds/real/images/valid
test: /tmp/t7smoke.bHHr/kaggle/input/ds/real/images/test
nc: 14
names:
- NMOS
- PMOS
- VDD
- GND
- INPUT_PORT
- OUTPUT_PORT
- JUNCTION
- AND
- OR
- NOT
- NAND
- NOR
- XOR
- XNOR
Evidence: Retrain session summary
{
  "mode": "retrain",
  "dataset": "/tmp/t7smoke.bHHr/kaggle/input/ds",
  "base_weights": "/tmp/t7smoke.bHHr/kaggle/input/prev/stage_a/best.pt",
  "imgsz": 320,
  "seconds": 81.0503602027893
}

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 1 issue found → auto-fixed ✅
  • ⚠️ agent_docs/ml-pipeline.md:223 - The doc says the retrain was done 'all without touching the test sets', but the retrain's design was driven by test-set results. The 'causes above' are Run A's real_t4_test and synthetic held-out per-class misses. The boosted synthetic subset (BOOST_TERMINALS VDD/GND/INPUT_PORT, 'classes that missed the gate' in t7_session.py) and the 'Targeted synthetic boost' bullet are chosen from those test misses. The retrain was then scored on the same tests. Checkpoint selection did use real-validation only, but 'without touching' overstates it and conflicts with the intent's honesty/no-tuning-on-test constraint. Suggest rewording to 'checkpoint selection and early stopping use real validation only; the class boost was chosen after seeing Run A test misses, so the test numbers are not a clean held-out estimate for those classes'. The wording is a claim the author should confirm, so ask rather than auto-edit.

🔧 Fix applied.
✅ Re-checked - no issues remain.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 2 of 4 scenarios driven live against the product
Scenario Result Live Evidence
Run train.py with --augment strong: the plan reports it, and a real CPU training run applies the strong hyperparameters and records augment=strong in metrics.json ✅ pass live dryrun_strong.json, train_strong.log, args_strong.yaml
Run the retrain driver (DIGISIM_MODE=retrain path) on a disposable Kaggle-style layout: it finds the attached stage_a/best.pt, builds the boosted synthetic list plus a real-only val yaml, and trains w… ✅ pass live retrain_driver.log, retrain_settings.txt, retrain.yaml, session_summary.json
Missing attached stage_a/best.pt is rejected: find_stage_a_weights raises FileNotFoundError ⏸️ untested no The prior payload only cited a unit test in ml/tests/test_kaggle_build.py, not a run against the live retrain driver with the weights missing, so it did not establish a live result.
The doc states the gates are NOT met, keeps the numbers, discloses the test-informed boost, and has no em dashes; weights and eval outputs stay out of git ⏸️ untested no The prior payload established this only by reading agent_docs/ml-pipeline.md and inspecting the diff. That is a static doc review, not a live run of the product, so no live result was established.
  • uv run python -m pytest tests/test_kaggle_build.py tests/test_train_harness.py -q (38 passed, 1 skipped)
  • train.py --preset smoke --augment strong --dry-run on a throwaway smoke dataset: plan reports augment=strong
  • train.py --preset smoke --device cpu --augment strong real ultralytics CPU run: args.yaml holds the strong hyperparameters and metrics.json settings.augment=strong
  • t7_session.retrain() driven end to end (DIGISIM_MODE=retrain path) against a disposable Kaggle-style layout, with a stub nvidia-smi and --skip-install injected: real train_kaggle.py ran, produced best.pt, best.onnx, metrics.json, session_summary.json
  • Inspected the retrain outputs: patience=1000, augment=strong, 24 boosted synthetic images plus 3 real x8 oversampled = 48 train images, val is the real valid folder, test is the real test folder
  • Read the doc section in agent_docs/ml-pipeline.md and scanned the added lines for em dashes (none)
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
digisim Ready Ready Preview Nov 18, 2026 10:07am UTC

@netlify

netlify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for digisim canceled.

Name Link
🔨 Latest commit 08a183e
🔍 Latest deploy log https://app.netlify.com/projects/digisim/deploys/6afd7893c9bd09d3df094b2c

@Mani212005
Mani212005 merged commit 8b6616e into main Nov 18, 2026
9 checks passed

This branch was successfully deployed

1 active deployment
Preview — 08a183e1 Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant