[Control] tune run --mode api --hold <size> renders the literal "None" into the worker command line, engine exits with code 2

オープン 初心者向け
#7,719 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend, cli

調査の方向性

まず tuning.py:770-800 から始め、保持された次元が tuning.py:604-622 の _args_for() にどのように渡されるかを追ってください。報告されたエンジンのバージョンで tune run --mode api --hold <size> を実行して再現し、保持された値がリテラルの None として表示されなくなり、ベースラインを測定できることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

needs-format

Environment. Control checkout run with Python 3.12.10 on Windows 11, engine 0.1.60. Reproduced twice: a sweep with --hold kv --hold vram_reserve --hold spec_min_p --hold ple_io, and again without --hold.

Symptom. The measured worker exits before it becomes ready:

EngineDied: the engine exited before it was ready … exit code 2
strata generate: invalid --ple-io/--ple-row-cache/--ple-inflight/--ple-delay-us

The worker command line contains --kv None --ple-io None --spec-min-p None --vram-reserve-mib None.

Cause (from the source). tuning.py:770-800 builds fixed = {d.id: … None} for held dimensions (tuning.py:786), and _args_for() (tuning.py:604-622) then re-renders args[flag] = str(value) — so None becomes the string "None". Engine 0.1.60 rejects that in argument validation, and every trial (including the baseline) is UNMEASURED: baseline could not be measured, trials 0 of 16.

Why it matters. Held dimensions are exactly the ones the user wants untouched, so the flag that protects them makes the whole sweep measure nothing. On an older engine (0.1.72) the same sweep passed with None accepted, which hides the bug.

Workaround we use. Drop --hold entirely: the sweep only measures and tune apply is never run, so the protected settings are safe anyway.

Suggested fix. Skip held dimensions when rendering arguments (or keep their original value from the launch config instead of None), and report the malformed command line in the job status rather than only the worker exited with code 1 before becoming ready.

主要言語
C++
スター
11.6k
フォーク
1k
平均マージ
6日 2時間
マージ済み PR(30日)
21

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Niko1221/Strata のほかの issue

Niko1221/Strata の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。