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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
fix(studio): forward mlx custom format mapping (#6094)
Long Yixingbc8b9dc91779
diff --git a/studio/backend/core/training/worker.py b/studio/backend/core/training/worker.pyindex ff4329ee130..267d6689b4d 100644--- a/studio/backend/core/training/worker.py+++ b/studio/backend/core/training/worker.py@@ -1530,6 +1530,7 @@ def _run_mlx_training(event_queue, stop_queue, config):# Reuse the GPU format pipeline for VLM (auto-detects OCR/caption/llava/# sharegpt+images) and text (alpaca/sharegpt/chatml → "text" column).format_type = config.get("format_type", "")+ custom_format_mapping = config.get("custom_format_mapping")try:from utils.datasets import format_and_template_datasetdef _fmt_progress(status_message = "", **_kw):@@ -1543,6 +1544,7 @@ def _run_mlx_training(event_queue, stop_queue, config):tokenizer = tokenizer,is_vlm = True,dataset_name = hf_dataset or "local",+ custom_format_mapping = custom_format_mapping,progress_callback = _fmt_progress,)if vlm_info.get("success"):@@ -1566,6 +1568,7 @@ def _run_mlx_training(event_queue, stop_queue, config):tokenizer = tokenizer,is_vlm = True,dataset_name = hf_dataset or "local",+ custom_format_mapping = custom_format_mapping,)if ev_info.get("success"):vision_image_layout = (@@ -1588,6 +1591,8 @@ def _run_mlx_training(event_queue, stop_queue, config):is_vlm = False,format_type = format_type,dataset_name = hf_dataset or "local",+ custom_format_mapping = custom_format_mapping,+ progress_callback = _fmt_progress,)if info.get("success", True):dataset = info.get("dataset", dataset)@@ -1599,6 +1604,7 @@ def _run_mlx_training(event_queue, stop_queue, config):is_vlm = False,format_type = format_type,dataset_name = hf_dataset or "local",+ custom_format_mapping = custom_format_mapping,)if ev.get("success", True):eval_dataset = ev.get("dataset", eval_dataset)