← Back to Pull requests

feat: support parquet and csv datasets #138

Closed
shivchander closed this pull request without merging on Jul 27, 2026 21:04 UTC
View on GitHub
shivchander shivchander commented on Jul 27, 2026 20:58 UTC
Author

Summary


  • Add load_training_dataset() utility in utils.py that auto-detects format from file extension

  • Supports .jsonl, .json, .parquet, .csv via HuggingFace datasets builders

  • Falls back to HuggingFace dataset name for unrecognized extensions

  • Updated osft.py and lora.py to use the shared utility
  • Why


    OSFT and LoRA SFT hardcoded load_dataset('json', ...) which prevented loading parquet files. Data Designer produces parquet output natively, requiring an unnecessary conversion to JSONL.

    Test plan


  • Run OSFT training with a .parquet dataset file

  • Run OSFT training with a .jsonl dataset file (regression)

  • Run LoRA SFT with both formats
  • Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    Added the thub command-line interface for launching supported training algorithms.
    Added YAML configuration support, with command-line options taking precedence.
    Added automatic validation and type handling for configuration values.
    Added optional checkpoint artifact upload to MLflow.
    Added dataset loading support for common local file formats and Hugging Face dataset names.

    Bug Fixes
    Standardized dataset loading across training workflows.

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

    Diff: 177 lines (+132 / -45) across 2 files Reviewer: None requested Review duration: 6m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 177 lines diff across 2 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    57%
    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.310
    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 #138"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    shivchander shivchander
    Labels
    risk: low confidence: 58.0% 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: 52.4% (MEDIUM) · Higher = larger blast radius
    52.4%
    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: 58.0% · Lower = rushed or shallow review
    58.0%
    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: 22% · Safe to merge
    22%