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 Hand93fe5e6564a
diff --git a/unsloth/dataprep/synthetic.py b/unsloth/dataprep/synthetic.py
index 3a4eb02d93f..3a53860591f 100644
--- a/unsloth/dataprep/synthetic.py
+++ b/unsloth/dataprep/synthetic.py
@@ -22,7 +22,10 @@ import requests
import torch
import gc
import time
-from unsloth_zoo.vllm_utils import load_vllm
+from unsloth_zoo.vllm_utils import (
+ load_vllm,
+ patch_vllm,
+)
from transformers import AutoConfig, AutoTokenizer
import numpy as np
@@ -59,6 +62,7 @@ class SyntheticDataKit:
model_name,
token = token,
)
+ patch_vllm()
engine_args = load_vllm(
model_name = model_name,
config = self.config,
@@ -91,7 +95,7 @@ class SyntheticDataKit:
else:
subprocess_commands += ["--" + flag, which,]
pass
- return subprocess_commands
+ print("\n".join(subprocess_commands))
vllm_process = subprocess.Popen(
subprocess_commands,
stdout = subprocess.PIPE,