Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Studio: run the formatter on llama_cpp.py (#10926)
Daniel Hana6cf5962b788
diff --git a/studio/backend/core/inference/llama_cpp.py b/studio/backend/core/inference/llama_cpp.pyindex ac183f12f2a..ffc3cfec83d 100644--- a/studio/backend/core/inference/llama_cpp.py+++ b/studio/backend/core/inference/llama_cpp.py@@ -19130,9 +19130,7 @@ class LlamaCppBackend:total_weight = sum(split)for i, idx in enumerate(gpu_indices):alloc_bytes = total_bytes * split[i] / total_weight- capacity_bytes = (- (usable_by_idx[idx] - reserve_mib) * 1024 * 1024 - cc_per_device_bytes- )+ capacity_bytes = (usable_by_idx[idx] - reserve_mib) * 1024 * 1024 - cc_per_device_bytesif alloc_bytes > capacity_bytes:return Falsereturn True