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
studio: GGUF unlimited context, auto-load, settings UX, recommended list
Daniel Hanec9a0906eba7
diff --git a/studio/backend/routes/models.py b/studio/backend/routes/models.pyindex bd64ae7196a..868f3aaf333 100644--- a/studio/backend/routes/models.py+++ b/studio/backend/routes/models.py@@ -770,7 +770,8 @@ def _get_repo_size_cached(repo_id: str) -> int:total = sum(s.size for s in info.siblings if s.size)_repo_size_cache[repo_id] = totalreturn total- except Exception:+ except Exception as e:+ logger.warning(f"Failed to get repo size for {repo_id}: {e}")return 0diff --git a/studio/frontend/src/features/chat/chat-settings-sheet.tsx b/studio/frontend/src/features/chat/chat-settings-sheet.tsxindex b0032eb0cd7..bb2b05f9da9 100644--- a/studio/frontend/src/features/chat/chat-settings-sheet.tsx+++ b/studio/frontend/src/features/chat/chat-settings-sheet.tsx@@ -26,6 +26,7 @@ import {DEFAULT_INFERENCE_PARAMS,type InferenceParams,} from "./types/runtime";+import { useChatRuntimeStore } from "./stores/chat-runtime-store";import { Switch } from "@/components/ui/switch";export const defaultInferenceParams = DEFAULT_INFERENCE_PARAMS;@@ -67,6 +68,7 @@ function ParamSlider({max,step,onChange,+ displayValue,}: {label: string;value: number;@@ -74,13 +76,14 @@ function ParamSlider({max: number;step: number;onChange: (v: number) => void;+ displayValue?: string;}) {return (<div className="space-y-2"><div className="flex items-center justify-between"><span className="text-xs font-medium">{label}</span><span className="text-xs tabular-nums text-muted-foreground">- {value}+ {displayValue ?? value}</span></div><Slider@@ -158,6 +161,7 @@ export function ChatSettingsPanel({autoTitle,onAutoTitleChange,}: ChatSettingsPanelProps) {+ const isGguf = useChatRuntimeStore((s) => s.activeGgufVariant) != null;const [presets, setPresets] = useState<Preset[]>(BUILTIN_PRESETS);const [activePreset, setActivePreset] = useState("Default");const isBuiltinPreset = BUILTIN_PRESETS.some((p) => p.name === activePreset);@@ -322,21 +326,24 @@ export function ChatSettingsPanel({step={0.05}onChange={set("repetitionPenalty")}/>- <ParamSlider- label="Max Seq Length"- value={params.maxSeqLength}- min={128}- max={32768}- step={128}- onChange={set("maxSeqLength")}- />+ {!isGguf && (+ <ParamSlider+ label="Max Seq Length"+ value={params.maxSeqLength}+ min={128}+ max={32768}+ step={128}+ onChange={set("maxSeqLength")}+ />+ )}<ParamSliderlabel="Max Tokens"value={params.maxTokens}min={64}- max={4096}+ max={isGguf ? 131072 : 32768}step={64}onChange={set("maxTokens")}+ displayValue={isGguf && params.maxTokens >= 131072 ? "Max" : undefined}/></div></CollapsibleSection>diff --git a/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts b/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.tsindex b29161f7731..47bd0698a80 100644--- a/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts+++ b/studio/frontend/src/features/chat/hooks/use-chat-model-runtime.ts@@ -132,9 +132,13 @@ function mergeRecommendedInference(modelId: string,): InferenceParams {const inference = response.inference;+ // GGUF: max tokens = 131072 (effectively unlimited, model decides)+ // Non-GGUF: max tokens = 4096+ const defaultMaxTokens = response.is_gguf ? 131072 : 4096;return {...current,checkpoint: modelId,+ maxTokens: defaultMaxTokens,temperature:toFiniteNumber(inference?.temperature) ?? current.temperature,topP: toFiniteNumber(inference?.top_p) ?? current.topP,