From 87c768acb0b6bc6f0b2b58e121cb0fa0b720b176 Mon Sep 17 00:00:00 2001 From: martin-marek <12614710+martin-marek@users.noreply.github.com> Date: Mon, 27 Oct 2025 21:35:20 -0400 Subject: [PATCH] Update convert_weights.py --- qwen3/scripts/convert_weights.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qwen3/scripts/convert_weights.py b/qwen3/scripts/convert_weights.py index a72b87c..8965c29 100644 --- a/qwen3/scripts/convert_weights.py +++ b/qwen3/scripts/convert_weights.py @@ -23,7 +23,7 @@ def main(model_path: str | Path, ckpt_path: str | Path): model_path, ckpt_path = Path(model_path).expanduser(), Path(ckpt_path).expanduser() files = list(model_path.glob("**/*safetensors")) - assert len(files) > 1 + assert len(files) >= 1 config_files = list(model_path.glob("**/config.json")) assert len(config_files) == 1, "Must have only one `config.json` file in the model path" config = AutoConfig.from_pretrained(config_files[0])