From 5cd191b5206d802bdc96e45c0273153d79e8f6e4 Mon Sep 17 00:00:00 2001 From: Salpingopharyngeus <75758520+Salpingopharyngeus@users.noreply.github.com> Date: Thu, 5 Jun 2025 01:25:12 -0700 Subject: [PATCH] Ignore None to Subprocess_Commands (#2680) Ignores none params when building the subprocess_command for vllm. As none values stop vllm from deploying properly, as --quantize will be passed with none if quantization type isn't specified in the model name. --- unsloth/dataprep/synthetic.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unsloth/dataprep/synthetic.py b/unsloth/dataprep/synthetic.py index a29e6626a3..de6aff560c 100644 --- a/unsloth/dataprep/synthetic.py +++ b/unsloth/dataprep/synthetic.py @@ -97,6 +97,9 @@ class SyntheticDataKit: elif which == "False": # Ignore flag pass + elif which == "None": + # Ignore flag + pass else: subprocess_commands += ["--" + flag, which,] pass