Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Merge remote-tracking branch 'origin/nightly' into feature/llm-assist-detection

Roland Tannous9dac1bedf9d5
diff --cc studio/backend/core/training/trainer.py
index 1c18bd5b595,10f831c51f7..b62c1bd35d6
--- a/studio/backend/core/training/trainer.py
+++ b/studio/backend/core/training/trainer.py
@@@ -2688,18 -2651,8 +2716,18 @@@ class UnslothTrainer
f"({drop_pct}%) were dropped (all labels "
f"masked). {filtered_len} samples remain.\n"
)
- print(f"Post-filter dataset size: {filtered_len} samples\n")
+ logger.info(f"Post-filter dataset size: {filtered_len} samples\n")
+ # [DEBUG] Decode first sample AFTER train_on_completions applied
+ try:
+ _row = self.trainer.train_dataset[0]
+ _space = self.tokenizer(" ", add_special_tokens=False).input_ids[0]
+ print("[DEBUG] === After train_on_completions ===", flush=True)
+ print(f"[DEBUG] input_ids decoded:\n{self.tokenizer.decode(_row['input_ids'])}\n", flush=True)
+ print(f"[DEBUG] labels decoded (-100 → space):\n{self.tokenizer.decode([_space if x == -100 else x for x in _row['labels']])}\n", flush=True)
+ except Exception as _dbg_e:
+ print(f"[DEBUG] Could not decode post-completions sample: {_dbg_e}", flush=True)
+
except Exception as e:
logger.warning(f"Failed to apply train on responses only: {e}")
train_on_responses_enabled = False
diff --cc studio/backend/utils/datasets/format_conversion.py
index 0f1bb7b8fed,624a10ba9b7..fea25894898
--- a/studio/backend/utils/datasets/format_conversion.py
+++ b/studio/backend/utils/datasets/format_conversion.py
@@@ -531,23 -521,10 +535,23 @@@ def convert_to_vlm_format
if failed_count > 0:
fail_rate = failed_count / total
- print(f"⚠️ Skipped {failed_count}/{total} ({fail_rate:.0%}) samples with broken/unreachable images")
+ logger.info(f"⚠️ Skipped {failed_count}/{total} ({fail_rate:.0%}) samples with broken/unreachable images")
# For datasets that skipped the probe (small URL datasets), check fail rate now
if has_urls and fail_rate >= MAX_FAIL_RATE:
- msg = (
+ issues = [
+ f"{fail_rate:.0%} of images failed to download ({failed_count}/{total})",
+ "Images are external URLs, not embedded in the dataset",
+ ]
+ friendly = None
+ try:
+ from .llm_assist import llm_generate_dataset_warning
+ friendly = llm_generate_dataset_warning(
+ issues, dataset_name=dataset_name, modality="vision",
+ column_names=[image_column, text_column],
+ )
+ except Exception:
+ pass
+ msg = friendly or (
f"⚠️ {fail_rate:.0%} of images failed to download ({failed_count}/{total}). "
"This dataset has too many broken or unreachable image URLs. "
"Consider using a dataset with embedded images instead."
@@@ -556,28 -533,12 +560,28 @@@
raise ValueError(msg)
if len(converted_list) == 0:
+ issues = [
+ f"All {total} samples failed during VLM conversion — no usable images found",
+ f"Image column '{image_column}' may contain URLs that are no longer accessible, "
+ "or local file paths that don't exist",
+ ]
+ friendly = None
+ try:
+ from .llm_assist import llm_generate_dataset_warning
+ friendly = llm_generate_dataset_warning(
+ issues, dataset_name=dataset_name, modality="vision",
+ column_names=[image_column, text_column],
+ )
+ except Exception:
+ pass
raise ValueError(
- f"All {total} samples failed during VLM conversion — no usable images found. "
- "This dataset may contain only image URLs that are no longer accessible."
+ friendly or (
+ f"All {total} samples failed during VLM conversion — no usable images found. "
+ "This dataset may contain only image URLs that are no longer accessible."
+ )
)
- print(f"✅ Converted {len(converted_list)}/{total} samples")
+ logger.info(f"✅ Converted {len(converted_list)}/{total} samples")
_notify(f"Converted {len(converted_list):,}/{total:,} images successfully")
# Return list, NOT Dataset