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.

review comments

Dan Saunders7833191626f8
diff --git a/cli/commands/train.py b/cli/commands/train.py
index ec9b36588d2..798f6942ee9 100644
--- a/cli/commands/train.py
+++ b/cli/commands/train.py
@@ -39,6 +39,12 @@ def train(
cfg.apply_overrides(**config_overrides)
# CLI/env tokens take precedence over config
+ # Handle case where typer.Option isn't resolved (decorator interaction)
+ from typer.models import OptionInfo
+ if isinstance(hf_token, OptionInfo):
+ hf_token = None
+ if isinstance(wandb_token, OptionInfo):
+ wandb_token = None
hf_token = hf_token or cfg.logging.hf_token
wandb_token = wandb_token or cfg.logging.wandb_token