core.ssm.ops.common.determinism#
Deterministic-mode helpers for the SSM Triton kernels.
Kernel-config selection used to live here, but it is not specific to SSM: the same wall-clock autotuning affects Transformer Engine’s MoE permutation kernels, and a model without Mamba needs it just as much. It moved to
- mod:
megatron.core.tuning, which is also where the policy is installed from.
What remains here is the tile workspaces that let the SSD kernels accumulate in a fixed order, plus re-exports of the names this module defined before the move so out-of-tree callers keep working.
Module Contents#
Functions#
Allocate buffer for deterministic per-program reductions. |
|
Finalize tile workspace. |
Data#
API#
- core.ssm.ops.common.determinism.alloc_tile_workspace(
- base_shape,
- tile_dim,
- dtype,
- device,
- deterministic,
- *,
- zero_init=True,
Allocate buffer for deterministic per-program reductions.
- core.ssm.ops.common.determinism.finalize_tile_workspace(tensor, deterministic)#
Finalize tile workspace.
- core.ssm.ops.common.determinism.__all__#
[‘alloc_tile_workspace’, ‘autotune_configs’, ‘finalize_tile_workspace’, ‘set_deterministic_mode’, ‘u…