Spaces:
Running
Running
Add model switching interruption and support for reasoning model tokens
#4
by treerats88 - opened
This update adds thread termination when swapping models and introduces clean plain-text formatting for reasoning models.
Major Changes:
- Instant Generation Stop: Implemented a custom
StoppingCriterialinked to a global flag. Clicking "Load" now immediately terminates any active text generation thread, preventing background leaks and UI collisions when swapping models. - Reasoning Model Support: Added detection and plain-text formatting for
Supra-50M-Reasoningspecial tokens (converting<|begin_of_thought|>and<|begin_of_solution|>into clean๐ง Thinking Process:andโ Final Answer:text blocks) to render properly inside the existinggr.Textboxlayout.
stanley-00 changed pull request status to merged
Merged, thanks for your contribution