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: download the UD-Q4_K_XL FLUX.3 prompt upsampler by default (#14177)
Daniel Han8675c63bfcf6
diff --git a/studio/backend/core/inference/flux3_prompt_upsampler.py b/studio/backend/core/inference/flux3_prompt_upsampler.pyindex 08d875bc2c6..6d0129dd4e8 100644--- a/studio/backend/core/inference/flux3_prompt_upsampler.py+++ b/studio/backend/core/inference/flux3_prompt_upsampler.py@@ -46,16 +46,20 @@ logger = get_logger(__name__)UPSAMPLER_ID = "flux-3-image-klein-pup"UPSAMPLER_REPO = "unsloth/flux-3-image-klein-pup-GGUF"UPSAMPLER_MODEL_FILES = {+ "UD-Q4_K_XL": "flux-3-image-klein-pup-UD-Q4_K_XL.gguf","Q4_K_M": "flux-3-image-klein-pup-Q4_K_M.gguf","Q8_0": "flux-3-image-klein-pup-Q8_0.gguf",}-UPSAMPLER_DEFAULT_QUANT = "Q4_K_M"+# Unsloth Dynamic 4-bit with an imatrix: against BF16 on the upsampler's own captions, about 39% lower mean KL+# divergence than the imatrix Q4_K_M for 6% more bytes, at the same speed.+UPSAMPLER_DEFAULT_QUANT = "UD-Q4_K_XL"UPSAMPLER_MODEL_FILE = UPSAMPLER_MODEL_FILES[UPSAMPLER_DEFAULT_QUANT]# Vision projector, needed only for edits (reference images).UPSAMPLER_MMPROJ_FILE = "mmproj-F16.gguf"# Expected sizes of the files as built, for the UI before the download starts (the download reads the real ones).UPSAMPLER_FILE_SIZES = {- "flux-3-image-klein-pup-Q4_K_M.gguf": 5_629_109_248,+ "flux-3-image-klein-pup-UD-Q4_K_XL.gguf": 5_966_095_584,+ "flux-3-image-klein-pup-Q4_K_M.gguf": 5_629_109_472,"flux-3-image-klein-pup-Q8_0.gguf": 9_527_501_824,"mmproj-F16.gguf": 918_165_984,}diff --git a/studio/backend/tests/test_flux3_prompt_upsampler.py b/studio/backend/tests/test_flux3_prompt_upsampler.pyindex ade9525cf5c..9af8b6bd6b4 100644--- a/studio/backend/tests/test_flux3_prompt_upsampler.py+++ b/studio/backend/tests/test_flux3_prompt_upsampler.py@@ -504,7 +504,7 @@ def test_generated_only_penalties_follow_the_server(monkeypatch, supported):def test_download_state_targets_the_unsloth_repo(monkeypatch):state = pup._get_download_state()assert state._spec(pup.UPSAMPLER_ID).repo == "unsloth/flux-3-image-klein-pup-GGUF"- assert state._spec(pup.UPSAMPLER_ID).model_file == "flux-3-image-klein-pup-Q4_K_M.gguf"+ assert state._spec(pup.UPSAMPLER_ID).model_file == "flux-3-image-klein-pup-UD-Q4_K_XL.gguf"assert state._spec(pup.UPSAMPLER_ID).mmproj_file == "mmproj-F16.gguf"with pytest.raises(ValueError):state._resolve("black-forest-labs/flux-3-image-klein-pup")