unsloth/studio
Daniel Han fe05b700dc
studio: fix slow cancellation of GGUF generation (#4352)
The streaming loop used response.iter_text() with timeout=None, which
blocks until the next chunk arrives from llama-server. On large models
like Qwen3.5-27B where each token takes seconds, pressing Stop in the
UI would not take effect until the next token was produced.

Fix by using a 0.5s read timeout and a new _iter_text_cancellable()
helper that checks cancel_event between timeout windows and explicitly
closes the response when cancelled. Applied to both the regular chat
completion and tool-calling streaming paths.
2026-03-17 01:47:21 -07:00
..
backend studio: fix slow cancellation of GGUF generation (#4352) 2026-03-17 01:47:21 -07:00
frontend studio: update Creative/Precise presets, show "Off" for disabled samplers (#4350) 2026-03-17 01:32:18 -07:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
install_python_stack.py studio: improve Colab notebook, redesign ready popup, and clean up install output (#4339) 2026-03-16 21:39:25 -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 studio: web search, KV cache dtype, training progress, inference fixes 2026-03-17 00:30:01 -07:00
setup.sh studio: web search, KV cache dtype, training progress, inference fixes 2026-03-17 00:30:01 -07:00
Unsloth_Studio_Colab.ipynb Update Unsloth_Studio_Colab.ipynb 2026-03-16 22:30:12 -07:00