Skip to content

[Bug] [studio] Training Progress shows stale/static Training Config instead of selected run config #6853

Closed

Description

@egherardini

Description

In Unsloth Studio, the Training Config popover in the Training Progress page can show a stale/static configuration instead of the actual configuration for the selected/current run.

The workaround is to click the run from the left sidebar under Recents, then open the same Training Config popover from the History tab. That view shows the actual run configuration, while the Training Progress page popover appears to be stuck on an earlier/static config.

This is confusing during active training because the progress card itself is live, but the config popover is not reliably synchronized with the active run / selected run.

Expected behavior

The Training Config popover shown from Training Progress should be populated from the same run data as the selected run in Recents / History. It should update when the active/selected run changes.

Actual behavior

The Training Config popover in Training Progress appears to show stale/static values. Opening the run from Recents and viewing History is required to see the real config for that run.

Reproduction steps

  1. Start a training run in local Unsloth Studio.
  2. Go to Train -> Current Run / Training Progress.
  3. Click the Training Config icon/popover on the Training Progress card.
  4. Note the displayed config values.
  5. In the left sidebar, click the same run under Recents.
  6. Open the History tab.
  7. Click the Training Config icon/popover there.
  8. Compare the config shown in Training Progress vs the config shown for the selected run in History.

Current run observed while reporting

  • Studio backend: 2026.5.9
  • Active job id: job_20260703_134956_5e194d49
  • Phase: training
  • Current step when checked: around 1662 / 3910
  • Model: utter-project/EuroLLM-1.7B-Instruct
  • Training type: LoRA/QLoRA
  • Dataset: /workspace/studio/assets/datasets/uploads/1a7595ccf0d941048afd6bf870743653_train_n15637_context_le4096_userprompt_no_system.messages.jsonl

Note: Please do not remove the questions. Answer beside them.

  1. Did you update? pip install --upgrade unsloth unsloth_zoo: Yes, updated today before reporting.
  2. Colab or Kaggle or local / cloud: Local Unsloth Studio, running at http://localhost:8000/studio in Docker.
  3. Number GPUs used, use nvidia-smi: 1 GPU, NVIDIA GeForce RTX 5080, 16303 MiB VRAM, driver 610.62.
  4. Which notebook? Please link!: N/A, Unsloth Studio web UI.
  5. Which Unsloth version, TRL version, transformers version, PyTorch version?:
    • Unsloth: 2026.5.9
    • Unsloth Zoo: 2026.5.5
    • TRL: 0.23.1
    • Transformers: 4.57.6
    • PyTorch: 2.10.0+cu128
    • Datasets: 4.3.0
    • Tokenizers: 0.22.2
    • PEFT: 0.18.1
  6. Which trainer? SFTTrainer, GRPOTrainer etc: N/A / not exposed directly by Studio UI. This is a Studio UI state/display bug during LoRA/QLoRA training.
# Minimal code to reproduce error here ###Remove Hugging Face token###
# N/A: this is a Unsloth Studio UI bug, not a Python training-script exception.
# Minimal UI reproduction:
# 1. Start a local Studio training run.
# 2. Open Train -> Current Run / Training Progress.
# 3. Open the Training Config popover and note the values.
# 4. Click the same run in the left sidebar under Recents.
# 5. Open History and then the Training Config popover.
# 6. The History popover shows the selected run's real config, while Training Progress can show stale/static config.

###Please make sure to check formatting properly, edit if needed.###

Activity

  1. egherardini commented on Jul 3, 2026

    @egherardini
    Author

    This screenshot shows the "static" values:

    Image

    This screenshot shows the correct values:

    Image
  2. egherardini commented on Jul 3, 2026

    @egherardini
    Author

    Static analysis note from the current main checkout (c356427): this looks like a frontend data-source mismatch rather than a backend training issue.

    Likely flow:

    • ProgressSection builds the Training Config popover from useTrainingConfigStore by default:
      • studio/frontend/src/features/studio/sections/progress-section.tsx
      • around useTrainingConfigStore(...) and the cfg* assignments.
    • It only uses configOverride when isHistorical === true.
    • HistoricalTrainingView does the correct thing: it calls getTrainingRun(runId) (/api/train/runs/{runId}), maps detail.config into configOverride, then passes that to ProgressSection with isHistorical.
      • studio/frontend/src/features/studio/historical-training-view.tsx
    • LiveTrainingView / Current Run only passes data={viewData} to ProgressSection and does not pass a run config override.
      • studio/frontend/src/features/studio/live-training-view.tsx

    This means the live/current Training Progress popover is reading from the persisted form/config store (unsloth_training_config_v1) instead of the config snapshot saved for the active job. That would explain why it can appear stale/static or unrelated to the active run, while the History view is correct.

    The backend status endpoint also seems to support this diagnosis: TrainingStatus exposes job id, phase, details, and metric history, but not the saved run config. applyStatus updates runtime/metrics only, not the config store.

    Possible fix direction:

    1. In LiveTrainingView, when runtime.jobId is known, fetch getTrainingRun(runtime.jobId) and map detail.config the same way HistoricalTrainingView already does.
    2. Pass that mapped object as configOverride to ProgressSection.
    3. Make ProgressSection prefer configOverride ?? useTrainingConfigStore(...) instead of only using the override when isHistorical is true.

    That should make the Current Run popover use the same authoritative run config as History.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions