feat(trajectory): 接通 fusion-trainer, 补齐飞轮最后一公里 (export → train) - #62
Merged
Conversation
新增 train 子命令: export 产出 .jsonl 后直接喂给 fusion-trainer CLI。 - src/services/trajectory/trainerCli.ts: execa 封装 fusion-trainer 子进程, format→method 映射 - src/cli/handlers/trajectory.ts: train 分支 + --model/--config/--output-dir Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Closes #61
改动
新增
trajectory train子命令,补齐collect → export → **train** → manifest → list闭环。src/services/trajectory/trainerCli.ts(新增):用execa(已有依赖 ^9.6.1)封装同仓.venv的fusion-trainer子进程,format → method映射(sft→sft,dpo/grpo→rlsl --method),透传 stdio,返回退出码。src/cli/handlers/trajectory.ts:新增train分支,先按export同构产出.jsonl,再调用runTrainerCli;新增--model/--config/--output-dir;更新usage()。验证
bun run build通过(5272 modules,编译产出./fusion-code)。本仓无测试/lint 配置。约束
🤖 Generated with Claude Code