deploy: deploy orchestration (export flow, verify/eval wiring); retire legacy deployment_export - #18
Draft
vividf wants to merge 1 commit into
Draft
Conversation
…e legacy deployment_export 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
This was referenced Sep 7, 2026
Draft
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 是什麼
Deploy 編排層:把 #13–#17 的零件串成一條命令。放在 quantization 之後是依賴使然(
export.py用quantization.core.fusion做 BN fold;scripts/deploy.py用 evaluation 與量化 loader)。流程(一次 deploy 實際發生什麼)
build_stages()(量化 ckpt 先按 record 重建結構)→validate_stages。export.py)→ strongly-typed TRT build。逐檔導覽
deployment/export.py:export→precision→build 的流程與路由;BN fold(_bn_folded_for_export:fold 發生在 export 副本,訓練模型不動)。scripts/deploy.py:端到端編排(builders、dataloader、verify、evaluate、mlflow run scope)+ legacy ExportSpec fallback 分派(過渡:PTv3/FRNet/TransFusion 等 8 個 legacy 模型檔的 TODO 綁退役時間表)。deployment_export.py、scripts/multi_task_deploy.py刪除。configs/defaults/modules/deploy.yaml:deploy config 預設。test_stages.py(端到端 stage 行為,含 autocast monkeypatch)、test_export_bn_fold.py(fold 數值)、test_legacy_export_fallback.py、test_verification_caveat.py(caveat 大聲跳過)。docs/user-guide/deployment.md更新。檔案清單(點開)
Review checklist
scripts/deploy.py(416 行)vsdeployment/export.py的職責邊界;本 PR 不解決收斂,只把邊界擺清楚,退役綁 legacy TODO 時間表。export.py的 precision 路由(全框架行為樞紐)。🤖 Generated with Claude Code