unsloth/studio
Daniel Han 961720c1b1 studio: handle reasoning_content in GGUF streaming
llama-server sends thinking/reasoning tokens as "reasoning_content"
in the SSE delta (separate from "content"). The studio was only
reading delta.content, so all reasoning tokens from models like
Qwen3.5, Qwen3-Thinking, DeepSeek-R1, etc. were silently dropped.

This caused "replies with nothing" for thinking models: the model
would spend its entire token budget on reasoning, produce zero
content tokens, and the user would see an empty response.

Fix: read reasoning_content from the delta and wrap it in
<think>...</think> tags. The frontend already has full support
for these tags (parse-assistant-content.ts splits them into
reasoning parts, reasoning.tsx renders a collapsible "Thinking..."
indicator).

Verified with Qwen3.5-27B-GGUF (UD-Q4_K_XL):
  - Before: "What is 2+2?" -> empty response (all tokens in reasoning)
  - After: shows collapsible thinking + answer "4"
2026-03-15 05:24:06 -07:00
..
backend studio: handle reasoning_content in GGUF streaming 2026-03-15 05:24:06 -07:00
frontend miscallenous studio (#4293) 2026-03-15 14:42:11 +04:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
install_python_stack.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-03-14 00:54:09 -07:00
LICENSE.AGPL-3.0 Add AGPL-3.0 license to studio folder 2026-03-09 19:36:25 +00:00
setup.bat Final cleanup 2026-03-12 18:28:04 +00:00
setup.ps1 PR: Windows Setup Improvements (#4299) 2026-03-14 23:59:49 +04:00
setup.sh studio: address review feedback 2026-03-14 00:54:09 -07:00
Unsloth_Studio_Colab.ipynb Final cleanup 2026-03-12 18:28:04 +00:00