cli: one command per verb, per-family dispatch; experiment train/test scripts - #19
Draft
vividf wants to merge 1 commit into
Draft
cli: one command per verb, per-family dispatch; experiment train/test scripts#19vividf wants to merge 1 commit into
vividf wants to merge 1 commit into
Conversation
… scripts Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
vividf
force-pushed
the
pr8-deploy-orchestration
branch
from
September 7, 2026 05:23
4249f0d to
bbb867d
Compare
vividf
force-pushed
the
pr9-cli-family-dispatch
branch
from
September 7, 2026 05:23
8270b7a to
9e0ff0f
Compare
This was referenced Sep 7, 2026
Draft
Draft
quant: declarative quantization (plan/placement, modelopt engine, PTQ/QAT, self-describing ckpt)
#17
Draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack(base
pr-stack-base=7e35d97):#11 → #12 → #13 → #14 → #15 → #16 → #17 → #18 → #19 → #20(CenterPoint 全功能點)→ #21 → #25 → #22 → #23 → #24(= 開發 branch HEAD,逐位元一致)。合併由下而上,每合一層把下一層 base retarget。這個 PR 是什麼
CLI:一個動詞一個命令(train/deploy/quantize/test/create-dataset),由 config 路徑前綴(
tasks/vsexperiments/)分派到 family 實作——不管什麼模型,命令長得一樣。設計決策
(command, family) → entrypoint module,lazy import(CLI 啟動不載重模組)。test_importing_cli_does_not_import_mlflow_or_hydra。config-family prefix 常數因此單一來源在輕量的utils/cli/helpers.py(曾在 cli.py/runtime.py 重複定義正是為了避開重 import;現在單源 + 約束寫在定義處)。Review 時別把它們搬回 runtime.py。cli/completion.py(每種可補全參數一個有 docstring 的 wrapper;候選發現在 helpers)。multi_task_{train,test}.py→experiment_{train,test}.py(family 通用化)。逐檔導覽
cli/cli.py:命令定義、OptionFirstTyperCommand(空 token 也給 option 補全)、dispatch、session 管理命令。cli/completion.py:補全 wrappers。cli/runtime.py:重量級 runtime(hydra compose、entrypoint 執行)。utils/cli/helpers.py:補全候選發現、prefix 常數。tests/cli/test_cli.py:60+ 測試(dispatch、補全、session、啟動 import 契約)。檔案清單(點開)
Review checklist
🤖 Generated with Claude Code