upadte qwen pruning and allow hf models in subfolders

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-10-04 15:48:42 -04:00
parent f2e12a682f
commit 8b698ed67f
16 changed files with 67 additions and 45 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class Script(scripts_manager.Script):
# load/download model on-demand
model_path = models[model]
model_name = os.path.basename(model_path)
has_checkpoint = sd_models.get_closet_checkpoint_match(model_path)
has_checkpoint = sd_models.get_closest_checkpoint_match(model_path)
if has_checkpoint is None:
shared.log.error(f'SVD: no checkpoint for {model_name}')
modelloader.load_reference(model_path, variant='fp16')