[LingBot World] Speed up streaming VAE decode and RGB frame delivery (#7749)
Signed-off-by: tzhouam <tzhouam@connect.ust.hk> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
9f7dadaad5
commit
ba3d48e1c7
7 files changed
+915
-30
No files matched your search
@@ -0,0 +1,26 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
|
||||
"""Configuration helpers for the LingBot World pipeline."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
def _vae_decode_fast_path(model_config: dict) -> str | None:
|
||||
"""Resolve ``lingbot_vae_decode_fast_path`` from the model config: ``None``, ``"exact"`` or ``"fused"``.
|
||||
|
||||
Off by default. ``true``/``exact`` installs the decoder's exact fast path after the decode dtype and the
|
||||
spatial shard are configured (see ``wan_decoder_fast_path``): no output bit changes, only launches
|
||||
disappear. ``fused`` adds the channels_last decoder with the fused RMSNorm+SiLU kernel, which is not
|
||||
bit-exact and requires subjective video quality review before enabling.
|
||||
"""
|
||||
value = model_config.get("lingbot_vae_decode_fast_path", False)
|
||||
if isinstance(value, bool) or value is None:
|
||||
return "exact" if value else None
|
||||
name = str(value).strip().lower()
|
||||
if name in ("", "0", "false", "no", "off", "none"):
|
||||
return None
|
||||
if name in ("1", "true", "yes", "on", "exact"):
|
||||
return "exact"
|
||||
if name == "fused":
|
||||
return "fused"
|
||||
raise ValueError(f"lingbot_vae_decode_fast_path must be off, exact or fused; got {value!r}")
|
||||
Reference in new issue
Block a user