You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Model reload with 'unsloth run' doesn't unload current model causing memory spike and crash. #5401
Used very large models in Studio's Tauri app (and also web-ui directly) and changing model settings which causes any and all models to unload correctly before reloading the same or different model.
But when switching to unsloth run to customize llama-server flags then try changing a model's settings, the model gets loaded a second time without unloading the first copy. The memory spike causes system halt and or crash. (smaller model example to demonstrate)
Nope, just the one time and using the web ui. At first i didn't know what happened as my model was close to using all ram so my system locked up, so i tried the smaller model to confirm my suspicion that it had attempted loading the same model again without ejecting it first.
Activity
Datta0 commentedon May 13, 2026
Hey @kustomzone do you mean you ran
unsloth runtwice and expect the second instance to unload the first instance?kustomzone commentedon May 13, 2026
Nope, just the one time and using the web ui. At first i didn't know what happened as my model was close to using all ram so my system locked up, so i tried the smaller model to confirm my suspicion that it had attempted loading the same model again without ejecting it first.
Datta0 commentedon May 13, 2026
Can you share the logs if you have of the same run?
Studio: tighten comments in the 5401 fix
Studio: deny upstream --ui family on llama-server pass-through
Merge branch 'main' into dh/test-5106-windows-gpu-ci-mock
studio: settle GPU VRAM after killing llama-server before the next re…
studio: settle GPU VRAM after killing llama-server before the next re…
Borrow same-checkpoint previews and claim models on native generation
Don't claim cancelled pre-generation streams or block previews on una…
Check inherited draft-device on reload; sync placement from status
Prevent shared preview loads from evicting the active Studio model (#…