# Lane specs 実験をデータとして定義する。owner が spec を書き、Kaggle 実行担当は `run_lane.py` を回すだけ。 ```bash python scripts/run_lane.py --spec lanes/clean-suite-08b.json --dry-run # コマンド確認 python scripts/run_lane.py --spec lanes/clean-suite-08b.json # 実行 python scripts/run_lane.py --spec lanes/clean-suite-08b.json --hf-results /uzu-results ``` ## 仕様 | key | 意味 | |---|---| | `lane` | 出力ディレクトリ名。`/out//` | | `model.spec_name` / `model.hf_repo` | BF16 が無い時の import 元 | | `model.bf16_dir` | BF16 lalamo の場所(`kit/` 相対 or 絶対) | | `model.bf16_source` | BF16 をコピーしてくる場所(Kaggle dataset など) | | `paths.kit` | スクリプトとコーパスのルート | | `paths.work` | 出力ルート。`--work` で上書き可 | | `paths.jax_platform` | `cpu` / `gpu`。`JAX_PLATFORM_NAME` に渡す | | `eval.corpora` | 言語 → eval コーパス。必ず `*_dedup.txt` | | `eval.max_sequences` | chunk 数。監査で 100 を要求 | | `condition_defaults` | calibration の既定値 | | `conditions[]` | `name`, `calibration_corpus`, 上書き値 | | `conditions[].raw_output` | 生 Hessian を保存(balanced H 用) | | `conditions[].skip_convert` | calibration だけ実行して npz を残す | | `conditions[].force_convert` | raw でも変換まで回す | | `merge` | `en`, `ja`, `ratios`, `damping`, `name_template` | | `convert` | `bits`, `group_size`, `block_size`, `parallel` | ## 挙動 - calibration には必ず全 eval コーパスを `--eval-corpus` で渡す(重複を入口で拒否) - `result.json` が `status: complete` なら skip(12h 制限対策の resume) - 最後に `manifest.json` を書く - 検証で落ちる条件: - `chunks` が `eval.max_sequences` と違う - 条件間で `bf16_ppl` が 0.05 以上ずれる(BF16 baseline は共通のはず) - `bf16_ppl` が無い - 検証に落ちたら exit 1。manifest は残る ## 既存 | spec | 内容 | |---|---| | `clean-suite-08b.json` | mix65 / mix35 / jaonly の正規化 calibration + INT4 eval | | `balanced-h-08b.json` | raw EN/JA → 50/65/35 merge → INT4 eval |