Add CLI for Training Hub (thub command) #103
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.55) × (1 − Review Confidence (0.44)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 353 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.351
Shallow Review Depth
shallow_review_depth
0.344
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #103"
general
weight: 0.35
Maxusmusti
Summary
thubCLI command with subcommands for all 6 training algorithms:sft,osft,lora-sft,lora-grpo,grpo,gepa--config/-c) with CLI argument override precedencereward_fn,rollout_fn,iteration_callback) accept dotted import paths (e.g.,my_module.my_reward_fn) that are resolved at runtimeseed_candidate,lr_scheduler_kwargs) are parsed from JSON stringspyyaml>=6.0to dependencies and[project.scripts]entry pointUsage examples
YAML config format
Test plan
thub --helpshows all subcommandsthub --versionshows the installed versionthub <algo> --helpworks for all 6 algorithms (sft, osft, lora-sft, lora-grpo, grpo, gepa)--configtraining_hub.algorithms.rewards.tool_call_rewardand stdlib functionsthubentry point installed and functional viapip install -e .thub(not tested — requires GPU + model download)🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Added the
thubcommand-line interface with subcommands forsft,osft,lora-sft,lora-grpo,grpo, andgepa.Configure runs with YAML files using
--config; command-line options take precedence over values in the file.Supports boolean values in common formats and JSON-encoded parameters.
Displays dictionary results as JSON and reports errors with clear messages. Use
--tracebackto view detailed error information.Check the command’s version with
--version. Invalid YAML configuration and missing required parameters are reported as errors.* Interrupting a run exits gracefully with a status code.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->