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.

Update synthetic.py

Daniel Han27503af0dcd7
diff --git a/unsloth/dataprep/synthetic.py b/unsloth/dataprep/synthetic.py
index 33b158c0cd8..94510ea163c 100644
--- a/unsloth/dataprep/synthetic.py
+++ b/unsloth/dataprep/synthetic.py
@@ -84,6 +84,7 @@ class SyntheticDataKit:
if dtype_val == torch.float16: dtype_val = "float16"
elif dtype_val == torch.bfloat16: dtype_val = "bfloat16"
elif dtype_val == torch.float32: dtype_val = "float32"
+ engine_args["dtype"] = dtype_val
# Convert torch.bfloat16, torch.float16, etc. to valid CLI string
if hasattr(dtype_val, "name"):
engine_args["dtype"] = dtype_val.name