[Hy4] support Hy4-preview model (#54160)
Signed-off-by: chengvjiang <chengvjiang@tencent.com> Signed-off-by: Jee Jee Li <jeejeelee@inferact.ai> Signed-off-by: Bugen Zhao <i@bugenzhao.com> Signed-off-by: Jee Jee Li <pandaleefree@gmail.com> Co-authored-by: chengvjiang <chengvjiang@tencent.com> Co-authored-by: Jee Jee Li <jeejeelee@inferact.ai> Co-authored-by: Bugen Zhao <i@bugenzhao.com> Co-authored-by: russellfeng <russellfeng@tencent.com> Co-authored-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
co-authored by
chengvjiang
Jee Jee Li
Bugen Zhao
russellfeng
Jee Jee Li
parent
6c18a54648
commit
b2f685834a
@@ -321,6 +321,7 @@ if TYPE_CHECKING:
|
||||
VLLM_GPU_NIC_PCIE_MAPPING: str = ""
|
||||
VLLM_NIC_SELECTION_VARS: str = ""
|
||||
VLLM_PREFIX_CACHE_RETENTION_INTERVAL: int | None = None
|
||||
VLLM_ENABLE_HPC_OPS: bool = False
|
||||
|
||||
|
||||
def get_default_cache_root():
|
||||
@@ -2155,6 +2156,15 @@ environment_variables: dict[str, Callable[[], Any]] = {
|
||||
# Each entry is VAR_NAME or VAR_NAME:<suffix> (suffix appended to
|
||||
# RDMA device name). Must be set together with VLLM_GPU_NIC_PCIE_MAPPING.
|
||||
"VLLM_NIC_SELECTION_VARS": lambda: os.getenv("VLLM_NIC_SELECTION_VARS", ""),
|
||||
# If set to 1, enable the HPC fused kernels (requires the hpc package
|
||||
# (.so) and an sm100/sm103 device). Covers:
|
||||
# * the HY V4 iHC ops -- each of the eager HYV4HCPreLayer /
|
||||
# HYV4HCPostLayer / HYV4HCHeadLayer bodies becomes one kernel launch;
|
||||
# * the gated-MLA output gating (attn_out * sigmoid(gate projection)),
|
||||
# fused into gated_mla_gemm; elementwise gating only.
|
||||
# Each op additionally checks its own shape / dtype constraints and falls
|
||||
# back to the eager path when they do not hold.
|
||||
"VLLM_ENABLE_HPC_OPS": lambda: bool(int(os.getenv("VLLM_ENABLE_HPC_OPS", "0"))),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user