[Bugfix][Qwen3-TTS] Preserve original model ID in omni_snapshot_download (#1318)
This commit is contained in:
1 parent
8e3dce781e
commit
5fb7d137c7
2 files changed
+24
-21
No files matched your search
@@ -82,8 +82,11 @@ def omni_snapshot_download(model_id) -> str:
|
||||
# For other cases (Hugging Face), perform a real download to ensure all
|
||||
# necessary files (including *.pt for audio/diffusion) are available locally
|
||||
# before stage workers are spawned. This prevents initialization timeouts.
|
||||
# Return the original model_id so that model_config.model preserves
|
||||
# HuggingFace semantics (e.g. "Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice")
|
||||
# instead of the resolved cache path.
|
||||
try:
|
||||
return download_weights_from_hf_specific(
|
||||
download_weights_from_hf_specific(
|
||||
model_name_or_path=model_id,
|
||||
cache_dir=None,
|
||||
allow_patterns=["*"],
|
||||
@@ -91,7 +94,7 @@ def omni_snapshot_download(model_id) -> str:
|
||||
)
|
||||
except huggingface_hub.errors.RepositoryNotFoundError:
|
||||
logger.warning(f"Repository not found for '{model_id}'.")
|
||||
return model_id
|
||||
return model_id
|
||||
|
||||
|
||||
class OmniBase:
|
||||
|
||||
Reference in new issue
Block a user