[Maintenance] Refresh MOSS-TTS optimization on main

Signed-off-by: Sy03 <1370724210@qq.com>
This commit is contained in:
Sy03 committed 2026-09-09 12:46:57 +08:00
commit 28dd49a541
334 files changed
+24909 -6187

No files matched your search

@@ -332,7 +332,8 @@ def _ensure_utmos_jit_model() -> Any | None:
return _utmos_jit_model
try:
import torch
from huggingface_hub import hf_hub_download
from vllm_omni.transformers_utils.repo_utils import hf_api
repo = os.environ.get("SEED_TTS_UTMOS_HF_REPO", "balacoon/utmos").strip() or "balacoon/utmos"
fname = os.environ.get("SEED_TTS_UTMOS_JIT_FILE", "utmos.jit").strip() or "utmos.jit"
@@ -341,7 +342,7 @@ def _ensure_utmos_jit_model() -> Any | None:
repo,
fname,
)
path = hf_hub_download(repo_id=repo, filename=fname, repo_type="model")
path = hf_api().hf_hub_download(repo_id=repo, filename=fname, repo_type="model")
# TODO The model weights in UTMOS must be loaded in cuda:0; otherwise, the model execution will fail.
want = "cuda:0"