[vLLM IR] 1/N Implement IR skeleton and rms_norm op (#33825)
Signed-off-by: Luka Govedič <lgovedic@redhat.com> Signed-off-by: Xinyu Chen <xinyu1.chen@intel.com> Signed-off-by: chzhang <chaojun.zhang@intel.com> Signed-off-by: Luka Govedic <luka.govedic@gmail.com> Co-authored-by: Xinyu Chen <xinyu1.chen@intel.com> Co-authored-by: Chaojun Zhang <chaojun.zhang@intel.com> Co-authored-by: Luka Govedič <ProExpertProg@h100-01.nemg-001.lab.rdu2.dc.redhat.com>
This commit is contained in:
co-authored by
Xinyu Chen
Chaojun Zhang
Luka Govedič
parent
0fab52f0aa
commit
40bb175027
@@ -466,6 +466,15 @@ class CompilationConfig:
|
||||
disabled when running with Inductor: mode>CompilationMode.NONE and
|
||||
backend="inductor".
|
||||
Inductor generates (fused) Triton kernels for disabled custom ops."""
|
||||
|
||||
ir_enable_torch_wrap: bool = None # type: ignore[assignment]
|
||||
"""If True, enable vllm_ir torch custom op wrapping during the forward pass.
|
||||
When False, torch custom op wrapping is disabled, allowing Dynamo to trace the
|
||||
selected implementation directly or avoiding torch custom op overhead in eager mode.
|
||||
Defaults to True when using Inductor with vllm-compile
|
||||
(backend=="inductor" and mode == VLLM_COMPILE), False otherwise.
|
||||
"""
|
||||
|
||||
splitting_ops: list[str] | None = None
|
||||
"""A list of ops to exclude from cudagraphs, used in piecewise compilation.
|
||||
|
||||
@@ -830,6 +839,7 @@ class CompilationConfig:
|
||||
"cudagraph_mode",
|
||||
"max_cudagraph_capture_size",
|
||||
"use_inductor_graph_partition",
|
||||
"ir_enable_torch_wrap",
|
||||
mode="wrap",
|
||||
)
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user