unsloth/studio/backend/core
Daniel Han c59f028150 studio: kill orphaned llama-server processes on startup
When the studio process is killed (SIGTERM/SIGKILL), atexit handlers
may not run in the subprocess orchestrator, leaving llama-server
processes orphaned and holding GPU memory. This caused OOM errors when
trying to load a new model after a studio restart.

On init, LlamaCppBackend now runs pgrep to find and SIGKILL any stale
llama-server processes before starting fresh.
2026-03-15 05:24:06 -07:00
..
data_recipe miscallenous studio (#4293) 2026-03-15 14:42:11 +04:00
export Final cleanup 2026-03-12 18:28:04 +00:00
inference studio: kill orphaned llama-server processes on startup 2026-03-15 05:24:06 -07:00
training Final cleanup 2026-03-12 18:28:04 +00:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00