AI Slop Code RIsk Monitor

linkedin/Liger-Kernel

Efficient Triton Kernels for LLM Training

29.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for linkedin/Liger-Kernel, a Python project with 6,653 GitHub stars. SynthScan examined 180,619 lines of code across 613 source files, recording 3191 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 29.4 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

29.4
Adjusted Signal
29.4
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
6.7K
Stars
Python
Language
180.6K
Lines of Code
613
Files
3.2K
Pattern Hits
2026-10-12
Scan Date
0.23
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 37.2/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 1661 finding(s).

Hallucinated Dependency & Supply Chain Risk 11.5/100 · LOW

Are imports declared and package/API names verified? 532 finding(s).

Agent Over-Engineering Ratio 70.7/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 2308 finding(s).

PR Review Velocity Impact 77.4/100 · CRITICAL

Which changes need focused human review? 3191 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 143MEDIUM 730LOW 2318

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 3191 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Decorative Section Separators699 hits · 2383 pts
SeverityFileLineSnippetContext
MEDIUMbenchmark/scripts/benchmark_model_configs.py122# ── MoE Model Profiles ───────────────────────────────────────────────────────COMMENT
MEDIUMbenchmark/scripts/benchmark_model_configs.py134# ── Dense Model Profiles ─────────────────────────────────────────────────────COMMENT
MEDIUMbenchmark/scripts/benchmark_model_configs.py579 # ---------------------------------------COMMENT
MEDIUMbenchmark/scripts/benchmark_model_configs.py581 # ---------------------------------------COMMENT
MEDIUMbenchmark/scripts/benchmark_fused_moe.py34# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/scripts/benchmark_fused_moe.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/scripts/benchmark_fused_moe.py64# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/scripts/benchmark_fused_moe.py66# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/scripts/benchmark_fused_moe.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/scripts/benchmark_fused_moe.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/scripts/benchmark_fused_moe.py130# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/scripts/benchmark_fused_moe.py132# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/scripts/benchmark_fused_moe.py170# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/scripts/benchmark_fused_moe.py172# ---------------------------------------------------------------------------COMMENT
MEDIUMliger_cute_kernels/CMakeLists.txt1# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMliger_cute_kernels/CMakeLists.txt21# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMliger_cute_kernels/CMakeLists.txt136# ── NVSHMEM ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMliger_cute_kernels/CMakeLists.txt150# ── CUTLASS (header-only) ────────────────────────────────────────────────────COMMENT
MEDIUMliger_cute_kernels/cute_build.py253# ── native wheel build (used by setup.py) ────────────────────────────────────COMMENT
MEDIUMliger_cute_kernels/csrc/core/CMakeLists.txt1# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMliger_cute_kernels/csrc/core/CMakeLists.txt10# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMliger_cute_kernels/csrc/core/CMakeLists.txt458# ── ABI-agnostic hardening (Linux/ELF) ───────────────────────────────────────COMMENT
MEDIUM…cute_kernels/csrc/core/include/liger_cute/liger_cute.h20// ── Status / error reporting (no exceptions across the ABI) ──────────────────COMMENT
MEDIUM…er_cute_kernels/csrc/core/include/liger_cute/nvshmem.h28// ─── Bootstrap / init ────────────────────────────────────────────────────────COMMENT
MEDIUM…er_cute_kernels/csrc/core/include/liger_cute/nvshmem.h58// ─── PE queries (world) ──────────────────────────────────────────────────────COMMENT
MEDIUM…er_cute_kernels/csrc/core/include/liger_cute/nvshmem.h62// ─── Teams ───────────────────────────────────────────────────────────────────COMMENT
MEDIUM…er_cute_kernels/csrc/core/include/liger_cute/nvshmem.h90// ─── Symmetric / device memory pools ─────────────────────────────────────────COMMENT
MEDIUM…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp3// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp5// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp19// ── Why FOUR groups ─────────────────────────────────────────────────COMMENT
MEDIUM…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp35// ── FWD row field legend (12 args) ──────────────────────────────────COMMENT
MEDIUM…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp54// ── BWD row field legend (14 args) ──────────────────────────────────COMMENT
MEDIUM…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp78// ── COOPERATIVE mlp3 / mlp4 CONSTRAINT ──────────────────────────────COMMENT
MEDIUM…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp90// ── X-macro structure caveat ────────────────────────────────────────COMMENT
MEDIUM…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp101// ── FWD · TileM=64 (N-split consumer, NC=2) ─────────────────────────COMMENT
MEDIUM…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp121// ── BWD · TileM=64 (Phase-1 N-split, NC=2) ──────────────────────────COMMENT
MEDIUM⚡…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp160// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp162// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp169// ── FWD alternates ──────────────────────────────────────────────────COMMENT
MEDIUM⚡…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp178// ── BWD alternates ──────────────────────────────────────────────────COMMENT
MEDIUM…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp3// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp5// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp19// ── Why FOUR groups ─────────────────────────────────────────────────COMMENT
MEDIUM…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp35// ── FWD row field legend (12 args) ──────────────────────────────────COMMENT
MEDIUM…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp54// ── BWD row field legend (14 args) ──────────────────────────────────COMMENT
MEDIUM…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp78// ── COOPERATIVE mlp3 / mlp4 CONSTRAINT ──────────────────────────────COMMENT
MEDIUM…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp90// ── X-macro structure caveat ────────────────────────────────────────COMMENT
MEDIUM…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp101// ── FWD · TileM=64 (N-split consumer, NC=2) ─────────────────────────COMMENT
MEDIUM…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp121// ── BWD · TileM=64 (Phase-1 N-split, NC=2) ──────────────────────────COMMENT
MEDIUM⚡…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp160// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp162// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp169// ── FWD alternates ──────────────────────────────────────────────────COMMENT
MEDIUM⚡…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp178// ── BWD alternates ──────────────────────────────────────────────────COMMENT
MEDIUM…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp3// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp5// ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp19// ── Why FOUR groups ─────────────────────────────────────────────────COMMENT
MEDIUM…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp35// ── FWD row field legend (12 args) ──────────────────────────────────COMMENT
MEDIUM…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp54// ── BWD row field legend (14 args) ──────────────────────────────────COMMENT
MEDIUM…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp78// ── COOPERATIVE mlp3 / mlp4 CONSTRAINT ──────────────────────────────COMMENT
MEDIUM…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp90// ── X-macro structure caveat ────────────────────────────────────────COMMENT
639 more matches not shown…
Hyper-Verbose Identifiers1182 hits · 1121 pts
SeverityFileLineSnippetContext
LOWsetup.py43def get_optional_dependencies():CODE
LOWbenchmark/BENCHMARK_GUIDELINES.md113def _resolve_model_config_geglu(input: SingleBenchmarkRunInput):CODE
LOWbenchmark/BENCHMARK_GUIDELINES.md133def bench_speed_geglu_model_config(input):CODE
LOW…mark/scripts/benchmark_sparse_multi_token_attention.py74def _setup_sparse_multi_token_attention(input: SingleBenchmarkRunInput):CODE
LOW…mark/scripts/benchmark_sparse_multi_token_attention.py131def bench_speed_sparse_multi_token_attention(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOW…mark/scripts/benchmark_sparse_multi_token_attention.py161def bench_memory_sparse_multi_token_attention(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOW…mark/scripts/benchmark_sparse_multi_token_attention.py176def _resolve_model_config_sparse_multi_token_attention(input: SingleBenchmarkRunInput):CODE
LOW…mark/scripts/benchmark_sparse_multi_token_attention.py196def bench_speed_sparse_multi_token_attention_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOW…mark/scripts/benchmark_sparse_multi_token_attention.py226def bench_memory_sparse_multi_token_attention_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_fused_linear_kl_div.py85def setup_fused_linear_kl_div(input: SingleBenchmarkRunInput):CODE
LOWbenchmark/scripts/benchmark_modulated_rms_norm.py28def _setup_modulated_rms_norm(input: SingleBenchmarkRunInput):CODE
LOW⚡benchmark/scripts/benchmark_modulated_rms_norm.py60def bench_speed_modulated_rms_norm(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOW⚡benchmark/scripts/benchmark_modulated_rms_norm.py67def bench_memory_modulated_rms_norm(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOW⚡benchmark/scripts/benchmark_modulated_rms_norm.py72def _resolve_model_config_modulated_rms_norm(input: SingleBenchmarkRunInput):CODE
LOWbenchmark/scripts/benchmark_modulated_rms_norm.py89def bench_speed_modulated_rms_norm_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_modulated_rms_norm.py96def bench_memory_modulated_rms_norm_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_mhc.py158def _resolve_model_config_mhc(input: SingleBenchmarkRunInput):CODE
LOWbenchmark/scripts/benchmark_mhc.py182def bench_speed_mhc_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_mhc.py208def bench_memory_mhc_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_grpo_loss_kernel.py141def bench_memory_grpo_loss_kernel(CODE
LOWbenchmark/scripts/benchmark_grpo_loss_kernel.py197def bench_speed_grpo_loss_kernel(CODE
LOWbenchmark/scripts/benchmark_tiled_mlp.py282def _resolve_model_config_tiled_mlp(input: SingleBenchmarkRunInput):CODE
LOWbenchmark/scripts/benchmark_tiled_mlp.py303def bench_speed_tiled_mlp_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_tiled_mlp.py345def bench_memory_tiled_mlp_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_tiled_mlp.py379def _run_tiled_mlp_benchmarks(args, activation_type, hidden_act, kernel_name):CODE
LOWbenchmark/scripts/benchmark_mhc_lm.py370def _resolve_model_config_mhc_lm(input: SingleBenchmarkRunInput):CODE
LOWbenchmark/scripts/benchmark_mhc_lm.py393def bench_speed_mhc_lm_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_mhc_lm.py419def bench_memory_mhc_lm_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_megatron_swiglu.py93def bench_speed_megatron_swiglu(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_megatron_swiglu.py134def bench_memory_megatron_swiglu(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/utils.py245def get_current_file_directory() -> str:CODE
LOWbenchmark/scripts/utils.py267def _print_benchmarking_banner(metric_name: str, kernel_name: str):CODE
LOWbenchmark/scripts/utils.py289def update_benchmark_data_csv(CODE
LOWbenchmark/scripts/utils.py489def parse_benchmark_script_args():CODE
LOW…mark/scripts/benchmark_fused_neighborhood_attention.py59 def _create_neighborhood_mask(self, seq_len: int, device: torch.device) -> torch.Tensor:CODE
LOW…mark/scripts/benchmark_fused_neighborhood_attention.py103def _setup_fused_neighborhood_attention(input: SingleBenchmarkRunInput):CODE
LOW…mark/scripts/benchmark_fused_neighborhood_attention.py166def bench_speed_fused_neighborhood_attention(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOW…mark/scripts/benchmark_fused_neighborhood_attention.py202def bench_memory_fused_neighborhood_attention(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOW…mark/scripts/benchmark_fused_neighborhood_attention.py217def _resolve_model_config_fused_neighborhood_attention(input: SingleBenchmarkRunInput):CODE
LOW…mark/scripts/benchmark_fused_neighborhood_attention.py238def bench_speed_fused_neighborhood_attention_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOW…mark/scripts/benchmark_fused_neighborhood_attention.py272def bench_memory_fused_neighborhood_attention_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_distill_cosine_loss.py88def setup_distill_cosine_loss(input: SingleBenchmarkRunInput):CODE
LOWbenchmark/scripts/benchmark_model_configs.py239def get_benchmark_model_config(model_name: Optional[str] = None) -> ModelConfig:CODE
LOWbenchmark/scripts/benchmark_model_configs.py253def estimate_kernel_peak_memory(probe_fn: Callable[[], torch.Tensor]) -> int:CODE
LOWbenchmark/scripts/benchmark_model_configs.py322def compute_seq_len_sweep_config(CODE
LOWbenchmark/scripts/benchmark_model_configs.py381def compute_model_config_sweep_config(CODE
LOW…chmark/scripts/benchmark_fused_linear_cross_entropy.py60def _chunk_mem_const_from_provider(provider: str) -> int | None:CODE
LOW…chmark/scripts/benchmark_fused_linear_cross_entropy.py132def setup_fused_linear_cross_entropy(input: SingleBenchmarkRunInput):CODE
LOWbenchmark/scripts/benchmark_megatron_rms_norm.py89def bench_speed_megatron_rms_norm(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_megatron_rms_norm.py128def bench_memory_megatron_rms_norm(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_multi_token_attention.py48def _setup_multi_token_attention(input: SingleBenchmarkRunInput):CODE
LOWbenchmark/scripts/benchmark_multi_token_attention.py101def bench_speed_multi_token_attention(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_multi_token_attention.py131def bench_memory_multi_token_attention(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_multi_token_attention.py147def _resolve_model_config_multi_token_attention(input: SingleBenchmarkRunInput):CODE
LOWbenchmark/scripts/benchmark_multi_token_attention.py168def bench_speed_multi_token_attention_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWbenchmark/scripts/benchmark_multi_token_attention.py198def bench_memory_multi_token_attention_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput:CODE
LOWliger_cute_kernels/cute_build.py180def _stage_optional_core_artifacts(source_root: Path, out_dir: Path, *, required: bool) -> None:CODE
LOWliger_cute_kernels/liger_cute_kernels/tvm_ffi.py357def fused_linear_scaled_cross_entropy_configure_forward(CODE
LOWliger_cute_kernels/liger_cute_kernels/tvm_ffi.py375def fused_linear_scaled_cross_entropy_configure_backward(CODE
LOWliger_cute_kernels/liger_cute_kernels/tvm_ffi.py402def fused_linear_scaled_cross_entropy_configure_context(CODE
1122 more matches not shown…
Cross-File Repetition99 hits · 495 pts
SeverityFileLineSnippetContext
HIGHbenchmark/scripts/benchmark_mlp.py0create input tensor and layer from benchmark config.STRING
HIGHbenchmark/scripts/benchmark_rms_norm.py0create input tensor and layer from benchmark config.STRING
HIGHbenchmark/scripts/benchmark_swiglu.py0create input tensor and layer from benchmark config.STRING
HIGHbenchmark/scripts/benchmark_geglu.py0create input tensor and layer from benchmark config.STRING
HIGHbenchmark/scripts/benchmark_layer_norm.py0create input tensor and layer from benchmark config.STRING
HIGHbenchmark/scripts/benchmark_dyt.py0create input tensor and layer from benchmark config.STRING
HIGHbenchmark/scripts/benchmark_group_norm.py0create input tensor and layer from benchmark config.STRING
HIGHbenchmark/scripts/benchmark_poly_norm.py0create input tensor and layer from benchmark config.STRING
HIGH.agents/skills/liger-kernel-dev/templates/benchmark.md0create input tensor and layer from benchmark config.STRING
HIGHliger_cute_kernels/test/test_moe_cuda_graph.py0largest power-of-two divisor of e that fits the available gpus (>= 2).STRING
HIGHtest/cute/test_moe_autograd.py0largest power-of-two divisor of e that fits the available gpus (>= 2).STRING
HIGHtest/cute/test_moe.py0largest power-of-two divisor of e that fits the available gpus (>= 2).STRING
HIGHtest/cutedsl/test_swiglu.py0ground-truth silu-mul reference (silu(a * gate) * b * down) computed in fp32.STRING
HIGHtest/transformers/test_swiglu.py0ground-truth silu-mul reference (silu(a * gate) * b * down) computed in fp32.STRING
HIGHtest/cutile/test_swiglu.py0ground-truth silu-mul reference (silu(a * gate) * b * down) computed in fp32.STRING
HIGHtest/cutedsl/test_swiglu.py0harmonized (atol, rtol) for the shared plain silu-mul tests.STRING
HIGHtest/transformers/test_swiglu.py0harmonized (atol, rtol) for the shared plain silu-mul tests.STRING
HIGHtest/cutile/test_swiglu.py0harmonized (atol, rtol) for the shared plain silu-mul tests.STRING
HIGHtest/cutedsl/test_swiglu.py0forward + backward vs the fp32 silu-mul reference across shapes/dtypes.STRING
HIGHtest/transformers/test_swiglu.py0forward + backward vs the fp32 silu-mul reference across shapes/dtypes.STRING
HIGHtest/cutile/test_swiglu.py0forward + backward vs the fp32 silu-mul reference across shapes/dtypes.STRING
HIGHtest/cutedsl/test_swiglu.py0arbitrary >=1-d shapes: forward + backward vs the fp32 reference; shape preserved.STRING
HIGHtest/transformers/test_swiglu.py0arbitrary >=1-d shapes: forward + backward vs the fp32 reference; shape preserved.STRING
HIGHtest/cutile/test_swiglu.py0arbitrary >=1-d shapes: forward + backward vs the fp32 reference; shape preserved.STRING
HIGHtest/convergence/fp32/test_mini_models_multimodal.py0create a mini version model the commented values are the original valuesSTRING
HIGHtest/convergence/fp32/test_mini_models_with_logits.py0create a mini version model the commented values are the original valuesSTRING
HIGHtest/convergence/fp32/test_mini_models.py0create a mini version model the commented values are the original valuesSTRING
HIGHtest/convergence/bf16/test_mini_models_multimodal.py0create a mini version model the commented values are the original valuesSTRING
HIGHtest/convergence/bf16/test_mini_models_with_logits.py0create a mini version model the commented values are the original valuesSTRING
HIGHtest/convergence/bf16/test_mini_models.py0create a mini version model the commented values are the original valuesSTRING
HIGHtest/ops/test_layer_norm.py0``liger_kernel.set_backend(name)`` pins dispatch to ``name`` when no explicit backend is passed; ``set_backend(none)`` rSTRING
HIGHtest/ops/test_rms_norm.py0``liger_kernel.set_backend(name)`` pins dispatch to ``name`` when no explicit backend is passed; ``set_backend(none)`` rSTRING
HIGHtest/ops/test_softmax.py0``liger_kernel.set_backend(name)`` pins dispatch to ``name`` when no explicit backend is passed; ``set_backend(none)`` rSTRING
HIGHtest/ops/test_fused_add_rms_norm.py0cross-backend correctness tests for ``fused_linear_jsd``. each backend registered for ``fused_linear_jsd`` is exercised STRING
HIGHtest/ops/test_swiglu.py0cross-backend correctness tests for ``fused_linear_jsd``. each backend registered for ``fused_linear_jsd`` is exercised STRING
HIGHtest/ops/test_geglu.py0cross-backend correctness tests for ``fused_linear_jsd``. each backend registered for ``fused_linear_jsd`` is exercised STRING
HIGHtest/ops/test_kl_div.py0cross-backend correctness tests for ``fused_linear_jsd``. each backend registered for ``fused_linear_jsd`` is exercised STRING
HIGHtest/ops/test_fused_linear_cross_entropy.py0cross-backend correctness tests for ``fused_linear_jsd``. each backend registered for ``fused_linear_jsd`` is exercised STRING
HIGHtest/ops/test_fused_linear_jsd.py0cross-backend correctness tests for ``fused_linear_jsd``. each backend registered for ``fused_linear_jsd`` is exercised STRING
HIGHtest/ops/test_fused_add_rms_norm.py0forward + backward parity against the pytorch fused_linear_jsd reference.STRING
HIGHtest/ops/test_swiglu.py0forward + backward parity against the pytorch fused_linear_jsd reference.STRING
HIGHtest/ops/test_geglu.py0forward + backward parity against the pytorch fused_linear_jsd reference.STRING
HIGHtest/ops/test_kl_div.py0forward + backward parity against the pytorch fused_linear_jsd reference.STRING
HIGHtest/ops/test_fused_linear_cross_entropy.py0forward + backward parity against the pytorch fused_linear_jsd reference.STRING
HIGHtest/ops/test_fused_linear_jsd.py0forward + backward parity against the pytorch fused_linear_jsd reference.STRING
HIGHtest/ops/test_fused_add_rms_norm.py0sanity: the triton implementation should always be available.STRING
HIGHtest/ops/test_swiglu.py0sanity: the triton implementation should always be available.STRING
HIGHtest/ops/test_geglu.py0sanity: the triton implementation should always be available.STRING
HIGHtest/ops/test_kl_div.py0sanity: the triton implementation should always be available.STRING
HIGHtest/ops/test_fused_linear_kl_div.py0sanity: the triton implementation should always be available.STRING
HIGHtest/ops/test_fused_linear_cross_entropy.py0sanity: the triton implementation should always be available.STRING
HIGHtest/ops/test_fused_linear_jsd.py0sanity: the triton implementation should always be available.STRING
HIGHsrc/liger_kernel/transformers/model/olmo3.py0labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked languaSTRING
HIGHsrc/liger_kernel/transformers/model/mistral.py0labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked languaSTRING
HIGHsrc/liger_kernel/transformers/model/olmo2.py0labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked languaSTRING
HIGHsrc/liger_kernel/transformers/model/ministral.py0labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked languaSTRING
HIGHsrc/liger_kernel/transformers/model/qwen3_moe.py0labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked languaSTRING
HIGHsrc/liger_kernel/transformers/model/nemotron.py0labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked languaSTRING
HIGHsrc/liger_kernel/transformers/model/llama.py0labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked languaSTRING
HIGHsrc/liger_kernel/transformers/model/qwen3_5.py0labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked languaSTRING
39 more matches not shown…
Unused Imports522 hits · 402 pts
SeverityFileLineSnippetContext
LOWbenchmark/scripts/benchmark_megatron_cross_entropy.py32CODE
LOWliger_cute_kernels/cute_build.py18CODE
LOWliger_cute_kernels/liger_cute_kernels/configuration.py3CODE
LOWliger_cute_kernels/liger_cute_kernels/__init__.py22CODE
LOWliger_cute_kernels/liger_cute_kernels/__init__.py24CODE
LOWliger_cute_kernels/liger_cute_kernels/__init__.py25CODE
LOWliger_cute_kernels/liger_cute_kernels/__init__.py26CODE
LOWliger_cute_kernels/liger_cute_kernels/__init__.py27CODE
LOWliger_cute_kernels/liger_cute_kernels/tvm_ffi.py7CODE
LOWliger_cute_kernels/liger_cute_kernels/nvshmem.py22CODE
LOWliger_cute_kernels/test/test_moe_team_setup.py1CODE
LOWliger_cute_kernels/test/test_moe_cuda_graph.py24CODE
LOWliger_cute_kernels/test/test_fslce_teams.py1CODE
LOWliger_cute_kernels/test/test_configuration.py3CODE
LOWliger_cute_kernels/test/test_tvm_ffi_loader.py1CODE
LOWliger_cute_kernels/test/test_cute_build.py1CODE
LOW…er_cute_kernels/test/test_export_nonrdc_nvshmem_ptx.py1CODE
LOWliger_cute_kernels/test/test_nvshmem.py25CODE
LOWliger_cute_kernels/cmake/export_nonrdc_nvshmem_ptx.py4CODE
LOW…ark_fused_scaled_linear_cross_entropy_forward_sm100.py3CODE
LOW…rk_fused_scaled_linear_cross_entropy_backward_sm100.py3CODE
LOW…te_fused_scaled_linear_cross_entropy_backward_sm100.py3CODE
LOWtest/cute/test_moe_autograd.py26CODE
LOWtest/cute/test_moe_autograd.py49CODE
LOWtest/cute/test_fused_linear_scaled_cross_entropy_tp.py3CODE
LOWtest/cute/test_moe.py24CODE
LOWtest/cutedsl/test_shape_fallbacks.py11CODE
LOWtest/cutedsl/test_fused_add_rms_norm.py25CODE
LOWtest/cutedsl/test_fused_add_rms_norm.py40CODE
LOWtest/cutedsl/test_gap_ops.py20CODE
LOWtest/cutedsl/test_gap_ops.py33CODE
LOWtest/backends/test_registry.py9CODE
LOWtest/backends/test_capability.py7CODE
LOWtest/backends/test_capability_device.py11CODE
LOWtest/convergence/fp32/test_mini_models_multimodal.py326CODE
LOWtest/convergence/bf16/test_mini_models_multimodal.py298CODE
LOWtest/transformers/test_monkey_patch.py336CODE
LOWtest/transformers/test_monkey_patch.py337CODE
LOWtest/transformers/test_monkey_patch.py338CODE
LOWtest/transformers/test_monkey_patch.py339CODE
LOWtest/transformers/test_monkey_patch.py340CODE
LOWtest/transformers/test_monkey_patch.py341CODE
LOWtest/transformers/test_monkey_patch.py342CODE
LOWtest/transformers/test_monkey_patch.py343CODE
LOWtest/transformers/test_monkey_patch.py344CODE
LOWtest/transformers/test_monkey_patch.py345CODE
LOWtest/transformers/test_monkey_patch.py346CODE
LOWtest/transformers/test_monkey_patch.py347CODE
LOWtest/transformers/test_monkey_patch.py348CODE
LOWtest/transformers/test_monkey_patch.py349CODE
LOWtest/transformers/test_monkey_patch.py350CODE
LOWtest/transformers/test_monkey_patch.py351CODE
LOWtest/transformers/test_monkey_patch.py352CODE
LOWtest/transformers/test_monkey_patch.py353CODE
LOWtest/transformers/test_monkey_patch.py354CODE
LOWtest/transformers/test_monkey_patch.py355CODE
LOWtest/transformers/test_monkey_patch.py356CODE
LOWtest/transformers/test_monkey_patch.py357CODE
LOWtest/transformers/test_monkey_patch.py358CODE
LOWtest/transformers/test_monkey_patch.py359CODE
462 more matches not shown…
Empty Error Handlers31 hits · 155 pts
SeverityFileLineSnippetContext
HIGHsetup.py98except (subprocess.SubprocessError, FileNotFoundError):CODE
HIGHsetup.py105except (subprocess.SubprocessError, FileNotFoundError):CODE
HIGHsetup.py120except (subprocess.SubprocessError, FileNotFoundError):CODE
HIGHliger_cute_kernels/test/test_moe_cuda_graph.py578except Exception:CODE
HIGHliger_cute_kernels/test/test_moe_cuda_graph.py640except Exception:CODE
HIGHliger_cute_kernels/test/test_moe_cuda_graph.py738except Exception:CODE
HIGHliger_cute_kernels/test/test_moe_cuda_graph.py795except Exception:CODE
HIGHliger_cute_kernels/test/test_moe_cuda_graph.py926except Exception:CODE
HIGHliger_cute_kernels/test/test_moe_cuda_graph.py1050except Exception:CODE
HIGHliger_cute_kernels/test/test_moe_cuda_graph.py1212except Exception:CODE
HIGHliger_cute_kernels/test/test_moe_cuda_graph.py1327except Exception:CODE
HIGHliger_cute_kernels/test/test_fslce_teams.py266except Exception:CODE
HIGHliger_cute_kernels/test/test_nvshmem.py364except Exception:CODE
HIGHliger_cute_kernels/test/test_nvshmem.py449except Exception:CODE
HIGHliger_cute_kernels/test/test_nvshmem.py453except Exception:CODE
HIGHtest/conftest.py42except Exception:CODE
HIGHtest/cute/test_moe_autograd.py294except Exception:CODE
HIGHtest/cute/test_fused_linear_scaled_cross_entropy_tp.py296except Exception:CODE
HIGHtest/cute/test_fused_linear_scaled_cross_entropy_tp.py292except Exception:CODE
HIGHtest/cute/test_moe.py255except Exception:CODE
HIGHtest/transformers/test_swiglu.py13except Exception:CODE
HIGHtest/transformers/test_rms_norm.py14except Exception:CODE
HIGHtest/ops/test_jsd_chunk_ignore_regression.py26except Exception: # pragma: no cover (not registered / runtime missing)CODE
HIGHtest/megatron/test_monkey_patch.py1273except Exception:CODE
HIGHsrc/liger_kernel/ops/swiglu.py12except ImportError:CODE
HIGHsrc/liger_kernel/ops/rms_norm.py27except ImportError:CODE
HIGHsrc/liger_kernel/ops/cutedsl/ops/swiglu.py56except ImportError:CODE
HIGHsrc/liger_kernel/ops/cutedsl/ops/rms_norm.py1202except Exception:CODE
HIGHsrc/liger_kernel/ops/cutedsl/ops/rms_norm.py79except Exception:CODE
HIGHsrc/liger_kernel/ops/backends/_ascend/ub_manager.py176except Exception:CODE
HIGHsrc/liger_kernel/ops/backends/_ascend/ub_manager.py198except ValueError:CODE
AI Structural Patterns128 hits · 125 pts
SeverityFileLineSnippetContext
LOW…mark/scripts/benchmark_fused_neighborhood_attention.py100CODE
LOWbenchmark/scripts/benchmark_model_configs.py448CODE
LOWbenchmark/scripts/benchmark_model_configs.py525CODE
LOWtest/cutedsl/test_cross_entropy.py76CODE
LOWtest/cutedsl/test_cross_entropy.py115CODE
LOWtest/cutedsl/test_fused_linear_cross_entropy.py60CODE
LOWtest/cutedsl/test_fused_linear_cross_entropy.py147CODE
LOWtest/transformers/test_flex_attention.py118CODE
LOWtest/transformers/test_fused_neighborhood_attention.py435CODE
LOWtest/transformers/test_fused_neighborhood_attention.py93CODE
LOWtest/transformers/test_fused_neighborhood_attention.py225CODE
LOWtest/transformers/test_poly_norm.py78CODE
LOWtest/transformers/test_fused_linear_cross_entropy.py37CODE
LOWtest/transformers/test_fused_linear_cross_entropy.py71CODE
LOWtest/ops/test_fused_linear_cross_entropy.py503CODE
LOWtest/chunked_loss/test_dpo_loss.py636CODE
LOWtest/chunked_loss/test_grpo_loss.py35CODE
LOWtest/chunked_loss/test_grpo_loss.py81CODE
LOWtest/chunked_loss/test_grpo_loss.py294CODE
LOWexamples/medusa/medusa_util.py130CODE
LOWsrc/liger_kernel/functional.py189CODE
LOWsrc/liger_kernel/functional.py444CODE
LOWsrc/liger_kernel/functional.py672CODE
LOWsrc/liger_kernel/backends/registry.py158CODE
LOWsrc/liger_kernel/transformers/fsdp.py50CODE
LOWsrc/liger_kernel/transformers/cross_entropy.py11CODE
LOW…iger_kernel/transformers/fused_linear_cross_entropy.py10CODE
LOWsrc/liger_kernel/transformers/grpo_loss.py9CODE
LOWsrc/liger_kernel/transformers/functional.py46CODE
LOWsrc/liger_kernel/transformers/functional.py83CODE
LOW…er_kernel/transformers/fused_neighborhood_attention.py114CODE
LOW…er_kernel/transformers/fused_neighborhood_attention.py193CODE
LOW…er_kernel/transformers/fused_neighborhood_attention.py204CODE
LOWsrc/liger_kernel/transformers/model/olmo3.py15CODE
LOWsrc/liger_kernel/transformers/model/phi3.py15CODE
LOWsrc/liger_kernel/transformers/model/internvl.py17CODE
LOWsrc/liger_kernel/transformers/model/muse_glimmer.py16CODE
LOWsrc/liger_kernel/transformers/model/qwen2_vl.py34CODE
LOWsrc/liger_kernel/transformers/model/llama4.py15CODE
LOWsrc/liger_kernel/transformers/model/qwen3_vl_moe.py17CODE
LOWsrc/liger_kernel/transformers/model/mistral.py15CODE
LOWsrc/liger_kernel/transformers/model/deepseek_v4.py10CODE
LOWsrc/liger_kernel/transformers/model/olmo2.py13CODE
LOWsrc/liger_kernel/transformers/model/paligemma.py20CODE
LOWsrc/liger_kernel/transformers/model/qwen2_5_vl.py34CODE
LOWsrc/liger_kernel/transformers/model/ministral.py14CODE
LOWsrc/liger_kernel/transformers/model/qwen3_vl.py16CODE
LOWsrc/liger_kernel/transformers/model/gemma4.py25CODE
LOWsrc/liger_kernel/transformers/model/gemma4.py162CODE
LOWsrc/liger_kernel/transformers/model/qwen3_moe.py15CODE
LOWsrc/liger_kernel/transformers/model/nemotron.py16CODE
LOWsrc/liger_kernel/transformers/model/llava.py13CODE
LOWsrc/liger_kernel/transformers/model/mllama.py15CODE
LOWsrc/liger_kernel/transformers/model/llama.py24CODE
LOWsrc/liger_kernel/transformers/model/qwen3_5.py17CODE
LOWsrc/liger_kernel/transformers/model/qwen3_5.py129CODE
LOWsrc/liger_kernel/transformers/model/gemma2.py18CODE
LOWsrc/liger_kernel/transformers/model/glm4.py13CODE
LOWsrc/liger_kernel/transformers/model/smolvlm.py21CODE
LOWsrc/liger_kernel/transformers/model/hunyuan_v1.py12CODE
68 more matches not shown…
Deep Nesting141 hits · 118 pts
SeverityFileLineSnippetContext
LOWsetup.py22CODE
LOWsetup.py125CODE
LOWbenchmark/benchmarks_visualizer.py177CODE
LOW…k/scripts/benchmark_fused_scaled_cross_entropy_sm90.py143CODE
LOWbenchmark/scripts/benchmark_mhc.py29CODE
LOWbenchmark/scripts/benchmark_tvd.py24CODE
LOWbenchmark/scripts/benchmark_tiled_mlp.py162CODE
LOWbenchmark/scripts/benchmark_tiled_mlp.py61CODE
LOWbenchmark/scripts/benchmark_megatron_swiglu.py93CODE
LOWbenchmark/scripts/utils.py117CODE
LOWbenchmark/scripts/utils.py289CODE
LOWbenchmark/scripts/utils.py388CODE
LOWbenchmark/scripts/benchmark_model_configs.py525CODE
LOWbenchmark/scripts/benchmark_megatron_rms_norm.py69CODE
LOWbenchmark/scripts/benchmark_megatron_cross_entropy.py105CODE
LOWbenchmark/scripts/benchmark_megatron_cross_entropy.py184CODE
LOWliger_cute_kernels/cute_build.py153CODE
LOWliger_cute_kernels/liger_cute_kernels/configuration.py213CODE
LOWliger_cute_kernels/test/test_moe_cuda_graph.py319CODE
LOWliger_cute_kernels/test/test_moe_cuda_graph.py1063CODE
LOWliger_cute_kernels/test/test_fslce_teams.py83CODE
LOWliger_cute_kernels/test/test_nvshmem.py267CODE
LOW…rk_fused_scaled_linear_cross_entropy_backward_sm100.py63CODE
LOWtest/cute/test_fused_linear_scaled_cross_entropy_tp.py160CODE
LOWtest/cute/test_fused_linear_scaled_cross_entropy_tp.py334CODE
LOWtest/convergence/fp32/test_mini_models_multimodal.py1255CODE
LOWtest/convergence/bf16/test_mini_models_multimodal.py1138CODE
LOWtest/transformers/test_tvd.py16CODE
LOWtest/transformers/test_monkey_patch.py689CODE
LOWtest/transformers/test_monkey_patch.py786CODE
LOWtest/transformers/test_monkey_patch.py883CODE
LOWtest/transformers/test_monkey_patch.py951CODE
LOWtest/transformers/test_monkey_patch.py1060CODE
LOWtest/transformers/test_monkey_patch.py1169CODE
LOWtest/transformers/test_monkey_patch.py1860CODE
LOWtest/transformers/test_monkey_patch.py1910CODE
LOWtest/transformers/test_monkey_patch.py1991CODE
LOWtest/transformers/test_monkey_patch.py2785CODE
LOWtest/transformers/test_monkey_patch.py3656CODE
LOWtest/transformers/test_monkey_patch.py3856CODE
LOWtest/transformers/test_monkey_patch.py3937CODE
LOWtest/transformers/test_monkey_patch.py4062CODE
LOWtest/transformers/test_monkey_patch.py4124CODE
LOWtest/transformers/test_monkey_patch.py4315CODE
LOWtest/transformers/test_grpo_loss.py484CODE
LOWtest/transformers/test_grpo_loss.py713CODE
LOWtest/ops/test_fused_linear_cross_entropy.py359CODE
LOWtest/chunked_loss/test_dpo_loss.py919CODE
LOWtest/chunked_loss/test_grpo_loss.py1057CODE
LOWtest/chunked_loss/test_grpo_loss.py81CODE
LOWtest/chunked_loss/test_grpo_loss.py203CODE
LOWexamples/medusa/callback.py363CODE
LOWexamples/medusa/train.py131CODE
LOWsrc/liger_kernel/utils.py17CODE
LOWsrc/liger_kernel/transformers/monkey_patch.py469CODE
LOWsrc/liger_kernel/transformers/monkey_patch.py559CODE
LOWsrc/liger_kernel/transformers/monkey_patch.py833CODE
LOWsrc/liger_kernel/transformers/monkey_patch.py906CODE
LOWsrc/liger_kernel/transformers/monkey_patch.py1215CODE
LOWsrc/liger_kernel/transformers/monkey_patch.py1302CODE
81 more matches not shown…
Excessive Try-Catch Wrapping132 hits · 115 pts
SeverityFileLineSnippetContext
LOWbenchmark/benchmarks_visualizer.py210 except Exception as e:CODE
LOWbenchmark/benchmarks_visualizer.py356 except Exception:CODE
LOW⚡liger_cute_kernels/test/test_moe_cuda_graph.py795 except Exception:CODE
LOWliger_cute_kernels/test/test_moe_cuda_graph.py578 except Exception:CODE
LOWliger_cute_kernels/test/test_moe_cuda_graph.py640 except Exception:CODE
LOWliger_cute_kernels/test/test_moe_cuda_graph.py738 except Exception:CODE
LOWliger_cute_kernels/test/test_moe_cuda_graph.py926 except Exception:CODE
LOWliger_cute_kernels/test/test_moe_cuda_graph.py1050 except Exception:CODE
LOWliger_cute_kernels/test/test_moe_cuda_graph.py1212 except Exception:CODE
LOWliger_cute_kernels/test/test_moe_cuda_graph.py1327 except Exception:CODE
LOWliger_cute_kernels/test/test_fslce_teams.py266 except Exception:CODE
LOWliger_cute_kernels/test/test_nvshmem.py364 except Exception:CODE
LOWliger_cute_kernels/test/test_nvshmem.py449 except Exception:CODE
LOWliger_cute_kernels/test/test_nvshmem.py453 except Exception:CODE
LOWtest/conftest.py42 except Exception:CODE
LOWtest/cute/test_moe_autograd.py294 except Exception:CODE
LOWtest/cute/test_fused_linear_scaled_cross_entropy_tp.py292 except Exception:CODE
LOWtest/cute/test_fused_linear_scaled_cross_entropy_tp.py296 except Exception:CODE
LOWtest/cute/test_moe.py255 except Exception:CODE
MEDIUMtest/backends/test_registry.py793def test_subclass_rejects_dispatch_kwargs(self, subclass_name, dispatch_kwarg):CODE
LOWtest/backends/test_registry.py796 except Exception as e:CODE
LOWtest/triton/test_triton_monkey_patch.py13 except Exception:CODE
MEDIUMtest/triton/test_triton_monkey_patch.py10def test_import_from_root():CODE
LOWtest/transformers/test_llama4_rope.py17except Exception:CODE
LOWtest/transformers/test_swiglu.py13except Exception:CODE
LOWtest/transformers/test_qwen2vl_mrope.py12except Exception:CODE
LOWtest/transformers/test_rms_norm.py14except Exception:CODE
MEDIUMtest/transformers/test_monkey_patch.py73def is_mllama_available():CODE
LOW⚡test/transformers/test_monkey_patch.py360 except Exception:CODE
LOWtest/transformers/test_monkey_patch.py561 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py684 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py781 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py878 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py946 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py1055 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py1164 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py1244 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py1319 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py1414 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py1459 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py1505 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py1602 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py1731 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py1813 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py1856 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py1905 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py1986 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py2068 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py2122 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py2162 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py2210 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py2269 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py2362 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py2461 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py2569 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py2653 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py2692 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py2779 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py2838 except Exception as e:CODE
LOWtest/transformers/test_monkey_patch.py2907 except Exception as e:CODE
72 more matches not shown…
Over-Commented Block104 hits · 98 pts
SeverityFileLineSnippetContext
LOWliger_cute_kernels/CMakeLists.txt1# ─────────────────────────────────────────────────────────────────────────────COMMENT
LOWliger_cute_kernels/csrc/core/CMakeLists.txt1# ─────────────────────────────────────────────────────────────────────────────COMMENT
LOWliger_cute_kernels/csrc/core/include/liger_cute/moe.h1// moe.h — flat MoE control ABI for liger_cute_kernels.so.COMMENT
LOW…ger_cute_kernels/csrc/core/include/liger_cute/export.h1// export.h — symbol-visibility control for liger_cute_kernels.COMMENT
LOW…cute_kernels/csrc/core/include/liger_cute/liger_cute.h1// liger_cute.h — public ABI of liger_cute_kernels.so.COMMENT
LOW…er_cute_kernels/csrc/core/include/liger_cute/nvshmem.h1// nvshmem.h — flat extern "C" ABI for NVSHMEM bootstrap, teams, and memory pools.COMMENT
LOW…er_cute_kernels/csrc/core/include/liger_cute/nvshmem.h21#include "liger_cute/export.h"COMMENT
LOW…er_cute_kernels/csrc/core/include/liger_cute/nvshmem.h41// describe the calling PE's position in the bootstrap group; `uid` must point toCOMMENT
LOW…er_cute_kernels/csrc/core/include/liger_cute/nvshmem.h81liger_cute_nvshmem_team_n_pes(int64_t team_handle, int* out);COMMENT
LOWliger_cute_kernels/csrc/core/include/liger_cute/check.h1// check.h — LIGER_CHECK: torch-free precondition/argument checks for the core.COMMENT
LOW…e_kernels/csrc/core/include/liger_cute/detail/status.h1// status.h — CORE-INTERNAL error reporting + the exception->status guard.COMMENT
LOW…csrc/core/include/liger_cute/detail/symmetric_memory.h1// symmetric_memory.h — CORE-INTERNAL symmetric/device allocators.COMMENT
LOW…r_cute_kernels/csrc/core/src/moe/moe_nonrdc_module.cpp1#include "moe_nonrdc_module.h"COMMENT
LOWliger_cute_kernels/csrc/core/src/moe/moe_launch.h1// moe_launch.h — internal POD argument bundles for the templated MoE launchers.COMMENT
LOW…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp1#pragma onceCOMMENT
LOW…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp21// LIGER_MOE_FWD_TUNE_CONFIGS_TM64 / _TM128COMMENT
LOW…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp41// - TileM ∈ {64, 128}; shared by MLP1 and MLP2.COMMENT
LOW…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp61// EpiChunkN values grouped per smem-shape twin:COMMENT
LOW…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp81// ~320-384 KiB, over the 228 KiB cap, so it fails the kernel'sCOMMENT
LOW…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp161// Candidate bank — rows not winning any shape in the last sweep.COMMENT
LOW…kernels/csrc/core/src/moe/moe_fwd_bwd_tune_configs.hpp181// X(6, 4, 128, 64, 4, 256, 128, 64, 2, 32, 64, 64, 2, 128) // NS=6 TM128 (Qwen3 I=768/TN1=128=6)COMMENT
LOW…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp1#pragma onceCOMMENT
LOW…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp21// LIGER_MOE_FWD_TUNE_CONFIGS_TM64 / _TM128COMMENT
LOW…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp41// - TileM ∈ {64, 128}; shared by MLP1 and MLP2.COMMENT
LOW…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp61// EpiChunkN values grouped per smem-shape twin:COMMENT
LOW…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp81// ~320-384 KiB, over the 228 KiB cap, so it fails the kernel'sCOMMENT
LOW…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp161// Candidate bank — rows not winning any shape in the last sweep.COMMENT
LOW…s/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm100.hpp181// X(6, 4, 128, 64, 4, 256, 128, 64, 2, 32, 64, 64, 2, 128) // NS=6 TM128 (Qwen3 I=768/TN1=128=6)COMMENT
LOW…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp1#pragma onceCOMMENT
LOW…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp21// LIGER_MOE_FWD_TUNE_CONFIGS_TM64 / _TM128COMMENT
LOW…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp41// - TileM ∈ {64, 128}; shared by MLP1 and MLP2.COMMENT
LOW…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp61// EpiChunkN values grouped per smem-shape twin:COMMENT
LOW…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp81// ~320-384 KiB, over the 228 KiB cap, so it fails the kernel'sCOMMENT
LOW…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp161#if defined(LIGER_CUTE_SM90_NONRDC_TARGET_MIXTRAL)COMMENT
LOW…ls/csrc/core/src/moe/moe_fwd_bwd_tune_configs_sm90.hpp181// X(/*NS=*/ 4, /*TN1=*/128, /*TK1=*/64, /*S1=*/4, /*EC1=*/64, /*TN2=*/128, /*TK2=*/64, /*S2=*/4, /*EC2=*/64, /*ZB=*/ 8,COMMENT
LOW…ger_cute_kernels/csrc/core/src/moe/tune/CMakeLists.txt1# ─────────────────────────────────────────────────────────────────────────────COMMENT
LOW…r_cute_kernels/liger_cute_kernels/tvm_ffi_bindings.cpp1#include <tvm/ffi/extra/c_env_api.h>COMMENT
LOWliger_cute_kernels/tests/cpp/test_moe_api_dispatch.cpp1#include <gtest/gtest.h>COMMENT
LOWliger_cute_kernels/tests/cpp/test_moe_api_dispatch.cpp61#define FWD_CONFIG_G_SM90(...) FWD_CONFIG_G_C(90, __VA_ARGS__)COMMENT
LOWliger_cute_kernels/tests/cpp/test_moe_api_dispatch.cpp81#undef FWD_CONFIG_G_CCOMMENT
LOWtest/convergence/bf16/test_mini_models_with_logits.py2301 1e-2,COMMENT
LOWtest/convergence/bf16/test_mini_models.py2441 # pytest.param(COMMENT
LOWtest/convergence/bf16/test_mini_models.py2481 marks=pytest.mark.skipif(not supports_bfloat16(), reason="bfloat16 not supported on this GPU"),COMMENT
LOWtest/transformers/test_mlp.py21COMMENT
LOWtest/ops/test_fused_linear_cross_entropy.py261# ``fused_linear_cross_entropy_forward``.COMMENT
LOWtest/ops/test_fused_linear_cross_entropy.py281# Fast-path capability gatesCOMMENT
LOWtest/megatron/test_monkey_patch.py841# fills the per-layer norm slots inside ``TransformerLayerSubmodules``.COMMENT
LOWtest/megatron/test_monkey_patch.py1281# 6. SwiGLU patch testsCOMMENT
LOWexamples/medusa/callback.py281 self.state.elapsed_tokens_seen / self.state.elapsed_time,COMMENT
LOWexamples/medusa/callback.py301 # total_flos = sum(current_flos) # across all GPUsCOMMENT
LOWexamples/medusa/train.py1# This code is based on tatsu-lab/stanford_alpaca. Below is the original copyright:COMMENT
LOWsrc/liger_kernel/backends/dispatch.py121COMMENT
LOWsrc/liger_kernel/transformers/functional.py481 # Learnable parameters (typically nn.Parameter in your model)COMMENT
LOWsrc/liger_kernel/transformers/model/pixtral.py1# Pixtral vision encoder does not require a custom forward function.COMMENT
LOWsrc/liger_kernel/ops/cross_entropy.py181 else:COMMENT
LOWsrc/liger_kernel/ops/cross_entropy.py301 # Original loss = H(q, p), with label smoothing regularization = H(q', p) and (label_smoothing / V) = epsCOMMENT
LOWsrc/liger_kernel/ops/fused_linear_cross_entropy.py81 if isinstance(chunk_mem_const, bool) or not isinstance(chunk_mem_const, int) or chunk_mem_const < 1:COMMENT
LOWsrc/liger_kernel/ops/fused_linear_jsd.py21# However, setting limit as 65536 as in LayerNorm tutorial is faster because of less register spillingCOMMENT
LOWsrc/liger_kernel/ops/fused_linear_jsd.py81COMMENT
LOWsrc/liger_kernel/ops/fused_linear_jsd.py121):COMMENT
44 more matches not shown…
Structural Annotation Overuse51 hits · 88 pts
SeverityFileLineSnippetContext
LOW.agents/skills/liger-kernel-dev/validator.md7### Step 1: Checkstyle (Fast Gate)COMMENT
LOW.agents/skills/liger-kernel-dev/validator.md21### Step 2: Unit Tests (Hard Gate)COMMENT
LOW⚡.agents/skills/liger-kernel-dev/validator.md42### Step 3: BenchmarksCOMMENT
LOW⚡.agents/skills/liger-kernel-dev/validator.md51### Step 4: Generate PlotsCOMMENT
LOW⚡.agents/skills/liger-kernel-dev/validator.md59### Step 5: Optional ncu ProfilingCOMMENT
LOW.agents/skills/liger-kernel-dev/validator.md78### Step 6: Report ResultsCOMMENT
LOW…ts/skills/liger-kernel-dev/templates/functional-api.md5### Step 1: Add ImportCOMMENT
LOW…ts/skills/liger-kernel-dev/templates/functional-api.md13### Step 2: Add FunctionCOMMENT
LOW.agents/skills/liger-autopatch/validator.md11### Step 1: Syntax CheckCOMMENT
LOW.agents/skills/liger-autopatch/validator.md17### Step 2: Instance Patching TestCOMMENT
LOW.agents/skills/liger-autopatch/validator.md32### Step 3: Convergence Tests (requires GPU)COMMENT
LOW.agents/skills/liger-autopatch/validator.md63### Step 4: CheckstyleCOMMENT
LOW⚡.agents/skills/liger-kernel-perf/optimizer.md182### Step 1: Swap In the VariantCOMMENT
LOW⚡.agents/skills/liger-kernel-perf/optimizer.md188### Step 2: Run a Minimal Correctness CheckCOMMENT
LOW⚡.agents/skills/liger-kernel-perf/optimizer.md196### Step 3: Interpret ResultsCOMMENT
LOW⚡.agents/skills/liger-kernel-perf/optimizer.md204### Step 4: Restore the OriginalCOMMENT
LOW⚡.agents/skills/liger-kernel-perf/optimizer.md226### Step 1: Swap In the VariantCOMMENT
LOW⚡.agents/skills/liger-kernel-perf/optimizer.md232### Step 2: Run the Full BenchmarkCOMMENT
LOW⚡.agents/skills/liger-kernel-perf/optimizer.md240### Step 3: Capture ResultsCOMMENT
LOW⚡.agents/skills/liger-kernel-perf/optimizer.md248### Step 4: Parse ResultsCOMMENT
LOW.agents/skills/liger-kernel-perf/optimizer.md259### Step 5: Restore the OriginalCOMMENT
LOW.agents/skills/liger-kernel-perf/profiler.md14### Step 1: Set Up WorkspaceCOMMENT
LOW.agents/skills/liger-kernel-perf/profiler.md20### Step 2: Detect GPU ArchitectureCOMMENT
LOW.agents/skills/liger-kernel-perf/profiler.md34### Step 3: Run Baseline BenchmarksCOMMENT
LOW.agents/skills/liger-kernel-perf/profiler.md48### Step 4: Check for NCU AvailabilityCOMMENT
LOW.agents/skills/liger-kernel-perf/profiler.md79### Step 5: Analyze Kernel CodeCOMMENT
LOW.agents/skills/liger-kernel-perf/profiler.md112### Step 6: Classify BottleneckCOMMENT
LOW.agents/skills/liger-kernel-perf/profiler.md130### Step 7: Produce Optimization ProfileCOMMENT
LOW.agents/skills/liger-kernel-perf/profiler.md144### Step 8: Present to User (Interactive Mode)COMMENT
LOW.agents/skills/liger-kernel-perf/finalizer.md35### Step 1: Validate Inputs and Read ContextCOMMENT
LOW.agents/skills/liger-kernel-perf/finalizer.md47### Step 2: Apply the Winning VariantCOMMENT
LOW.agents/skills/liger-kernel-perf/finalizer.md57### Step 3: Run the Full Test Suite (HARD GATE)COMMENT
LOW.agents/skills/liger-kernel-perf/finalizer.md99### Step 4: Run CheckstyleCOMMENT
LOW.agents/skills/liger-kernel-perf/finalizer.md125### Step 5: Generate Comparison PlotsCOMMENT
LOW.agents/skills/liger-kernel-perf/finalizer.md209### Step 6: Generate the Final Optimization ReportCOMMENT
LOW.agents/skills/liger-kernel-perf/finalizer.md247### Step 7: Create Pull RequestCOMMENT
LOW.agents/skills/liger-kernel-perf/finalizer.md362### Step 8: Present the Before/After SummaryCOMMENT
LOW⚡.github/workflows/benchmark.yml122 # Step 5: Checkout gh-pages branch in a subfolderAdd commentMore actionsCOMMENT
LOW⚡.github/workflows/benchmark.yml129 # Step 6: Copy benchmark CSV to gh-pages directoryCOMMENT
LOW.github/workflows/benchmark.yml152 # Step 7: Append commit hash to commits.txt if not already presentCOMMENT
LOW.github/workflows/benchmark.yml164 # Step 7: Commit and pushCOMMENT
LOW⚡src/liger_kernel/ops/grpo_loss.py709 # Step 1: Get per-token log probs using existing Triton kernelCOMMENT
LOW⚡src/liger_kernel/ops/grpo_loss.py712 # Step 2: Compute sequence-level importance weightsCOMMENT
LOWsrc/liger_kernel/ops/grpo_loss.py733 # Step 3: Run Triton kernel with pre-computed coefficientsCOMMENT
LOWsrc/liger_kernel/ops/backends/README.md61### Step 1: Create the directoryCOMMENT
LOWsrc/liger_kernel/ops/backends/README.md69### Step 2: Register the implementationCOMMENT
LOWsrc/liger_kernel/ops/backends/README.md88### Step 3: Ensure device detection worksCOMMENT
LOWsrc/liger_kernel/ops/backends/README.md103### Step 4: Implement the operatorsCOMMENT
LOWsrc/liger_kernel/ops/backends/README.md122### Step 5: Export from `ops/__init__.py`COMMENT
LOWsrc/liger_kernel/chunked_loss/fused_linear_ppo.py299 # Step 1: compute logprobs OUTSIDE compile (custom autograd, memory-efficient)COMMENT
LOWsrc/liger_kernel/chunked_loss/fused_linear_ppo.py319 # Step 2: compute loss INSIDE compile (just math, torch.compile-friendly)COMMENT
Cross-Language Confusion10 hits · 40 pts
SeverityFileLineSnippetContext
HIGHtest/ops/test_jsd.py54 loss = beta * KL(P || M) + (1 - beta) * KL(Q || M)STRING
HIGHsrc/liger_kernel/functional.py293 JSD_\\beta(P || Q) = \\beta \\cdot KL(P || M) + (1 - \\beta) \\cdot KL(Q || M),STRING
HIGHsrc/liger_kernel/transformers/jsd.py11 JSD(\beta)(P || Q)CODE
HIGHsrc/liger_kernel/transformers/jsd.py17 This differs from the standard mathematical notation :math:`JSD(P || Q)` whereCODE
HIGHsrc/liger_kernel/ops/jsd.py145 JSD(\beta)(P || Q)CODE
HIGHsrc/liger_kernel/ops/jsd.py152 This differs from the standard mathematical notation :math:`JSD(P || Q)` whereCODE
HIGHsrc/liger_kernel/ops/fused_linear_kl_div.py335 target (torch.tensor): target distribution with shape (BT, V), expected to be probabilities. Computes KL(tarSTRING
HIGHsrc/liger_kernel/ops/backends/_ascend/ops/jsd.py174 JSD(\beta)(P || Q)CODE
HIGHsrc/liger_kernel/ops/backends/_ascend/ops/jsd.py181 This differs from the standard mathematical notation :math:`JSD(P || Q)` whereCODE
HIGHsrc/liger_kernel/ops/cutile/ops/kl_div.py8Computes KL(y_true || y_pred) where y_pred is in log-space.STRING
AI Slop Vocabulary14 hits · 40 pts
SeverityFileLineSnippetContext
LOWbenchmark/scripts/benchmark_embedding.py24# NOTE: For torch compile, we will just use default inductor settings. No further customizationCOMMENT
LOWliger_cute_kernels/liger_cute_kernels/nvshmem.py300 # (collective) split — just return NVSHMEM_TEAM_WORLD. Avoids creating a teamCOMMENT
MEDIUMliger_cute_kernels/test/test_moe_cuda_graph.py262# ── distributed harness (file-based rendezvous, like test_nvshmem.py) ─────────COMMENT
MEDIUMliger_cute_kernels/test/test_nvshmem.py264# ── Distributed harness ──────────────────────────────────────────────────────COMMENT
LOWtest/megatron/test_monkey_patch.py694 # Skip Liger kernel — just return a CPU-friendly tensor in the right shape.COMMENT
MEDIUMsrc/liger_kernel/triton/monkey_patch.py20 # use temp dir to be robust against program interruptionsCOMMENT
MEDIUMsrc/liger_kernel/transformers/monkey_patch.py1511 # also drop the MagicMock the test harness substitutes forCOMMENT
MEDIUMsrc/liger_kernel/ops/cutedsl/ops/rms_norm.py855 # across steps (weights always; activations under a reused-buffer harness), so theyCOMMENT
MEDIUM⚡src/liger_kernel/ops/backends/_cutedsl/softmax.py96# harness auto-skips for wider rows rather than failing inside a launch.COMMENT
MEDIUM⚡src/liger_kernel/ops/backends/_cutedsl/rms_norm.py126# so the test harness auto-skips for wider rows.COMMENT
MEDIUMsrc/liger_kernel/ops/backends/_ascend/ops/softmax.py243 # Calculate optimal ROWS_PER_BLOCK to utilize UB efficientlyCOMMENT
MEDIUMsrc/liger_kernel/chunked_loss/dpo_loss.py98 # cDPO / robust loss: assumes a fraction `label_smoothing` of preference labels are flipped.COMMENT
MEDIUM…ernel/chunked_loss/fused_linear_unpaired_preference.py66 # TODO: Tune CHUNK_SIZE to fully utilize the GPUCOMMENT
MEDIUM…c/liger_kernel/chunked_loss/fused_linear_preference.py70 # TODO: Tune CHUNK_SIZE to fully utilize the GPUCOMMENT
Modern Structural Boilerplate37 hits · 38 pts
SeverityFileLineSnippetContext
LOWliger_cute_kernels/liger_cute_kernels/__init__.py29__all__ = ["FusedLinearCrossEntropyConfig", "MoEConfig", "UnsupportedDeviceError", "configure"]CODE
LOWliger_cute_kernels/liger_cute_kernels/nvshmem.py30__all__ = [CODE
LOWsrc/liger_kernel/__init__.py22__all__ = [CODE
LOWsrc/liger_kernel/functional.py749__all__ = [CODE
LOWsrc/liger_kernel/backends/registry.py65logger = logging.getLogger(__name__)CODE
LOWsrc/liger_kernel/backends/dispatch.py45logger = logging.getLogger(__name__)CODE
LOW⚡src/liger_kernel/backends/dispatch.py108def set_impl(name: Optional[str]) -> None:CODE
LOWsrc/liger_kernel/backends/__init__.py59__all__ = [CODE
LOWsrc/liger_kernel/backends/capability.py39logger = logging.getLogger(__name__)CODE
LOWsrc/liger_kernel/testing/__init__.py26__all__ = [CODE
LOWsrc/liger_kernel/transformers/auto_model.py10logger = logging.getLogger(__name__)CODE
LOWsrc/liger_kernel/transformers/__init__.py186__all__ = [CODE
LOWsrc/liger_kernel/transformers/monkey_patch.py54logger = logging.getLogger(__name__)CODE
LOWsrc/liger_kernel/transformers/moe.py42__all__ = ["LigerExpertParallelFusedMoe"]CODE
LOWsrc/liger_kernel/transformers/experimental/__init__.py3__all__ = [CODE
LOWsrc/liger_kernel/transformers/model/gemma2.py15logger = logging.getLogger(__name__)CODE
LOWsrc/liger_kernel/ops/configure.py23__all__ = ["configure", "FusedLinearCrossEntropyConfig", "MoEConfig"]CODE
LOW…/liger_kernel/ops/fused_linear_scaled_cross_entropy.py439__all__ = [CODE
LOWsrc/liger_kernel/ops/_nvidia_shared.py25__all__ = [CODE
LOWsrc/liger_kernel/ops/cute/__init__.py59__all__ = ["is_available"]CODE
LOW…ernel/ops/cute/fused_linear_scaled_cross_entropy_tp.py229__all__ = ["LigerFusedLinearScaledCrossEntropyNativeTPFunction", "is_available"]CODE
LOWsrc/liger_kernel/ops/cute/ops/__init__.py14__all__ = [CODE
LOWsrc/liger_kernel/ops/cute/ops/moe.py25__all__ = ["LigerExpertParallelFusedMoEFunction", "moe_fused"]CODE
LOW…nel/ops/cutedsl/ops/fused_linear_cross_entropy_sm90.py264__all__ = [CODE
LOWsrc/liger_kernel/ops/cutedsl/ops/__init__.py38__all__ = [CODE
LOW…nel/ops/cutedsl/ops/fused_scaled_cross_entropy_sm90.py325__all__ = [CODE
LOW…ops/_fused_scaled_cross_entropy_backward_fused_sm90.py2169__all__ = [CODE
LOWsrc/liger_kernel/ops/cutedsl/ops/rope.py1014__all__ = [CODE
LOWsrc/liger_kernel/ops/cutedsl/ops/_sm100_gemm.py102__all__ = [CODE
LOW…tedsl/ops/_fused_linear_cross_entropy_backward_sm90.py108__all__ = ["flce_dx", "flce_dw"]CODE
LOW…ger_kernel/ops/backends/_cutedsl/_cute_lib/__init__.py26__all__ = [CODE
LOWsrc/liger_kernel/ops/backends/_ascend/ops/__init__.py90__all__ = [CODE
LOW…er_kernel/ops/cutile/ops/fused_linear_cross_entropy.py464__all__ = [CODE
LOWsrc/liger_kernel/ops/cutile/ops/__init__.py55__all__ = [CODE
LOWsrc/liger_kernel/megatron/__init__.py30__all__ = [CODE
LOWsrc/liger_kernel/megatron/monkey_patch.py8logger = logging.getLogger(__name__)CODE
LOWsrc/liger_kernel/megatron/swiglu.py47logger = logging.getLogger(__name__)CODE
Self-Referential Comments12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMbenchmark/scripts/benchmark_tiled_mlp.py148 # Define the MLP forward function for DeepSpeed TiledMLPCOMMENT
MEDIUMexamples/medusa/medusa_util.py109 # Create a list of Medusa headsCOMMENT
MEDIUMexamples/medusa/train.py282 # Create the train and eval datasetsCOMMENT
MEDIUM…ernel/ops/backends/_cutedsl/_cute_lib/compile_utils.py1# This file contains code adapted from QuackCOMMENT
MEDIUM…kernel/ops/backends/_cutedsl/_cute_lib/layout_utils.py1# This file contains code adapted from QuackCOMMENT
MEDIUM…_kernel/ops/backends/_cutedsl/_cute_lib/rmsnorm_fwd.py1# This file contains code adapted from QuackCOMMENT
MEDIUM…liger_kernel/ops/backends/_cutedsl/_cute_lib/reduce.py1# This file contains code adapted from QuackCOMMENT
MEDIUM…r_kernel/ops/backends/_cutedsl/_cute_lib/copy_utils.py1# This file contains code adapted from QuackCOMMENT
MEDIUM…ger_kernel/ops/backends/_cutedsl/_cute_lib/__init__.py1# This file contains code adapted from QuackCOMMENT
MEDIUM…rnel/ops/backends/_cutedsl/_cute_lib/reduction_base.py1# This file contains code adapted from QuackCOMMENT
MEDIUM…/liger_kernel/ops/backends/_cutedsl/_cute_lib/utils.py1# This file contains code adapted from QuackCOMMENT
MEDIUM…er_kernel/ops/backends/_cutedsl/_cute_lib/dtype_map.py1# This file contains code adapted from QuackCOMMENT
Verbosity Indicators9 hits · 16 pts
SeverityFileLineSnippetContext
LOW⚡.github/workflows/benchmark.yml122 # Step 5: Checkout gh-pages branch in a subfolderAdd commentMore actionsCOMMENT
LOW⚡.github/workflows/benchmark.yml129 # Step 6: Copy benchmark CSV to gh-pages directoryCOMMENT
LOW.github/workflows/benchmark.yml152 # Step 7: Append commit hash to commits.txt if not already presentCOMMENT
LOW.github/workflows/benchmark.yml164 # Step 7: Commit and pushCOMMENT
LOW⚡src/liger_kernel/ops/grpo_loss.py709 # Step 1: Get per-token log probs using existing Triton kernelCOMMENT
LOW⚡src/liger_kernel/ops/grpo_loss.py712 # Step 2: Compute sequence-level importance weightsCOMMENT
LOWsrc/liger_kernel/ops/grpo_loss.py733 # Step 3: Run Triton kernel with pre-computed coefficientsCOMMENT
LOWsrc/liger_kernel/chunked_loss/fused_linear_ppo.py299 # Step 1: compute logprobs OUTSIDE compile (custom autograd, memory-efficient)COMMENT
LOWsrc/liger_kernel/chunked_loss/fused_linear_ppo.py319 # Step 2: compute loss INSIDE compile (just math, torch.compile-friendly)COMMENT
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHbenchmark/benchmarks_visualizer.py270Loads the benchmark data from the CSV file and filters it based on the configuration. Applies filters in order: kerSTRING
HIGHsrc/liger_kernel/ops/backends/registry.py75 Select the implementation for the current device. Args: device: Device type from ``infer_device()`` (eSTRING
HIGHsrc/liger_kernel/ops/backends/_ascend/ub_manager.py260 Compute tiling strategy using the default strategy function. This function directly calls the default strategySTRING
Redundant / Tautological Comments10 hits · 15 pts
SeverityFileLineSnippetContext
LOWtest/utils.py163 # Check if the shapes of the tensors matchCOMMENT
LOWtest/utils.py195 # Check if all elements are closeCOMMENT
LOWtest/transformers/test_swiglu.py493 # Check if gradients are close for xCOMMENT
LOWtest/transformers/test_mm_int8int2.py62 # Print the results (optional, can be commented out)COMMENT
LOWtest/transformers/test_mm_int8int2.py66 # Check if outputs are close within the given tolerancesCOMMENT
LOWtest/transformers/test_monkey_patch.py72# Check if optional modules are availableCOMMENT
LOWexamples/medusa/train.py170 # Set everything to be ignored, except the assistant partCOMMENT
LOWsrc/liger_kernel/transformers/__init__.py96# Check if 'transformers' is installedCOMMENT
LOWsrc/liger_kernel/transformers/monkey_patch.py72 # Check if the module is a PEFT ModulesToSaveWrapperCOMMENT
LOWsrc/liger_kernel/transformers/monkey_patch.py135 # Check if the module is a PEFT ModulesToSaveWrapperCOMMENT
Slop Phrases5 hits · 5 pts
SeverityFileLineSnippetContext
LOWsrc/liger_kernel/transformers/model/qwen3_moe.py134 loss += self.router_aux_loss_coef * aux_loss.to(loss.device) # make sure to reside in the same deviceCODE
LOWsrc/liger_kernel/transformers/model/qwen3_5_moe.py137 loss += self.router_aux_loss_coef * aux_loss.to(loss.device) # make sure to reside in the same deviceCODE
LOWsrc/liger_kernel/transformers/model/gpt_oss.py205 loss += self.router_aux_loss_coef * aux_loss.to(loss.device) # make sure to reside in the same deviceCODE
LOWsrc/liger_kernel/transformers/model/qwen3_next.py135 loss += self.router_aux_loss_coef * aux_loss.to(loss.device) # make sure to reside in the same deviceCODE
LOWsrc/liger_kernel/transformers/model/mixtral.py144 loss += self.router_aux_loss_coef * aux_loss.to(loss.device) # make sure to reside in the same deviceCODE
Modern AI Meta-Vocabulary1 hit · 4 pts
SeverityFileLineSnippetContext
MEDIUM⚡…s/backends/_ascend/ops/fused_neighborhood_attention.py1821# Backward orchestrationCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtest/resources/scripts/generate_tokenized_dataset.py39 # Example usage:COMMENT