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
Update synthetic.py
Daniel Han76e632ea3503
diff --git a/unsloth/dataprep/synthetic.py b/unsloth/dataprep/synthetic.pyindex 100044b54be..39f93a47026 100644--- a/unsloth/dataprep/synthetic.py+++ b/unsloth/dataprep/synthetic.py@@ -26,6 +26,7 @@ import timefrom unsloth_zoo.vllm_utils import (load_vllm,patch_vllm,+ delete_vllm,)import numpy as np@@ -189,6 +190,14 @@ class SyntheticDataKit:for _ in range(10):torch.cuda.empty_cache()gc.collect()++ # Delete vLLM module as well+ # We delete llm.llm_engine.model_executor, so first make it accessible+ class Dummy0: model_executor = 1+ class Dummy1: llm_engine = Dummy0()+ class Dummy2: llm = Dummy1()+ llm = Dummy2().llm.llm_engine.model_executor+ delete_vllm(llm)passdef __enter__(self): return self@@ -274,4 +283,4 @@ class SyntheticDataKit:self.overlap = overlappass-pass+pass\ No newline at end of file