Skip to content

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.

Fix repetition_penalty default causing 24% TPS drop in GGUF inference (#4634)

Daniel Hane62085a3d6a7
diff --git a/studio/backend/models/inference.py b/studio/backend/models/inference.py
index b4e496b051b..36395af7bd4 100644
--- a/studio/backend/models/inference.py
+++ b/studio/backend/models/inference.py
@@ -291,7 +291,7 @@ class ChatCompletionRequest(BaseModel):
0.01, ge = 0.0, le = 1.0, description = "[x-unsloth] Min-p sampling threshold"
)
repetition_penalty: float = Field(
- 1.1, ge = 1.0, le = 2.0, description = "[x-unsloth] Repetition penalty"
+ 1.0, ge = 1.0, le = 2.0, description = "[x-unsloth] Repetition penalty"
)
image_base64: Optional[str] = Field(
None, description = "[x-unsloth] Base64-encoded image for vision models"