[Feature][Qwen3-TTS] Make Code2Wav honor the stage dtype (#6059)
Signed-off-by: XIN GAO <1037396230@qq.com>
This commit is contained in:
7 files changed
+100
-21
No files matched your search
@@ -2587,6 +2587,26 @@ class TestPlatformOverrides:
|
||||
assert rocm.stages[0].enforce_eager is None
|
||||
assert rocm.stages[1].enforce_eager is True
|
||||
|
||||
@pytest.mark.parametrize("deploy_name", ["qwen3_tts.yaml", "qwen3_tts_high_concurrency.yaml"])
|
||||
@pytest.mark.parametrize("platform", ["cuda", "npu", "rocm"])
|
||||
def test_qwen3_tts_default_code2wav_dtype_is_bf16(self, deploy_name, platform):
|
||||
deploy = load_deploy_config(Path(get_deploy_config_path(deploy_name)))
|
||||
deploy = _apply_platform_overrides(deploy, platform=platform)
|
||||
stages = merge_pipeline_deploy(resolve_pipeline_config("qwen3_tts"), deploy)
|
||||
|
||||
assert stages[1].yaml_engine_args["dtype"] == "bfloat16"
|
||||
|
||||
@pytest.mark.parametrize("deploy_name", ["qwen3_tts.yaml", "qwen3_tts_high_concurrency.yaml"])
|
||||
@pytest.mark.parametrize("platform", ["cuda", "npu"])
|
||||
@pytest.mark.parametrize("dtype", ["float32", "bfloat16", "float16"])
|
||||
def test_qwen3_tts_propagates_explicit_code2wav_dtype(self, deploy_name, platform, dtype):
|
||||
deploy = load_deploy_config(Path(get_deploy_config_path(deploy_name)))
|
||||
deploy.stages[1].engine_extras["dtype"] = dtype
|
||||
deploy = _apply_platform_overrides(deploy, platform=platform)
|
||||
stages = merge_pipeline_deploy(resolve_pipeline_config("qwen3_tts"), deploy)
|
||||
|
||||
assert stages[1].yaml_engine_args["dtype"] == dtype
|
||||
|
||||
def test_higgs_audio_v3_rocm_uses_triton_attention(self):
|
||||
deploy_path = Path(get_deploy_config_path("higgs_multimodal_qwen3.yaml"))
|
||||
|
||||
|
||||
Reference in new issue
Block a user