From c31b1e87bdd3bc2d732ff468dcb2f8772448555e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 24 Nov 2025 12:26:33 +0100 Subject: [PATCH] fix: allow config.json and tokenizer files for DiffRhythm models --- artifact_huggingface_download.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/artifact_huggingface_download.sh b/artifact_huggingface_download.sh index 438f503..dd28400 100755 --- a/artifact_huggingface_download.sh +++ b/artifact_huggingface_download.sh @@ -394,8 +394,12 @@ for file_path in latest_snapshot.rglob('*'): # If filename filter is specified, only match those files if filename_filter and filename_filter not in file_path.name: continue - # Skip metadata files - if file_path.name.endswith(('.json', '.txt', '.md', '.gitattributes')): + # Skip metadata files except important config files + # Allow: config.json, tokenizer.json, tokenizer_config.json, sentencepiece models + important_files = ('config.json', 'tokenizer.json', 'tokenizer_config.json', '.model') + if file_path.name.endswith(('.txt', '.md', '.gitattributes')): + continue + if file_path.name.endswith('.json') and not file_path.name in important_files: continue print(str(file_path)) EOPYFINDFIND