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
Merge branch 'nightly' into feat/gguf-llama-cpp-inference
Roland Tannous01082b84e519
diff --cc studio/backend/utils/models/__init__.pyindex 4006e63908a,006deb99c0b..92e65cf67c9--- a/studio/backend/utils/models/__init__.py+++ b/studio/backend/utils/models/__init__.py@@@ -3,9 -3,9 +3,10 @@@ Model and LoRA configuration handlin"""from .model_config import (ModelConfig,+ GgufVariantInfo,is_vision_model,scan_trained_loras,+ scan_exported_models,load_model_defaults,get_base_model_from_lora,load_model_config,@@@ -17,9 -16,9 +18,10 @@@ from .checkpoints import scan_checkpoin__all__ = ['ModelConfig',+ 'GgufVariantInfo','is_vision_model','scan_trained_loras',+ 'scan_exported_models','load_model_defaults','get_base_model_from_lora','load_model_config',diff --cc studio/frontend/src/components/assistant-ui/model-selector/types.tsindex a94d3dd9314,b8df0f6c6cf..43f5e935b3d--- a/studio/frontend/src/components/assistant-ui/model-selector/types.ts+++ b/studio/frontend/src/components/assistant-ui/model-selector/types.ts@@@ -13,8 -15,7 +15,8 @@@ export interface LoraModelOption extend}export interface ModelSelectorChangeMeta {- source: "hub" | "lora";+ source: "hub" | "lora" | "exported";isLora: boolean;+ ggufVariant?: string;}diff --cc studio/frontend/src/features/chat/chat-page.tsxindex 7c57bdf0a43,1ef3c6bec51..7e986721ab8--- a/studio/frontend/src/features/chat/chat-page.tsx+++ b/studio/frontend/src/features/chat/chat-page.tsx@@@ -304,11 -339,35 +339,34 @@@ export function ChatPage(): ReactElemenconst currentCheckpoint =useChatRuntimeStore.getState().params.checkpoint;if (!value || value === currentCheckpoint) return;- setView({ mode: "single", newThreadNonce: crypto.randomUUID() });void (async () => {- if (currentCheckpoint) {- await ejectModel();+ let switchNote: string | undefined;+ const activeThreadId = await resolveActiveSingleThreadId(view);+ if (activeThreadId) {+ const thread = await db.threads.get(activeThreadId);+ if (thread?.modelId && thread.modelId !== value) {+ const messages = await db.messages+ .where("threadId")+ .equals(activeThreadId)+ .toArray();+ const hasImage = messages.some(messageHasImage);+ const targetModel = modelsFromStore.find((model) => model.id === value);+ const nonVisionWithImages = hasImage && targetModel?.isVision === false;++ switchNote = nonVisionWithImages+ ? "Full chat history will be sent to the new model. This chat has images; text-only models may fail."+ : hasImage+ ? "Full chat history will be sent to the new model. This chat includes images."+ : "Full chat history will be sent to the new model.";+ }+ }++ if (switchNote) {+ toast.warning("Model changed for this chat", {+ description: switchNote,+ duration: 6000,+ });}-await selectModel({id: value,isLora: meta?.isLora,diff --cc studio/frontend/src/features/chat/hooks/use-chat-model-runtime.tsindex 24a6b3c01f7,aafbf003103..c3464f90714--- a/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts+++ b/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts@@@ -20,7 -20,7 +20,8 @@@ const DEFAULT_MODEL_MAX_SEQ_LENGTH = 20type SelectedModelInput = {id: string;isLora?: boolean;+ ggufVariant?: string;+ loadingDescription?: string;};const LORA_SUFFIX_RE = /_(\d{9,})$/;@@@ -160,8 -160,8 +165,10 @@@ export function useChatModelRuntime()const explicitIsLora =typeof selection === "string" ? undefined : selection.isLora;+ const ggufVariant =+ typeof selection === "string" ? undefined : selection.ggufVariant;+ const extraLoadingDescription =+ typeof selection === "string" ? undefined : selection.loadingDescription;const model = models.find((entry) => entry.id === modelId);const lora = loras.find((entry) => entry.id === modelId);const isLora =