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.

Read diffusion.py as UTF-8 in the NVFP4 act-quant test (#15086)

Daniel Hanef4442045706
diff --git a/studio/backend/tests/test_diffusion_nvfp4_act_quant.py b/studio/backend/tests/test_diffusion_nvfp4_act_quant.py
index 4959c1ea6de..56ab47168bc 100644
--- a/studio/backend/tests/test_diffusion_nvfp4_act_quant.py
+++ b/studio/backend/tests/test_diffusion_nvfp4_act_quant.py
@@ -184,7 +184,7 @@ def test_load_pipeline_resets_the_tag_after_unload():
import ast
import pathlib
- src = pathlib.Path(aq.__file__).with_name("diffusion.py").read_text()
+ src = pathlib.Path(aq.__file__).with_name("diffusion.py").read_text(encoding = "utf-8")
fn = next(
n
for n in ast.walk(ast.parse(src))