[Bugfix][Qwen3-TTS] Preserve original model ID in omni_snapshot_download (#1318)

This commit is contained in:
Yueqian Lin authored and GitHub committed 2026-02-11 18:24:45 +08:00
1 parent 8e3dce781e
commit 5fb7d137c7
2 files changed
+24 -21

No files matched your search

+19 -19
View File
@@ -228,25 +228,25 @@ steps:
volumes: volumes:
- "/fsx/hf_cache:/fsx/hf_cache" - "/fsx/hf_cache:/fsx/hf_cache"
# - label: "Qwen3-TTS E2E Test" - label: "Qwen3-TTS E2E Test"
# timeout_in_minutes: 10 timeout_in_minutes: 10
# depends_on: image-build depends_on: image-build
# commands: commands:
# - export VLLM_LOGGING_LEVEL=DEBUG - export VLLM_LOGGING_LEVEL=DEBUG
# - export VLLM_WORKER_MULTIPROC_METHOD=spawn - export VLLM_WORKER_MULTIPROC_METHOD=spawn
# - pytest -s -v tests/e2e/online_serving/test_qwen3_tts.py - pytest -s -v tests/e2e/online_serving/test_qwen3_tts.py
# agents: agents:
# queue: "gpu_4_queue" queue: "gpu_4_queue"
# plugins: plugins:
# - docker#v5.2.0: - docker#v5.2.0:
# image: public.ecr.aws/q9t5s3a7/vllm-ci-test-repo:$BUILDKITE_COMMIT image: public.ecr.aws/q9t5s3a7/vllm-ci-test-repo:$BUILDKITE_COMMIT
# always-pull: true always-pull: true
# propagate-environment: true propagate-environment: true
# shm-size: "8gb" shm-size: "8gb"
# environment: environment:
# - "HF_HOME=/fsx/hf_cache" - "HF_HOME=/fsx/hf_cache"
# volumes: volumes:
# - "/fsx/hf_cache:/fsx/hf_cache" - "/fsx/hf_cache:/fsx/hf_cache"
# - label: "Omni Model Test with H100" # - label: "Omni Model Test with H100"
# timeout_in_minutes: 30 # timeout_in_minutes: 30
+5 -2
View File
@@ -82,8 +82,11 @@ def omni_snapshot_download(model_id) -> str:
# For other cases (Hugging Face), perform a real download to ensure all # For other cases (Hugging Face), perform a real download to ensure all
# necessary files (including *.pt for audio/diffusion) are available locally # necessary files (including *.pt for audio/diffusion) are available locally
# before stage workers are spawned. This prevents initialization timeouts. # 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: try:
return download_weights_from_hf_specific( download_weights_from_hf_specific(
model_name_or_path=model_id, model_name_or_path=model_id,
cache_dir=None, cache_dir=None,
allow_patterns=["*"], allow_patterns=["*"],
@@ -91,7 +94,7 @@ def omni_snapshot_download(model_id) -> str:
) )
except huggingface_hub.errors.RepositoryNotFoundError: except huggingface_hub.errors.RepositoryNotFoundError:
logger.warning(f"Repository not found for '{model_id}'.") logger.warning(f"Repository not found for '{model_id}'.")
return model_id return model_id
class OmniBase: class OmniBase: