← Back to Pull requests

feat: add AMORTIZED_SKIP_ARTIFACT_UPLOAD env var #142

Closed
mihirathale98 closed this pull request without merging on Aug 06, 2026 22:50 UTC
View on GitHub
mihirathale98 mihirathale98 commented on Aug 06, 2026 22:50 UTC
Author

Summary

  • When AMORTIZED_SKIP_ARTIFACT_UPLOAD is set, _upload_mlflow_artifacts() is skipped after training

  • Allows the amortized control plane to handle artifact uploads via post-commands instead of relying on thub's built-in upload

  • No behavior change when the env var is unset — existing workflows are unaffected
  • Context

    Part of standardizing artifact push/pull in amortized to go uniformly through MLflow. The control plane will handle uploads via mlflow.log_artifacts() post-commands, so thub's internal upload needs to be disableable to avoid double-uploading.

    Test plan

  • Without env var: _upload_mlflow_artifacts() runs as before (no behavior change)

  • With AMORTIZED_SKIP_ARTIFACT_UPLOAD=1: upload is skipped
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    Added the thub command-line interface for SFT, OSFT, LoRA, GRPO, and GEPA training workflows.
    Added YAML configuration support, with command-line values taking precedence.
    Added validation, help, version information, result output, and optional checkpoint uploads.
    Added automatic loading for JSON, JSONL, Parquet, CSV, and hosted datasets.
    Added support for dataset augmentation during instruction-tuning workflows.

    Improvements
    Training workflows now share consistent dataset loading behavior across supported formats.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 686 lines (+678 / -8) across 5 files Reviewer: None requested Review duration: 0m
    All Vouch review confidence checks passed
    Residual risk 0.49 = Change Risk (0.65) × (1 − Review Confidence (0.25)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.65 · 686 lines diff across 5 files
    0.65
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 1% · Reviewer familiarity: 10%
    24%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.391
    Shallow Review Depth shallow_review_depth
    0.289
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #142"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    mihirathale98 mihirathale98
    Labels
    risk: medium confidence: 24.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 64.9% (MEDIUM) · Higher = larger blast radius
    64.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 24.5% · Lower = rushed or shallow review
    24.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 49% · Moderate risk
    49%