unsloth/studio/backend/core/inference
Daniel Han 80d84a5b5f studio: optimize llama-server flags for single-user studio
Refactor command building (deduplicate HF/local paths) and add
flags for better performance:

- --parallel 1: studio is single-user, so only 1 inference slot
  is needed. The previous auto-detect picked 4 slots, wasting
  VRAM on 3 unused KV caches.
- --flash-attn on: force flash attention for faster inference.
  Default is "auto" which may not always enable it.
- --fit on: auto-adjust parameters to fit in available device
  memory. Already the default but now explicit.

Also cleaned up the duplicated command building for HF vs local
mode into a single block.
2026-03-15 05:24:06 -07:00
..
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
audio_codecs.py Final cleanup 2026-03-12 18:28:04 +00:00
inference.py Fix: Compare Mode Deadlock, Cancel Event Poisoning & IPC Optimization (#4303) 2026-03-15 16:11:44 +04:00
llama_cpp.py studio: optimize llama-server flags for single-user studio 2026-03-15 05:24:06 -07:00
orchestrator.py Fix: Compare Mode Deadlock, Cancel Event Poisoning & IPC Optimization (#4303) 2026-03-15 16:11:44 +04:00
worker.py Final cleanup 2026-03-12 18:28:04 +00:00