Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions deepmd/pt/model/model/sezm_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2370,11 +2370,13 @@ def compute_fn( # type: ignore[misc]
def _inductor_inference_compiler(
fx_gm: torch.fx.GraphModule, fx_inputs: list[Any]
) -> Any:
# This callback lowers the forward-only AOTAutograd inference
# graph (the eval branch below owns it; training compiles
# through the separate torch.compile branch above).
# ``compile_options`` already includes ``triton.max_tiles=1``
# from ``build_inductor_compile_options``, so the 1D launch-grid
# constraint applies to both the training and evaluation graphs.
# from ``build_inductor_compile_options``.
with _ind_cfg.patch(compile_options):
return compile_fx_inner(fx_gm, fx_inputs)
return compile_fx_inner(fx_gm, fx_inputs, is_inference=True)

# select_decomp_table keeps the decomposition set aligned with
# Inductor's fallback set (a mismatch raises an aten._to_copy
Expand Down