unsloth/studio/backend/utils
Daniel Han 852755cc92 studio: fix stale GGUF metadata when switching models, update default helper model
Reset _supports_reasoning, _supports_tools, _chat_template, and
_context_length at the top of _read_gguf_metadata so flags from a
previously loaded model do not carry over. Without this, loading a
reasoning model (eg Qwen3.5-4B) then switching to a non-reasoning
model (eg Qwen3-4B-Instruct-2507) would keep supports_reasoning=True
from the first model, causing the UI to show "Thought for 0 seconds"
and passing --chat-template-kwargs enable_thinking to a model whose
chat template does not support it.

Also update the default helper GGUF from Qwen3-4B-Instruct-2507-GGUF
to Qwen3.5-4B-GGUF to match the frontend fallback auto-load model.
2026-03-17 07:46:21 +00:00
..
datasets studio: fix stale GGUF metadata when switching models, update default helper model 2026-03-17 07:46:21 +00:00
hardware studio: web search, KV cache dtype, training progress, inference fixes 2026-03-17 00:30:01 -07:00
inference studio: per-model inference defaults, GGUF slider fix, reasoning toggle (#4325) 2026-03-16 06:37:55 -07:00
models Fix vision detection subprocess using undefined logger 2026-03-16 02:46:56 -07:00
paths [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-03-15 05:24:06 -07:00
.gitkeep root studio folder 2026-02-02 09:13:49 +00:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
cache_cleanup.py Final cleanup 2026-03-12 18:28:04 +00:00
transformers_version.py Final cleanup 2026-03-12 18:28:04 +00:00
utils.py Final cleanup 2026-03-12 18:28:04 +00:00