Repository Analysis

state-spaces/mamba

Mamba SSM architecture

20.6 Moderate AI signal View on GitHub
20.6
Adjusted Score
20.6
Raw Score
100%
Time Factor
2026-05-10
Last Push
18,334
Stars
Python
Language
28,785
Lines of Code
84
Files
342
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 8MEDIUM 121LOW 213

Pattern Findings

342 matches across 12 categories. Click a row to expand file-level details.

Decorative Section Separators116 hits · 332 pts
SeverityFileLineSnippet
MEDIUMtests/ops/triton/test_mamba3_siso.py342# ==================================================================
MEDIUMtests/ops/triton/test_mamba3_siso.py344# ==================================================================
MEDIUMtests/ops/triton/test_mamba3_siso.py483# ==================================================================
MEDIUMtests/ops/triton/test_mamba3_siso.py485# ==================================================================
MEDIUMtests/ops/triton/test_mamba3_siso.py553# ==================================================================
MEDIUMtests/ops/triton/test_mamba3_siso.py555# ==================================================================
MEDIUMtests/ops/triton/test_mamba3_siso.py667# ==================================================================
MEDIUMtests/ops/triton/test_mamba3_siso.py669# ==================================================================
MEDIUMtests/ops/triton/test_mamba3_siso.py839# ==================================================================
MEDIUMtests/ops/triton/test_mamba3_siso.py841# ==================================================================
MEDIUMtests/ops/tilelang/test_mamba3_mimo.py1396# ---------------------------------------------------------------------------
MEDIUMtests/ops/tilelang/test_mamba3_mimo.py1398# ---------------------------------------------------------------------------
MEDIUMtests/ops/tilelang/test_mamba3_mimo.py1679# ---------------------------------------------------------------------------
MEDIUMtests/ops/tilelang/test_mamba3_mimo.py1681# ---------------------------------------------------------------------------
MEDIUMtests/ops/tilelang/test_mamba3_mimo.py1693# ---------------------------------------------------------------------------
MEDIUMtests/ops/tilelang/test_mamba3_mimo.py1695# ---------------------------------------------------------------------------
MEDIUMtests/ops/tilelang/test_mamba3_mimo.py1799# ---------------------------------------------------------------------------
MEDIUMtests/ops/tilelang/test_mamba3_mimo.py1801# ---------------------------------------------------------------------------
MEDIUMtests/modules/test_mamba3_varlen.py21# ---------------------------------------------------------------------------
MEDIUMtests/modules/test_mamba3_varlen.py23# ---------------------------------------------------------------------------
MEDIUMtests/modules/test_mamba3_varlen.py55# ---------------------------------------------------------------------------
MEDIUMtests/modules/test_mamba3_varlen.py57# ---------------------------------------------------------------------------
MEDIUMmamba_ssm/ops/cute/mamba3/mamba3_step_fn.py845 # =========================================================================
MEDIUMmamba_ssm/ops/cute/mamba3/mamba3_step_fn.py847 # =========================================================================
MEDIUMmamba_ssm/ops/cute/mamba3/mamba3_step_fn.py879 # =========================================================================
MEDIUMmamba_ssm/ops/cute/mamba3/mamba3_step_fn.py881 # =========================================================================
MEDIUMmamba_ssm/ops/cute/mamba3/mamba3_step_fn.py915 # =========================================================================
MEDIUMmamba_ssm/ops/cute/mamba3/mamba3_step_fn.py917 # =========================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/angle_dt.py11# -----------------------------------------------------------------------------
MEDIUMmamba_ssm/ops/triton/mamba3/angle_dt.py13# -----------------------------------------------------------------------------
MEDIUMmamba_ssm/ops/triton/mamba3/angle_dt.py219# -----------------------------------------------------------------------------
MEDIUMmamba_ssm/ops/triton/mamba3/angle_dt.py221# -----------------------------------------------------------------------------
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1409# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1411# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py56# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py60# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py131# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py135# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py220# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py224# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py354# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py358# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py440# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py442# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py516# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py518# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py725# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py732# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1005# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1008# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1700# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1702# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1844# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1846# ============================================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_siso_bwd.py396 # ============================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_siso_bwd.py399 # ============================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_siso_bwd.py406 # ============================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_siso_bwd.py408 # ============================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_siso_bwd.py415 # ============================================================
MEDIUMmamba_ssm/ops/triton/mamba3/mamba3_siso_bwd.py417 # ============================================================
56 more matches not shown…
Unused Imports102 hits · 100 pts
SeverityFileLineSnippet
LOWtests/test_generation.py8
LOWtests/test_generation.py10
LOWtests/ops/test_selective_scan.py3
LOWtests/ops/test_selective_scan.py6
LOWtests/ops/test_selective_scan.py9
LOWtests/ops/cute/test_mamba3_mimo_step.py15
LOWtests/ops/cute/test_mamba3_mimo_step.py18
LOWtests/ops/triton/test_ssd.py1
LOWtests/ops/triton/test_ssd.py8
LOWtests/ops/triton/test_ssd.py10
LOWtests/ops/triton/test_ssd.py13
LOWtests/ops/triton/test_ssd.py13
LOWtests/ops/triton/test_ssd.py15
LOWtests/ops/triton/test_ssd.py15
LOWtests/ops/triton/test_ssd.py16
LOWtests/ops/triton/test_ssd.py16
LOWtests/ops/triton/test_ssd.py16
LOWtests/ops/triton/test_ssd.py16
LOWtests/ops/triton/test_ssd.py17
LOWtests/ops/triton/test_ssd.py17
LOWtests/ops/triton/test_mamba3_siso.py11
LOWtests/ops/triton/test_mamba3_siso.py14
LOWtests/ops/triton/test_layernorm_gated.py1
LOWtests/ops/triton/test_layernorm_gated.py8
LOWtests/ops/triton/test_selective_state_update.py3
LOWtests/ops/triton/test_selective_state_update.py6
LOWtests/ops/triton/test_selective_state_update.py9
LOWtests/ops/tilelang/test_mamba3_mimo.py25
LOWtests/ops/tilelang/test_mamba3_mimo.py26
LOWbenchmarks/benchmark_generation_mamba_simple.py5
LOWbenchmarks/benchmark_generation_mamba_simple.py8
LOWbenchmarks/benchmark_generation_mamba_simple.py10
LOWmamba_ssm/__init__.py3
LOWmamba_ssm/__init__.py3
LOWmamba_ssm/__init__.py4
LOWmamba_ssm/__init__.py5
LOWmamba_ssm/__init__.py6
LOWmamba_ssm/__init__.py7
LOWmamba_ssm/distributed/distributed_utils.py1
LOWmamba_ssm/utils/generation.py3
LOWmamba_ssm/utils/generation.py4
LOWmamba_ssm/utils/generation.py6
LOWmamba_ssm/utils/generation.py7
LOWmamba_ssm/utils/generation.py7
LOWmamba_ssm/utils/generation.py10
LOWmamba_ssm/utils/generation.py11
LOWmamba_ssm/utils/generation.py11
LOWmamba_ssm/utils/generation.py13
LOWmamba_ssm/utils/generation.py13
LOWmamba_ssm/utils/generation.py13
LOWmamba_ssm/utils/torch.py2
LOWmamba_ssm/ops/cute/mamba3/mamba3_step_fn.py6
LOWmamba_ssm/ops/cute/mamba3/mamba3_step_fn.py16
LOWmamba_ssm/ops/cute/mamba3/mamba3_step_fn.py16
LOWmamba_ssm/ops/cute/mamba3/mamba3_step_fn.py16
LOWmamba_ssm/ops/triton/selective_state_update.py6
LOWmamba_ssm/ops/triton/ssd_state_passing.py6
LOWmamba_ssm/ops/triton/ssd_state_passing.py13
LOWmamba_ssm/ops/triton/ssd_combined.py6
LOWmamba_ssm/ops/triton/ssd_combined.py13
42 more matches not shown…
Hyper-Verbose Identifiers72 hits · 66 pts
SeverityFileLineSnippet
LOWsetup.py62def get_cuda_bare_metal_version(cuda_dir):
LOWtests/test_determinism.py194def test_combined_kernel_reproducible(case: str, d_has_hdim: bool, headdim: int, dstate: int):
LOWtests/test_determinism.py202def test_kernel_close_to_default(case: str, headdim: int, dstate: int):
LOWtests/test_determinism.py210def test_combined_kernel_close_to_default(case: str, d_has_hdim: bool, headdim: int, dstate: int):
LOWtests/test_determinism.py215def test_default_mode_is_not_reproducible():
LOWtests/test_generation.py115def test_generation_varlen_with_padding():
LOWtests/ops/cute/test_mamba3_mimo_step.py55def _require_cuda_and_kernel_deps() -> None:
LOWtests/ops/triton/test_selective_state_update.py22def test_selective_state_update(dim, dstate, has_z, itype):
LOWtests/ops/triton/test_selective_state_update.py66def test_selective_state_update_with_heads(dim, dstate, ngroups, has_z, tie_hdim, itype):
LOWtests/ops/triton/test_selective_state_update.py112def test_selective_state_update_with_batch_indices(dim, dstate, has_z, itype):
LOWtests/ops/triton/test_selective_state_update.py161def test_selective_state_update_with_heads_with_batch_indices(dim, dstate, ngroups, has_z, tie_hdim, itype):
LOWtests/ops/tilelang/test_mamba3_mimo.py63def _require_cuda_and_kernel_deps() -> None:
LOWtests/ops/tilelang/test_mamba3_mimo.py590 def apply_rotary_emb_rotate_half(tensor: Tensor, cos: Tensor, sin: Tensor) -> Tensor:
LOWtests/ops/tilelang/test_mamba3_mimo.py1265def test_mamba_mimo_smoke_forward_backward(mods: SimpleNamespace) -> None:
LOWtests/ops/tilelang/test_mamba3_mimo.py1309def test_mamba_mimo_smoke_forward_backward_varlen(mods: SimpleNamespace) -> None:
LOWmamba_ssm/distributed/distributed_utils.py120def allreduce_sequence_parallel_grad(model: torch.nn.Module, process_group: ProcessGroup):
LOWmamba_ssm/utils/generation.py37def modify_logits_for_min_p_filtering(logits, min_p):
LOWmamba_ssm/utils/generation.py45def modify_logits_for_top_k_filtering(logits, top_k):
LOWmamba_ssm/utils/generation.py53def modify_logits_for_top_p_filtering(logits, top_p):
LOWmamba_ssm/utils/generation.py69def modify_logit_for_repetition_penalty(logits, prev_output_tokens, repetition_penalty=1.0):
LOWmamba_ssm/utils/determinism.py44def _filter_configs_by_block_sizes(configs):
LOWmamba_ssm/ops/triton/ssd_chunk_scan.py195def _chunk_scan_fwd_kernel_wip(
LOWmamba_ssm/ops/triton/ssd_chunk_scan.py349def _chunk_scan_bwd_dz_kernel(
LOWmamba_ssm/ops/triton/ssd_chunk_scan.py449def _chunk_scan_bwd_dstates_kernel(
LOWmamba_ssm/ops/triton/ssd_chunk_scan.py530def _chunk_scan_bwd_dc_kernel(
LOWmamba_ssm/ops/triton/ssd_chunk_scan.py641def _chunk_scan_bwd_dx_kernel(
LOWmamba_ssm/ops/triton/ssd_chunk_scan.py774def _chunk_scan_bwd_dcb_kernel(
LOWmamba_ssm/ops/triton/ssd_chunk_state.py286def _chunk_state_bwd_dx_kernel(
LOWmamba_ssm/ops/triton/ssd_chunk_state.py398def _chunk_state_bwd_db_kernel(
LOWmamba_ssm/ops/triton/ssd_chunk_state.py640def _chunk_state_varlen_kernel(
LOWmamba_ssm/ops/triton/selective_state_update.py24def _selective_scan_update_kernel(
LOWmamba_ssm/ops/triton/selective_state_update.py224def selective_state_update_ref(state, x, dt, A, B, C, D=None, z=None, dt_bias=None, dt_softplus=False):
LOWmamba_ssm/ops/triton/ssd_state_passing.py30def _state_passing_fwd_kernel(
LOWmamba_ssm/ops/triton/ssd_state_passing.py102def _state_passing_bwd_kernel(
LOWmamba_ssm/ops/triton/ssd_combined.py93def _chunk_scan_chunk_state_bwd_dx_kernel(
LOWmamba_ssm/ops/triton/ssd_combined.py262def _chunk_scan_chunk_state_bwd_dx(x, dt, dA_cumsum, B, CB, dout, dstates, D=None, seq_idx=None, dx=None):
LOWmamba_ssm/ops/triton/ssd_combined.py343def _mamba_chunk_scan_combined_fwd(x, dt, A, B, C, chunk_size, D=None, z=None, dt_bias=None, initial_states=None, seq_id
LOWmamba_ssm/ops/triton/ssd_combined.py396def _mamba_chunk_scan_combined_bwd(dout, x, dt, A, B, C, out, chunk_size, D=None, z=None,
LOWmamba_ssm/ops/triton/ssd_combined.py624def mamba_chunk_scan_combined(x, dt, A, B, C, chunk_size, D=None, z=None, dt_bias=None, initial_states=None, seq_idx=Non
LOWmamba_ssm/ops/triton/ssd_combined.py682def ssd_chunk_scan_combined_ref(x, dt, A, B, C, chunk_size, D=None, z=None, dt_bias=None, dt_softplus=False):
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_rotary_step.py16def rotary_qk_inference_kernel(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_rotary_step.py151def apply_rotary_qk_inference_fwd(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_rotary_step.py239def apply_rotary_qk_inference_reference(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_rotary_step.py327def test_correctness_qk_inference():
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1413def test_bwd_ddt_fused_correctness():
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py72def bwd_dadt_cumsum_fused_kernel(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py369def dacs_segsum_kernel_varlen(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py610def compute_dacs_segsum_triton_varlen(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py691def compute_dacs_segsum_triton(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py852def compute_dacs_segsum_ref_varlen(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py907def bwd_dadt_fused_varlen_ref(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py959def compute_dtrap_ddt_varlen_ref(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1020def bwd_dadt_cumsum_fused_kernel_varlen(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1089def bwd_segsum_dadt_kernel_varlen(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1160def bwd_dtrap_ddt_kernel_varlen(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1255def _build_varlen_chunk_mapping(cu_seqlens: torch.Tensor, chunk_size: int):
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1311def bwd_dadt_fused_triton_varlen(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1367def bwd_dtrap_ddt_triton_varlen(
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1458def test_dtrap_ddt_correctness():
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_utils.py1503def test_dacs_segsum_correctness_varlen():
12 more matches not shown…
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippet
HIGHmamba_ssm/ops/triton/layernorm_gated.py0if z is not none, we do norm(x) * silu(z) if norm_before_gate, else norm(x * silu(z))
HIGHmamba_ssm/ops/triton/layernorm_gated.py0if z is not none, we do norm(x) * silu(z) if norm_before_gate, else norm(x * silu(z))
HIGHmamba_ssm/ops/triton/layernorm_gated.py0if z is not none, we do norm(x) * silu(z) if norm_before_gate, else norm(x * silu(z))
HIGHmamba_ssm/ops/triton/mamba3/mamba3_siso_fwd.py0custom allocator for tma descriptor global memory allocation.
HIGHmamba_ssm/ops/triton/mamba3/mamba3_siso_step.py0custom allocator for tma descriptor global memory allocation.
HIGHmamba_ssm/ops/triton/mamba3/mamba3_siso_bwd.py0custom allocator for tma descriptor global memory allocation.
Deep Nesting19 hits · 19 pts
SeverityFileLineSnippet
LOWsetup.py279
LOWtests/test_determinism.py85
LOWmamba_ssm/utils/generation.py83
LOWmamba_ssm/models/mixer_seq_simple.py86
LOWmamba_ssm/ops/cute/mamba3/mamba3_step_fn.py227
LOWmamba_ssm/ops/triton/mamba3/mamba3_mimo_rotary_step.py327
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_fwd.py38
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_fwd.py70
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_fwd_varlen.py59
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_fwd_varlen.py119
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_bwd.py42
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_bwd.py505
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_bwd.py72
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_bwd.py535
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_bwd_varlen.py62
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_bwd_varlen.py545
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_bwd_varlen.py109
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_bwd_varlen.py591
LOWmamba_ssm/modules/mha.py201
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippet
HIGHmamba_ssm/ops/triton/mamba3/mamba3_siso_combined.py308Mamba-3 attention with Triton kernels and automatic differentiation. This is the main entry point for Mamba-3 forwa
HIGHmamba_ssm/ops/triton/mamba3/mamba3_siso_fwd.py458 Mamba-3 forward pass wrapper. Args: Q: Query tensor (batch, seqlen, nheads_qk, hea
Over-Commented Block9 hits · 9 pts
SeverityFileLineSnippet
LOWcsrc/selective_scan/static_switch.h1// Inspired by https://github.com/NVIDIA/DALI/blob/main/include/dali/core/static_switch.h
LOWtests/ops/test_selective_scan.py241 # assert torch.allclose(A.grad, A_ref.grad, rtol=rtolw, atol=atolw * 5)
LOWmamba_ssm/ops/triton/ssd_chunk_scan.py261 # cb = tl.load(cb_ptrs, mask=(offs_m[:, None] < chunk_size) & (offs_m[None, :] < chunk_size), other=0.0).to(tl.float
LOWmamba_ssm/ops/triton/ssd_chunk_scan.py761 # triton.Config({'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
LOWmamba_ssm/ops/triton/ssd_chunk_scan.py1061 # dout = tl.load(dout_ptrs, mask=(offs_m[:, None] < chunk_size_limit) & (offs_k[None, :] < hdim), other=0.0)
LOWmamba_ssm/ops/triton/ssd_chunk_scan.py1141 dA_cs_m = tl.load(dA_cumsum_ptr + offs_m * stride_dA_cs_csize, mask=offs_m < chunk_size, other=0.0).to(tl.float32)
LOWmamba_ssm/ops/triton/ssd_combined.py481 # Computing ddA with the dcb kernel is much slower, so we're not using it for now
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_fwd.py221 # --- Cache Diagonal qk_dot Path ---
LOWmamba_ssm/ops/tilelang/mamba3/mamba3_mimo_fwd_varlen.py321 # qk_dot_frag = T.alloc_fragment([chunk_size, R, R], dtype=accum_dtype)
Verbosity Indicators5 hits · 8 pts
SeverityFileLineSnippet
LOWmamba_ssm/ops/triton/mamba3/mamba3_siso_combined.py191 # Step 1: Compute dZ and scale grad_out if Z gating is present
LOWmamba_ssm/ops/triton/mamba3/mamba3_siso_combined.py200 # Step 2: Compute main gradients (dQ_mid, dK_mid, dV, dADT, dQK_dot, dD, dInput_SSM_State)
LOWmamba_ssm/ops/triton/mamba3/mamba3_siso_combined.py218 # Step 3: Compute gradients through rotary embeddings and biases
LOWmamba_ssm/ops/triton/mamba3/mamba3_siso_combined.py235 # Step 4: Compute dDT, dTrap, and input state gradients
LOWmamba_ssm/ops/triton/mamba3/mamba3_siso_combined.py247 # Step 5: Compute gradients through angle_dt cumsum
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMmamba_ssm/distributed/tensor_parallel.py217 # Create a mask of valid vocab ids (1 means it needs to be masked).
MEDIUMmamba_ssm/models/mixer_seq_simple.py51 # Create a copy of the config to modify
Dead Code3 hits · 6 pts
SeverityFileLineSnippet
MEDIUMmamba_ssm/utils/hf.py20
MEDIUMmamba_ssm/utils/hf.py22
MEDIUMmamba_ssm/utils/hf.py23
Excessive Try-Catch Wrapping4 hits · 4 pts
SeverityFileLineSnippet
LOWsetup.py80 except Exception as e:
LOWmamba_ssm/ops/triton/mamba3/mamba3_siso_combined.py29except Exception:
LOWmamba_ssm/ops/triton/mamba3/mamba3_siso_combined.py79 except Exception:
LOWmamba_ssm/ops/triton/mamba3/mamba3_siso_combined.py165 except Exception:
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippet
LOWmamba_ssm/ops/selective_scan_interface.py70 # Here we just pass in None and dz will be allocated in the C++ code.
LOWmamba_ssm/ops/triton/ssd_combined.py580 # Here we just pass in None and dz will be allocated in the C++ code.