Efficient Triton Kernels for LLM Training
This report presents the forensic synthetic code analysis of linkedin/Liger-Kernel, a Python project with 6,542 GitHub stars. SynthScan v2.0 examined 112,531 lines of code across 409 source files, recording 1621 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 21.4 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1621 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | benchmark/scripts/benchmark_model_configs.py | 122 | # ── MoE Model Profiles ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | benchmark/scripts/benchmark_model_configs.py | 134 | # ── Dense Model Profiles ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | benchmark/scripts/benchmark_model_configs.py | 579 | # --------------------------------------- | COMMENT |
| MEDIUM | benchmark/scripts/benchmark_model_configs.py | 581 | # --------------------------------------- | COMMENT |
| MEDIUM | benchmark/scripts/benchmark_fused_moe.py | 34 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | benchmark/scripts/benchmark_fused_moe.py | 37 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | benchmark/scripts/benchmark_fused_moe.py | 64 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | benchmark/scripts/benchmark_fused_moe.py | 66 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | benchmark/scripts/benchmark_fused_moe.py | 84 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | benchmark/scripts/benchmark_fused_moe.py | 86 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | benchmark/scripts/benchmark_fused_moe.py | 130 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | benchmark/scripts/benchmark_fused_moe.py | 132 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | benchmark/scripts/benchmark_fused_moe.py | 170 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | benchmark/scripts/benchmark_fused_moe.py | 172 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/utils.py | 34 | # ============================================================================= | COMMENT |
| MEDIUM | test/utils.py | 36 | # ============================================================================= | COMMENT |
| MEDIUM | test/transformers/test_utils.py | 24 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/transformers/test_utils.py | 26 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/transformers/test_utils.py | 105 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/transformers/test_utils.py | 107 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/transformers/test_utils.py | 148 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/transformers/test_utils.py | 150 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/transformers/test_cutedsl_cross_entropy.py | 206 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | test/transformers/test_cutedsl_cross_entropy.py | 208 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | test/transformers/test_cutedsl_cross_entropy.py | 360 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | test/transformers/test_cutedsl_cross_entropy.py | 365 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | test/transformers/test_cutedsl_cross_entropy.py | 382 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | test/transformers/test_cutedsl_cross_entropy.py | 386 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | test/transformers/test_cutedsl_cross_entropy.py | 499 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | test/transformers/test_cutedsl_cross_entropy.py | 501 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | test/transformers/test_cutedsl_cross_entropy.py | 528 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | test/transformers/test_cutedsl_cross_entropy.py | 533 | # ============================================================================= | COMMENT |
| MEDIUM | test/transformers/test_cutedsl_cross_entropy.py | 45 | # ============================================================================= | COMMENT |
| MEDIUM | test/transformers/test_cutedsl_cross_entropy.py | 47 | # ============================================================================= | COMMENT |
| MEDIUM | test/transformers/test_cutedsl_cross_entropy.py | 73 | # ============================================================================= | COMMENT |
| MEDIUM | test/transformers/test_cutedsl_cross_entropy.py | 75 | # ============================================================================= | COMMENT |
| MEDIUM | test/transformers/test_cutedsl_cross_entropy.py | 556 | # ============================================================================= | COMMENT |
| MEDIUM | test/transformers/test_cutedsl_cross_entropy.py | 562 | # ============================================================================= | COMMENT |
| MEDIUM | test/transformers/test_geglu.py | 270 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/transformers/test_geglu.py | 272 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/transformers/test_fused_moe.py | 27 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/transformers/test_fused_moe.py | 29 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/transformers/test_fused_moe.py | 69 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/transformers/test_fused_moe.py | 71 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/transformers/test_fused_moe.py | 114 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/transformers/test_fused_moe.py | 116 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/transformers/test_fused_moe.py | 168 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/transformers/test_fused_moe.py | 170 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/transformers/test_cutedsl_rms_norm.py | 42 | # ============================================================================= | COMMENT |
| MEDIUM | test/transformers/test_cutedsl_rms_norm.py | 44 | # ============================================================================= | COMMENT |
| MEDIUM | test/transformers/test_cutedsl_rms_norm.py | 61 | # ============================================================================= | COMMENT |
| MEDIUM | test/transformers/test_cutedsl_rms_norm.py | 63 | # ============================================================================= | COMMENT |
| MEDIUM | test/transformers/test_cutedsl_rms_norm.py | 77 | # ============================================================================= | COMMENT |
| MEDIUM | test/transformers/test_cutedsl_rms_norm.py | 79 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | test/megatron/test_cross_entropy.py | 284 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | test/megatron/test_cross_entropy.py | 286 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | test/megatron/test_cross_entropy.py | 347 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | test/megatron/test_cross_entropy.py | 349 | # =========================================================================== | COMMENT |
| MEDIUM | test/megatron/test_cross_entropy.py | 48 | # =========================================================================== | COMMENT |
| MEDIUM | test/megatron/test_cross_entropy.py | 50 | # =========================================================================== | COMMENT |
| 202 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 31 | def get_optional_dependencies(): | CODE |
| LOW | benchmark/BENCHMARK_GUIDELINES.md | 113 | def _resolve_model_config_geglu(input: SingleBenchmarkRunInput): | CODE |
| LOW | benchmark/BENCHMARK_GUIDELINES.md | 133 | def bench_speed_geglu_model_config(input): | CODE |
| LOW | …mark/scripts/benchmark_sparse_multi_token_attention.py | 74 | def _setup_sparse_multi_token_attention(input: SingleBenchmarkRunInput): | CODE |
| LOW | …mark/scripts/benchmark_sparse_multi_token_attention.py | 131 | def bench_speed_sparse_multi_token_attention(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | …mark/scripts/benchmark_sparse_multi_token_attention.py | 161 | def bench_memory_sparse_multi_token_attention(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | …mark/scripts/benchmark_sparse_multi_token_attention.py | 176 | def _resolve_model_config_sparse_multi_token_attention(input: SingleBenchmarkRunInput): | CODE |
| LOW | …mark/scripts/benchmark_sparse_multi_token_attention.py | 196 | def bench_speed_sparse_multi_token_attention_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | …mark/scripts/benchmark_sparse_multi_token_attention.py | 226 | def bench_memory_sparse_multi_token_attention_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_modulated_rms_norm.py | 28 | def _setup_modulated_rms_norm(input: SingleBenchmarkRunInput): | CODE |
| LOW⚡ | benchmark/scripts/benchmark_modulated_rms_norm.py | 60 | def bench_speed_modulated_rms_norm(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW⚡ | benchmark/scripts/benchmark_modulated_rms_norm.py | 67 | def bench_memory_modulated_rms_norm(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW⚡ | benchmark/scripts/benchmark_modulated_rms_norm.py | 72 | def _resolve_model_config_modulated_rms_norm(input: SingleBenchmarkRunInput): | CODE |
| LOW | benchmark/scripts/benchmark_modulated_rms_norm.py | 89 | def bench_speed_modulated_rms_norm_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_modulated_rms_norm.py | 96 | def bench_memory_modulated_rms_norm_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_mhc.py | 158 | def _resolve_model_config_mhc(input: SingleBenchmarkRunInput): | CODE |
| LOW | benchmark/scripts/benchmark_mhc.py | 182 | def bench_speed_mhc_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_mhc.py | 208 | def bench_memory_mhc_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_grpo_loss_kernel.py | 141 | def bench_memory_grpo_loss_kernel( | CODE |
| LOW | benchmark/scripts/benchmark_grpo_loss_kernel.py | 197 | def bench_speed_grpo_loss_kernel( | CODE |
| LOW | benchmark/scripts/benchmark_tiled_mlp.py | 282 | def _resolve_model_config_tiled_mlp(input: SingleBenchmarkRunInput): | CODE |
| LOW | benchmark/scripts/benchmark_tiled_mlp.py | 303 | def bench_speed_tiled_mlp_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_tiled_mlp.py | 345 | def bench_memory_tiled_mlp_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_tiled_mlp.py | 379 | def _run_tiled_mlp_benchmarks(args, activation_type, hidden_act, kernel_name): | CODE |
| LOW | benchmark/scripts/benchmark_mhc_lm.py | 370 | def _resolve_model_config_mhc_lm(input: SingleBenchmarkRunInput): | CODE |
| LOW | benchmark/scripts/benchmark_mhc_lm.py | 393 | def bench_speed_mhc_lm_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_mhc_lm.py | 419 | def bench_memory_mhc_lm_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/utils.py | 232 | def get_current_file_directory() -> str: | CODE |
| LOW | benchmark/scripts/utils.py | 254 | def _print_benchmarking_banner(metric_name: str, kernel_name: str): | CODE |
| LOW | benchmark/scripts/utils.py | 276 | def update_benchmark_data_csv( | CODE |
| LOW | benchmark/scripts/utils.py | 471 | def parse_benchmark_script_args(): | CODE |
| LOW | …mark/scripts/benchmark_fused_neighborhood_attention.py | 59 | def _create_neighborhood_mask(self, seq_len: int, device: torch.device) -> torch.Tensor: | CODE |
| LOW | …mark/scripts/benchmark_fused_neighborhood_attention.py | 103 | def _setup_fused_neighborhood_attention(input: SingleBenchmarkRunInput): | CODE |
| LOW | …mark/scripts/benchmark_fused_neighborhood_attention.py | 166 | def bench_speed_fused_neighborhood_attention(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | …mark/scripts/benchmark_fused_neighborhood_attention.py | 202 | def bench_memory_fused_neighborhood_attention(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | …mark/scripts/benchmark_fused_neighborhood_attention.py | 217 | def _resolve_model_config_fused_neighborhood_attention(input: SingleBenchmarkRunInput): | CODE |
| LOW | …mark/scripts/benchmark_fused_neighborhood_attention.py | 238 | def bench_speed_fused_neighborhood_attention_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | …mark/scripts/benchmark_fused_neighborhood_attention.py | 272 | def bench_memory_fused_neighborhood_attention_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_distill_cosine_loss.py | 88 | def setup_distill_cosine_loss(input: SingleBenchmarkRunInput): | CODE |
| LOW | benchmark/scripts/benchmark_model_configs.py | 239 | def get_benchmark_model_config(model_name: Optional[str] = None) -> ModelConfig: | CODE |
| LOW | benchmark/scripts/benchmark_model_configs.py | 253 | def estimate_kernel_peak_memory(probe_fn: Callable[[], torch.Tensor]) -> int: | CODE |
| LOW | benchmark/scripts/benchmark_model_configs.py | 322 | def compute_seq_len_sweep_config( | CODE |
| LOW | benchmark/scripts/benchmark_model_configs.py | 381 | def compute_model_config_sweep_config( | CODE |
| LOW | …chmark/scripts/benchmark_fused_linear_cross_entropy.py | 50 | def setup_fused_linear_cross_entropy(input: SingleBenchmarkRunInput): | CODE |
| LOW | benchmark/scripts/benchmark_megatron_rms_norm.py | 89 | def bench_speed_megatron_rms_norm(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_megatron_rms_norm.py | 128 | def bench_memory_megatron_rms_norm(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_multi_token_attention.py | 48 | def _setup_multi_token_attention(input: SingleBenchmarkRunInput): | CODE |
| LOW | benchmark/scripts/benchmark_multi_token_attention.py | 101 | def bench_speed_multi_token_attention(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_multi_token_attention.py | 131 | def bench_memory_multi_token_attention(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_multi_token_attention.py | 147 | def _resolve_model_config_multi_token_attention(input: SingleBenchmarkRunInput): | CODE |
| LOW | benchmark/scripts/benchmark_multi_token_attention.py | 168 | def bench_speed_multi_token_attention_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | benchmark/scripts/benchmark_multi_token_attention.py | 198 | def bench_memory_multi_token_attention_model_config(input: SingleBenchmarkRunInput) -> SingleBenchmarkRunOutput: | CODE |
| LOW | test/utils.py | 278 | def load_image_processing_config(config_path: str) -> dict: | CODE |
| LOW | test/utils.py | 335 | def revert_liger_kernel_to_granite(model_config: MiniModelConfig): | CODE |
| LOW | test/utils.py | 347 | def revert_liger_kernel_to_llama(model_config: MiniModelConfig): | CODE |
| LOW | test/utils.py | 371 | def revert_liger_kernel_to_mllama(model_config: MiniModelConfig, model_type: str = "causal_lm"): | CODE |
| LOW | test/utils.py | 417 | def revert_liger_kernel_to_ministral(model_config: MiniModelConfig): | CODE |
| LOW | test/utils.py | 429 | def revert_liger_kernel_to_mistral(model_config: MiniModelConfig): | CODE |
| LOW | test/utils.py | 441 | def revert_liger_kernel_to_mixtral(model_config: MiniModelConfig): | CODE |
| LOW | test/utils.py | 453 | def revert_liger_kernel_to_gemma(model_config: MiniModelConfig): | CODE |
| 523 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/scripts/benchmark_megatron_cross_entropy.py | 32 | CODE | |
| LOW | test/convergence/fp32/test_mini_models_multimodal.py | 306 | CODE | |
| LOW | test/convergence/bf16/test_mini_models_multimodal.py | 278 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 287 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 288 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 289 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 290 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 291 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 292 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 293 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 294 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 295 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 296 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 297 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 298 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 299 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 300 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 301 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 302 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 303 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 304 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 305 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 306 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 307 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 308 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 309 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 310 | CODE | |
| LOW | test/transformers/test_trainer_integration.py | 6 | CODE | |
| LOW | test/transformers/test_transformers.py | 6 | CODE | |
| LOW | test/transformers/test_transformers.py | 7 | CODE | |
| LOW | test/transformers/test_transformers.py | 8 | CODE | |
| LOW | test/transformers/test_transformers.py | 9 | CODE | |
| LOW | test/transformers/test_transformers.py | 10 | CODE | |
| LOW | test/transformers/test_transformers.py | 11 | CODE | |
| LOW | test/transformers/test_transformers.py | 12 | CODE | |
| LOW | test/transformers/test_transformers.py | 13 | CODE | |
| LOW | test/transformers/test_transformers.py | 14 | CODE | |
| LOW | test/transformers/test_transformers.py | 15 | CODE | |
| LOW | test/megatron/test_cross_entropy.py | 26 | CODE | |
| LOW | examples/megatron/run_mode2_hand_spec.py | 32 | CODE | |
| LOW | examples/megatron/run_mode1_monkey_patch.py | 28 | CODE | |
| LOW | src/liger_kernel/utils.py | 2 | CODE | |
| LOW | src/liger_kernel/triton/__init__.py | 1 | CODE | |
| LOW | …er_kernel/transformers/vocab_parallel_cross_entropy.py | 28 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 6 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 7 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 8 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 9 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 10 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 11 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 12 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 13 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 14 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 15 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 16 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 17 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 18 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 19 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 20 | CODE | |
| LOW | src/liger_kernel/transformers/__init__.py | 21 | CODE | |
| 260 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | benchmark/scripts/benchmark_rms_norm.py | 0 | create input tensor and layer from benchmark config. | STRING |
| HIGH | benchmark/scripts/benchmark_swiglu.py | 0 | create input tensor and layer from benchmark config. | STRING |
| HIGH | benchmark/scripts/benchmark_geglu.py | 0 | create input tensor and layer from benchmark config. | STRING |
| HIGH | benchmark/scripts/benchmark_layer_norm.py | 0 | create input tensor and layer from benchmark config. | STRING |
| HIGH | benchmark/scripts/benchmark_dyt.py | 0 | create input tensor and layer from benchmark config. | STRING |
| HIGH | benchmark/scripts/benchmark_group_norm.py | 0 | create input tensor and layer from benchmark config. | STRING |
| HIGH | benchmark/scripts/benchmark_poly_norm.py | 0 | create input tensor and layer from benchmark config. | STRING |
| HIGH | .agents/skills/liger-kernel-dev/templates/benchmark.md | 0 | create input tensor and layer from benchmark config. | STRING |
| HIGH | test/convergence/fp32/test_mini_models_multimodal.py | 0 | create a mini version model the commented values are the original values | STRING |
| HIGH | test/convergence/fp32/test_mini_models_with_logits.py | 0 | create a mini version model the commented values are the original values | STRING |
| HIGH | test/convergence/fp32/test_mini_models.py | 0 | create a mini version model the commented values are the original values | STRING |
| HIGH | test/convergence/bf16/test_mini_models_multimodal.py | 0 | create a mini version model the commented values are the original values | STRING |
| HIGH | test/convergence/bf16/test_mini_models_with_logits.py | 0 | create a mini version model the commented values are the original values | STRING |
| HIGH | test/convergence/bf16/test_mini_models.py | 0 | create a mini version model the commented values are the original values | STRING |
| HIGH | src/liger_kernel/transformers/model/olmo3.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/mistral.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/olmo2.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/ministral.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/qwen3_moe.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/nemotron.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/llama.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/qwen3_5.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/gemma2.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/glm4.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/hunyuan_v1.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/qwen3_5_moe.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/gemma3.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/gemma.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/qwen3_next.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/qwen3.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/qwen2.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/smollm3.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/mixtral.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/exaone4.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/qwen2_vl.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/qwen2_5_vl.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | src/liger_kernel/transformers/model/qwen3_vl.py | 0 | labels (`torch.longtensor` of shape `(batch_size, sequence_length)`, *optional*): labels for computing the masked langua | STRING |
| HIGH | …ops/backends/_ascend/ops/fused_linear_cross_entropy.py | 0 | calculate optimal block size using compute_default_tiling_strategy | STRING |
| HIGH | src/liger_kernel/ops/backends/_ascend/ops/jsd.py | 0 | calculate optimal block size using compute_default_tiling_strategy | STRING |
| HIGH | src/liger_kernel/ops/backends/_ascend/ops/dyt.py | 0 | calculate optimal block size using compute_default_tiling_strategy | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …mark/scripts/benchmark_fused_neighborhood_attention.py | 100 | CODE | |
| LOW | benchmark/scripts/benchmark_model_configs.py | 448 | CODE | |
| LOW | benchmark/scripts/benchmark_model_configs.py | 525 | CODE | |
| LOW | test/transformers/test_flex_attention.py | 118 | CODE | |
| LOW | test/transformers/test_cutedsl_cross_entropy.py | 76 | CODE | |
| LOW | test/transformers/test_cutedsl_cross_entropy.py | 115 | CODE | |
| LOW | test/transformers/test_fused_neighborhood_attention.py | 435 | CODE | |
| LOW | test/transformers/test_fused_neighborhood_attention.py | 93 | CODE | |
| LOW | test/transformers/test_fused_neighborhood_attention.py | 225 | CODE | |
| LOW | test/transformers/test_poly_norm.py | 78 | CODE | |
| LOW | test/transformers/test_fused_linear_cross_entropy.py | 37 | CODE | |
| LOW | test/transformers/test_fused_linear_cross_entropy.py | 71 | CODE | |
| LOW | test/chunked_loss/test_dpo_loss.py | 636 | CODE | |
| LOW | test/chunked_loss/test_grpo_loss.py | 35 | CODE | |
| LOW | test/chunked_loss/test_grpo_loss.py | 81 | CODE | |
| LOW | test/chunked_loss/test_grpo_loss.py | 294 | CODE | |
| LOW | examples/medusa/medusa_util.py | 130 | CODE | |
| LOW | src/liger_kernel/transformers/fsdp.py | 50 | CODE | |
| LOW | src/liger_kernel/transformers/cross_entropy.py | 10 | CODE | |
| LOW | …iger_kernel/transformers/fused_linear_cross_entropy.py | 10 | CODE | |
| LOW | src/liger_kernel/transformers/grpo_loss.py | 9 | CODE | |
| LOW | src/liger_kernel/transformers/functional.py | 44 | CODE | |
| LOW | src/liger_kernel/transformers/functional.py | 81 | CODE | |
| LOW | …er_kernel/transformers/fused_neighborhood_attention.py | 114 | CODE | |
| LOW | …er_kernel/transformers/fused_neighborhood_attention.py | 193 | CODE | |
| LOW | …er_kernel/transformers/fused_neighborhood_attention.py | 204 | CODE | |
| LOW | src/liger_kernel/transformers/model/olmo3.py | 15 | CODE | |
| LOW | src/liger_kernel/transformers/model/phi3.py | 15 | CODE | |
| LOW | src/liger_kernel/transformers/model/internvl.py | 17 | CODE | |
| LOW | src/liger_kernel/transformers/model/qwen2_vl.py | 34 | CODE | |
| LOW | src/liger_kernel/transformers/model/llama4.py | 15 | CODE | |
| LOW | src/liger_kernel/transformers/model/qwen3_vl_moe.py | 17 | CODE | |
| LOW | src/liger_kernel/transformers/model/mistral.py | 15 | CODE | |
| LOW | src/liger_kernel/transformers/model/deepseek_v4.py | 10 | CODE | |
| LOW | src/liger_kernel/transformers/model/olmo2.py | 13 | CODE | |
| LOW | src/liger_kernel/transformers/model/paligemma.py | 20 | CODE | |
| LOW | src/liger_kernel/transformers/model/qwen2_5_vl.py | 34 | CODE | |
| LOW | src/liger_kernel/transformers/model/ministral.py | 14 | CODE | |
| LOW | src/liger_kernel/transformers/model/qwen3_vl.py | 16 | CODE | |
| LOW | src/liger_kernel/transformers/model/gemma4.py | 25 | CODE | |
| LOW | src/liger_kernel/transformers/model/gemma4.py | 162 | CODE | |
| LOW | src/liger_kernel/transformers/model/qwen3_moe.py | 15 | CODE | |
| LOW | src/liger_kernel/transformers/model/nemotron.py | 16 | CODE | |
| LOW | src/liger_kernel/transformers/model/llava.py | 13 | CODE | |
| LOW | src/liger_kernel/transformers/model/mllama.py | 15 | CODE | |
| LOW | src/liger_kernel/transformers/model/llama.py | 24 | CODE | |
| LOW | src/liger_kernel/transformers/model/qwen3_5.py | 17 | CODE | |
| LOW | src/liger_kernel/transformers/model/qwen3_5.py | 129 | CODE | |
| LOW | src/liger_kernel/transformers/model/gemma2.py | 18 | CODE | |
| LOW | src/liger_kernel/transformers/model/glm4.py | 13 | CODE | |
| LOW | src/liger_kernel/transformers/model/smolvlm.py | 21 | CODE | |
| LOW | src/liger_kernel/transformers/model/hunyuan_v1.py | 12 | CODE | |
| LOW | src/liger_kernel/transformers/model/qwen3_5_moe.py | 18 | CODE | |
| LOW | src/liger_kernel/transformers/model/qwen3_5_moe.py | 161 | CODE | |
| LOW | src/liger_kernel/transformers/model/gemma3.py | 19 | CODE | |
| LOW | src/liger_kernel/transformers/model/gemma3.py | 152 | CODE | |
| LOW | src/liger_kernel/transformers/model/glm4v_moe.py | 12 | CODE | |
| LOW | src/liger_kernel/transformers/model/gpt_oss.py | 15 | CODE | |
| LOW | src/liger_kernel/transformers/model/gemma.py | 15 | CODE | |
| LOW | src/liger_kernel/transformers/model/qwen3_next.py | 18 | CODE | |
| 43 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .agents/skills/liger-kernel-dev/validator.md | 7 | ### Step 1: Checkstyle (Fast Gate) | COMMENT |
| LOW | .agents/skills/liger-kernel-dev/validator.md | 21 | ### Step 2: Unit Tests (Hard Gate) | COMMENT |
| LOW⚡ | .agents/skills/liger-kernel-dev/validator.md | 42 | ### Step 3: Benchmarks | COMMENT |
| LOW⚡ | .agents/skills/liger-kernel-dev/validator.md | 51 | ### Step 4: Generate Plots | COMMENT |
| LOW⚡ | .agents/skills/liger-kernel-dev/validator.md | 59 | ### Step 5: Optional ncu Profiling | COMMENT |
| LOW | .agents/skills/liger-kernel-dev/validator.md | 78 | ### Step 6: Report Results | COMMENT |
| LOW | …ts/skills/liger-kernel-dev/templates/functional-api.md | 5 | ### Step 1: Add Import | COMMENT |
| LOW | …ts/skills/liger-kernel-dev/templates/functional-api.md | 13 | ### Step 2: Add Function | COMMENT |
| LOW | .agents/skills/liger-autopatch/validator.md | 11 | ### Step 1: Syntax Check | COMMENT |
| LOW | .agents/skills/liger-autopatch/validator.md | 17 | ### Step 2: Instance Patching Test | COMMENT |
| LOW | .agents/skills/liger-autopatch/validator.md | 32 | ### Step 3: Convergence Tests (requires GPU) | COMMENT |
| LOW | .agents/skills/liger-autopatch/validator.md | 63 | ### Step 4: Checkstyle | COMMENT |
| LOW⚡ | .agents/skills/liger-kernel-perf/optimizer.md | 182 | ### Step 1: Swap In the Variant | COMMENT |
| LOW⚡ | .agents/skills/liger-kernel-perf/optimizer.md | 188 | ### Step 2: Run a Minimal Correctness Check | COMMENT |
| LOW⚡ | .agents/skills/liger-kernel-perf/optimizer.md | 196 | ### Step 3: Interpret Results | COMMENT |
| LOW⚡ | .agents/skills/liger-kernel-perf/optimizer.md | 204 | ### Step 4: Restore the Original | COMMENT |
| LOW⚡ | .agents/skills/liger-kernel-perf/optimizer.md | 226 | ### Step 1: Swap In the Variant | COMMENT |
| LOW⚡ | .agents/skills/liger-kernel-perf/optimizer.md | 232 | ### Step 2: Run the Full Benchmark | COMMENT |
| LOW⚡ | .agents/skills/liger-kernel-perf/optimizer.md | 240 | ### Step 3: Capture Results | COMMENT |
| LOW⚡ | .agents/skills/liger-kernel-perf/optimizer.md | 248 | ### Step 4: Parse Results | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/optimizer.md | 259 | ### Step 5: Restore the Original | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/profiler.md | 14 | ### Step 1: Set Up Workspace | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/profiler.md | 20 | ### Step 2: Detect GPU Architecture | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/profiler.md | 34 | ### Step 3: Run Baseline Benchmarks | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/profiler.md | 48 | ### Step 4: Check for NCU Availability | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/profiler.md | 79 | ### Step 5: Analyze Kernel Code | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/profiler.md | 112 | ### Step 6: Classify Bottleneck | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/profiler.md | 130 | ### Step 7: Produce Optimization Profile | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/profiler.md | 144 | ### Step 8: Present to User (Interactive Mode) | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/finalizer.md | 35 | ### Step 1: Validate Inputs and Read Context | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/finalizer.md | 47 | ### Step 2: Apply the Winning Variant | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/finalizer.md | 57 | ### Step 3: Run the Full Test Suite (HARD GATE) | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/finalizer.md | 99 | ### Step 4: Run Checkstyle | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/finalizer.md | 125 | ### Step 5: Generate Comparison Plots | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/finalizer.md | 209 | ### Step 6: Generate the Final Optimization Report | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/finalizer.md | 247 | ### Step 7: Create Pull Request | COMMENT |
| LOW | .agents/skills/liger-kernel-perf/finalizer.md | 362 | ### Step 8: Present the Before/After Summary | COMMENT |
| LOW⚡ | .github/workflows/benchmark.yml | 122 | # Step 5: Checkout gh-pages branch in a subfolderAdd commentMore actions | COMMENT |
| LOW⚡ | .github/workflows/benchmark.yml | 129 | # Step 6: Copy benchmark CSV to gh-pages directory | COMMENT |
| LOW | .github/workflows/benchmark.yml | 152 | # Step 7: Append commit hash to commits.txt if not already present | COMMENT |
| LOW | .github/workflows/benchmark.yml | 164 | # Step 7: Commit and push | COMMENT |
| LOW⚡ | src/liger_kernel/ops/grpo_loss.py | 691 | # Step 1: Get per-token log probs using existing Triton kernel | COMMENT |
| LOW⚡ | src/liger_kernel/ops/grpo_loss.py | 694 | # Step 2: Compute sequence-level importance weights | COMMENT |
| LOW | src/liger_kernel/ops/grpo_loss.py | 715 | # Step 3: Run Triton kernel with pre-computed coefficients | COMMENT |
| LOW | src/liger_kernel/ops/backends/README.md | 61 | ### Step 1: Create the directory | COMMENT |
| LOW | src/liger_kernel/ops/backends/README.md | 69 | ### Step 2: Register the implementation | COMMENT |
| LOW | src/liger_kernel/ops/backends/README.md | 88 | ### Step 3: Ensure device detection works | COMMENT |
| LOW | src/liger_kernel/ops/backends/README.md | 103 | ### Step 4: Implement the operators | COMMENT |
| LOW | src/liger_kernel/ops/backends/README.md | 122 | ### Step 5: Export from `ops/__init__.py` | COMMENT |
| LOW | src/liger_kernel/chunked_loss/fused_linear_ppo.py | 278 | # Step 1: compute logprobs OUTSIDE compile (custom autograd, memory-efficient) | COMMENT |
| LOW | src/liger_kernel/chunked_loss/fused_linear_ppo.py | 298 | # Step 2: compute loss INSIDE compile (just math, torch.compile-friendly) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/benchmarks_visualizer.py | 210 | except Exception as e: | CODE |
| LOW | benchmark/benchmarks_visualizer.py | 356 | except Exception: | CODE |
| LOW | test/triton/test_triton_monkey_patch.py | 13 | except Exception: | CODE |
| MEDIUM | test/triton/test_triton_monkey_patch.py | 10 | def test_import_from_root(): | CODE |
| LOW | test/transformers/test_llama4_rope.py | 16 | except Exception: | CODE |
| LOW | test/transformers/test_qwen2vl_mrope.py | 12 | except Exception: | CODE |
| MEDIUM | test/transformers/test_monkey_patch.py | 60 | def is_mllama_available(): | CODE |
| LOW⚡ | test/transformers/test_monkey_patch.py | 311 | except Exception: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 512 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 609 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 706 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 774 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 883 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 992 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1072 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1147 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1242 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1287 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1333 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1384 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1478 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1517 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1560 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1609 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1663 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1702 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1749 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1808 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1861 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 1959 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2027 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2110 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2149 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2191 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2241 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2310 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2379 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2430 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2499 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2568 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2619 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2683 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2759 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2798 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2844 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2890 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 2936 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 3006 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 3121 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 3162 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 3231 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 3298 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 3406 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 3458 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 3507 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 3586 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 3637 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 3680 | except Exception as e: | CODE |
| LOW | test/transformers/test_monkey_patch.py | 3720 | except Exception as e: | CODE |
| LOW | test/transformers/test_trainer_integration.py | 7 | except Exception: | CODE |
| 29 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 10 | CODE | |
| LOW | setup.py | 100 | CODE | |
| LOW | benchmark/benchmarks_visualizer.py | 177 | CODE | |
| LOW | benchmark/scripts/benchmark_mhc.py | 29 | CODE | |
| LOW | benchmark/scripts/benchmark_tvd.py | 24 | CODE | |
| LOW | benchmark/scripts/benchmark_tiled_mlp.py | 162 | CODE | |
| LOW | benchmark/scripts/benchmark_tiled_mlp.py | 61 | CODE | |
| LOW | benchmark/scripts/utils.py | 117 | CODE | |
| LOW | benchmark/scripts/utils.py | 276 | CODE | |
| LOW | benchmark/scripts/utils.py | 375 | CODE | |
| LOW | benchmark/scripts/benchmark_model_configs.py | 525 | CODE | |
| LOW | benchmark/scripts/benchmark_megatron_rms_norm.py | 69 | CODE | |
| LOW | benchmark/scripts/benchmark_megatron_cross_entropy.py | 105 | CODE | |
| LOW | benchmark/scripts/benchmark_megatron_cross_entropy.py | 184 | CODE | |
| LOW | test/convergence/fp32/test_mini_models_multimodal.py | 1181 | CODE | |
| LOW | test/convergence/bf16/test_mini_models_multimodal.py | 1064 | CODE | |
| LOW | test/transformers/test_tvd.py | 16 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 517 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 614 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 711 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 779 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 888 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 997 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 1564 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 2196 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 3011 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 3167 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 3236 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 3349 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 3411 | CODE | |
| LOW | test/transformers/test_monkey_patch.py | 3591 | CODE | |
| LOW | test/transformers/test_grpo_loss.py | 484 | CODE | |
| LOW | test/transformers/test_grpo_loss.py | 713 | CODE | |
| LOW | test/chunked_loss/test_dpo_loss.py | 919 | CODE | |
| LOW | test/chunked_loss/test_grpo_loss.py | 1057 | CODE | |
| LOW | test/chunked_loss/test_grpo_loss.py | 81 | CODE | |
| LOW | test/chunked_loss/test_grpo_loss.py | 203 | CODE | |
| LOW | examples/medusa/callback.py | 363 | CODE | |
| LOW | examples/medusa/train.py | 131 | CODE | |
| LOW | src/liger_kernel/utils.py | 17 | CODE | |
| LOW | src/liger_kernel/transformers/grpo_loss.py | 9 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 432 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 523 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 799 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 1064 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 1151 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 1243 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 1722 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 1860 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 1955 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 2044 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 2123 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 2479 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 2568 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 2672 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 2956 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 3057 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 3154 | CODE | |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 3315 | CODE | |
| LOW | src/liger_kernel/ops/cross_entropy.py | 31 | CODE | |
| 35 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/liger_kernel/transformers/jsd.py | 11 | JSD(\beta)(P || Q) | CODE |
| HIGH | src/liger_kernel/transformers/jsd.py | 17 | This differs from the standard mathematical notation :math:`JSD(P || Q)` where | CODE |
| HIGH | src/liger_kernel/ops/jsd.py | 146 | JSD(\beta)(P || Q) | CODE |
| HIGH | src/liger_kernel/ops/jsd.py | 153 | This differs from the standard mathematical notation :math:`JSD(P || Q)` where | CODE |
| HIGH | src/liger_kernel/ops/backends/_ascend/ops/jsd.py | 174 | JSD(\beta)(P || Q) | CODE |
| HIGH | src/liger_kernel/ops/backends/_ascend/ops/jsd.py | 181 | This differs from the standard mathematical notation :math:`JSD(P || Q)` where | CODE |
| HIGH | src/liger_kernel/ops/cutile/ops/kl_div.py | 8 | Computes KL(y_true || y_pred) where y_pred is in log-space. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/scripts/benchmark_embedding.py | 24 | # NOTE: For torch compile, we will just use default inductor settings. No further customization | COMMENT |
| LOW | test/megatron/test_monkey_patch.py | 499 | # Skip Liger kernel — just return a CPU-friendly tensor in the right shape. | COMMENT |
| MEDIUM | src/liger_kernel/triton/monkey_patch.py | 20 | # use temp dir to be robust against program interruptions | COMMENT |
| MEDIUM | src/liger_kernel/transformers/monkey_patch.py | 1360 | # also drop the MagicMock the test harness substitutes for | COMMENT |
| MEDIUM | src/liger_kernel/ops/backends/_ascend/ops/softmax.py | 243 | # Calculate optimal ROWS_PER_BLOCK to utilize UB efficiently | COMMENT |
| MEDIUM | src/liger_kernel/chunked_loss/dpo_loss.py | 98 | # cDPO / robust loss: assumes a fraction `label_smoothing` of preference labels are flipped. | COMMENT |
| MEDIUM | …ernel/chunked_loss/fused_linear_unpaired_preference.py | 66 | # TODO: Tune CHUNK_SIZE to fully utilize the GPU | COMMENT |
| MEDIUM | …c/liger_kernel/chunked_loss/fused_linear_preference.py | 70 | # TODO: Tune CHUNK_SIZE to fully utilize the GPU | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/convergence/bf16/test_mini_models_with_logits.py | 2001 | # 1e-3, | COMMENT |
| LOW | test/convergence/bf16/test_mini_models.py | 2261 | # "mini_mixtral", | COMMENT |
| LOW | test/convergence/bf16/test_mini_models.py | 2301 | ), | COMMENT |
| LOW | test/megatron/test_monkey_patch.py | 581 | ) | COMMENT |
| LOW | examples/medusa/callback.py | 281 | self.state.elapsed_tokens_seen / self.state.elapsed_time, | COMMENT |
| LOW | examples/medusa/callback.py | 301 | # total_flos = sum(current_flos) # across all GPUs | COMMENT |
| LOW | examples/medusa/train.py | 1 | # This code is based on tatsu-lab/stanford_alpaca. Below is the original copyright: | COMMENT |
| LOW | src/liger_kernel/transformers/functional.py | 421 | # In practice, these come from your transformer layers | COMMENT |
| LOW | src/liger_kernel/transformers/model/pixtral.py | 1 | # Pixtral vision encoder does not require a custom forward function. | COMMENT |
| LOW | src/liger_kernel/ops/cross_entropy.py | 181 | # = log (e^(max(X)) * sum(e ^ (X_i - max(X)))) | COMMENT |
| LOW | src/liger_kernel/ops/mhc.py | 181 | ) | COMMENT |
| LOW | src/liger_kernel/ops/fused_moe_kernels.py | 1 | # Triton kernels for fused MoE expert computation. | COMMENT |
| LOW | src/liger_kernel/ops/fused_moe_kernels.py | 21 | COMMENT | |
| LOW | src/liger_kernel/ops/cutedsl/ops/cross_entropy.py | 361 | g_am = fmax(g_am, aw) | COMMENT |
| LOW | src/liger_kernel/ops/cutedsl/ops/cross_entropy.py | 421 | COMMENT | |
| LOW | src/liger_kernel/ops/cutedsl/ops/cross_entropy.py | 621 | has_weight = weight is not None | COMMENT |
| LOW | …ernel/ops/backends/_ascend/ascend-ub-manager-design.md | 481 | # - tiling_dims: (0,) means first dimension can be tiled | COMMENT |
| LOW | src/liger_kernel/ops/backends/_ascend/ops/tvd.py | 81 | tl.store(loss_row_ptr, loss_sum) | COMMENT |
| LOW | …liger_kernel/ops/backends/_ascend/ops/qwen2vl_mrope.py | 121 | # * k_left: BLOCK_K * (pad_hd // 2) elements | COMMENT |
| LOW | src/liger_kernel/ops/backends/_ascend/ops/rope.py | 101 | # - cos_vals and sin_vals are loaded once outside loops (shared): pad_hd // 2 elements each | COMMENT |
| LOW | src/liger_kernel/megatron/rms_norm.py | 61 | hidden_size = (hidden_size,) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | .github/workflows/benchmark.yml | 122 | # Step 5: Checkout gh-pages branch in a subfolderAdd commentMore actions | COMMENT |
| LOW⚡ | .github/workflows/benchmark.yml | 129 | # Step 6: Copy benchmark CSV to gh-pages directory | COMMENT |
| LOW | .github/workflows/benchmark.yml | 152 | # Step 7: Append commit hash to commits.txt if not already present | COMMENT |
| LOW | .github/workflows/benchmark.yml | 164 | # Step 7: Commit and push | COMMENT |
| LOW⚡ | src/liger_kernel/ops/grpo_loss.py | 691 | # Step 1: Get per-token log probs using existing Triton kernel | COMMENT |
| LOW⚡ | src/liger_kernel/ops/grpo_loss.py | 694 | # Step 2: Compute sequence-level importance weights | COMMENT |
| LOW | src/liger_kernel/ops/grpo_loss.py | 715 | # Step 3: Run Triton kernel with pre-computed coefficients | COMMENT |
| LOW | src/liger_kernel/chunked_loss/fused_linear_ppo.py | 278 | # Step 1: compute logprobs OUTSIDE compile (custom autograd, memory-efficient) | COMMENT |
| LOW | src/liger_kernel/chunked_loss/fused_linear_ppo.py | 298 | # Step 2: compute loss INSIDE compile (just math, torch.compile-friendly) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | benchmark/benchmarks_visualizer.py | 270 | Loads the benchmark data from the CSV file and filters it based on the configuration. Applies filters in order: ker | STRING |
| HIGH | src/liger_kernel/ops/backends/registry.py | 75 | Select the implementation for the current device. Args: device: Device type from ``infer_device()`` (e | STRING |
| HIGH | src/liger_kernel/ops/backends/_ascend/ub_manager.py | 256 | Compute tiling strategy using the default strategy function. This function directly calls the default strategy | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/utils.py | 163 | # Check if the shapes of the tensors match | COMMENT |
| LOW | test/utils.py | 195 | # Check if all elements are close | COMMENT |
| LOW | test/transformers/test_swiglu.py | 417 | # Check if gradients are close for x | COMMENT |
| LOW | test/transformers/test_mm_int8int2.py | 62 | # Print the results (optional, can be commented out) | COMMENT |
| LOW | test/transformers/test_mm_int8int2.py | 66 | # Check if outputs are close within the given tolerances | COMMENT |
| LOW | test/transformers/test_monkey_patch.py | 59 | # Check if optional modules are available | COMMENT |
| LOW | examples/medusa/train.py | 170 | # Set everything to be ignored, except the assistant part | COMMENT |
| LOW | src/liger_kernel/transformers/__init__.py | 86 | # Check if 'transformers' is installed | COMMENT |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 69 | # Check if the module is a PEFT ModulesToSaveWrapper | COMMENT |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 104 | # Check if the module is a PEFT ModulesToSaveWrapper | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/liger_kernel/transformers/auto_model.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/liger_kernel/transformers/__init__.py | 173 | __all__ = [ | CODE |
| LOW | src/liger_kernel/transformers/monkey_patch.py | 51 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/liger_kernel/transformers/experimental/__init__.py | 3 | __all__ = [ | CODE |
| LOW | src/liger_kernel/transformers/model/gemma2.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/liger_kernel/ops/cutedsl/ops/__init__.py | 21 | __all__ = [ | CODE |
| LOW | src/liger_kernel/ops/backends/_ascend/ops/__init__.py | 90 | __all__ = [ | CODE |
| LOW | src/liger_kernel/ops/cutile/ops/__init__.py | 44 | __all__ = [ | CODE |
| LOW | src/liger_kernel/megatron/__init__.py | 24 | __all__ = [ | CODE |
| LOW | src/liger_kernel/megatron/monkey_patch.py | 7 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | benchmark/scripts/benchmark_tiled_mlp.py | 148 | # Define the MLP forward function for DeepSpeed TiledMLP | COMMENT |
| MEDIUM | examples/medusa/medusa_util.py | 109 | # Create a list of Medusa heads | COMMENT |
| MEDIUM | examples/medusa/train.py | 282 | # Create the train and eval datasets | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/liger_kernel/transformers/model/qwen3_moe.py | 134 | loss += self.router_aux_loss_coef * aux_loss.to(loss.device) # make sure to reside in the same device | CODE |
| LOW | src/liger_kernel/transformers/model/qwen3_5_moe.py | 137 | loss += self.router_aux_loss_coef * aux_loss.to(loss.device) # make sure to reside in the same device | CODE |
| LOW | src/liger_kernel/transformers/model/gpt_oss.py | 201 | loss += self.router_aux_loss_coef * aux_loss.to(loss.device) # make sure to reside in the same device | CODE |
| LOW | src/liger_kernel/transformers/model/qwen3_next.py | 135 | loss += self.router_aux_loss_coef * aux_loss.to(loss.device) # make sure to reside in the same device | CODE |
| LOW | src/liger_kernel/transformers/model/mixtral.py | 144 | loss += self.router_aux_loss_coef * aux_loss.to(loss.device) # make sure to reside in the same device | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | …s/backends/_ascend/ops/fused_neighborhood_attention.py | 1821 | # Backward orchestration | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/resources/scripts/generate_tokenized_dataset.py | 39 | # Example usage: | COMMENT |