Merge pull request #1130 from jamiepine/prep/pr-1112

Fix infinite HF retry storm when loading a cached model offline
This commit is contained in:
capy-ai-staging[bot]
2026-10-04 00:05:46 +00:00
committed by GitHub
8 changed files with 351 additions and 90 deletions
+7 -1
View File
@@ -29,11 +29,17 @@ logger = logging.getLogger(__name__)
CHATTERBOX_HF_REPO = "ResembleAI/chatterbox"
# Files that must be present for the multilingual model
# The files ChatterboxMultilingualTTS.from_pretrained() downloads, as of
# chatterbox-tts 0.1.7 (mtl_tts.py allow_patterns). The load runs with HF
# offline mode forced when this reports cached, so a partial snapshot must not
# count as cached -- if upstream adds a file to that list, add it here too.
_MTL_WEIGHT_FILES = [
"t3_mtl23ls_v2.safetensors",
"s3gen.pt",
"ve.pt",
"grapheme_mtl_merged_expanded_v1.json",
"conds.pt",
"Cangjie5_TC.json",
]