AI Slop Code Risk Monitor

modular/modular

SlopCodeMonitor badge for modular/modular Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

The Modular Platform (includes MAX & Mojo)

20.5 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for modular/modular, a Mojo project with 30,081 GitHub stars. SynthScan examined 2,106,142 lines of code across 7328 source files, recording 33349 pattern matches distributed across 27 syntactic categories. The legacy adjusted pattern signal is 20.5 (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.

20.5
Adjusted Signal
20.5
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
30.1K
Stars
Mojo
Language
2.1M
Lines of Code
7.3K
Files
33.3K
Pattern Hits
2026-10-31
Scan Date
0.22
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 46.8/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 11.8/100 · LOW

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

Agent Over-Engineering Ratio 43.7/100 · MEDIUM

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

PR Review Velocity Impact 66.3/100 · HIGH

Which changes need focused human review? 33349 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 1HIGH 1613MEDIUM 2223LOW 29512

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 33349 distinct pattern matches across 27 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.

Hyper-Verbose Identifiers13528 hits · 12771 pts
SeverityFileLineSnippetContext
LOW…/integration-test/python/test_signal_handler_python.py19def test_python_stack_trace_in_signal_handler() -> None:CODE
LOW…egration-test/python/test_signal_handler_python_gil.py20def test_signal_handler_with_gil_held() -> None:CODE
LOW⚡max/kernels/test/gpu/fuzz/test_fuzz.py38def test_oracle_preserves_device_list(oracle: str) -> None:CODE
LOW⚡max/kernels/test/gpu/fuzz/test_fuzz.py48def test_collective_requires_multiple_devices(CODE
LOW⚡max/kernels/test/gpu/fuzz/test_fuzz.py56def test_replay_with_insufficient_devices(CODE
LOWmax/kernels/benchmarks/misc/utils/bench.py334def bench_kineto_with_cupti_warmup(CODE
LOW⚡…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py390def _compile_dense_preshuffle(CODE
LOW…kernels/benchmarks/misc/comparison/test_moe_routing.py30def test_each_token_picks_distinct_experts(CODE
LOW…kernels/benchmarks/misc/comparison/test_moe_routing.py44def test_balanced_spreads_experts_and_ranks(num_tokens: int) -> None:CODE
LOW⚡…kernels/benchmarks/misc/comparison/test_moe_routing.py56def test_random_routings_are_seeded() -> None:CODE
LOW⚡…kernels/benchmarks/misc/comparison/test_moe_routing.py63def test_skewed_routing_has_hot_experts() -> None:CODE
LOW⚡…kernels/benchmarks/misc/comparison/test_moe_routing.py72def test_top_k_above_num_experts_raises() -> None:CODE
LOW⚡…kernels/benchmarks/misc/comparison/test_moe_routing.py77def test_rank_counts_needs_an_even_split() -> None:CODE
LOW…kernels/benchmarks/misc/comparison/test_moe_routing.py91def test_dispatch_layout_starts_each_expert_on_a_fresh_block() -> None:CODE
LOW…kernels/benchmarks/misc/comparison/test_moe_routing.py109def test_scale_rows_capacity_pads_one_block_per_expert() -> None:CODE
LOW…ernels/benchmarks/misc/comparison/bench_ep_baseline.py68def _make_dispatch_quant_config(dispatch_dtype: DType) -> QuantConfig | None:CODE
LOW…/benchmarks/misc/comparison/test_sparse_mla_indices.py25def test_topk_positions_are_causal_distinct_and_padded(cache_len: int) -> None:CODE
LOW…/benchmarks/misc/comparison/test_sparse_mla_indices.py45def test_topk_positions_are_seeded() -> None:CODE
LOW…/benchmarks/misc/comparison/test_sparse_mla_indices.py51def test_copies_to_exceed_counts_rows_per_request() -> None:CODE
LOW…/benchmarks/misc/comparison/test_sparse_mla_indices.py63def test_copies_to_exceed_ignores_pads() -> None:CODE
LOW…/benchmarks/misc/comparison/test_sparse_mla_indices.py68def test_physical_rows_follow_the_page_table() -> None:CODE
LOW…hmarks/misc/comparison/bench_blackwell_grouped_gemm.py93def generate_contiguous_inputs(CODE
LOW…x/kernels/benchmarks/misc/comparison/install_sglang.py44def _matching_torchvision_version() -> str:CODE
LOW…nchmarks/misc/comparison/bench_blackwell_mla_decode.py138def calculate_mla_memory_bytes(CODE
LOW…hmarks/misc/comparison/bench_allreduce_subgraph_max.py114def bench_allreduce_modular_max(CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py128def _init_sglang_parallel_state() -> None:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py903def _build_mla_persistent_metadata(CODE
LOWmax/kernels/benchmarks/sweep/test_sweeptime.py36def test_parse_lines_skips_other_output() -> None:STRING
LOWmax/kernels/benchmarks/sweep/test_sweeptime.py42def test_collect_sums_across_processes(tmp_path: Path) -> None:STRING
LOWmax/kernels/benchmarks/sweep/test_sweeptime.py65def test_format_table_reports_gaps(tmp_path: Path) -> None:STRING
LOWmax/kernels/benchmarks/sweep/test_sweeptime.py80def test_main_without_lines_fails(tmp_path: Path) -> None:STRING
LOWmax/kernels/benchmarks/autotune/kdiff.py70def check_argo_workflow_exists(git_sha): # noqa: ANN001, ANN201CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1648 def schedule_unique_build_items(CODE
LOWmax/kernels/benchmarks/autotune/utils.py71def _get_visible_device_prefix(target_accelerator: str = "") -> str:CODE
LOWmax/kernels/benchmarks/autotune/utils.py222def get_target_accelerator_helpstr() -> str:CODE
LOWmax/kernels/benchmarks/autotune/utils.py230def check_valid_target_accelerator(target_accelerator: str) -> bool:CODE
LOWmax/kernels/benchmarks/autotune/kplot.py57def _get_max_groups_per_chart(x_labels, width_px, font_size_pt): # noqa: ANN001, ANN202CODE
LOWmax/kernels/benchmarks/autotune/tests/test_bench.py41def test_met_label_indicates_seconds() -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_bench.py65def test_dump_report_time_and_throughput() -> None:CODE
LOW…kernels/benchmarks/autotune/tests/test_kbench_sweep.py54def test_sweep_collapses_each_group_to_one_process() -> None:STRING
LOW…kernels/benchmarks/autotune/tests/test_kbench_sweep.py99def test_sweep_rejects_multi_valued_comptime_param() -> None:STRING
LOW…kernels/benchmarks/autotune/tests/test_kbench_sweep.py110def test_sweep_rejects_empty_axis_and_missing_groups() -> None:STRING
LOW…kernels/benchmarks/autotune/tests/test_kbench_sweep.py144def test_sweep_filter_that_empties_the_run_warns(STRING
LOW…kernels/benchmarks/autotune/tests/test_kbench_sweep.py161def test_sweep_param_restricts_axes_and_pins_arms() -> None:STRING
LOW…kernels/benchmarks/autotune/tests/test_kbench_sweep.py194def test_sweep_build_adds_the_benchmark_directory(STRING
LOW…kernels/benchmarks/autotune/tests/test_kbench_sweep.py218def test_sweep_multi_row_csv_loads_one_row_per_benchmark(STRING
LOW…kernels/benchmarks/autotune/tests/test_kbench_sweep.py253def test_sweep_join_requires_matching_mode() -> None:STRING
LOW⚡max/kernels/benchmarks/autotune/tests/test_kbench.py515def test_get_gpu_count_nvidia_no_smi(mocker: MockerFixture) -> None:CODE
LOW⚡max/kernels/benchmarks/autotune/tests/test_kbench.py521def test_get_gpu_count_unknown_accelerator() -> None:CODE
LOW⚡max/kernels/benchmarks/autotune/tests/test_kbench.py527def test_get_gpu_count_nvidia_smi_failure(mocker: MockerFixture) -> None:CODE
LOW⚡max/kernels/benchmarks/autotune/tests/test_kbench.py570def test_get_gpu_count_amd_no_smi(mocker: MockerFixture) -> None:CODE
LOW⚡max/kernels/benchmarks/autotune/tests/test_kbench.py576def test_get_gpu_count_amd_smi_failure(mocker: MockerFixture) -> None:CODE
LOW⚡max/kernels/benchmarks/autotune/tests/test_kbench.py586def test_cli_rejects_num_gpu_exceeding_available(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py83def test_check_valid_target_accelerator() -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py285def test_scheduler_init_validates_num_gpu(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py316def test_scheduler_get_chunksize(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py337def test_scheduler_kbench_mkdir_creates_directory(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py355def test_scheduler_kbench_mkdir_run_only_requires_existing(CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py372def test_kbench_cache_basic_operations(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py403def test_param_define_regular() -> None:CODE
13468 more matches not shown…
Over-Commented Block8700 hits · 8558 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml1##===----------------------------------------------------------------------===##COMMENT
LOWInit/include/Init/DevelopmentSignalHandler.h1//===----------------------------------------------------------------------===//COMMENT
LOWInit/include/Init/DevelopmentSignalHandler.h21namespace M::Init {COMMENT
LOWInit/include/Init/Init.h1//===----------------------------------------------------------------------===//COMMENT
LOWInit/unittests/DevelopmentSignalHandlerTests.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWInit/integration-test/python/InitBindings.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWInit/integration-test/python/test_script.py1# ===----------------------------------------------------------------------=== #COMMENT
LOW…/integration-test/python/test_signal_handler_python.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWInit/integration-test/python/test_script_gil.py1# ===----------------------------------------------------------------------=== #COMMENT
LOW…egration-test/python/test_signal_handler_python_gil.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWInit/lib/DevelopmentSignalHandler.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWInit/lib/Init.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWKernels/tools/max_license/gpu-query/gpu_query.cpp1//===----------------------------------------------------------------------===//COMMENT
LOW…ls/lib/max_license/WeightsRegistry/WeightsRegistry.cpp1//===----------------------------------------------------------------------===//COMMENT
LOW…nels/lib/max_license/WeightsRegistry/WeightsRegistry.h1//===----------------------------------------------------------------------===//COMMENT
LOWKernels/lib/max_license/Tracing/Tracing.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWKernels/lib/max_license/Tracing/Tracing.h1//===----------------------------------------------------------------------===//COMMENT
LOWKernels/lib/max_license/Tracing/Tracing.h61/// Does nothing if the trace event had an error.COMMENT
LOWCache/tools/cache-mgr/cache-mgr.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/tools/cache-mgr/cache-mgr.cpp21#include "Support/ADT/SmartVariant.h"COMMENT
LOWCache/include/Cache/CachedTransform.h1//===----------------------------------------------------------------------===//COMMENT
LOWCache/include/Cache/CachedTransform.h21#include "Cache/BlobCache.h"COMMENT
LOWCache/include/Cache/CachedTransform.h61/// The most basic function that performs a transformation, writing theCOMMENT
LOWCache/include/Cache/BlobCache.h1//===----------------------------------------------------------------------===//COMMENT
LOWCache/include/Cache/BlobCache.h21#include "Support/Buffer.h"COMMENT
LOWCache/include/Cache/BlobCache.h101 virtual ErrorOr<std::optional<BufferRef>> findSyncImpl(StringRef keyHash) = 0;COMMENT
LOWCache/include/Cache/CacheTelemetryContext.h1//===----------------------------------------------------------------------===//COMMENT
LOWCache/include/Cache/Support/Keys.h1//===----------------------------------------------------------------------===//COMMENT
LOWCache/unittests/CachedTransformTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/unittests/BlobCacheTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/unittests/KeyTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/lib/CacheTelemetryContext.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/lib/CachedTransform.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/lib/CachedTransform.cpp21#include "Support/HashUtils.h"COMMENT
LOWCache/lib/BlobCache.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/lib/BlobCache.cpp21#include "Support/Buffer.h"COMMENT
LOWCache/lib/BlobCache.cpp41#include <cstring>COMMENT
LOWCache/lib/BlobCache.cpp601 // If we have write access, do a little cache pruning on the host system inCOMMENT
LOWConfig/include/Config/Version.h1//===----------------------------------------------------------------------===//COMMENT
LOWConfig/lib/Version.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/test/HIPPluginTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/test/DriverPluginLoadTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/test/SupportTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/test/CUDAPluginTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/test/Fixture.h1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/test/Fixture.h21#include <iostream>COMMENT
LOWTarget/test/PluginTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/test/LegacyStubPlugin.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/test/HostMemoryTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/test/MetalPluginTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/test/CPUPluginTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/include/Target/DriverPlugin.h1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/lib/Metal/Memory.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/lib/Metal/Common.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/lib/Metal/Device.h1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/lib/Metal/M_driver_tma.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/lib/Metal/Event.h1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/lib/Metal/Event.h21#include <atomic>COMMENT
LOWTarget/lib/Metal/Context.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWTarget/lib/Metal/Context.h1//===----------------------------------------------------------------------===//COMMENT
8640 more matches not shown…
Decorative Section Separators1796 hits · 5909 pts
SeverityFileLineSnippetContext
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py128# ----------------------------------------------------------------------------COMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py130# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py385# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py387# ----------------------------------------------------------------------------COMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py627# ----------------------------------------------------------------------------COMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py629# ----------------------------------------------------------------------------COMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py727# ----------------------------------------------------------------------------COMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py729# ----------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml51# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml53# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml74# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml76# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml97# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml99# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml130# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml135# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml161# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml164# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml190# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml198# ---------------------------------------------------------------------------COMMENT
MEDIUM…/kernels/benchmarks/misc/comparison/setup_bench_env.py106# ---------------------------------------------------------------------------COMMENT
MEDIUM…/kernels/benchmarks/misc/comparison/setup_bench_env.py108# ---------------------------------------------------------------------------COMMENT
MEDIUM…/kernels/benchmarks/misc/comparison/setup_bench_env.py159# ---------------------------------------------------------------------------COMMENT
MEDIUM…/kernels/benchmarks/misc/comparison/setup_bench_env.py161# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py255# ----------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py257# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡max/kernels/benchmarks/misc/comparison/bench_amd_mla.py844# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡max/kernels/benchmarks/misc/comparison/bench_amd_mla.py846# ----------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1519# ----------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1521# ----------------------------------------------------------------------------COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml37# -----------------------------------------------------------------------------COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml39# -----------------------------------------------------------------------------COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml62# -----------------------------------------------------------------------------COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml64# -----------------------------------------------------------------------------COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml87# =============================================================================COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml89# =============================================================================COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml140# -----------------------------------------------------------------------------COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml143# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py65# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py67# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py246# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py248# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py454# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py456# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py584# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py586# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py711# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py713# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py783# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py785# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/tree.py822# ─── reads ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMmax/python/max/tree.py937# ─── transform ──────────────────────────────────────────────────────────────COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/metrics.py1351# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/metrics.py1353# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/model_csv.py120# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/model_csv.py122# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/model_csv.py262# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/model_csv.py266# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/model_csv.py330# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/model_csv.py332# ---------------------------------------------------------------------------COMMENT
1736 more matches not shown…
Unused Imports5066 hits · 4643 pts
SeverityFileLineSnippetContext
LOW…er-connector-pyo3/python/kv_tier_connector/__init__.py21CODE
LOW…er-connector-pyo3/python/kv_tier_connector/__init__.py23CODE
LOW…er-connector-pyo3/python/kv_tier_connector/__init__.py23CODE
LOWmax/kernels/test/gpu/fuzz/fuzz.py39CODE
LOW…rnels/test/gpu/compute_sanitizer/classify_synccheck.py46CODE
LOW…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py52CODE
LOW…ernels/benchmarks/misc/comparison/bench_ep_baseline.py30CODE
LOW…s/benchmarks/misc/comparison/bench_amd_m3_moe_chain.py52CODE
LOW…s/benchmarks/misc/comparison/bench_blackwell_decode.py21CODE
LOWmax/kernels/benchmarks/misc/comparison/moe_routing.py20CODE
LOW…nchmarks/misc/comparison/bench_blackwell_mla_decode.py19CODE
LOW…hmarks/misc/comparison/bench_allreduce_subgraph_max.py21CODE
LOWmax/kernels/benchmarks/misc/comparison/sweep_decode.py33CODE
LOW…nchmarks/misc/comparison/bench_mega_ffn_nvfp4_graph.py29CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py17CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py31CODE
LOW…s/misc/comparison/bench_flashinfer_trtllm_moe_nvfp4.py36CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_softmax.py17CODE
LOWmax/kernels/benchmarks/misc/comparison/gpu_telemetry.py25CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py18CODE
LOW…s/benchmarks/misc/comparison/bench_mla_sparse_graph.py30CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py22CODE
LOW…rnels/benchmarks/misc/comparison/sparse_mla_indices.py21CODE
LOW…/misc/comparison/bench_flashinfer_trtllm_mla_sparse.py27CODE
LOWmax/kernels/benchmarks/sweep/sweeptime.py25CODE
LOWmax/kernels/benchmarks/autotune/terminal_viz.py15CODE
LOWmax/kernels/benchmarks/autotune/kbench.py13CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py13CODE
LOWmax/kernels/benchmarks/autotune/tuning_codegen.py16CODE
LOWmax/python/docs/check_api_coverage.py40CODE
LOWmax/python/max/tree.py50CODE
LOWmax/python/max/_validation_hooks.py22CODE
LOWmax/python/max/_interpreter.py31CODE
LOWmax/python/max/_mlir_context.py14CODE
LOW…/max/benchmark/sweep_benchmark_serving_result_utils.py23CODE
LOWmax/python/max/benchmark/sweep_benchmark_serving.py16CODE
LOWmax/python/max/benchmark/serve_replay.py16CODE
LOWmax/python/max/benchmark/benchmark_serving.py16CODE
LOWmax/python/max/benchmark/results_to_csv.py60CODE
LOWmax/python/max/benchmark/benchmark_shared/iteration.py21CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py16CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py26CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py40CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py40CODE
LOW…/python/max/benchmark/benchmark_shared/steady_state.py27CODE
LOWmax/python/max/benchmark/benchmark_shared/config.py16CODE
LOW…hon/max/benchmark/benchmark_shared/prometheus_fetch.py21CODE
LOW…max/benchmark/benchmark_shared/backend_metric_names.py29CODE
LOW…ax/benchmark/benchmark_shared/serving_result_output.py19CODE
LOW…python/max/benchmark/benchmark_shared/backend_names.py34CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py16CODE
LOW…ython/max/benchmark/benchmark_shared/server_metrics.py16CODE
LOW…thon/max/benchmark/benchmark_shared/serving_metrics.py16CODE
LOWmax/python/max/benchmark/benchmark_shared/workload.py16CODE
LOWmax/python/max/benchmark/benchmark_shared/sse.py19CODE
LOW…x/benchmark/benchmark_shared/gpu_metrics_prometheus.py34CODE
LOW…/max/benchmark/benchmark_shared/gpu_metrics_scraper.py33CODE
LOWmax/python/max/benchmark/benchmark_shared/warmup.py36CODE
LOWmax/python/max/benchmark/benchmark_shared/utils.py16CODE
LOW…x/python/max/benchmark/benchmark_shared/single_turn.py16CODE
5006 more matches not shown…
Cross-File Repetition705 hits · 3525 pts
SeverityFileLineSnippetContext
HIGHmax/python/max/nn/legacy/linear.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGHmax/python/max/nn/legacy/conv.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…thon/max/nn/legacy/attention/multi_latent_attention.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…/max/nn/legacy/attention/multi_latent_attention_fp8.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGHmax/python/max/nn/legacy/norm/rms_norm.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…/max/pipelines/architectures/gemma3/layers/rms_norm.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGHmax/python/max/nn/legacy/norm/layer_norm.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGHmax/python/max/nn/legacy/moe/moe.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…/pipelines/architectures/deepseekV3/layers/moe_gate.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…/max/pipelines/architectures/gemma4/layers/rms_norm.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…on/max/pipelines/architectures/qwen2_5vl/nn/decoder.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…pelines/architectures/qwen2_5vl/nn/vision_attention.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…ython/max/pipelines/architectures/internvl/internvl.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…/pipelines/architectures/kimik2_5/layers/vision/mlp.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGHmax/python/max/nn/legacy/linear.py0applies the mlp2 transformation to the input. args: x: input tensor to transform. returns: the transformed tensor after STRING
HIGHmax/python/max/nn/common_layers/mlp.py0applies the mlp2 transformation to the input. args: x: input tensor to transform. returns: the transformed tensor after STRING
HIGH…/pipelines/architectures/kimik2_5/layers/vision/mlp.py0applies the mlp2 transformation to the input. args: x: input tensor to transform. returns: the transformed tensor after STRING
HIGH…/python/max/nn/legacy/attention/attention_with_rope.py0an opaque kv cache optimized attention mechanism with rope.STRING
HIGH…thon/max/nn/legacy/attention/multi_latent_attention.py0an opaque kv cache optimized attention mechanism with rope.STRING
HIGH…/max/nn/legacy/attention/multi_latent_attention_fp8.py0an opaque kv cache optimized attention mechanism with rope.STRING
HIGH…/python/max/nn/legacy/attention/attention_with_rope.py0the concatenation of q, k, and v bias weight vectors.STRING
HIGH…/max/pipelines/architectures/olmo3/layers/attention.py0the concatenation of q, k, and v bias weight vectors.STRING
HIGH…nes/architectures/gpt_oss_modulev3/layers/attention.py0the concatenation of q, k, and v bias weight vectors.STRING
HIGH…ines/architectures/gemma3_modulev3/layers/attention.py0the concatenation of q, k, and v bias weight vectors.STRING
HIGH…on/max/pipelines/architectures/qwen2_5vl/nn/decoder.py0the concatenation of q, k, and v bias weight vectors.STRING
HIGH…lines/architectures/olmo2_modulev3/layers/attention.py0the concatenation of q, k, and v bias weight vectors.STRING
HIGH…/python/max/nn/legacy/attention/attention_with_rope.py0applies data-parallel fp8 latent attention and returns the output.STRING
HIGH…thon/max/nn/legacy/attention/multi_latent_attention.py0applies data-parallel fp8 latent attention and returns the output.STRING
HIGH…/max/nn/legacy/attention/multi_latent_attention_fp8.py0applies data-parallel fp8 latent attention and returns the output.STRING
HIGH…thon/max/nn/legacy/attention/multi_latent_attention.py0creates the prefill planning metadata required by fp8 mla prefill kernels. args: input_row_offsets: ragged row offsets tSTRING
HIGH…/python/max/nn/common_layers/multi_latent_attention.py0creates the prefill planning metadata required by fp8 mla prefill kernels. args: input_row_offsets: ragged row offsets tSTRING
HIGHmax/python/max/nn/common_layers/quant_mla.py0creates the prefill planning metadata required by fp8 mla prefill kernels. args: input_row_offsets: ragged row offsets tSTRING
HIGH…/max/nn/legacy/attention/multi_latent_attention_fp8.py0creates the prefill planning metadata required by fp8 mla prefill kernels. args: input_row_offsets: ragged row offsets tSTRING
HIGH…n/max/nn/legacy/transformer/distributed_transformer.py0stack of attention, feedforward, and rmsnorm layers.STRING
HIGHmax/python/max/nn/legacy/transformer/transformer.py0stack of attention, feedforward, and rmsnorm layers.STRING
HIGH…es/architectures/pixtral/vision_encoder/transformer.py0stack of attention, feedforward, and rmsnorm layers.STRING
HIGH…ectures/pixtral_modulev3/vision_encoder/transformer.py0stack of attention, feedforward, and rmsnorm layers.STRING
HIGHmax/python/max/nn/legacy/moe/sigmoid_router.py0replicates the correction bias alongside the base gate weights.STRING
HIGH…/pipelines/architectures/deepseekV3/layers/moe_gate.py0replicates the correction bias alongside the base gate weights.STRING
HIGH…/max/pipelines/architectures/laguna/layers/moe_gate.py0replicates the correction bias alongside the base gate weights.STRING
HIGHmax/python/max/nn/common_layers/rotary_embedding.py0hyperparameter used to control the frequency scaling of the sinusoidal components of the embeddings.STRING
HIGH…tectures/pixtral/vision_encoder/rotary_embedding_2d.py0hyperparameter used to control the frequency scaling of the sinusoidal components of the embeddings.STRING
HIGH…pixtral_modulev3/vision_encoder/rotary_embedding_2d.py0hyperparameter used to control the frequency scaling of the sinusoidal components of the embeddings.STRING
HIGH…x/python/max/_interpreter_ops/elementwise_binary_gc.py0the input-dtype set an op is swept over (see ``_supported_dtypes``).STRING
HIGHmax/python/max/_interpreter_ops/reduce_axis_gc.py0the input-dtype set an op is swept over (see ``_supported_dtypes``).STRING
HIGHmax/python/max/_interpreter_ops/unary_elementwise_gc.py0the input-dtype set an op is swept over (see ``_supported_dtypes``).STRING
HIGH…x/python/max/_interpreter_ops/elementwise_binary_gc.py0conservative swept dtype set for a (dtype_class, device).STRING
HIGHmax/python/max/_interpreter_ops/reduce_axis_gc.py0conservative swept dtype set for a (dtype_class, device).STRING
HIGHmax/python/max/_interpreter_ops/unary_elementwise_gc.py0conservative swept dtype set for a (dtype_class, device).STRING
HIGH…x/python/max/_interpreter_ops/elementwise_binary_gc.py0graph ``sym_name`` and cache key for one (op, device, dtype).STRING
HIGHmax/python/max/_interpreter_ops/unary_elementwise_gc.py0graph ``sym_name`` and cache key for one (op, device, dtype).STRING
HIGHmax/python/max/_interpreter_ops/topk_gc.py0graph ``sym_name`` and cache key for one (op, device, dtype).STRING
HIGH…x/python/max/_interpreter_ops/elementwise_binary_gc.py0per-slot counterpart of :meth:`build_module`: one *device* only.STRING
HIGHmax/python/max/_interpreter_ops/reduce_axis_gc.py0per-slot counterpart of :meth:`build_module`: one *device* only.STRING
HIGHmax/python/max/_interpreter_ops/gather_gc.py0per-slot counterpart of :meth:`build_module`: one *device* only.STRING
HIGHmax/python/max/_interpreter_ops/scatter_gc.py0per-slot counterpart of :meth:`build_module`: one *device* only.STRING
HIGHmax/python/max/_interpreter_ops/scatter_nd_gc.py0the same-bit-width unsigned int a dtype is bit-cast to for copying. raises: notimplementederror: for sub-byte dtypes (suSTRING
HIGHmax/python/max/_interpreter_ops/gather_gc.py0the same-bit-width unsigned int a dtype is bit-cast to for copying. raises: notimplementederror: for sub-byte dtypes (suSTRING
HIGHmax/python/max/_interpreter_ops/scatter_gc.py0the same-bit-width unsigned int a dtype is bit-cast to for copying. raises: notimplementederror: for sub-byte dtypes (suSTRING
HIGHmax/python/max/pipelines/sampling/sampling_config.py0the section name to use when loading this config from a maxconfig file. this is used to differentiate between different STRING
645 more matches not shown…
Docstring Block Structure626 hits · 2912 pts
SeverityFileLineSnippetContext
HIGH…/kernels/benchmarks/misc/comparison/setup_bench_env.py112Ensure a source repository exists, cloning if necessary. Args: name: Repository key in REPOS dict (e.g., "dSTRING
HIGHmax/python/max/tree.py261Names a node class, so a serialized tree structure can refer to it. .. code-block:: python @tree.kind("pagSTRING
HIGHmax/python/max/tree.py377Takes one interior node apart, one level deep. Args: value: An interior node, as :func:`is_node` judges it.STRING
HIGHmax/python/max/tree.py490Flattens ``tree`` using this structure to locate the leaves. The walk descends into ``tree`` wherever this struSTRING
HIGHmax/python/max/tree.py624Splits ``tree`` into its leaves and the structure around them. Args: tree: The value to take apart. STRING
HIGHmax/python/max/tree.py688Rebuilds a tree from a structure and its leaves. The inverse of :func:`flatten`, always building a fresh tree. STRING
HIGHmax/python/max/tree.py859Returns ``tree``'s leaves keyed by their dotted path. The result is what :func:`update` consumes. Args: STRING
HIGHmax/python/max/tree.py947Builds a new tree with each leaf replaced by what ``f`` returns. With extra trees in ``rest``, ``f`` receives one lSTRING
HIGHmax/python/max/tree.py988Writes path-keyed values into ``tree``, in place. The counterpart of :func:`paths`, taking the same knobs. Only leaSTRING
HIGHmax/python/max/_interpreter.py234Execute an MO graph and return output buffers. Args: graph: The finalized MO graph to execute. inpuSTRING
HIGHmax/python/max/benchmark/sweep_benchmark_serving.py152Persists and reports each iteration of a sweep as it is produced. For each iteration with a result, writes ``configSTRING
HIGHmax/python/max/benchmark/benchmark_serving.py201Choose the GPU-stats recorder for this run, or None to disable it. The remote sources are source selectors, not addSTRING
HIGHmax/python/max/benchmark/benchmark_serving.py1462Runs a serving benchmark sweep. Yields one :class:`BenchmarkRunResult` per (concurrency, request rate) combinatSTRING
HIGHmax/python/max/benchmark/benchmark_shared/config.py293Resolve one argument into parsed JSON, from any of its spellings. A string is inline JSON when it starts with ``inlSTRING
HIGH…hon/max/benchmark/benchmark_shared/prometheus_fetch.py27Fetch raw metrics text from a Prometheus endpoint. Args: url: Prometheus metrics endpoint URL. timeSTRING
HIGH…ython/max/benchmark/benchmark_shared/server_metrics.py131Get a histogram by name and optional labels. Args: metric_name: Base metric name (such as "maxserveSTRING
HIGH…ython/max/benchmark/benchmark_shared/server_metrics.py192Get the metrics URL for a backend. Args: backend: Backend name (Backend enum) base_url: Base API URSTRING
HIGH…ython/max/benchmark/benchmark_shared/server_metrics.py329Fetch and parse metrics for a backend. Convenience function that combines get_metrics_url, fetch_metrics, and parseSTRING
HIGHmax/python/max/benchmark/benchmark_shared/workload.py44Loads a workload YAML file's options. A workload file is either flat, with options at the root, or selects the STRING
HIGH…x/benchmark/benchmark_shared/lora_benchmark_manager.py112Get LoRA name for a given request index. Args: request_idx: The request index Returns: STRING
HIGHmax/python/max/benchmark/benchmark_shared/model_csv.py406Loads a result JSON file and returns one flattened row per result. Supports the shapes the benchmarks emit: - STRING
HIGHmax/python/max/benchmark/benchmark_shared/model_csv.py461Chooses the ordered CSV columns from those available in the input. The default (no options) is ``profile.summary``,STRING
HIGHmax/python/max/benchmark/benchmark_shared/model_csv.py615Reads result JSON ``inputs`` and writes a CSV with selected columns. Args: inputs: The result JSTRING
HIGHmax/python/max/benchmark/benchmark_shared/model_csv.py878Applies a function to every key in a mapping and returns a new dict. Args: f: The function to aSTRING
HIGH…n/max/benchmark/benchmark_shared/datasets/interface.py79Factory method to create the appropriate dataset subclass based on dataset name. This factory method automaticaSTRING
HIGH…n/max/benchmark/benchmark_shared/datasets/interface.py142Get the appropriate dataset class for the given dataset name. Args: dataset_name: Name of the datasSTRING
HIGH…n/max/benchmark/benchmark_shared/datasets/interface.py223Sample requests from the dataset. This is the standardized interface that all dataset implementations must follSTRING
HIGH…x/benchmark/benchmark_shared/datasets/agentic_tools.py96Build the per-tool load profiles from a ``tools`` mapping. Args: profiles: A mapping holding a ``tools`` liSTRING
HIGH…ython/max/benchmark/benchmark_shared/datasets/types.py252Read an image file as raw bytes and encode in base64. Preserves the exact original file data, with no transformatioSTRING
HIGH…/python/max/benchmark/benchmark_shared/datasets/all.py96Resolve ``--agentic-tool-profiles``, rejecting incoherent combinations. Args: args: The parsed benchmark coSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py105Parse a distribution parameter that the caller must supply. Args: param: An int or float, or a distSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py127Parse a distribution parameter into a concrete distribution instance. Args: param: An int or float,STRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py275Parse a string like "Cat(v1:w1, v2:w2, ...)" into a CategoricalDistribution. Args: schema: A stringSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py336Parse a string like "N(mean, std)" into a NormalDistribution. Args: schema: A string in the format STRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py383Parse a string like "U(lower, upper)" into a UniformDistribution. Args: schema: A string in the forSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py429Parse a string like "G(shape, scale)" into a GammaDistribution. Args: schema: A string in the formaSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py482Parse a string like "LN(mean, std)" into a LogNormalDistribution. Args: schema: A string in the forSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py548Parse a string like "Burr12(c, d, scale)" into a Burr12Distribution. Args: schema: A string in the STRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py603Parse a string like "DU(lower, upper)" into a DiscreteUniformDistribution. Args: schema: A string iSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py662Parse a string like "NB(n, p)" into a NegativeBinomialDistribution. Args: schema: A string in the fSTRING
HIGH…chmark/benchmark_shared/datasets/image_augmentation.py94Sample pixel dimensions from long-side and aspect-ratio distributions. Args: long_side_dist: Distribution fSTRING
HIGHmax/python/max/experimental/torch/torch.py82Converts a MAX DType to the corresponding torch dtype. Args: dtype: The MAX DType to convert. Returns:STRING
HIGHmax/python/max/experimental/torch/torch.py99Converts a torch dtype to the corresponding MAX DType. Args: dtype: The torch dtype to convert. ReturnSTRING
HIGH…python/max/experimental/cascade/grpc_runtime/client.py197Fetch and decode a single result from the remote server by id. Returns raw JSON-like data (:py:data:`CascadeValSTRING
HIGH…python/max/experimental/cascade/grpc_runtime/client.py236Stream items from a bound server-side iterator, decoded one by one. Yields raw JSON-like data (:py:data:`CascadSTRING
HIGHmax/python/max/dtype/dtype.py88Converts a NumPy dtype to the corresponding DType. Args: dtype: The NumPy dtype to convert. Returns: STRING
HIGHmax/python/max/nn/_weight_utils.py380Builds the weight registry for a model. Each entry of ``arrays`` is checked against the weight it loads into, cSTRING
HIGHmax/python/max/nn/hyper_connection.py118Computes the mHC gates and collapses the streams for the sublayer. Args: hidden_streams: The parallSTRING
HIGHmax/python/max/nn/module.py290Defines the computation performed by the module. Users must override this method in their subclass to define thSTRING
HIGHmax/python/max/nn/module.py513Transfers all module parameters to a single device. Records the target as :attr:`device`. Build the input typesSTRING
HIGHmax/python/max/nn/module.py641Traces ``forward`` and compiles it into a callable. The graph refers to each parameter by name, and ``weights``STRING
HIGHmax/python/max/nn/module.py745Traces ``forward`` and builds the weight registry it binds. This is the tracing half of :meth:`compile`. Use itSTRING
HIGHmax/python/max/nn/legacy/linear.py522Applies a linear transformation to the input data. Args: x: Input :class:`~max.graph.TensorValue` oSTRING
HIGHmax/python/max/nn/legacy/linear.py744Applies a linear transformation to the input data. Args: x: Input sequence of :class:`~max.graph.TeSTRING
HIGHmax/python/max/nn/legacy/hyper_connection.py139Computes the mHC gates and collapses the streams for the sublayer. Args: hidden_streams: The parallSTRING
HIGHmax/python/max/nn/legacy/kernels.py215Computes fused query, key, and value projections with padded input. This is for non-ragged (padded batch) inputs whSTRING
HIGHmax/python/max/nn/legacy/kernels.py351Prepares chunked QKV projections and appends to a paged KV cache. Applies partial NeoX RoPE to Q/K, scales V in FP3STRING
HIGHmax/python/max/nn/legacy/kernels.py1341Computes MiniMax-M3's fused QKV + index-QK projections in one MXFP8 GEMM. A 5-way fusion: ``input`` and ``wqkv`` caSTRING
HIGHmax/python/max/nn/legacy/kernels.py1489Computes MiniMax-M3's fused QKV + index-QK projections in one MXFP6 GEMM. A 5-way fusion: ``input`` and ``wqkv`` caSTRING
HIGHmax/python/max/nn/legacy/kernels.py1631Computes MiniMax-M3's fused QKV + index-QK projections in one BF16 GEMM. Non-scaled BF16 analog of ``_fused_qkv_indSTRING
566 more matches not shown…
Empty Error Handlers153 hits · 765 pts
SeverityFileLineSnippetContext
HIGHmax/kernels/benchmarks/misc/utils/bench.py52except ImportError:CODE
HIGHmax/kernels/benchmarks/misc/utils/bench.py385except (AssertionError, ZeroDivisionError, RuntimeError):CODE
HIGHmax/kernels/benchmarks/misc/utils/bench.py302except (ValueError, ZeroDivisionError):CODE
HIGHmax/kernels/benchmarks/autotune/kbench_model.py1296except Exception:CODE
HIGHmax/kernels/benchmarks/autotune/kbench_model.py259except Exception:CODE
HIGHmax/kernels/benchmarks/autotune/kprofile.py637except:CODE
HIGHmax/python/docs/sphinx_ext/docstring_sources.py141except Exception:CODE
HIGHmax/python/max/_interpreter.py77except Exception:CODE
HIGHmax/python/max/benchmark/serve_replay.py57except Exception:CODE
HIGHmax/python/max/benchmark/serve_replay.py80except Exception:CODE
HIGHmax/python/max/benchmark/serve_replay.py94except Exception:CODE
HIGHmax/python/max/benchmark/benchmark_shared/utils.py152except (urllib.error.URLError, ConnectionError, OSError):CODE
HIGH…/python/max/benchmark/benchmark_shared/datasets/all.py158except Exception:CODE
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py153except ValueError:CODE
HIGH…python/max/experimental/cascade/grpc_runtime/server.py131except asyncio.CancelledError:CODE
HIGH…ython/max/experimental/cascade/grpc_runtime/subproc.py72except FileNotFoundError:CODE
HIGH…python/max/experimental/cascade/grpc_runtime/client.py82except grpc.RpcError:CODE
HIGH…ython/max/experimental/cascade/http_runtime/subproc.py128except aiohttp.ClientError:CODE
HIGHmax/python/max/nn/legacy/parallel/numpy_parallel_ops.py100except Exception:CODE
HIGHmax/python/max/nn/legacy/parallel/numpy_parallel_ops.py108except Exception:CODE
HIGHmax/python/max/nn/legacy/parallel/numpy_parallel_ops.py126except Exception:CODE
HIGHmax/python/max/config/__init__.py387except ValueError:CODE
HIGHmax/python/max/pipelines/context/video.py241except ValueError:CODE
HIGHmax/python/max/pipelines/context/video.py580except av.error.FFmpegError:CODE
HIGHmax/python/max/pipelines/context/video.py603except av.error.FFmpegError:CODE
HIGHmax/python/max/pipelines/context/video.py621except av.error.FFmpegError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py473except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py481except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py488except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py496except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py503except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py511except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py521except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py531except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py543except ModuleNotFoundError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py67except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py79except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py144except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py206except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py317except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py356except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py688except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py51except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py720except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py750except ValueError:CODE
HIGH…thon/max/pipelines/architectures/laguna/tool_parser.py81except json.JSONDecodeError:CODE
HIGH…hon/max/pipelines/architectures/laguna/model_config.py578except (AttributeError, TypeError):CODE
HIGH…hon/max/pipelines/architectures/laguna/model_config.py595except (AttributeError, TypeError):CODE
HIGH…pelines/architectures/gemma4_assistant/model_config.py54except ValueError:CODE
HIGH…ython/max/pipelines/architectures/hy_v4/tool_parser.py267except Exception:CODE
HIGH…thon/max/pipelines/architectures/gemma4/tool_parser.py78except ValueError:CODE
HIGH…elines/architectures/deepseekV41/engram_shared_host.py118except OSError:CODE
HIGH…elines/architectures/deepseekV41/engram_shared_host.py153except FileExistsError:CODE
HIGH…elines/architectures/deepseekV41/engram_shared_host.py626except OSError:CODE
HIGH…elines/architectures/deepseekV41/engram_shared_host.py770except OSError:CODE
HIGH…pipelines/architectures/deepseekV41/weight_adapters.py190except OSError:CODE
HIGH…pipelines/architectures/deepseekV41/weight_adapters.py257except OSError:CODE
HIGH…pipelines/architectures/deepseekV41/weight_adapters.py277except OSError:CODE
HIGH…pelines/architectures/kimik2_5_modulev3/tool_parser.py84except (ValueError, IndexError):CODE
HIGH…on/max/pipelines/architectures/kimik2_5/tool_parser.py84except (ValueError, IndexError):CODE
93 more matches not shown…
Deep Nesting699 hits · 628 pts
SeverityFileLineSnippetContext
LOWmax/kernels/test/gpu/fuzz/fuzz.py1067CODE
LOWmax/kernels/test/gpu/fuzz/fuzz.py1333CODE
LOWmax/kernels/benchmarks/misc/analyze_4wave_autotune.py55CODE
LOWmax/kernels/benchmarks/misc/utils/bench.py61CODE
LOWmax/kernels/benchmarks/misc/utils/bench.py186CODE
LOWmax/kernels/benchmarks/misc/utils/bench.py273CODE
LOW…ernels/benchmarks/misc/comparison/bench_ep_baseline.py457CODE
LOW…s/benchmarks/misc/comparison/bench_amd_m3_moe_chain.py247CODE
LOW…s/benchmarks/misc/comparison/bench_mxfp8_quant_vllm.py48CODE
LOW…s/benchmarks/misc/comparison/bench_mxfp8_quant_vllm.py176CODE
LOWmax/kernels/benchmarks/misc/comparison/sweep_decode.py50CODE
LOW…nchmarks/misc/comparison/bench_mega_ffn_nvfp4_graph.py322CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py444CODE
LOW…s/misc/comparison/bench_flashinfer_trtllm_moe_nvfp4.py268CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1384CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py697CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py747CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py842CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py934CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1648CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1879CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py2040CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py2078CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py2136CODE
LOWmax/kernels/benchmarks/autotune/tuning_codegen.py95CODE
LOWmax/kernels/benchmarks/autotune/kplot.py111CODE
LOWmax/kernels/benchmarks/autotune/kprofile.py750CODE
LOWmax/python/docs/check_api_coverage.py91CODE
LOWmax/python/docs/check_api_coverage.py217CODE
LOWmax/python/docs/check_api_coverage.py469CODE
LOWmax/python/docs/sphinx_ext/docstring_sources.py70CODE
LOWmax/python/docs/sphinx_ext/source_files.py62CODE
LOWmax/python/docs/sphinx_ext/source_files.py115CODE
LOWmax/python/max/tree.py685CODE
LOWmax/python/max/tree.py981CODE
LOWmax/python/max/tree.py737CODE
LOWmax/python/max/tree.py1015CODE
LOWmax/python/max/_interpreter.py279CODE
LOWmax/python/max/benchmark/sweep_benchmark_serving.py145CODE
LOWmax/python/max/benchmark/serve_replay.py65CODE
LOWmax/python/max/benchmark/benchmark_serving.py295CODE
LOWmax/python/max/benchmark/benchmark_serving.py866CODE
LOWmax/python/max/benchmark/benchmark_serving.py1374CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py86CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py794CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py1455CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py387CODE
LOW…ax/benchmark/benchmark_shared/serving_result_output.py248CODE
LOW…ax/benchmark/benchmark_shared/serving_result_output.py459CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py545CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1525CODE
LOW…ython/max/benchmark/benchmark_shared/server_metrics.py262CODE
LOW…ython/max/benchmark/benchmark_shared/server_metrics.py583CODE
LOW…thon/max/benchmark/benchmark_shared/serving_metrics.py304CODE
LOWmax/python/max/benchmark/benchmark_shared/sse.py82CODE
LOW…/max/benchmark/benchmark_shared/gpu_metrics_scraper.py171CODE
LOWmax/python/max/benchmark/benchmark_shared/warmup.py247CODE
LOWmax/python/max/benchmark/benchmark_shared/utils.py100CODE
LOWmax/python/max/benchmark/benchmark_shared/model_csv.py811CODE
LOW…nchmark/benchmark_shared/datasets/tool_augmentation.py43CODE
639 more matches not shown…
Self-Referential Comments233 hits · 579 pts
SeverityFileLineSnippetContext
MEDIUM…local_transformers_setup/cleanup_local_transformers.sh30# Create a temp file to build the cleaned versionCOMMENT
MEDIUM…enchmarks/misc/utils/bench_vllm_flashinfer_decoding.py88 # Create the block tables.COMMENT
MEDIUM…nchmarks/misc/utils/bench_vllm_flashinfer_attention.py82 # Create the block tables.COMMENT
MEDIUM…ernels/benchmarks/misc/utils/warp_profiling/profile.py237 # Create a dictionary of dataframes, one for each groupCOMMENT
MEDIUM…benchmarks/misc/comparison/bench_allreduce_subgraph.py193 # Create a CPU group for coordination (CustomAllreduce needs this)COMMENT
MEDIUM…chmarks/gpu/linalg/bench_matmul_llama3_70B_4xH100.yaml20# This file is facilitate development before GTC and should be combinedCOMMENT
MEDIUMmax/python/docs/build-rsts.sh71 # Create the directory if it does not existCOMMENT
MEDIUMmax/python/max/_interpreter.py248 # Create a new interpreter slots dictionary for this execution.COMMENT
MEDIUMmax/python/max/benchmark/benchmark_serving.py385 # Create a request driver instance without pbar for test promptCOMMENT
MEDIUM…hmark/benchmark_shared/datasets/arxiv_summarization.py75 # Create a summarization promptCOMMENT
MEDIUM…hmark/benchmark_shared/datasets/arxiv_summarization.py112 # Create the full promptCOMMENT
MEDIUM…/python/max/nn/legacy/attention/multihead_attention.py166 # Create a module instance for this deviceCOMMENT
MEDIUMmax/python/max/nn/legacy/moe/quant_strategy.py372 # Create a dummy expert scales tensor with shape (num_experts,) forCOMMENT
MEDIUMmax/python/max/config/__init__.py1052 # Create a wrapper class to override parse_args methodCOMMENT
MEDIUMmax/python/max/graph/quantization.py80 # Create a quantized weight using Q4_K encodingSTRING
MEDIUMmax/python/max/graph/graph.py910 # Create an always-ready chain that is never advanced by the graph.COMMENT
MEDIUMmax/python/max/graph/type.py136 # Create a GPU device reference (default id=0)STRING
MEDIUMmax/python/max/graph/type.py139 # Create a CPU device with specific idSTRING
MEDIUMmax/python/max/graph/type.py375 # Create a tensor type with float32 elements and static dimensions 2x3STRING
MEDIUMmax/python/max/graph/type.py543 # Create an opaque type with parametersSTRING
MEDIUM⚡max/python/max/graph/value.py378 # Create a sample matrixSTRING
MEDIUM⚡max/python/max/graph/value.py381 # Create a Graph context to work with tensorsSTRING
MEDIUM⚡max/python/max/graph/value.py383 # Create a constant tensor from the matrixSTRING
MEDIUM⚡max/python/max/graph/value.py488 # Create a 2x2 matrixSTRING
MEDIUM⚡max/python/max/graph/value.py491 # Create a Graph context to work with tensorsSTRING
MEDIUM⚡max/python/max/graph/value.py493 # Create a constant tensor from the matrixSTRING
MEDIUM⚡max/python/max/graph/value.py518 # Create a matrix with float32 valuesSTRING
MEDIUM⚡max/python/max/graph/value.py521 # Create a Graph context to work with tensorsSTRING
MEDIUM⚡max/python/max/graph/value.py523 # Create a constant tensor from the matrixSTRING
MEDIUM⚡max/python/max/graph/value.py543 # Create a 2x2 matrix (2-dimensional array)STRING
MEDIUM⚡max/python/max/graph/value.py546 # Create a Graph context to work with tensorsSTRING
MEDIUM⚡max/python/max/graph/value.py548 # Create a constant tensor from the matrixSTRING
MEDIUM⚡max/python/max/graph/value.py575 # Create a 2x2 matrixSTRING
MEDIUM⚡max/python/max/graph/value.py578 # Create a Graph context to work with tensorsSTRING
MEDIUM⚡max/python/max/graph/value.py580 # Create a constant tensor from the matrixSTRING
MEDIUM⚡max/python/max/graph/value.py611 # Create a 2x2 matrixSTRING
MEDIUM⚡max/python/max/graph/value.py614 # Create a Graph context to work with tensorsSTRING
MEDIUM⚡max/python/max/graph/value.py616 # Create a constant tensor from the matrixSTRING
MEDIUM⚡max/python/max/graph/value.py645 # Create a 2x2 matrixSTRING
MEDIUM⚡max/python/max/graph/value.py648 # Create a Graph context to work with tensorsSTRING
MEDIUM⚡max/python/max/graph/value.py650 # Create a constant tensor from the matrixSTRING
MEDIUM⚡max/python/max/graph/value.py678 # Create a matrix with float32 valuesSTRING
MEDIUM⚡max/python/max/graph/value.py681 # Create a Graph context to work with tensorsSTRING
MEDIUM⚡max/python/max/graph/value.py683 # Create a constant tensor from the matrixSTRING
MEDIUMmax/python/max/graph/value.py81 # Create a graph contextSTRING
MEDIUMmax/python/max/graph/value.py768 # Create a 2x3 matrixSTRING
MEDIUMmax/python/max/graph/value.py812 # Create a 2x2 matrixSTRING
MEDIUMmax/python/max/graph/value.py816 # Create a tensor on the default deviceSTRING
MEDIUMmax/python/max/graph/value.py844 # Define a 2x3 float32 input tensor for the graphSTRING
MEDIUMmax/python/max/graph/value.py873 # Define a 2x3 float32 input tensor for the graphSTRING
MEDIUMmax/python/max/graph/value.py902 # Define a 2x3 float32 input tensor for the graphSTRING
MEDIUMmax/python/max/graph/value.py932 # Define a 2x3 float32 input tensor for the graphSTRING
MEDIUMmax/python/max/graph/value.py964 # Define a 2x3 float32 input tensor for the graphSTRING
MEDIUMmax/python/max/graph/value.py996 # Define a 2x3 float32 input tensor for the graphSTRING
MEDIUMmax/python/max/graph/dim.py39 # Create a TensorType with a symbolic "batch" dimension and a static dimension of size 10STRING
MEDIUMmax/python/max/graph/ops/slice_tensor.py212 # Create a slice(None, None, None) index, for each dim indexed by ellipsis.COMMENT
MEDIUMmax/python/max/_interpreter_ops/handlers.py1206 # Create a 1D tensor of si64 valuesCOMMENT
MEDIUMmax/python/max/pipelines/context/tokens.py31 # Create a token buffer with initial prompt tokensSTRING
MEDIUM…elines/architectures/deepseekV3_2/layers/transforms.py63 # This function is a slightly modified version of theCOMMENT
MEDIUM…thon/max/pipelines/architectures/gpt_oss/layers/moe.py66 # Initialize parent classCOMMENT
173 more matches not shown…
Modern Structural Boilerplate573 hits · 568 pts
SeverityFileLineSnippetContext
LOW…er-connector-pyo3/python/kv_tier_connector/__init__.py28__all__ = ["TierConnector", "TierTransfer"]CODE
LOW…x/kernels/benchmarks/misc/comparison/install_sglang.py18def update_pip() -> None:CODE
LOWmax/python/docs/sphinx_ext/docstring_sources.py46logger = logging.getLogger(__name__)CODE
LOWmax/python/max/tree.py60__all__ = [CODE
LOWmax/python/max/_eager_policy.py24logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_serving.py172logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/results_to_csv.py78logger = logging.getLogger(__name__)STRING
LOWmax/python/max/benchmark/benchmark_shared/iteration.py36logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py62logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py61__all__ = [CODE
LOW…max/benchmark/benchmark_shared/backend_metric_names.py37__all__ = [CODE
LOW…ax/benchmark/benchmark_shared/serving_result_output.py73logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py68logger = logging.getLogger(__name__)CODE
LOW…ython/max/benchmark/benchmark_shared/server_metrics.py46logger = logging.getLogger(__name__)CODE
LOW…thon/max/benchmark/benchmark_shared/serving_metrics.py54logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/workload.py28logger = logging.getLogger(__name__)CODE
LOW…x/benchmark/benchmark_shared/gpu_metrics_prometheus.py52logger = logging.getLogger(__name__)CODE
LOW…/max/benchmark/benchmark_shared/gpu_metrics_scraper.py52logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/warmup.py46logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/utils.py39logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/utils.py348def set_ulimit(target_soft_limit: int = 65535) -> None:CODE
LOW…x/benchmark/benchmark_shared/lora_benchmark_manager.py30logger = logging.getLogger(__name__)CODE
LOW…x/python/max/benchmark/benchmark_shared/single_turn.py65logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/model_csv.py74logger = logging.getLogger(__name__)CODE
LOW…python/max/benchmark/benchmark_shared/workload_file.py51logger = logging.getLogger(__name__)CODE
LOW…nchmark/benchmark_shared/datasets/tool_augmentation.py40logger = logging.getLogger(__name__)CODE
LOW…chmark_shared/datasets/response_format_augmentation.py44logger = logging.getLogger(__name__)CODE
LOW…/benchmark/benchmark_shared/datasets/instruct_coder.py40logger = logging.getLogger(__name__)CODE
LOW…enchmark_shared/datasets/multiturn_distribution_fit.py88logger = logging.getLogger(__name__)CODE
LOW…nchmark/benchmark_shared/datasets/nemotron_opencode.py43logger = logging.getLogger(__name__)CODE
LOW…on/max/benchmark/benchmark_shared/datasets/__init__.py56__all__ = [CODE
LOW…/python/max/benchmark/benchmark_shared/datasets/all.py90logger = logging.getLogger(__name__)CODE
LOW…thon/max/benchmark/benchmark_shared/datasets/random.py45logger = logging.getLogger(__name__)CODE
LOW…ax/benchmark/benchmark_shared/datasets/agentic_code.py42logger = logging.getLogger(__name__)CODE
LOW…chmark/benchmark_shared/datasets/image_augmentation.py49logger = logging.getLogger(__name__)CODE
LOW…hmark/benchmark_shared/datasets/artificial_analysis.py45logger = logging.getLogger(__name__)CODE
LOW…n/max/benchmark/benchmark_shared/datasets/batch_job.py42logger = logging.getLogger(__name__)CODE
LOW…/max/benchmark/benchmark_shared/datasets/chat_judge.py37logger = logging.getLogger(__name__)CODE
LOWmax/python/max/experimental/torch/__init__.py27__all__ = [CODE
LOWmax/python/max/experimental/cascade/__init__.py45__all__ = [CODE
LOW…python/max/experimental/cascade/grpc_runtime/server.py48logger = logging.getLogger(__name__)CODE
LOW…python/max/experimental/cascade/grpc_runtime/client.py71logger = logging.getLogger(__name__)CODE
LOW…thon/max/experimental/cascade/grpc_runtime/__init__.py20__all__ = ["GrpcRuntimeClient", "SubprocGrpcRuntimeClient"]CODE
LOW…ython/max/experimental/cascade/grpc_runtime/runtime.py20__all__ = ["GrpcRuntimeClient", "SubprocGrpcRuntimeClient"]CODE
LOWmax/python/max/experimental/cascade/core/__init__.py29__all__ = [CODE
LOWmax/python/max/experimental/cascade/core/fd_limits.py22logger = logging.getLogger(__name__)CODE
LOW…python/max/experimental/cascade/http_runtime/server.py65logger = logging.getLogger(__name__)CODE
LOW…thon/max/experimental/cascade/http_runtime/__init__.py28__all__ = ["HttpRuntimeProxy", "SubprocHttpRuntime"]CODE
LOW…thon/max/experimental/cascade/workers/max_tokenizer.py36logger = logging.getLogger(__name__)CODE
LOW…n/max/experimental/cascade/workers/max_model_worker.py50logger = logging.getLogger(__name__)CODE
LOW…python/max/experimental/cascade/telemetry/_provider.py48logger = logging.getLogger(__name__)CODE
LOW…/python/max/experimental/cascade/telemetry/__init__.py38__all__ = [CODE
LOWmax/python/max/experimental/cascade/serve/__init__.py18__all__ = ["CascadeFastAPI", "build_router"]CODE
LOWmax/python/max/experimental/cascade/serve/main.py64logger = logging.getLogger(__name__)CODE
LOWmax/python/max/_xgrammar/structural_tag.py630__all__ = [CODE
LOWmax/python/max/_xgrammar/__init__.py329__all__ = [CODE
LOWmax/python/max/nn/__init__.py74__all__ = [CODE
LOWmax/python/max/nn/_compilation_timer.py34__all__ = [CODE
LOWmax/python/max/nn/module.py49__all__ = [CODE
LOWmax/python/max/nn/rope/__init__.py17__all__ = [CODE
513 more matches not shown…
Cross-Language Confusion114 hits · 538 pts
SeverityFileLineSnippetContext
HIGHmax/kernels/benchmarks/autotune/kdiff.py50 export KUBECONFIG=/dev/null ; # recommendedSTRING
HIGH…max/benchmark/benchmark_shared/backend_metric_names.py66 corresponding ``BenchmarkResult`` field stays null) rather than guessingSTRING
HIGHmax/python/max/nn/common_layers/quant_mla.py259 """Fused ``q_a_proj || kv_a_proj_with_mqa`` (bf16 or FP8)."""STRING
HIGH…thon/max/pipelines/architectures/glm5_1/tool_parser.py110 # case; decode only non-string JSON (numbers, booleans, null, arrays,COMMENT
HIGH…pipelines/architectures/deepseekV41/image_processor.py101 "DeepSeek-V4.1 vision_config.max_wh_ratio must be null, got"CODE
HIGHmax/python/max/pipelines/kv_cache/config.py143 default=KVConnectorType.null,CODE
HIGH…lines/kv_cache/paged_kv_cache/recurrent_coordinator.py39 Every block behind it is null, a published checkpoint, or one aSTRING
HIGH…elines/kv_cache/paged_kv_cache/kv_group_coordinator.py98 every block below it is null, published, or permanently incomplete.STRING
HIGHmax/python/max/pipelines/lib/embeddings_pipeline.py147 tracer.push("prepare_response")CODE
HIGHmax/python/max/profiler/tracing.py137 tracer.push("child_operation")STRING
HIGHmax/python/max/profiler/tracing.py144 tracer.push("child_operation")STRING
HIGHmax/python/max/profiler/tracing.py164 self.push(message, color)CODE
HIGHmax/python/max/profiler/tracing.py219 self.push(message, color)CODE
HIGHmax/python/max/serve/parser/json_utils.py25 (?<boolean> true | false | null )CODE
HIGHmax/python/max/serve/schemas/_decisions.py59# scalars (numbers, booleans, null) are not accepted.COMMENT
HIGHmax/python/max/serve/worker_interface/zmq_interface.py332 response_queue=self.response_queue_config.push(),CODE
HIGHmax/python/max/serve/worker_interface/_zmq_queue.py273 return self.push(), self.pull()CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py569 ([DeviceSpec.cpu()], KVConnectorType.null, 0),CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py570 ([DeviceSpec.accelerator(id=0)], KVConnectorType.null, 0),CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py574 KVConnectorType.null,CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py579 KVConnectorType.null,CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py584 KVConnectorType.null,CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py636 (1, KVConnectorType.null, 1),CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py638 (2, KVConnectorType.null, 1),CODE
HIGHmax/tests/integration/graph/test_horizontal_fusion.py176 accumulation buffer from `dtypeChanges && containsMatmulOrConvOrConcat`,CODE
HIGH…tectures/mimo_v2_modulev3/test_serving_numerics_gpu.py59"""Bounds on KL(HF || MAX) over the whole vocabulary, and on top-1STRING
HIGH…tectures/mimo_v2_modulev3/test_serving_numerics_gpu.py86 """Each row's KL(gold || test)."""STRING
HIGH…rchitectures/mimo_v2_modulev3/test_v2_v3_parity_gpu.py60"""V3's mean KL(HF || V3) over every row of both prompts may be at mostSTRING
HIGH…rchitectures/mimo_v2_modulev3/test_v2_v3_parity_gpu.py83 """Each row's KL(gold || test)."""STRING
HIGH⚡…chitectures/dspark_gemma4/test_dspark_gemma4_module.py700 """Mean per-position KL(ref || max) over fp32 softmax distributions."""STRING
HIGH⚡…ectures/dspark_draft/test_dspark_speculators_module.py399 """Mean per-position KL(ref || max) over fp32 softmax distributions."""STRING
HIGH…ion/architectures/mimo_v2/test_serving_numerics_gpu.py40"""Bounds on KL(HF || MAX) over the whole vocabulary, and on top-1STRING
HIGH…ion/architectures/mimo_v2/test_serving_numerics_gpu.py59 """Each row's KL(gold || test)."""STRING
HIGH…tion/architectures/mimo_v2/check_reference_fixtures.py62 """The fixtures' ``kl64``: KL(gold || test) over gold's top 64 + tail."""STRING
HIGH⚡…/integration/architectures/qwen3_5/test_tool_parser.py494 # string | null: a number-looking value is not null, so it stays text.COMMENT
HIGH⚡…tegration/pipelines/tokenization/test_xgrammar_shim.py4019 ({"type": "object"}, '{"a": ["x", {"b": null}]}', '{"a": 1 zzz}'),CODE
HIGH⚡…tegration/pipelines/tokenization/test_xgrammar_shim.py4022 '{"a": ["x", {"b": null}]}',CODE
HIGH⚡…tegration/pipelines/tokenization/test_xgrammar_shim.py4025 ({"type": "array"}, '[1, ["x", {"b": null}]]', "[1 zzz]"),CODE
HIGH…/pipelines/tokenization/test_tool_grammar_fill_cost.py67_COMMAND = "cd /tmp && ls -la | grep -v total"CODE
HIGH…okenization/test_kimi_reasoning_toolarg_enforcement.py161# anyOf(string-enum | null): once the value opens with a quote, only theCOMMENT
HIGH⚡…/accuracy/model_evals/test_exacto_gpqa_answer_audit.py68 "scores":{"mcq_scorer":{"answer":null,"value":"I"}},CODE
HIGH⚡…/accuracy/model_evals/test_exacto_gpqa_answer_audit.py79 "target":"A","scores":{"mcq_scorer":{"answer":null,"value":"I"}},CODE
HIGH…ation/accuracy/llm_fuzz/scenarios/structured_output.py207 # (non-dict, null, recursive $ref) must be rejected.COMMENT
HIGH…tion/accuracy/llm_fuzz/scenarios/models/kimi_battle.py103 f"Expected str|null, got {type(data['value']).__name__}"CODE
HIGH…ation/accuracy/llm_fuzz/scenarios/models/glm_battle.py222 detail=f"nickname should be string or null, got {type(data['nickname']).__name__}",CODE
HIGH…ation/accuracy/llm_fuzz/scenarios/models/glm_battle.py297 detail=f"value should be string or null, got {type(data['value']).__name__}",CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1263 # 15. anyOf with nullable string: anyOf: [{type:string},{type:null}]COMMENT
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1257 "and reason is null (must be null, not a string)."CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1426 f"status={status!r} not in enum ['active','inactive',null]"CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1461 f"not in [true, false, null]"CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py2812 "string 'none' instead of null. Do not use null, "CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py4085 f"name: expected string or null, got {type(name).__name__}"CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py4091 f"age: expected integer or null, got "CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py4098 f"tags: expected array or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py139 "integer vs number, null, nested objects, fixed property order"CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py918 f"nickname: expected string or null, got {type(nickname).__name__}"CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1180 f"nickname: expected string or null, got {type(nn).__name__}"CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1231 f"reason: expected null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1279 f"middle_name: expected string or null, "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1874 f"score: expected number or null, "CODE
54 more matches not shown…
Excessive Try-Catch Wrapping510 hits · 499 pts
SeverityFileLineSnippetContext
LOW…egration-test/python/test_signal_handler_python_gil.py86 except Exception as e:CODE
LOW…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py593 except Exception as e:CODE
LOW…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py780 except Exception as e:CODE
LOW…s/benchmarks/misc/comparison/bench_amd_m3_moe_chain.py737 except Exception as e:CODE
MEDIUM…s/benchmarks/misc/comparison/bench_blackwell_decode.py59 print(f"Error: flashinfer not available: {e}")CODE
LOW…s/benchmarks/misc/comparison/bench_blackwell_decode.py507 except Exception as e:CODE
LOW…s/benchmarks/misc/comparison/bench_blackwell_decode.py525 except Exception as e:CODE
LOW…s/benchmarks/misc/comparison/bench_mxfp8_quant_vllm.py93except Exception:CODE
LOW…s/benchmarks/misc/comparison/bench_mxfp8_quant_vllm.py196 except Exception:CODE
MEDIUM…nchmarks/misc/comparison/bench_blackwell_mla_decode.py126 print(f"Error: flashinfer not available: {e}")CODE
LOW…nchmarks/misc/comparison/bench_blackwell_mla_decode.py1049 except Exception as e:CODE
LOW…nchmarks/misc/comparison/bench_blackwell_mla_decode.py1070 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/sweep_decode.py169 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/sweep_decode.py193 except Exception as e:CODE
LOW…/kernels/benchmarks/misc/comparison/setup_bench_env.py380 except Exception as e:CODE
LOW…/kernels/benchmarks/misc/comparison/setup_bench_env.py567 except Exception as e:CODE
LOW…/kernels/benchmarks/misc/comparison/setup_bench_env.py592 except Exception as e:CODE
LOW…/kernels/benchmarks/misc/comparison/setup_bench_env.py608 except Exception as e:CODE
MEDIUM…/benchmarks/misc/comparison/bench_blackwell_prefill.py52 print(f"Error: flashinfer not available: {e}")CODE
MEDIUM…/benchmarks/misc/comparison/bench_blackwell_prefill.py65 print(f"Error: flash-attn-4 not available: {e}")CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py504 except Exception as e:CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py524 except Exception as e:CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py543 except Exception as e:CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py148 except Exception as e:CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py196 except Exception:CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py226 except Exception as e:CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py267 except Exception as e:CODE
MEDIUM…benchmarks/misc/comparison/bench_allreduce_subgraph.py355 print("Error: This benchmark requires mpirun for multi-GPU execution.")CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_softmax.py136 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py501 except Exception as e:CODE
LOW⚡max/kernels/benchmarks/misc/comparison/bench_amd_mla.py838 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1287 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1488 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1558 except Exception as e:CODE
LOWmax/kernels/benchmarks/autotune/kbench.py720 except Exception:CODE
MEDIUMmax/kernels/benchmarks/autotune/kbench.py717def main() -> None:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py160 except Exception as e:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py169 except Exception as exc:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py259 except Exception:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py638 except Exception as e:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1262 except Exception as e:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1296 except Exception:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py104 except Exception:CODE
LOWmax/python/docs/sphinx_ext/docstring_sources.py104 except Exception:CODE
LOWmax/python/docs/sphinx_ext/docstring_sources.py141 except Exception:CODE
LOWmax/python/docs/sphinx_ext/typing_xrefs.py63 except Exception:CODE
LOWmax/python/docs/sphinx_ext/source_files.py137 except Exception:CODE
LOWmax/python/docs/sphinx_ext/source_files.py159 except Exception:CODE
LOWmax/python/docs/sphinx_ext/source_files.py174 except Exception:CODE
LOWmax/python/docs/sphinx_ext/source_files.py245 except Exception:CODE
LOWmax/python/max/tree.py157 except Exception:CODE
LOWmax/python/max/_interpreter.py50except Exception as _e:CODE
LOWmax/python/max/_interpreter.py77 except Exception:CODE
LOWmax/python/max/benchmark/serve_replay.py57 except Exception:CODE
LOWmax/python/max/benchmark/serve_replay.py80 except Exception:CODE
LOWmax/python/max/benchmark/serve_replay.py94 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_serving.py503 except Exception as e:CODE
LOWmax/python/max/benchmark/benchmark_serving.py544 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_serving.py786 except Exception as e:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py608 except Exception:CODE
450 more matches not shown…
AI Slop Vocabulary152 hits · 492 pts
SeverityFileLineSnippetContext
MEDIUM⚡max/kernels/test/gpu/fuzz/fuzz.py115 # target, and `corpus/mega_ffn/` would sit under the harness directory,COMMENT
MEDIUM⚡max/kernels/test/gpu/fuzz/fuzz.py118 # `-I max/kernels/test/gpu/fuzz` for `_fuzz`, which makes the harnessCOMMENT
MEDIUM⚡max/kernels/test/gpu/fuzz/fuzz.py124 # corpus out of the harness directory.COMMENT
MEDIUM…/kernels/test/gpu/compute_sanitizer/stress_schedule.sh15# Schedule-amplification harness for inter-block global-memory races.COMMENT
MEDIUM…/kernels/test/gpu/compute_sanitizer/stress_schedule.sh26# This harness amplifies the schedule with three knobs that need no kernelCOMMENT
MEDIUM…ernels/benchmarks/misc/utils/warp_profiling/profile.py119 # Create comprehensive visualization showing all SMsCOMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py43# in that range, so they measure partly L2-warm. What this harness doesCOMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py47# the narrower ones. Absolute cold-HBM MXFP6 numbers need a harness thatCOMMENT
MEDIUM…chmarks/gpu/linalg/bench_matmul_llama3_70B_4xH100.yaml20# This file is facilitate development before GTC and should be combinedCOMMENT
LOWmax/kernels/benchmarks/autotune/kbench_model.py544 # just use compile-time parameters and ignore runtime variables.COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/metrics.py916 # the harness didn't launch the server (e.g. benchmarking an externalCOMMENT
LOWmax/python/max/nn/legacy/quant_ops.py521 # activation scales are [1xm] which but in the dynamic scaled matmul we expect just use x_scale[0,0]COMMENT
MEDIUMmax/python/max/nn/legacy/parallel/numpy_parallel_ops.py268 # to better utilize available parallelism and memory bandwidth.COMMENT
LOW…/max_license/mlir_nanobind/tblgen/backends/nanobind.py110 # - if there's multiple setters, just use the first one we findCOMMENT
MEDIUMmax/python/max/config/config_file_model.py109 """Optional section name for comprehensive/multi-section config files.STRING
MEDIUMmax/python/max/driver/buffer.py433 # Hardcoded but we should move to a robust versioning system if thisCOMMENT
MEDIUMmax/python/max/graph/graph.py1072 # This may over-declare but is deterministic and comprehensive.COMMENT
MEDIUMmax/python/max/pipelines/logging_utils.py43 """Logs comprehensive pipeline and KVCache configuration information.STRING
MEDIUMmax/python/max/pipelines/context/sampling_params.py341 """Logs comprehensive sampling parameters information.STRING
MEDIUMmax/python/max/pipelines/lib/eplb_stats.py407 # (wherever the harness injects them), so no separate host counter isCOMMENT
LOWmax/python/max/_entrypoints/pipelines.py1405 # Help was requested and printed, just returnCOMMENT
MEDIUMmax/python/max/serve/config.py519 """Log comprehensive server configuration information.STRING
MEDIUM…/max/serve/scheduler/batch_constructor/token_budget.py101 """Whether this budget may shrink the context via ``context.chunk`` in order to fit within the remaining capacitSTRING
MEDIUMmax/python/layer_benchmarks/precompile_layer.py34 # A session only because the harness signature takes one; graph buildingCOMMENT
MEDIUMmax/python/layer_benchmarks/testbed/runner.py102 # weights registry (and the reference weights a harness stashesCOMMENT
MEDIUMmax/python/layer_benchmarks/testbed/runner.py231 # Compile first so harness can store weights for the torch reference.COMMENT
MEDIUM⚡…x/python/layer_benchmarks/testbed/kbench_entrypoint.py44# harness ABC so each harness declares its own shape keys.COMMENT
MEDIUM⚡…x/python/layer_benchmarks/testbed/kbench_entrypoint.py48# to the harness as static params.COMMENT
MEDIUM…x/python/layer_benchmarks/testbed/kbench_entrypoint.py122 # Extract harness name from the config bundle.COMMENT
MEDIUM…x/python/layer_benchmarks/testbed/kbench_entrypoint.py136 # Filter out control keys before passing to the harness.COMMENT
MEDIUM…ayer_benchmarks/testbed/harnesses/wan_vae_attention.py165 # harness catches that regression), small enough thatCOMMENT
MEDIUM…sts/integration/graph/test_custom_kernel_validation.py387 # Test multiple operations in sequence to ensure comprehensive validationCOMMENT
MEDIUM…sts/integration/graph/test_custom_kernel_validation.py341 """Tests for comprehensive kernel signature validation."""STRING
LOW…integration/architectures/deepseekV3_2/test_indexer.py329 # ``slice_freqs_cis`` and just pass ``rope.freqs_cis``.COMMENT
MEDIUM…architectures/mimo_v2_modulev3/test_base_graph_tree.py110 # A fresh lazy context for the stage, as the CPU harness does: sharingCOMMENT
MEDIUM…ration/architectures/gemma4_modulev3/test_attention.py68# ModuleV3 harnessCOMMENT
MEDIUM…ctures/dflash_mimo_v2_modulev3/test_fused_graph_cpu.py288 # the ModuleV3 MiMo CPU harness does.COMMENT
MEDIUMmax/tests/integration/accuracy/llm_fuzz_matrix.py32# exercises the harness end to end without taking an accelerator.COMMENT
MEDIUMmax/tests/integration/accuracy/llm_fuzz_matrix.py133 # Tiny model on CPU: a cheap end-to-end check of the fuzz harness and theCOMMENT
MEDIUMmax/tests/integration/accuracy/run_mmmu_video_eval.py757 # Fail on a broken harness (no successful inferences / mostly errors) soCOMMENT
LOWmax/tests/integration/accuracy/verify_pipelines.py1305 # Let generate_llm_logits.py validate the `--devices` CLI arg and just passCOMMENT
MEDIUM⚡…gration/accuracy/model_evals/run_omnidocbench_local.sh19# OmniDocBench scores with a third-party harness (pdf_validation.py) that needsCOMMENT
MEDIUM⚡…gration/accuracy/model_evals/run_omnidocbench_local.sh36# Passed to the harness by environment, never written toCOMMENT
MEDIUM…gration/accuracy/model_evals/run_omnidocbench_local.sh59# --refresh Re-clone the harness and rebuild its venv.COMMENT
MEDIUM⚡…gration/accuracy/model_evals/run_omnidocbench_local.sh145# while the harness appends its own; normalize so either form works.COMMENT
MEDIUM⚡…gration/accuracy/model_evals/run_omnidocbench_local.sh150# The harness takes a directory, so the pages to run are staged as symlinks:COMMENT
MEDIUM⚡…gration/accuracy/model_evals/run_omnidocbench_local.sh156# build_save_name() in the harness derives its output name from the predictionCOMMENT
MEDIUM…gration/accuracy/model_evals/run_omnidocbench_local.sh183# into the harness venv would shadow that venv's own packages (the same hazardCOMMENT
MEDIUM…gration/accuracy/model_evals/run_omnidocbench_local.sh221 # The harness requires Python < 3.12.COMMENT
MEDIUM…gration/accuracy/model_evals/run_omnidocbench_local.sh230# The display-formula CDM metric renders LaTeX; without it the harness leavesCOMMENT
MEDIUM…gration/accuracy/model_evals/run_omnidocbench_local.sh256 # ImageMagick 6 on Ubuntu ships `convert`; the harness calls IM7's `magick`.COMMENT
MEDIUM…gration/accuracy/model_evals/run_omnidocbench_local.sh395 # ./result is written relative to the harness's working directory.COMMENT
MEDIUM…ests/integration/accuracy/model_evals/exacto_report.py51#: The openbench harness normalizes the OpenAI finish_reason "length" ontoCOMMENT
MEDIUM…ests/integration/accuracy/model_evals/exacto_report.py53#: (verified against inspect_ai 0.3.125); "length" is kept for a harness thatCOMMENT
MEDIUM…ests/integration/accuracy/model_evals/exacto_report.py237 # The task names the harness it reproduces; openbench's own tasks do not.COMMENT
MEDIUM…ests/integration/accuracy/model_evals/exacto_report.py263 # Set by tasks that, like the harness, send media from a manifest: twoCOMMENT
MEDIUM…ests/integration/accuracy/model_evals/exacto_report.py266 # The harness scores a request the server rejected (a 400 for anCOMMENT
MEDIUM…ests/integration/accuracy/model_evals/exacto_report.py290#: chance — an API or harness failure, not the agent losing. ``max_steps`` isCOMMENT
MEDIUM…ests/integration/accuracy/model_evals/exacto_report.py466# This module is executed by the pinned third-party harness venv (openbench orCOMMENT
MEDIUM⚡…tegration/accuracy/model_evals/run_exacto_vgi_local.sh20# (benchmark_type "vgi_bench") with its own TypeScript harness,COMMENT
92 more matches not shown…
AI Structural Patterns192 hits · 178 pts
SeverityFileLineSnippetContext
LOW…s/benchmarks/misc/comparison/bench_blackwell_decode.py431CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py339CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py146CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py349CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py390CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py431CODE
LOWmax/kernels/benchmarks/autotune/kbench.py105CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py523CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py86CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py436CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py610CODE
LOW…/benchmark/benchmark_shared/datasets/instruct_coder.py202CODE
LOW…enchmark_shared/datasets/multiturn_distribution_fit.py551CODE
LOW…nchmark/benchmark_shared/datasets/nemotron_opencode.py461CODE
LOW…ax/benchmark/benchmark_shared/datasets/agentic_code.py295CODE
LOWmax/python/max/nn/module.py629CODE
LOWmax/python/max/nn/conv.py80CODE
LOWmax/python/max/nn/legacy/kernels.py502CODE
LOWmax/python/max/nn/legacy/kernels.py6138CODE
LOWmax/python/max/nn/legacy/kernels.py6364CODE
LOWmax/python/max/nn/legacy/kernels.py8369CODE
LOWmax/python/max/nn/legacy/kernels.py9291CODE
LOWmax/python/max/nn/legacy/kernels.py9716CODE
LOWmax/python/max/nn/legacy/kernels.py10138CODE
LOWmax/python/max/nn/legacy/kernels.py10404CODE
LOWmax/python/max/nn/legacy/kernels.py10908CODE
LOWmax/python/max/nn/legacy/kernels.py11059CODE
LOWmax/python/max/nn/legacy/kernels.py11209CODE
LOWmax/python/max/nn/legacy/kernels.py11257CODE
LOWmax/python/max/nn/legacy/kernels.py11343CODE
LOWmax/python/max/nn/legacy/kernels.py11430CODE
LOWmax/python/max/nn/legacy/kernels.py12896CODE
LOWmax/python/max/nn/legacy/kernels.py14357CODE
LOWmax/python/max/nn/legacy/kernels.py14432CODE
LOWmax/python/max/nn/legacy/conv_transpose.py88CODE
LOWmax/python/max/nn/legacy/conv_transpose.py297CODE
LOWmax/python/max/nn/legacy/conv.py96CODE
LOWmax/python/max/nn/legacy/conv.py382CODE
LOWmax/python/max/nn/legacy/conv.py586CODE
LOWmax/python/max/nn/legacy/quant_ops.py166CODE
LOWmax/python/max/nn/legacy/quant_ops.py199CODE
LOW…/python/max/nn/legacy/attention/attention_with_rope.py60CODE
LOW…/python/max/nn/legacy/attention/attention_with_rope.py986CODE
LOW…/python/max/nn/legacy/attention/attention_with_rope.py1147CODE
LOW…thon/max/nn/legacy/attention/multi_latent_attention.py91CODE
LOW…thon/max/nn/legacy/attention/multi_latent_attention.py580CODE
LOW…/max/nn/legacy/attention/multi_latent_attention_fp8.py59CODE
LOWmax/python/max/nn/legacy/sampling/rejection_sampler.py1129CODE
LOWmax/python/max/nn/legacy/sampling/rejection_sampler.py732CODE
LOWmax/python/max/nn/legacy/moe/stacked_moe.py302CODE
LOWmax/python/max/nn/legacy/moe/moe.py292CODE
LOW…/python/max/nn/common_layers/multi_latent_attention.py71CODE
LOWmax/python/max/nn/common_layers/quant_mla.py79CODE
LOWmax/python/max/graph/graph.py847CODE
LOWmax/python/max/graph/ops/nonzero.py68CODE
LOWmax/python/max/graph/ops/concat.py97CODE
LOWmax/python/max/pipelines/context/video.py458CODE
LOWmax/python/max/pipelines/context/video.py739CODE
LOW…max/pipelines/architectures/laguna/layers/attention.py75CODE
LOW…/max/pipelines/architectures/olmo3/layers/attention.py216CODE
132 more matches not shown…
Structural Annotation Overuse78 hits · 128 pts
SeverityFileLineSnippetContext
LOWCONTRIBUTING.md46### Step 1: Evaluate and get buy-in on the changeCOMMENT
LOWCONTRIBUTING.md95### Step 2: Create a pull requestCOMMENT
LOWCONTRIBUTING.md244### Step 3: PR triage and reviewCOMMENT
LOWCONTRIBUTING.md257### Step 4: Internal review and syncingCOMMENT
LOWCONTRIBUTING.md276### Step 5: Review feedback and iterationCOMMENT
LOW⚡…/max/pipelines/architectures/olmo3/layers/attention.py170 # Step 1: QKV matmul.COMMENT
LOW⚡…/max/pipelines/architectures/olmo3/layers/attention.py177 # Step 2: Apply full-dimension QK norm before rope.COMMENT
LOW⚡…/max/pipelines/architectures/olmo3/layers/attention.py187 # Step 3: Fused rope + split + KV store.COMMENT
LOW…/max/pipelines/architectures/olmo3/layers/attention.py202 # Step 5: Compute flash attention (reads K/V from cache)COMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py800 # Step 1: Extract prompt from request and apply chat template if neededCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py837 # Step 2: Load and process imagesCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py855 # Step 3: Process images with custom image processor (if any) and expand <|image_pad|> placeholders in textCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py951 # Step 4: Tokenize the expanded textCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py1019 # Step 5: Assemble the vision encoder's inputs, in PROMPT order.COMMENT
LOW⚡…lines/architectures/olmo2_modulev3/layers/attention.py144 # Step 1: QKV matmul.COMMENT
LOW⚡…lines/architectures/olmo2_modulev3/layers/attention.py151 # Step 2: Apply full-dimension QK norm before rope.COMMENT
LOW⚡…lines/architectures/olmo2_modulev3/layers/attention.py160 # Step 3: Fused rope + split + KV store.COMMENT
LOW…lines/architectures/olmo2_modulev3/layers/attention.py175 # Step 5: Compute flash attentionCOMMENT
LOWmax/python/max/pipelines/lib/eplb_rebalance.py151 # Step 1: pack groups to nodes.COMMENT
LOW⚡max/python/max/pipelines/lib/eplb_rebalance.py167 # Step 2: construct redundant experts within nodes.COMMENT
LOW⚡max/python/max/pipelines/lib/eplb_rebalance.py175 # Step 3: pack physical experts to GPUs within each node.COMMENT
LOWmax/tests/integration/accuracy/llm_fuzz/model_config.py223 # Step 1: Try HuggingFace fetch using --model as repo IDCOMMENT
LOWmax/tests/integration/accuracy/llm_fuzz/model_config.py236 # Step 2: Apply manual overrides (highest priority)COMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/tool_schema_validation.py1371 # Step 1: initial tool callCOMMENT
LOW…/accuracy/llm_fuzz/scenarios/tool_schema_validation.py1390 # Step 2: provide tool result, ask follow-up that triggers another callCOMMENT
LOW…/accuracy/llm_fuzz/scenarios/tool_schema_validation.py1440 # Step 3: multi-tool conversationCOMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/models/kimi_production.py537 # Step 1: Structured output requestCOMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/models/kimi_production.py561 # Step 2: Tool calling requestCOMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/models/kimi_production.py576 # Step 3: Plain chat requestCOMMENT
LOWmax/docs/accuracy-debugging.md52## Step 1: Dump the intermediate tensors with `debug_model`COMMENT
LOWmax/docs/accuracy-debugging.md79## Step 2: Compare to find the area of divergenceCOMMENT
LOWmax/docs/accuracy-debugging.md106## Step 3: Add fine-grained print loggingCOMMENT
LOWmax/docs/accuracy-debugging.md183## Step 4: Export full tensors with `debug_model`COMMENT
LOWmax/docs/accuracy-debugging.md212## Step 5: Compare the tensors with `compare_tensors`COMMENT
LOW⚡max/docs/site/code/develop/index/graph_simple.py21# Step 1: Define the graph structureCOMMENT
LOW⚡max/docs/site/code/develop/index/graph_simple.py30# Step 2: Compile the graphCOMMENT
LOW⚡max/docs/site/code/develop/index/graph_simple.py35# Step 3: Execute with dataCOMMENT
LOW⚡max/examples/diffusion/simple_offline_generation.py707 # Step 6: Prepare inputs for the pipelineCOMMENT
LOW⚡max/examples/diffusion/simple_offline_generation.py767 # Step 8: Get the output for our requestCOMMENT
LOW⚡max/examples/diffusion/simple_offline_generation.py778 # Step 9: Extract and save images from OutputImageContentCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py413 # Step 1: Initialize pipeline configurationCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py502 # Step 2: Initialize the tokenizerCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py551 # Step 3: Initialize the pipelineCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py575 # Step 4: Create an OpenResponsesRequestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py671 # Step 5: Create a PixelContext object from the requestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py751 # Step 7: Execute the pipelineCOMMENT
LOWbazel/internal/pytest-shard.py72 # Step 1: Pull out anything marked with eitherCOMMENT
LOW…RT/unittests/Driver/NIXL/UCX/MetadataExchangeTests.cpp157 // Step 1: Get and load connection info onlyCOMMENT
LOW…RT/unittests/Driver/NIXL/UCX/MetadataExchangeTests.cpp169 // Step 2: Get partial metadata for first 3 buffers onlyCOMMENT
LOWMLRT/lib/Driver/DeviceContext/DeviceContext.cpp1021 // Step 1: Validate graphs and begin tracing on all streamsCOMMENT
LOW⚡MLRT/lib/Driver/DeviceContext/DeviceContext.cpp1035 // Step 2: Execute once for all devicesCOMMENT
LOW⚡MLRT/lib/Driver/DeviceContext/DeviceContext.cpp1041 // Step 3: Extract traces and compare to baseline for each graphCOMMENT
LOW⚡MLRT/lib/Driver/DeviceContext/DeviceContext.cpp1046 // Step 4: Compare with baseline (as sorted permutations to handleCOMMENT
LOWMojo/test/mojo-integration/extern-c-abi/README.md158### Step 1: Build the C LibraryCOMMENT
LOWMojo/test/mojo-integration/extern-c-abi/README.md183### Step 2: Build and Run a TestCOMMENT
LOWMojo/test/mojo-integration/extern-c-abi/README.md195### Step 3: Validate with FileCheck (Optional)COMMENT
LOWMojo/docs/contributing/stdlib/adding-gpu-targets.md350### Step 1: Gather GPU informationCOMMENT
LOWMojo/docs/contributing/stdlib/adding-gpu-targets.md379### Step 2: Create the target configurationCOMMENT
LOWMojo/docs/contributing/stdlib/adding-gpu-targets.md404### Step 3: Create the `GPUInfo` aliasCOMMENT
LOWMojo/docs/contributing/stdlib/adding-gpu-targets.md422### Step 4: Update `_get_info_from_target`COMMENT
18 more matches not shown…
Redundant / Tautological Comments76 hits · 112 pts
SeverityFileLineSnippetContext
LOWmax/kernels/benchmarks/autotune/kplot.py93 y_text: bool = True # Print value on top of the barCODE
LOW…ython/max/benchmark/benchmark_shared/datasets/types.py275 # Check if extension is supportedCOMMENT
LOWmax/python/max/nn/legacy/linear.py331 # Check if head boundaries align with block boundariesCOMMENT
LOWmax/python/max/nn/legacy/kernels.py13952 # Set min_top_p to the scalar value if provided, otherwise use top_pCOMMENT
LOWmax/python/max/nn/legacy/parallel/numpy_parallel_ops.py229 # Check if all arrays are contiguousCOMMENT
LOWmax/python/max/nn/legacy/layer/layer.py881 # Check if weight has symbolic dimensionsCOMMENT
LOWmax/python/max/nn/legacy/kv_cache/cache_params.py3767 # Check if we are allocating sufficient blocks.COMMENT
LOWmax/python/max/nn/legacy/hooks/base_print_hook.py140 # Print outputs.COMMENT
LOWmax/python/max/config/__init__.py75 # Check if the class has a custom enum mappingCOMMENT
LOWmax/python/max/config/__init__.py133 # Check if this is Optional[T] (Union[T, None])COMMENT
LOWmax/python/max/config/__init__.py218 # Check if this is Optional[T] (Union[T, None])COMMENT
LOWmax/python/max/config/__init__.py534 # Check if this looks like a full MAXConfig fileCOMMENT
LOWmax/python/max/config/__init__.py543 # Check if the top-level keys are mostly class fields (individual config)COMMENT
LOWmax/python/max/config/__init__.py653 # Check if the base class has a _get_enum_mapping methodCOMMENT
LOWmax/python/max/graph/weight.py465 # Check if this is a partial function wrapping head_aware_col_sharding_strategy.COMMENT
LOWmax/python/max/graph/weight.py478 # Check if this is a partial function wrapping stacked_qkv_sharding_strategy.COMMENT
LOWmax/python/max/graph/weight.py496 # Check if this is a partial function wrapping gate_up_sharding_strategy.COMMENT
LOWmax/python/max/graph/weights/load_gguf.py90 # Check if a weight existsSTRING
LOWmax/python/max/graph/ops/stack.py79 # Check if axis is within boundsCOMMENT
LOWmax/python/max/_interpreter_ops/handlers.py1216 # Check if it's an index/integer type by looking at the attributeCOMMENT
LOW…ax/pipelines/architectures/deepseekV4/encoding_dsv4.py379 # Check if previous message has a task - if so, this is a task output (no thinking)COMMENT
LOW…python/max/pipelines/architectures/deepseekV3/model.py196 # Check if EP should be configuredCOMMENT
LOW…hon/max/pipelines/architectures/qwen2_5vl/tokenizer.py114 # Check if spatial merging is possible earlyCOMMENT
LOW…rchitectures/autoencoders/autoencoder_kl_qwen_image.py758 # Check if this weight needs numpy transformationCOMMENT
LOW…/pipelines/architectures/deepseekV41/encoding_dsv41.py715 # Check if previous message has a task - if so, this is a task output (no thinking)COMMENT
LOW…x/python/max/pipelines/architectures/kimik2_5/model.py457 # Check if EP should be configuredCOMMENT
LOW…lines/modeling/dataprocessing/causal_attention_mask.py70 # Set diagonal to k + 1 so that tokens attend to themselves.COMMENT
LOW…x/pipelines/kv_cache/paged_kv_cache/transfer_engine.py167 # Set SO_REUSEADDR to avoid TIME_WAIT issuesCOMMENT
LOW…x/pipelines/kv_cache/paged_kv_cache/transfer_engine.py1240 # Check if the relevant transport env vars are set. You can get awayCOMMENT
LOW…on/max/pipelines/kv_cache/paged_kv_cache/block_pool.py101 # Check if a block with the same hash is already committed.COMMENT
LOW…pelines/kv_cache/paged_kv_cache/jenga_block_manager.py959 # Check if we have enough blocks available to satisfy the demand.COMMENT
LOWmax/python/max/pipelines/lib/registry.py826 # Check if there's a secondary tokenizer (tokenizer_2) in the manifestCOMMENT
LOWmax/python/max/pipelines/lib/config/config.py1373 # Check if the architecture is Llama3 (LlamaForCausalLM)COMMENT
LOWmax/python/max/pipelines/lib/config/model_config.py1465 # Check if file exists locally (direct, local repo, or cache).COMMENT
LOWmax/python/max/pipelines/lib/pipeline_variants/utils.py1186 # Check if any context has structured outputCOMMENT
LOWmax/python/max/serve/scheduler/lora_scheduler_utils.py59 # Check if (protected LoRAs + new LoRA) fits within capacity.COMMENT
LOWmax/python/max/serve/scheduler/decode_scheduler.py564 # Set dst_idx to -1 to denote pages which the decode already has dueCOMMENT
LOW…/scheduler/batch_constructor/text_batch_constructor.py1749 # Check if the request fits in memoryCOMMENT
LOW…/scheduler/batch_constructor/text_batch_constructor.py1880 # Check if it fits within the token budget. Under DP, a decode rowCOMMENT
LOW…/scheduler/batch_constructor/text_batch_constructor.py1950 # Check if it fits within the token budgetCOMMENT
LOW…/scheduler/batch_constructor/text_batch_constructor.py2699 # Set priority to the majority case, defaulting to TG if tiedCOMMENT
LOWmax/python/max/serve/pipelines/llm.py429 # Check if reasoning was disabled in the prompt. Use theCOMMENT
LOWmax/python/max/serve/pipelines/echo_gen.py194 # Check if we have more tokens to echo and haven't reached max lengthCOMMENT
LOW⚡max/python/max/serve/telemetry/common.py428 # Check if the logger name starts with any of the allowed component prefixesCOMMENT
LOWmax/python/max/serve/router/openai_routes.py3971 # Check if LoRA is enabledCOMMENT
LOWmax/python/max/serve/router/_image_resolution.py997 # Check if path is within allowed roots before touching the filesystem.COMMENT
LOWmax/python/max/serve/router/_image_resolution.py1030 # Read the file with its own local-file size limit.COMMENT
LOWmax/tests/integration/tools/debugging_utils.py486 # Check if we found the tensorsCOMMENT
LOWmax/tests/integration/graph/test_engine.py342 # Check if the outputs really alias.COMMENT
LOW…/architectures/deepseekV3_2/test_hadamard_transform.py35# Check if outputs are close with appropriate toleranceCOMMENT
LOW…ration/architectures/qwen2_5vl/test_image_processor.py211 # Check if the difference is systematicCOMMENT
LOW…ration/architectures/qwen2_5vl/test_image_processor.py219 # Check if it's a scaling issueCOMMENT
LOW…ion/architectures/qwen2_5vl/tests/test_patch_merger.py206 # Check if outputs are close with appropriate toleranceCOMMENT
LOW…on/architectures/qwen2_5vl/tests/test_qwen_vl_utils.py379 # Check if both are numpy arrays or lists of PIL ImagesCOMMENT
LOW…s/integration/architectures/idefics3/test_connector.py291 # Check if outputs are close with appropriate toleranceCOMMENT
LOW…on/architectures/idefics3/test_vision_encoder_layer.py296 # Check if outputs are close with appropriate toleranceCOMMENT
LOW…/integration/architectures/idefics3/test_vision_mlp.py268 # Check if outputs are close with appropriate toleranceCOMMENT
LOW…ration/architectures/idefics3/test_vision_attention.py241 # Check if outputs are close with appropriate toleranceCOMMENT
LOW…ests/integration/architectures/idefics3/torch_utils.py51 # Check if prompt already contains chat template tokensCOMMENT
LOW…egration/architectures/qwen3vl/test_image_processor.py198 # Check if the difference is systematicCOMMENT
16 more matches not shown…
Verbosity Indicators54 hits · 92 pts
SeverityFileLineSnippetContext
LOWmax/python/max/_core/max_license/lib/Driver/Buffer.cpp486 // If a buffer is not a contiguous slice, we need to check if the shape ofCOMMENT
LOW⚡…/max/pipelines/architectures/olmo3/layers/attention.py170 # Step 1: QKV matmul.COMMENT
LOW⚡…/max/pipelines/architectures/olmo3/layers/attention.py177 # Step 2: Apply full-dimension QK norm before rope.COMMENT
LOW⚡…/max/pipelines/architectures/olmo3/layers/attention.py187 # Step 3: Fused rope + split + KV store.COMMENT
LOW…/max/pipelines/architectures/olmo3/layers/attention.py202 # Step 5: Compute flash attention (reads K/V from cache)COMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py800 # Step 1: Extract prompt from request and apply chat template if neededCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py837 # Step 2: Load and process imagesCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py855 # Step 3: Process images with custom image processor (if any) and expand <|image_pad|> placeholders in textCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py951 # Step 4: Tokenize the expanded textCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py1019 # Step 5: Assemble the vision encoder's inputs, in PROMPT order.COMMENT
LOW⚡…lines/architectures/olmo2_modulev3/layers/attention.py144 # Step 1: QKV matmul.COMMENT
LOW⚡…lines/architectures/olmo2_modulev3/layers/attention.py151 # Step 2: Apply full-dimension QK norm before rope.COMMENT
LOW⚡…lines/architectures/olmo2_modulev3/layers/attention.py160 # Step 3: Fused rope + split + KV store.COMMENT
LOW…lines/architectures/olmo2_modulev3/layers/attention.py175 # Step 5: Compute flash attentionCOMMENT
LOWmax/python/max/pipelines/lib/eplb_rebalance.py151 # Step 1: pack groups to nodes.COMMENT
LOW⚡max/python/max/pipelines/lib/eplb_rebalance.py167 # Step 2: construct redundant experts within nodes.COMMENT
LOW⚡max/python/max/pipelines/lib/eplb_rebalance.py175 # Step 3: pack physical experts to GPUs within each node.COMMENT
LOWmax/tests/integration/accuracy/llm_fuzz/model_config.py223 # Step 1: Try HuggingFace fetch using --model as repo IDCOMMENT
LOWmax/tests/integration/accuracy/llm_fuzz/model_config.py236 # Step 2: Apply manual overrides (highest priority)COMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/tool_schema_validation.py1371 # Step 1: initial tool callCOMMENT
LOW…/accuracy/llm_fuzz/scenarios/tool_schema_validation.py1390 # Step 2: provide tool result, ask follow-up that triggers another callCOMMENT
LOW…/accuracy/llm_fuzz/scenarios/tool_schema_validation.py1440 # Step 3: multi-tool conversationCOMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/models/kimi_production.py537 # Step 1: Structured output requestCOMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/models/kimi_production.py561 # Step 2: Tool calling requestCOMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/models/kimi_production.py576 # Step 3: Plain chat requestCOMMENT
LOW⚡max/docs/site/code/develop/index/graph_simple.py21# Step 1: Define the graph structureCOMMENT
LOW⚡max/docs/site/code/develop/index/graph_simple.py30# Step 2: Compile the graphCOMMENT
LOW⚡max/docs/site/code/develop/index/graph_simple.py35# Step 3: Execute with dataCOMMENT
LOW⚡max/examples/diffusion/simple_offline_generation.py707 # Step 6: Prepare inputs for the pipelineCOMMENT
LOW⚡max/examples/diffusion/simple_offline_generation.py767 # Step 8: Get the output for our requestCOMMENT
LOW⚡max/examples/diffusion/simple_offline_generation.py778 # Step 9: Extract and save images from OutputImageContentCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py413 # Step 1: Initialize pipeline configurationCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py502 # Step 2: Initialize the tokenizerCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py551 # Step 3: Initialize the pipelineCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py575 # Step 4: Create an OpenResponsesRequestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py671 # Step 5: Create a PixelContext object from the requestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py751 # Step 7: Execute the pipelineCOMMENT
LOWbazel/internal/pytest-shard.py72 # Step 1: Pull out anything marked with eitherCOMMENT
LOW…RT/unittests/Driver/NIXL/UCX/MetadataExchangeTests.cpp157 // Step 1: Get and load connection info onlyCOMMENT
LOW…RT/unittests/Driver/NIXL/UCX/MetadataExchangeTests.cpp169 // Step 2: Get partial metadata for first 3 buffers onlyCOMMENT
LOWMLRT/lib/Driver/DeviceContext/DeviceContext.cpp1021 // Step 1: Validate graphs and begin tracing on all streamsCOMMENT
LOW⚡MLRT/lib/Driver/DeviceContext/DeviceContext.cpp1035 // Step 2: Execute once for all devicesCOMMENT
LOW⚡MLRT/lib/Driver/DeviceContext/DeviceContext.cpp1041 // Step 3: Extract traces and compare to baseline for each graphCOMMENT
LOW⚡MLRT/lib/Driver/DeviceContext/DeviceContext.cpp1046 // Step 4: Compare with baseline (as sorted permutations to handleCOMMENT
LOWMojo/lib/KGENToLLVM/LowerPOPToLLVMExternalCalls.cpp226 // Step 4: Compute the final LLVM-level attributes we expect on theCOMMENT
LOWMojo/lib/KGENToLLVM/LowerPOPToLLVMExternalCalls.cpp253 // Step 5: Lookup existing function (unified path - no early return!)COMMENT
LOWMojo/lib/KGENToLLVM/LowerPOPToLLVMExternalCalls.cpp273 // Step 6: Create function if needed (only branch on creation)COMMENT
LOWMojo/lib/KGENToLLVM/LowerPOPToLLVMExternalCalls.cpp301 // Step 7: Create call and handle the return valueCOMMENT
LOWMojo/lib/KGENToLLVM/LowerKGENToLLVMRewriteCABIFns.cpp189 // Step 1: Coerce arguments — replace original block args with C ABI argsCOMMENT
LOWMojo/lib/MojoParser/ParserStmts.cpp3223 // If we see a 'try' block in a context that cannot raise, we need to check ifCOMMENT
LOWMojo/lib/MojoParser/ClosureEmitter.cpp944 // Step 1: prepend a new origin slot for self and collect origin decls.COMMENT
LOW⚡Mojo/lib/MojoParser/ClosureEmitter.cpp956 // Step 2: prepend explicit params for each captured parameter.COMMENT
LOW⚡Mojo/lib/MojoParser/ClosureEmitter.cpp966 // Step 3: prepend the self runtime argument so it becomes arg[0].COMMENT
LOWMojo/lib/MojoParser/ClosureEmitter.cpp979 // Step 4: resolve depth-local index refs to named param/origin references.COMMENT
Modern AI Meta-Vocabulary24 hits · 76 pts
SeverityFileLineSnippetContext
MEDIUM…hmarks/misc/comparison/bench_blackwell_grouped_gemm.py15# Mimics bench.py scaffolding; uses naive float64 reference for correctness.COMMENT
MEDIUM…ython/max/benchmark/benchmark_shared/datasets/types.py93 # Usually list[TextContentBlock], but not guaranteed: agentic-code passesCOMMENT
MEDIUMmax/python/max/graph/graph.py835 # ``device_chains[DeviceRef.CPU()]`` is the host orchestration chain (theCOMMENT
MEDIUMmax/python/max/pipelines/architectures/laguna/arch.py77 # scaffolding in ``model.py`` is in place but not yet validated.COMMENT
MEDIUM…on/max/pipelines/architectures/flux2/flux2_executor.py734 # -- Denoising loop orchestration -----------------------------------------COMMENT
MEDIUM…elines/architectures/qwen3_embedding_modulev3/model.py128 # Remove lm_head weights — embedding model doesn't use themCOMMENT
MEDIUMmax/python/max/serve/router/openresponses_routes.py81 # Request is already parsed and validated via dependency injectionCOMMENT
MEDIUMmax/python/max/serve/router/openai_routes.py1869 # so replayed chain-of-thought is not silently dropped before theCOMMENT
MEDIUM…tion_pipeline/test_overlap_text_generation_pipeline.py417 # Worst-case boundary request: committed tokens fill the context window andCOMMENT
MEDIUMmax/tests/integration/accuracy/run_mmmu_video_eval.py276 # not here: when a reasoning parser is active, chain-of-thought is split outCOMMENT
MEDIUMmax/tests/integration/accuracy/run_mmmu_video_eval.py443 # The server's reasoning parser (if any) already removed chain-of-thoughtCOMMENT
MEDIUMmax/tests/integration/accuracy/run_longbench_v2.py121 # Truncate prompt to fit context windowCOMMENT
MEDIUM…sts/integration/accuracy/model_evals/run_text_evals.sh14# Runs all non-agentic text evals in sequence against a running server. EachCOMMENT
MEDIUM⚡…tion/accuracy/model_evals/run_exacto_taubench_local.sh15# tau2-bench airline — the agentic tool-calling half of OpenRouter's AutoExactoCOMMENT
MEDIUM⚡…tion/accuracy/model_evals/run_exacto_taubench_local.sh18# This is the half of the gate we had no coverage for: the suite's other agenticCOMMENT
MEDIUMmax/tests/integration/accuracy/llm_fuzz/client.py74 # derives it from the model's context window).COMMENT
MEDIUMmax/tests/integration/accuracy/llm_fuzz/README.md170# Default: 8 short conversations plus 2 at half the context window,COMMENT
MEDIUM…ation/accuracy/llm_fuzz/scenarios/kv_cache_pressure.py119 # Probe near the model's context window boundary.COMMENT
MEDIUM…ntegration/accuracy/llm_fuzz/scenarios/tool_calling.py936 # multi-step agentic prompt encourages several tool calls; theCOMMENT
MEDIUM…gration/accuracy/llm_fuzz/scenarios/models/kimi_3am.py152 # 8K char tool result in history -- common in RAG pipelinesCOMMENT
MEDIUM⚡max/tests/tests/benchmark/test_benchmark_config.py709# --agentic-tool-profiles validationCOMMENT
MEDIUMmax/tests/tests/benchmark/test_benchmark_datasets.py1541 # at run time, like agentic-code / instruct-coder).COMMENT
MEDIUMmax/examples/embedding-knowledge-base/README.md1# Knowledge base with a text embedding modelCOMMENT
MEDIUM…/stdlib/scripts/unicode-data/GraphemeBreakProperty.txt1200B77D..B797 ; LVT # Lo [27] HANGUL SYLLABLE RAG..HANGUL SYLLABLE RAHCODE
Cross-Language Confusion (JS/TS)13 hits · 62 pts
SeverityFileLineSnippetContext
HIGHMojo/test/mojo-lsp-server-node/src/hover.spec.ts26 print(other)CODE
HIGHMojo/test/mojo-lsp-server-node/src/hover.spec.ts613 print("string")CODE
HIGHMojo/test/mojo-lsp-server-node/src/hover.spec.ts614 print(arg)CODE
HIGHMojo/test/mojo-lsp-server-node/src/completion.spec.ts349 elif arg.value:`CODE
HIGHMojo/test/mojo-lsp-server-node/src/codeAction.spec.ts22 print(repr(b))CODE
HIGHMojo/test/mojo-lsp-server-node/src/definitions.spec.ts33 print(y)CODE
HIGHMojo/test/mojo-lsp-server-node/src/definitions.spec.ts69 print(arg)CODE
HIGHMojo/test/mojo-lsp-server-node/src/references.spec.ts24 print(foo)CODE
HIGHMojo/test/mojo-lsp-server-node/src/references.spec.ts25 print("foo")CODE
HIGHMojo/test/mojo-lsp-server-node/src/regression.spec.ts20 print("hi")STRING
HIGHMojo/test/mojo-lsp-server-node/src/rename.spec.ts21 print(someVar)CODE
HIGHMojo/test/mojo-lsp-server-node/src/rename.spec.ts120 print(1 + 2)CODE
HIGHMojo/test/mojo-lsp-server-node/src/rename.spec.ts153 print(1 + 2)CODE
Example Usage Blocks26 hits · 40 pts
SeverityFileLineSnippetContext
LOWKernels/lib/max_license/Tracing/Tracing.h63/// Example usage:COMMENT
LOW…rnels/benchmarks/misc/utils/cutlass_profiler_parser.py18# Usage:COMMENT
LOW…enchmarks/misc/utils/bench_vllm_flashinfer_decoding.py17# Usage:COMMENT
LOW…nchmarks/misc/utils/bench_vllm_flashinfer_attention.py17# Usage:COMMENT
LOW…s/misc/comparison/bench_mla_decode_sm100_kimi_fp8.yaml21# Usage:COMMENT
LOW…hmarks/misc/comparison/bench_blackwell_grouped_gemm.py18# Usage example:COMMENT
LOW…c/comparison/bench_mla_decode_sm100_deepseek_bf16.yaml21# Usage:COMMENT
LOW…/misc/comparison/bench_mla_decode_sm100_kimi_bf16.yaml21# Usage:COMMENT
LOW…sc/comparison/bench_mla_decode_sm100_deepseek_fp8.yaml21# Usage:COMMENT
LOW…kernels/benchmarks/gpu/nn/bench_fp8_index_prefill.yaml18# Usage:COMMENT
LOW…s/benchmarks/gpu/nn/bench_mla_sparse_prefill_tune.yaml18# Usage:COMMENT
LOWmax/kernels/benchmarks/sweep/bench_dsa_block.yaml32# Usage:COMMENT
LOW…sweep/bench_kv_cache_ragged_flash_attention_paged.yaml33# Usage:COMMENT
LOW…ernels/benchmarks/sweep/bench_mla_index_fp8_paged.yaml33# Usage:COMMENT
LOW…/kernels/benchmarks/sweep/bench_mla_decode_sparse.yaml34# Usage:COMMENT
LOW…kernels/benchmarks/sweep/bench_mla_prefill_sparse.yaml30# Usage:COMMENT
LOW…benchmark/configs/serving_flux2_t2i_random_config.yaml15# Usage:COMMENT
LOW⚡…gration/accuracy/model_evals/run_omnidocbench_local.sh28# Usage:COMMENT
LOW…tegration/accuracy/model_evals/run_exacto_vgi_local.sh75# Usage:COMMENT
LOW…tion/accuracy/model_evals/run_exacto_taubench_local.sh53# Usage:COMMENT
LOW⚡…egration/accuracy/model_evals/run_exacto_gpqa_local.sh59# Usage:COMMENT
LOW…s/embedding-knowledge-base/src/embeddings/kb_system.py134# Example usageCOMMENT
LOWSupport/include/Support/ADT/ConcurrentAppendingVector.h44/// Example usage:COMMENT
LOW…/lib/Driver/DeviceContext/CUDA/CUDACompilationDevice.h38/// Example usage:COMMENT
LOW…RT/lib/Driver/DeviceContext/HIP/HIPCompilationDevice.h41/// Example usage:COMMENT
LOWGraphCompiler/utils/warm_cache_pipeline_models.sh19# Usage:COMMENT
Fake / Example Data18 hits · 20 pts
SeverityFileLineSnippetContext
LOW…ration/accuracy/llm_fuzz/scenarios/openrouter_tests.py1772 lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " * (CODE
LOW…ration/accuracy/llm_fuzz/scenarios/openrouter_tests.py1772 lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " * (CODE
LOW…scenarios/validation/basic_reasoning_and_tool_usage.py150 "lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do "CODE
LOW…scenarios/validation/basic_reasoning_and_tool_usage.py150 "lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do "CODE
LOWmax/tests/tests/graph/ops/test_call.py241 "placeholder",CODE
LOW…thon-extension-modules/feature-overview/test_module.py78 person.change_name("John Doe")CODE
LOW…thon-extension-modules/feature-overview/test_module.py79 assert person.name() == "John Doe"CODE
LOW…est/python-extension-modules/def-method/test_module.py41 same_person = person._with("Jane Doe", 25)CODE
LOW…est/python-extension-modules/def-method/test_module.py42 assert person.get_name() == "Jane Doe"CODE
LOW…est/python-extension-modules/def-method/test_module.py59 assert person.get_name() == "Jane Doe"CODE
LOW⚡…est/python-extension-modules/def-method/test_module.py85 person.set_name_and_age("John Doe", 25)CODE
LOW⚡…est/python-extension-modules/def-method/test_module.py86 assert person.get_name() == "John Doe"CODE
LOW⚡…est/python-extension-modules/def-method/test_module.py96 person.set_name_and_age("John Doe", 25)CODE
LOW⚡…est/python-extension-modules/def-method/test_module.py105 person.set_name("John Doe")CODE
LOW⚡…est/python-extension-modules/def-method/test_module.py106 assert person.get_name() == "John Doe"CODE
LOWMojo/docs/site/releases/2022-11.md40 a new "placeholder" attribute. This allows us to expose the power of the KGENCODE
LOWMojo/stdlib/test/builtin/test_file_dummy_input.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit.CODE
LOWMojo/stdlib/test/builtin/test_file_dummy_input.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit.CODE
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHMLRT/lib/Driver/DeviceContext/HAL/HALDeviceContext.cpp574 // Keyed on the api as requested, so a repeat call avoids reloading the pluginCOMMENT
HIGHMojo/include/Mojo/Compiler/Target/TargetBackend.h237 /// host policy (AddressSanitizer and ThreadSanitizer as requested inCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALmax/docs/site/releases/v26.7.md785 - Removed `max.experimental.nn.common_layers.functional_kernels.local_map()`.CODE
Dead Code4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMmax/tests/tests/serve/test_start_stream.py76CODE
MEDIUMmax/tests/tests/serve/test_openresponses_routes.py518CODE
MEDIUMmax/tests/tests/serve/test_completions_stream_errors.py116CODE
MEDIUMmax/tests/tests/serve/test_completions_stream_errors.py133CODE
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWmax/tests/integration/accuracy/verify_pipelines.py290 # Even if verdicts is empty, we want to make sure to call write. When weCOMMENT
LOWMojo/lib/MojoJupyter/enable_matplotlib.py81 # end of our display data. We also make sure to flush the output streamCOMMENT
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippetContext
LOWmax/python/max/serve/process_control.py278 async def run_task() -> None:CODE
LOWmax/tests/integration/test_common/registry.py34 def test_function(manage_production_models):STRING
LOWMojo/stdlib/test/python/my_module.py31def my_function(name) -> str: # noqa: ANN001CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWGraphCompiler/lib/MODialect/Canonicalize.cpp655 // TODO: implement thisCOMMENT