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
SamplingParams
Daniel Hanc27074c28b4b
diff --git a/unsloth/models/__init__.py b/unsloth/models/__init__.pyindex b15e04ab748..29ad78dae2d 100644--- a/unsloth/models/__init__.py+++ b/unsloth/models/__init__.py@@ -20,4 +20,4 @@ from .mistral import FastMistralModelfrom .qwen2 import FastQwen2Modelfrom .dpo import PatchDPOTrainer, PatchKTOTrainerfrom ._utils import is_bfloat16_supported-from .rl import PatchFastRL+from .rl import PatchFastRL, vLLMSamplingParamsdiff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex 3ab45cdf729..572caf594c4 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -44,6 +44,7 @@ torch_compile_options = {def vLLMSamplingParams(**kwargs):+ from vllm import SamplingParamssampling_params = SamplingParams(**kwargs)sampling_params._set_kwargs = kwargsreturn sampling_params