The Modular Platform (includes MAX & Mojo)
This report presents the forensic synthetic code analysis of modular/modular, a Mojo project with 26,640 GitHub stars. SynthScan v2.0 examined 952,074 lines of code across 3618 source files, recording 18025 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 26.3 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 18025 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/write-nightly-release.py | 66 | def _default_nightly_changelog_path() -> Path: | CODE |
| LOW | docs/generate-models-table.py | 178 | def _resolve_module_level_collections( | CODE |
| LOW | docs/generate-models-table.py | 200 | def _resolve_class_collections( | CODE |
| LOW | docs/code/develop/layer-comparison/layer_comparison.py | 171 | def capture_reference_tensors( | CODE |
| LOW | max/kernels/benchmarks/misc/utils/bench.py | 276 | def bench_kineto_with_cupti_warmup( | CODE |
| LOW | …ernels/benchmarks/misc/comparison/bench_ep_baseline.py | 68 | def _make_dispatch_quant_config(dispatch_dtype: DType) -> QuantConfig | None: | CODE |
| LOW | …hmarks/misc/comparison/bench_blackwell_grouped_gemm.py | 93 | def generate_contiguous_inputs( | CODE |
| LOW | …x/kernels/benchmarks/misc/comparison/install_sglang.py | 45 | def _matching_torchvision_version() -> str: | CODE |
| LOW | …nchmarks/misc/comparison/bench_blackwell_mla_decode.py | 132 | def calculate_mla_memory_bytes( | CODE |
| LOW | …hmarks/misc/comparison/bench_allreduce_subgraph_max.py | 114 | def bench_allreduce_modular_max( | CODE |
| LOW | …benchmarks/misc/comparison/bench_allreduce_subgraph.py | 129 | def _init_sglang_parallel_state() -> None: | CODE |
| LOW | max/kernels/benchmarks/misc/comparison/bench_amd_mla.py | 889 | def _build_mla_persistent_metadata( | CODE |
| LOW | max/kernels/benchmarks/autotune/kdiff.py | 71 | def check_argo_workflow_exists(git_sha): # noqa: ANN001, ANN201 | CODE |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 1547 | def schedule_unique_build_items( | CODE |
| LOW | max/kernels/benchmarks/autotune/utils.py | 71 | def _get_visible_device_prefix(target_accelerator: str = "") -> str: | CODE |
| LOW | max/kernels/benchmarks/autotune/utils.py | 197 | def get_target_accelerator_helpstr() -> str: | CODE |
| LOW | max/kernels/benchmarks/autotune/utils.py | 205 | def check_valid_target_accelerator(target_accelerator: str) -> bool: | CODE |
| LOW | max/kernels/benchmarks/autotune/kplot.py | 57 | def _get_max_groups_per_chart(x_labels, width_px, font_size_pt): # noqa: ANN001, ANN202 | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_bench.py | 41 | def test_met_label_indicates_seconds() -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_bench.py | 65 | def test_dump_report_time_and_throughput() -> None: | CODE |
| LOW⚡ | max/kernels/benchmarks/autotune/tests/test_kbench.py | 516 | def test_get_gpu_count_nvidia_no_smi(mocker: MockerFixture) -> None: | CODE |
| LOW⚡ | max/kernels/benchmarks/autotune/tests/test_kbench.py | 522 | def test_get_gpu_count_unknown_accelerator() -> None: | CODE |
| LOW⚡ | max/kernels/benchmarks/autotune/tests/test_kbench.py | 528 | def test_get_gpu_count_nvidia_smi_failure(mocker: MockerFixture) -> None: | CODE |
| LOW⚡ | max/kernels/benchmarks/autotune/tests/test_kbench.py | 571 | def test_get_gpu_count_amd_no_smi(mocker: MockerFixture) -> None: | CODE |
| LOW⚡ | max/kernels/benchmarks/autotune/tests/test_kbench.py | 577 | def test_get_gpu_count_amd_smi_failure(mocker: MockerFixture) -> None: | CODE |
| LOW⚡ | max/kernels/benchmarks/autotune/tests/test_kbench.py | 587 | def test_cli_rejects_num_gpu_exceeding_available(mocker: MockerFixture) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 84 | def test_check_valid_target_accelerator() -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 286 | def test_scheduler_init_validates_num_gpu(tmp_path: Path) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 317 | def test_scheduler_get_chunksize(tmp_path: Path) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 338 | def test_scheduler_kbench_mkdir_creates_directory(tmp_path: Path) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 356 | def test_scheduler_kbench_mkdir_run_only_requires_existing( | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 373 | def test_kbench_cache_basic_operations(tmp_path: Path) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 404 | def test_param_define_regular() -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 413 | def test_param_define_variable() -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 478 | def test_get_gpu_count_nvidia_basic(mocker: MockerFixture) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 490 | def test_get_gpu_count_nvidia_capped_by_env(mocker: MockerFixture) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 505 | def test_get_gpu_count_nvidia_env_fewer_than_hw(mocker: MockerFixture) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 548 | def test_get_gpu_count_amd_basic(mocker: MockerFixture) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 560 | def test_get_gpu_count_amd_capped_by_env(mocker: MockerFixture) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 609 | def test_cli_accepts_num_gpu_within_available(mocker: MockerFixture) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 651 | def _make_minimal_spec_instance() -> SpecInstance: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 709 | def test_build_shared_lib_minimal(tmp_path: Path) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 720 | def test_shared_lib_dlopen_resolves_sanitizer_runtime(tmp_path: Path) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 755 | def test_shared_lib_dlopen_resolves_sanitizer_runtime_minimal( | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 850 | def test_scheduler_output_dir_list_per_item(tmp_path: Path) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 881 | def test_scheduler_output_dir_list_none_fallback(tmp_path: Path) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 941 | def test_item_pool_work_stealing() -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 969 | def test_group_by_binary_hash() -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 993 | def test_shared_lib_timeout_recovery(tmp_path: Path) -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 1039 | def test_shared_lib_crash_recovery(tmp_path: Path) -> None: | CODE |
| LOW | …rnels/benchmarks/autotune/tests/test_tuning_codegen.py | 26 | def test_render_snippet_formats_mojo_values() -> None: | CODE |
| LOW | …rnels/benchmarks/autotune/tests/test_tuning_codegen.py | 37 | def test_render_snippet_rejects_missing_parameters() -> None: | CODE |
| LOW | …rnels/benchmarks/autotune/tests/test_tuning_codegen.py | 42 | def test_load_manifest_preserves_order_and_rejects_duplicates( | CODE |
| LOW | …rnels/benchmarks/autotune/tests/test_tuning_codegen.py | 71 | def test_replace_generated_region_requires_unique_markers() -> None: | CODE |
| LOW | …rnels/benchmarks/autotune/tests/test_tuning_codegen.py | 92 | def test_render_region_selects_entry_template() -> None: | CODE |
| LOW | …rnels/benchmarks/autotune/tests/test_tuning_codegen.py | 119 | def test_generate_target_renders_manifest_entries(tmp_path: Path) -> None: | CODE |
| LOW | max/python/max/_mlir_context.py | 44 | def call_with_default_mlir_context( | CODE |
| LOW | max/python/max/_mlir_context.py | 55 | def ensure_default_mlir_context() -> Generator[None]: | CODE |
| LOW | …/max/benchmark/sweep_benchmark_serving_result_utils.py | 58 | def validate_sweep_serving_percentiles(percentiles: list[int]) -> None: | CODE |
| LOW | max/python/max/benchmark/benchmark_serving.py | 866 | def validate_task_and_endpoint( | CODE |
| 6765 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/generate-arch-docs.py | 88 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/generate-arch-docs.py | 90 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/generate-arch-docs.py | 150 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/generate-arch-docs.py | 152 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/generate-arch-docs.py | 229 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/generate-arch-docs.py | 231 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/generate-arch-docs.py | 361 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/generate-arch-docs.py | 363 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/kernels/benchmarks/misc/comparison/setup_bench_env.py | 107 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/kernels/benchmarks/misc/comparison/setup_bench_env.py | 109 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/kernels/benchmarks/misc/comparison/setup_bench_env.py | 160 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/kernels/benchmarks/misc/comparison/setup_bench_env.py | 162 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …s/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.yaml | 33 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …s/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.yaml | 35 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …s/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.yaml | 56 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …s/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.yaml | 58 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …s/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.yaml | 79 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …s/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.yaml | 81 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py | 84 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py | 86 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py | 188 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py | 190 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py | 308 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py | 310 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py | 391 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py | 393 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/kernels/benchmarks/misc/comparison/bench_amd_mla.py | 251 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/kernels/benchmarks/misc/comparison/bench_amd_mla.py | 253 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | max/kernels/benchmarks/misc/comparison/bench_amd_mla.py | 830 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | max/kernels/benchmarks/misc/comparison/bench_amd_mla.py | 832 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/kernels/benchmarks/misc/comparison/bench_amd_mla.py | 1497 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/kernels/benchmarks/misc/comparison/bench_amd_mla.py | 1499 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml | 37 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml | 39 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml | 62 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml | 64 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml | 87 | # ============================================================================= | COMMENT |
| MEDIUM | …kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml | 89 | # ============================================================================= | COMMENT |
| MEDIUM | …kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml | 140 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml | 143 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/docs/check_api_coverage.py | 64 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/docs/check_api_coverage.py | 66 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/docs/check_api_coverage.py | 243 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/docs/check_api_coverage.py | 245 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/docs/check_api_coverage.py | 393 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/docs/check_api_coverage.py | 395 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/docs/check_api_coverage.py | 523 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/docs/check_api_coverage.py | 525 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/docs/check_api_coverage.py | 631 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/docs/check_api_coverage.py | 633 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/docs/check_api_coverage.py | 698 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/docs/check_api_coverage.py | 700 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/max/benchmark/benchmark_shared/metrics.py | 1092 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/max/benchmark/benchmark_shared/metrics.py | 1094 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/max/benchmark/benchmark_shared/model_csv.py | 121 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/max/benchmark/benchmark_shared/model_csv.py | 123 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/max/benchmark/benchmark_shared/model_csv.py | 261 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/max/benchmark/benchmark_shared/model_csv.py | 265 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/max/benchmark/benchmark_shared/model_csv.py | 329 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | max/python/max/benchmark/benchmark_shared/model_csv.py | 331 | # --------------------------------------------------------------------------- | COMMENT |
| 1486 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .pre-commit-config.yaml | 1 | ##===----------------------------------------------------------------------===## | COMMENT |
| LOW | utils/setup-gpu-clock.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …s/local_transformers_setup/setup_local_transformers.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …local_transformers_setup/cleanup_local_transformers.sh | 1 | #!/bin/bash | COMMENT |
| LOW | docs/write-nightly-release.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/update-github-links.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/generate-arch-docs.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | docs/generate-models-table.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | docs/code/develop/broadcasting/explicit_broadcast.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/broadcasting/auto_broadcast.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/broadcasting/mask_broadcast.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/broadcasting/fix_rank.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/layers/subclass_rms_norm.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/layers/define_module.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/layers/compose_and_run.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/logit-comparison/logit_comparison.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/tensors/properties_num_elements.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/tensors/properties_device.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/tensors/properties_shape.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/tensors/create_factory.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/tensors/properties_rank.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/tensors/create_first_tensor.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/tensors/properties_dtype.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/tensors/create_random.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/tensors/create_multi_dim.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/dtypes/dtype_properties.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/dtypes/dtype_intro.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/dtypes/pytorch_to_max.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/dtypes/specify_dtype.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/dtypes/check_dtype.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/dtypes/validate_dtypes.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/dtypes/calculate_memory.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/dtypes/dlpack_conversion.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/dtypes/cast_dtype.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/index/graph_simple.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/index/when_to_use_eager.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/index/eager_simple.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/index/functional_api.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/index/arithmetic_ops.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/index/eager_workflow.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/indexing/gather.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/indexing/where.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/indexing/scatter.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/basic-ops/tensor_transpose.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/basic-ops/arithmetic.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/basic-ops/compose_linear_layer.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/basic-ops/random_basic.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/basic-ops/concat.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/basic-ops/tensor_permute.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/basic-ops/tensor_reductions.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/basic-ops/functional_activations.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/basic-ops/tensor_reshape.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/basic-ops/tensor_transpose_t.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/basic-ops/tensor_matmul.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/basic-ops/tensor_math_ops.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | docs/code/develop/layer-comparison/layer_comparison.py | 1 | # ===----------------------------------------------------------------------=== # | COMMENT |
| LOW | max/kernels/test/gpu/fuzz/run_nightly_fuzz.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | max/kernels/test/gpu/fuzz/run_nightly_fuzz.sh | 21 | # target list (used when no explicit <target> is given): | COMMENT |
| LOW | max/kernels/test/gpu/fuzz/run_nightly_fuzz.sh | 41 | # FUZZ_RESULTS_DIR where to collect the corpus + JSONL run logs for upload | COMMENT |
| LOW | max/kernels/test/gpu/fuzz/fuzz.py | 1 | #!/usr/bin/env python3 | COMMENT |
| 3264 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/code/develop/logit-comparison/logit_comparison.py | 15 | CODE | |
| LOW | docs/code/develop/layer-comparison/layer_comparison.py | 15 | CODE | |
| LOW | max/kernels/test/gpu/fuzz/fuzz.py | 40 | CODE | |
| LOW | …ernels/benchmarks/misc/comparison/bench_ep_baseline.py | 30 | CODE | |
| LOW | …s/benchmarks/misc/comparison/bench_blackwell_decode.py | 21 | CODE | |
| LOW | …c/comparison/bench_blackwell_mla_prefill_sparse_fp8.py | 27 | CODE | |
| LOW | …nchmarks/misc/comparison/bench_blackwell_mla_decode.py | 19 | CODE | |
| LOW | …hmarks/misc/comparison/bench_allreduce_subgraph_max.py | 21 | CODE | |
| LOW | max/kernels/benchmarks/misc/comparison/sweep_decode.py | 34 | CODE | |
| LOW | …/benchmarks/misc/comparison/bench_blackwell_prefill.py | 17 | CODE | |
| LOW | …benchmarks/misc/comparison/bench_allreduce_subgraph.py | 32 | CODE | |
| LOW | max/kernels/benchmarks/misc/comparison/bench_softmax.py | 17 | CODE | |
| LOW | …/misc/comparison/bench_blackwell_mla_prefill_sparse.py | 26 | CODE | |
| LOW | max/kernels/benchmarks/misc/comparison/bench_amd_mha.py | 18 | CODE | |
| LOW | …els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py | 33 | CODE | |
| LOW | max/kernels/benchmarks/misc/comparison/bench_amd_mla.py | 22 | CODE | |
| LOW | max/kernels/benchmarks/autotune/terminal_viz.py | 15 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kbench.py | 13 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 13 | CODE | |
| LOW | max/kernels/benchmarks/autotune/tuning_codegen.py | 16 | CODE | |
| LOW | max/python/docs/check_api_coverage.py | 40 | CODE | |
| LOW | max/python/max/_interpreter.py | 31 | CODE | |
| LOW | max/python/max/_mlir_context.py | 14 | CODE | |
| LOW | …/max/benchmark/sweep_benchmark_serving_result_utils.py | 23 | CODE | |
| LOW | max/python/max/benchmark/sweep_benchmark_serving.py | 24 | CODE | |
| LOW | max/python/max/benchmark/serve_replay.py | 14 | CODE | |
| LOW | max/python/max/benchmark/benchmark_serving.py | 16 | CODE | |
| LOW | max/python/max/benchmark/results_to_csv.py | 62 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/multi_turn.py | 16 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/metrics.py | 26 | CODE | |
| LOW | …/python/max/benchmark/benchmark_shared/steady_state.py | 27 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/config.py | 16 | CODE | |
| LOW | …ax/benchmark/benchmark_shared/serving_result_output.py | 19 | CODE | |
| LOW | …python/max/benchmark/benchmark_shared/backend_names.py | 34 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 16 | CODE | |
| LOW | …ython/max/benchmark/benchmark_shared/server_metrics.py | 17 | CODE | |
| LOW | …thon/max/benchmark/benchmark_shared/serving_metrics.py | 16 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/sse.py | 19 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/warmup.py | 36 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/utils.py | 16 | CODE | |
| LOW | …x/python/max/benchmark/benchmark_shared/single_turn.py | 16 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/model_csv.py | 45 | CODE | |
| LOW | …n/max/benchmark/benchmark_shared/percentile_metrics.py | 30 | CODE | |
| LOW | …benchmark/benchmark_shared/datasets/_tokenizer_pool.py | 28 | CODE | |
| LOW | …on/max/benchmark/benchmark_shared/datasets/sharegpt.py | 14 | CODE | |
| LOW | …hon/max/benchmark/benchmark_shared/datasets/axolotl.py | 14 | CODE | |
| LOW | …/benchmark/benchmark_shared/datasets/instruct_coder.py | 14 | CODE | |
| LOW | …enchmark_shared/datasets/multiturn_distribution_fit.py | 21 | CODE | |
| LOW | …/benchmark_shared/datasets/obfuscated_conversations.py | 14 | CODE | |
| LOW | …enchmark/benchmark_shared/datasets/pixel_image_edit.py | 14 | CODE | |
| LOW | …on/max/benchmark/benchmark_shared/datasets/registry.py | 14 | CODE | |
| LOW | …ython/max/benchmark/benchmark_shared/datasets/local.py | 14 | CODE | |
| LOW | …nchmark/benchmark_shared/datasets/nemotron_opencode.py | 14 | CODE | |
| LOW | …n/max/benchmark/benchmark_shared/datasets/interface.py | 14 | CODE | |
| LOW | …on/max/benchmark/benchmark_shared/datasets/__init__.py | 14 | CODE | |
| LOW | …on/max/benchmark/benchmark_shared/datasets/__init__.py | 15 | CODE | |
| LOW | …on/max/benchmark/benchmark_shared/datasets/__init__.py | 16 | CODE | |
| LOW | …on/max/benchmark/benchmark_shared/datasets/__init__.py | 17 | CODE | |
| LOW | …on/max/benchmark/benchmark_shared/datasets/__init__.py | 18 | CODE | |
| LOW | …on/max/benchmark/benchmark_shared/datasets/__init__.py | 19 | CODE | |
| 3368 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …xperimental/nn/common_layers/multi_latent_attention.py | 0 | creates the prefill planning metadata required by fp8 mla prefill kernels. args: input_row_offsets: ragged row offsets t | STRING |
| HIGH | max/python/max/nn/attention/multi_latent_attention.py | 0 | creates the prefill planning metadata required by fp8 mla prefill kernels. args: input_row_offsets: ragged row offsets t | STRING |
| HIGH | …/python/max/nn/attention/multi_latent_attention_fp8.py | 0 | creates the prefill planning metadata required by fp8 mla prefill kernels. args: input_row_offsets: ragged row offsets t | STRING |
| HIGH | max/python/max/experimental/nn/common_layers/mlp.py | 0 | applies the mlp2 transformation to the input. args: x: input tensor to transform. returns: the transformed tensor after | STRING |
| HIGH | max/python/max/nn/linear.py | 0 | applies 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.py | 0 | applies the mlp2 transformation to the input. args: x: input tensor to transform. returns: the transformed tensor after | STRING |
| HIGH | …/max/experimental/nn/common_layers/rotary_embedding.py | 0 | rotaryembedding layer to calculate and apply the frequency tensor for complex exponentials. | STRING |
| HIGH | …tectures/pixtral/vision_encoder/rotary_embedding_2d.py | 0 | rotaryembedding layer to calculate and apply the frequency tensor for complex exponentials. | STRING |
| HIGH | …pixtral_modulev3/vision_encoder/rotary_embedding_2d.py | 0 | rotaryembedding layer to calculate and apply the frequency tensor for complex exponentials. | STRING |
| HIGH | …/max/experimental/nn/common_layers/rotary_embedding.py | 0 | hyperparameter used to control the frequency scaling of the sinusoidal components of the embeddings. | STRING |
| HIGH | …tectures/pixtral/vision_encoder/rotary_embedding_2d.py | 0 | hyperparameter used to control the frequency scaling of the sinusoidal components of the embeddings. | STRING |
| HIGH | …pixtral_modulev3/vision_encoder/rotary_embedding_2d.py | 0 | hyperparameter used to control the frequency scaling of the sinusoidal components of the embeddings. | STRING |
| HIGH | max/python/max/nn/linear.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | max/python/max/nn/conv.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | max/python/max/nn/attention/multi_latent_attention.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | …/python/max/nn/attention/multi_latent_attention_fp8.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | max/python/max/nn/norm/rms_norm.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | …/max/pipelines/architectures/gemma3/layers/rms_norm.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | max/python/max/nn/norm/layer_norm.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | max/python/max/nn/moe/moe.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | …/pipelines/architectures/deepseekV3/layers/moe_gate.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | …/max/pipelines/architectures/gemma4/layers/rms_norm.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | …on/max/pipelines/architectures/qwen2_5vl/nn/decoder.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | …pelines/architectures/qwen2_5vl/nn/vision_attention.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | …ython/max/pipelines/architectures/internvl/internvl.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | …/pipelines/architectures/kimik2_5/layers/vision/mlp.py | 0 | create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the sha | STRING |
| HIGH | max/python/max/nn/attention/attention_with_rope.py | 0 | an opaque kv cache optimized attention mechanism with rope. | STRING |
| HIGH | max/python/max/nn/attention/multi_latent_attention.py | 0 | an opaque kv cache optimized attention mechanism with rope. | STRING |
| HIGH | …/python/max/nn/attention/multi_latent_attention_fp8.py | 0 | an opaque kv cache optimized attention mechanism with rope. | STRING |
| HIGH | max/python/max/nn/attention/attention_with_rope.py | 0 | the concatenation of q, k, and v bias weight vectors. | STRING |
| HIGH | …/max/pipelines/architectures/olmo3/layers/attention.py | 0 | the concatenation of q, k, and v bias weight vectors. | STRING |
| HIGH | …nes/architectures/gpt_oss_modulev3/layers/attention.py | 0 | the concatenation of q, k, and v bias weight vectors. | STRING |
| HIGH | …ines/architectures/gemma3_modulev3/layers/attention.py | 0 | the concatenation of q, k, and v bias weight vectors. | STRING |
| HIGH | …on/max/pipelines/architectures/qwen2_5vl/nn/decoder.py | 0 | the concatenation of q, k, and v bias weight vectors. | STRING |
| HIGH | …lines/architectures/olmo2_modulev3/layers/attention.py | 0 | the concatenation of q, k, and v bias weight vectors. | STRING |
| HIGH | …x/python/max/nn/transformer/distributed_transformer.py | 0 | stack of attention, feedforward, and rmsnorm layers. | STRING |
| HIGH | max/python/max/nn/transformer/transformer.py | 0 | stack of attention, feedforward, and rmsnorm layers. | STRING |
| HIGH | …es/architectures/pixtral/vision_encoder/transformer.py | 0 | stack of attention, feedforward, and rmsnorm layers. | STRING |
| HIGH | …ectures/pixtral_modulev3/vision_encoder/transformer.py | 0 | stack of attention, feedforward, and rmsnorm layers. | STRING |
| HIGH | …x/python/max/_interpreter_ops/elementwise_binary_gc.py | 0 | the input-dtype set an op is swept over (see ``_supported_dtypes``). | STRING |
| HIGH | max/python/max/_interpreter_ops/reduce_axis_gc.py | 0 | the input-dtype set an op is swept over (see ``_supported_dtypes``). | STRING |
| HIGH | max/python/max/_interpreter_ops/unary_elementwise_gc.py | 0 | the input-dtype set an op is swept over (see ``_supported_dtypes``). | STRING |
| HIGH | …x/python/max/_interpreter_ops/elementwise_binary_gc.py | 0 | conservative swept dtype set for a (dtype_class, device). | STRING |
| HIGH | max/python/max/_interpreter_ops/reduce_axis_gc.py | 0 | conservative swept dtype set for a (dtype_class, device). | STRING |
| HIGH | max/python/max/_interpreter_ops/unary_elementwise_gc.py | 0 | conservative swept dtype set for a (dtype_class, device). | STRING |
| HIGH | …x/python/max/_interpreter_ops/elementwise_binary_gc.py | 0 | graph ``sym_name`` and cache key for one (op, device, dtype). | STRING |
| HIGH | max/python/max/_interpreter_ops/unary_elementwise_gc.py | 0 | graph ``sym_name`` and cache key for one (op, device, dtype). | STRING |
| HIGH | max/python/max/_interpreter_ops/topk_gc.py | 0 | graph ``sym_name`` and cache key for one (op, device, dtype). | STRING |
| HIGH | …x/python/max/_interpreter_ops/elementwise_binary_gc.py | 0 | per-slot counterpart of :meth:`build_module`: one *device* only. | STRING |
| HIGH | max/python/max/_interpreter_ops/reduce_axis_gc.py | 0 | per-slot counterpart of :meth:`build_module`: one *device* only. | STRING |
| HIGH | max/python/max/_interpreter_ops/gather_gc.py | 0 | per-slot counterpart of :meth:`build_module`: one *device* only. | STRING |
| HIGH | max/python/max/_interpreter_ops/scatter_gc.py | 0 | per-slot counterpart of :meth:`build_module`: one *device* only. | STRING |
| HIGH | max/python/max/_interpreter_ops/scatter_nd_gc.py | 0 | the same-bit-width unsigned int a dtype is bit-cast to for copying. raises: notimplementederror: for sub-byte dtypes (e. | STRING |
| HIGH | max/python/max/_interpreter_ops/gather_gc.py | 0 | the same-bit-width unsigned int a dtype is bit-cast to for copying. raises: notimplementederror: for sub-byte dtypes (e. | STRING |
| HIGH | max/python/max/_interpreter_ops/scatter_gc.py | 0 | the same-bit-width unsigned int a dtype is bit-cast to for copying. raises: notimplementederror: for sub-byte dtypes (e. | STRING |
| HIGH | max/python/max/pipelines/sampling/sampling_config.py | 0 | the section name to use when loading this config from a maxconfig file. this is used to differentiate between different | STRING |
| HIGH | max/python/max/pipelines/kv_cache/config.py | 0 | the section name to use when loading this config from a maxconfig file. this is used to differentiate between different | STRING |
| HIGH | max/python/max/pipelines/lib/pipeline_runtime_config.py | 0 | the section name to use when loading this config from a maxconfig file. this is used to differentiate between different | STRING |
| HIGH | max/python/max/pipelines/lib/config/config.py | 0 | the section name to use when loading this config from a maxconfig file. this is used to differentiate between different | STRING |
| HIGH | max/python/max/pipelines/lib/config/model_config.py | 0 | the section name to use when loading this config from a maxconfig file. this is used to differentiate between different | STRING |
| 456 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …/kernels/benchmarks/misc/comparison/setup_bench_env.py | 113 | Ensure a source repository exists, cloning if necessary. Args: name: Repository key in REPOS dict (e.g., "d | STRING |
| HIGH | max/python/max/_interpreter.py | 160 | Execute an MO graph and return output buffers. Args: graph: The finalized MO graph to execute. inpu | STRING |
| HIGH | max/python/max/benchmark/benchmark_serving.py | 170 | Parse response format from CLI arg (inline JSON or @filepath). Args: arg: Either a JSON string or '@path/to | STRING |
| HIGH | …ython/max/benchmark/benchmark_shared/server_metrics.py | 102 | Get a histogram by name and optional labels. Args: metric_name: Base metric name (e.g., "maxserve_b | STRING |
| HIGH | …ython/max/benchmark/benchmark_shared/server_metrics.py | 148 | Get the metrics URL for a backend. Args: backend: Backend name (Backend enum) base_url: Base API UR | STRING |
| HIGH | …ython/max/benchmark/benchmark_shared/server_metrics.py | 177 | Fetch raw metrics text from a Prometheus endpoint. Args: url: Prometheus metrics endpoint URL Returns: | STRING |
| HIGH | …ython/max/benchmark/benchmark_shared/server_metrics.py | 304 | Fetch and parse metrics for a backend. Convenience function that combines get_metrics_url, fetch_metrics, and parse | STRING |
| HIGH | …x/benchmark/benchmark_shared/lora_benchmark_manager.py | 109 | Get LoRA name for a given request index. Args: request_idx: The request index Returns: | STRING |
| HIGH | max/python/max/benchmark/benchmark_shared/model_csv.py | 405 | Loads a result JSON file and returns one flattened row per result. Supports the shapes the benchmarks emit: - | STRING |
| HIGH | max/python/max/benchmark/benchmark_shared/model_csv.py | 460 | Chooses the ordered CSV columns from those available in the input. The default (no options) is ``profile.summary``, | STRING |
| HIGH | max/python/max/benchmark/benchmark_shared/model_csv.py | 614 | Reads result JSON ``inputs`` and writes a CSV with selected columns. Args: inputs: The result J | STRING |
| HIGH | max/python/max/benchmark/benchmark_shared/model_csv.py | 853 | Applies a function to every key in a mapping and returns a new dict. Args: f: The function to a | STRING |
| HIGH | …n/max/benchmark/benchmark_shared/datasets/interface.py | 77 | Factory method to create the appropriate dataset subclass based on dataset name. This factory method automatica | STRING |
| HIGH | …n/max/benchmark/benchmark_shared/datasets/interface.py | 140 | Get the appropriate dataset class for the given dataset name. Args: dataset_name: Name of the datas | STRING |
| HIGH | …n/max/benchmark/benchmark_shared/datasets/interface.py | 223 | Sample requests from the dataset. This is the standardized interface that all dataset implementations must foll | STRING |
| HIGH | …ython/max/benchmark/benchmark_shared/datasets/types.py | 203 | Read an image file as raw bytes and encode in base64 without any transformations. Preserves the exact original | STRING |
| HIGH | …ax/benchmark/benchmark_shared/datasets/distribution.py | 68 | Parse a distribution parameter into a concrete distribution instance. Args: param: An int or float, | STRING |
| HIGH | …ax/benchmark/benchmark_shared/datasets/distribution.py | 174 | Parse a string like "N(mean, std)" into a NormalDistribution. Args: schema: A string in the format | STRING |
| HIGH | …ax/benchmark/benchmark_shared/datasets/distribution.py | 220 | Parse a string like "U(lower, upper)" into a UniformDistribution. Args: schema: A string in the for | STRING |
| HIGH | …ax/benchmark/benchmark_shared/datasets/distribution.py | 265 | Parse a string like "G(shape, scale)" into a GammaDistribution. Args: schema: A string in the forma | STRING |
| HIGH | …ax/benchmark/benchmark_shared/datasets/distribution.py | 315 | Parse a string like "LN(mean, std)" into a LogNormalDistribution. Args: schema: A string in the for | STRING |
| HIGH | …ax/benchmark/benchmark_shared/datasets/distribution.py | 379 | Parse a string like "Burr12(c, d, scale)" into a Burr12Distribution. Args: schema: A string in the | STRING |
| HIGH | …ax/benchmark/benchmark_shared/datasets/distribution.py | 436 | Parse a string like "DU(lower, upper)" into a DiscreteUniformDistribution. Args: schema: A string i | STRING |
| HIGH | …ax/benchmark/benchmark_shared/datasets/distribution.py | 494 | Parse a string like "NB(n, p)" into a NegativeBinomialDistribution. Args: schema: A string in the f | STRING |
| HIGH | max/python/max/experimental/realization_context.py | 348 | Adds a realized tensor as an input source to the computation graph. Registers a realized tensor as a graph inpu | STRING |
| HIGH | max/python/max/experimental/random.py | 65 | Creates a tensor filled with random values from a uniform distribution. Generates a tensor with values uniformly di | STRING |
| HIGH | max/python/max/experimental/random.py | 115 | Creates a tensor filled with random values from a Gaussian (normal) distribution. Generates a tensor with values sa | STRING |
| HIGH | max/python/max/experimental/tensor.py | 790 | Materializes a dimension as a rank-0 (scalar) tensor on CPU. Converts a shape dimension — static, symbolic, or | STRING |
| HIGH | max/python/max/experimental/tensor.py | 867 | Creates a tensor from one or more per-shard graph values. For a single shard value with no mapping, behaves lik | STRING |
| HIGH | max/python/max/experimental/tensor.py | 1071 | Creates a constant tensor from a Python literal or array-like value. .. deprecated:: 26.2 Use ``Ten | STRING |
| HIGH | max/python/max/experimental/tensor.py | 1345 | Creates a tensor with evenly spaced values within a given interval. Returns a new 1-D tensor containing a seque | STRING |
| HIGH | max/python/max/experimental/tensor.py | 1909 | Returns the indices of the maximum values along an axis. It's useful for finding the position of the largest el | STRING |
| HIGH | max/python/max/experimental/tensor.py | 1949 | Computes the maximum along a specified axis. .. code-block:: python from max.experimental import t | STRING |
| HIGH | max/python/max/experimental/tensor.py | 1989 | Computes the minimum along a specified axis. .. code-block:: python from max.experimental import t | STRING |
| HIGH | max/python/max/experimental/tensor.py | 2029 | Computes the mean along a specified axis. .. code-block:: python from max.experimental import tens | STRING |
| HIGH | max/python/max/experimental/tensor.py | 2069 | Computes the sum along a specified axis. .. code-block:: python from max.experimental import tenso | STRING |
| HIGH | max/python/max/experimental/tensor.py | 2109 | Computes the product along a specified axis. Args: axis: The axis along which to compute the produc | STRING |
| HIGH | max/python/max/experimental/tensor.py | 2168 | Removes a dimension of size ``1`` from the tensor. This is useful for removing singleton dimensions from tensor | STRING |
| HIGH | max/python/max/experimental/tensor.py | 2200 | Inserts a dimension of size ``1`` into the tensor. This is the inverse of :meth:`squeeze` and is useful for add | STRING |
| HIGH | max/python/max/experimental/tensor.py | 2237 | Splits the tensor into multiple tensors along a given dimension. This method supports two modes, matching PyTor | STRING |
| HIGH | max/python/max/experimental/tensor.py | 2278 | Reshapes the tensor. If a value of ``-1`` is present in ``shape``, that dimension becomes an automatica | STRING |
| HIGH | max/python/max/experimental/tensor.py | 2377 | Permutes all dimensions of the tensor. This is useful for changing the layout of multi-dimensional data, such | STRING |
| HIGH | max/python/max/experimental/tensor.py | 2415 | Transposes two axes of the tensor. .. code-block:: python from max.dtype import DType | STRING |
| HIGH | max/python/max/experimental/executor.py | 64 | Execute *graph* with *inputs* and return output buffers. Args: graph: A finalized graph ready for e | STRING |
| HIGH | max/python/max/experimental/nn/module.py | 376 | Defines the computation performed by the module. Users must override this method in their subclass to define th | STRING |
| HIGH | max/python/max/experimental/nn/module.py | 1098 | Compiles the module to an optimized executable through graph tracing. This method performs symbolic tracing of | STRING |
| HIGH | max/python/max/experimental/nn/module.py | 1350 | Marks a :class:`Module` to call to a subgraph. Use this to speed up graph build and compilation time. When a n | STRING |
| HIGH | max/python/max/experimental/nn/_compile_utils.py | 599 | Validates and prepares a weight for a parameter. Handles conversion and validation of the weight. Does not handle d | STRING |
| HIGH | max/python/max/experimental/nn/_compile_utils.py | 693 | Prepares the weight registry given input weights and module parameters. Args: weights: User-provided weight | STRING |
| HIGH | max/python/max/experimental/nn/norm/group_norm.py | 124 | Returns ``x`` normalized within each channel group. Args: x: The input tensor of shape ``(batch, ch | STRING |
| HIGH | max/python/max/experimental/torch/torch.py | 82 | Converts a MAX DType to the corresponding torch dtype. Args: dtype: The MAX DType to convert. Returns: | STRING |
| HIGH | max/python/max/experimental/torch/torch.py | 99 | Converts a torch dtype to the corresponding MAX DType. Args: dtype: The torch dtype to convert. Return | STRING |
| HIGH | max/python/max/experimental/sharding/mesh.py | 90 | Returns *device_idx*'s coordinate along the given mesh axis. For a mesh shaped ``(2, 3)`` with row-major device | STRING |
| HIGH | …python/max/experimental/cascade/grpc_runtime/client.py | 197 | Fetch and decode a single result from the remote server by id. Returns raw JSON-like data (:py:data:`CascadeVal | STRING |
| HIGH | …python/max/experimental/cascade/grpc_runtime/client.py | 236 | Stream items from a bound server-side iterator, decoded one by one. Yields raw JSON-like data (:py:data:`Cascad | STRING |
| HIGH | max/python/max/experimental/functional/creation_ops.py | 538 | Computes a Hann window of a given length. For a symmetric window of ``N`` points with ``N > 1``, the value at index | STRING |
| HIGH | max/python/max/experimental/functional/creation_ops.py | 608 | Creates a sequence of evenly spaced values from ``start`` to ``stop``. The sequence begins at ``start`` and increme | STRING |
| HIGH | max/python/max/experimental/functional/creation_ops.py | 681 | Creates a constant tensor from a Python literal or array-like value. For an array-like ``value``, the array's own d | STRING |
| HIGH | max/python/max/experimental/functional/__init__.py | 402 | Calls a custom op, optionally loading custom Mojo extensions first. Args: name: The registered name of the | STRING |
| HIGH | max/python/max/experimental/functional/__init__.py | 439 | Calls an in-place custom op that mutates one or more of its inputs. Like :func:`custom`, but for ops that mutate bu | STRING |
| 321 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …local_transformers_setup/cleanup_local_transformers.sh | 30 | # Create a temp file to build the cleaned version | COMMENT |
| MEDIUM | docs/code/develop/tensors/create_first_tensor.py | 17 | # Create a simple 1-D tensor (a vector) | COMMENT |
| MEDIUM | docs/code/develop/tensors/create_multi_dim.py | 17 | # Create a 2-D tensor (a matrix) | COMMENT |
| MEDIUM | docs/code/develop/tensors/create_multi_dim.py | 21 | # Create a 3-D tensor (a cube of numbers) | COMMENT |
| MEDIUM | docs/code/develop/dtypes/specify_dtype.py | 19 | # Create a tensor with float32 (default for most operations) | COMMENT |
| MEDIUM | docs/code/develop/dtypes/specify_dtype.py | 23 | # Create a tensor with int32 for indices or counts | COMMENT |
| MEDIUM | docs/code/develop/dtypes/dlpack_conversion.py | 18 | # Create a NumPy array | COMMENT |
| MEDIUM | docs/code/develop/dtypes/cast_dtype.py | 19 | # Create a float32 tensor | COMMENT |
| MEDIUM | …enchmarks/misc/utils/bench_vllm_flashinfer_decoding.py | 88 | # Create the block tables. | COMMENT |
| MEDIUM | …nchmarks/misc/utils/bench_vllm_flashinfer_attention.py | 82 | # Create the block tables. | COMMENT |
| MEDIUM | …ernels/benchmarks/misc/utils/warp_profiling/profile.py | 236 | # Create a dictionary of dataframes, one for each group | COMMENT |
| MEDIUM | …benchmarks/misc/comparison/bench_allreduce_subgraph.py | 194 | # Create a CPU group for coordination (CustomAllreduce needs this) | COMMENT |
| MEDIUM | …chmarks/gpu/linalg/bench_matmul_llama3_70B_4xH100.yaml | 20 | # This file is facilitate development before GTC and should be combined | COMMENT |
| MEDIUM | max/python/docs/build-rsts.sh | 71 | # Create the directory if it does not exist | COMMENT |
| MEDIUM | max/python/max/_interpreter.py | 174 | # Create a new interpreter slots dictionary for this execution. | COMMENT |
| MEDIUM | max/python/max/benchmark/benchmark_serving.py | 410 | # Create a request driver instance without pbar for test prompt | COMMENT |
| MEDIUM | …hmark/benchmark_shared/datasets/arxiv_summarization.py | 71 | # Create a summarization prompt | COMMENT |
| MEDIUM | …hmark/benchmark_shared/datasets/arxiv_summarization.py | 108 | # Create the full prompt | COMMENT |
| MEDIUM | max/python/max/experimental/tensor.py | 1704 | # Create a BufferValue and assign the current value to it | COMMENT |
| MEDIUM⚡ | max/python/max/experimental/tensor.py | 1362 | # Create a range from 0 to 10 (exclusive) | STRING |
| MEDIUM⚡ | max/python/max/experimental/tensor.py | 1366 | # Create a range from 5 to 15 with step 2 | STRING |
| MEDIUM⚡ | max/python/max/experimental/tensor.py | 1374 | # Create a range with a floating-point step | STRING |
| MEDIUM⚡ | max/python/max/experimental/tensor.py | 1378 | # Create a descending range with negative step | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 918 | # Create a NumPy array | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 1132 | # Create a 3x3 tensor filled with 7 | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 1135 | # Create a 2x4 tensor filled with pi | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 1168 | # Create a reference tensor | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 1209 | # Create a 2x3 tensor of zeros | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 1214 | # Create a 1D tensor using default dtype and device | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 1244 | # Create a reference tensor | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 1283 | # Create a 2x3 tensor of ones | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 1312 | # Create a reference tensor | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 1436 | # Create a reference tensor type with shape (2, 4) | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 1841 | # Create a tensor on CPU | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 1955 | # Create a 2x4 tensor | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 1995 | # Create a 2x4 tensor | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 2035 | # Create a 2x4 tensor | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 2075 | # Create a 2x3 tensor | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 2139 | # Create a 2x4 tensor | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 2250 | # Create a 10x4 tensor | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 2356 | # Create a float32 tensor | STRING |
| MEDIUM | max/python/max/experimental/tensor.py | 2459 | # Create a 2x3 matrix | STRING |
| MEDIUM | max/python/max/nn/attention/multihead_attention.py | 164 | # Create a module instance for this device | COMMENT |
| MEDIUM | max/python/max/nn/moe/quant_strategy.py | 307 | # Create a dummy expert scales tensor with shape (num_experts,) for | COMMENT |
| MEDIUM | max/python/max/config/__init__.py | 1052 | # Create a wrapper class to override parse_args method | COMMENT |
| MEDIUM | max/python/max/graph/quantization.py | 80 | # Create a quantized weight using Q4_K encoding | STRING |
| MEDIUM | max/python/max/graph/graph.py | 749 | # Create an always-ready chain that is never advanced by the graph. | COMMENT |
| MEDIUM | max/python/max/graph/type.py | 137 | # Create a GPU device reference (default id=0) | STRING |
| MEDIUM | max/python/max/graph/type.py | 140 | # Create a CPU device with specific id | STRING |
| MEDIUM | max/python/max/graph/type.py | 388 | # Create a tensor type with float32 elements and static dimensions 2x3 | STRING |
| MEDIUM | max/python/max/graph/type.py | 556 | # Create an opaque type with parameters | STRING |
| MEDIUM⚡ | max/python/max/graph/value.py | 377 | # Create a sample matrix | STRING |
| MEDIUM⚡ | max/python/max/graph/value.py | 380 | # Create a Graph context to work with tensors | STRING |
| MEDIUM⚡ | max/python/max/graph/value.py | 382 | # Create a constant tensor from the matrix | STRING |
| MEDIUM⚡ | max/python/max/graph/value.py | 487 | # Create a 2x2 matrix | STRING |
| MEDIUM⚡ | max/python/max/graph/value.py | 490 | # Create a Graph context to work with tensors | STRING |
| MEDIUM⚡ | max/python/max/graph/value.py | 492 | # Create a constant tensor from the matrix | STRING |
| MEDIUM⚡ | max/python/max/graph/value.py | 517 | # Create a matrix with float32 values | STRING |
| MEDIUM⚡ | max/python/max/graph/value.py | 520 | # Create a Graph context to work with tensors | STRING |
| MEDIUM⚡ | max/python/max/graph/value.py | 522 | # Create a constant tensor from the matrix | STRING |
| 187 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/update-github-links.py | 62 | print(f"Error: '{docs_dir}' is not a valid directory") | CODE |
| MEDIUM | …s/benchmarks/misc/comparison/bench_blackwell_decode.py | 54 | print(f"Error: flashinfer not available: {e}") | CODE |
| LOW | …s/benchmarks/misc/comparison/bench_blackwell_decode.py | 499 | except Exception as e: | CODE |
| LOW | …s/benchmarks/misc/comparison/bench_blackwell_decode.py | 517 | except Exception as e: | CODE |
| LOW | …c/comparison/bench_blackwell_mla_prefill_sparse_fp8.py | 373 | except Exception as e: | CODE |
| MEDIUM | …nchmarks/misc/comparison/bench_blackwell_mla_decode.py | 120 | print(f"Error: flashinfer not available: {e}") | CODE |
| LOW | …nchmarks/misc/comparison/bench_blackwell_mla_decode.py | 1038 | except Exception as e: | CODE |
| LOW | …nchmarks/misc/comparison/bench_blackwell_mla_decode.py | 1059 | except Exception as e: | CODE |
| LOW | max/kernels/benchmarks/misc/comparison/sweep_decode.py | 170 | except Exception as e: | CODE |
| LOW | max/kernels/benchmarks/misc/comparison/sweep_decode.py | 194 | except Exception as e: | CODE |
| LOW | …/kernels/benchmarks/misc/comparison/setup_bench_env.py | 385 | except Exception as e: | CODE |
| LOW | …/kernels/benchmarks/misc/comparison/setup_bench_env.py | 673 | except Exception as e: | CODE |
| LOW | …/kernels/benchmarks/misc/comparison/setup_bench_env.py | 698 | except Exception as e: | CODE |
| LOW | …/kernels/benchmarks/misc/comparison/setup_bench_env.py | 714 | except Exception as e: | CODE |
| MEDIUM | …/benchmarks/misc/comparison/bench_blackwell_prefill.py | 46 | print(f"Error: flashinfer not available: {e}") | CODE |
| MEDIUM | …/benchmarks/misc/comparison/bench_blackwell_prefill.py | 76 | print(f"Error: flash_attn not available: {e}") | CODE |
| LOW | …/benchmarks/misc/comparison/bench_blackwell_prefill.py | 512 | except Exception as e: | CODE |
| LOW | …/benchmarks/misc/comparison/bench_blackwell_prefill.py | 532 | except Exception as e: | CODE |
| LOW | …/benchmarks/misc/comparison/bench_blackwell_prefill.py | 551 | except Exception as e: | CODE |
| LOW | …benchmarks/misc/comparison/bench_allreduce_subgraph.py | 149 | except Exception as e: | CODE |
| LOW | …benchmarks/misc/comparison/bench_allreduce_subgraph.py | 197 | except Exception: | CODE |
| LOW | …benchmarks/misc/comparison/bench_allreduce_subgraph.py | 227 | except Exception as e: | CODE |
| LOW | …benchmarks/misc/comparison/bench_allreduce_subgraph.py | 268 | except Exception as e: | CODE |
| MEDIUM | …benchmarks/misc/comparison/bench_allreduce_subgraph.py | 356 | print("Error: This benchmark requires mpirun for multi-GPU execution.") | CODE |
| LOW | max/kernels/benchmarks/misc/comparison/bench_softmax.py | 136 | except Exception as e: | CODE |
| LOW | …/misc/comparison/bench_blackwell_mla_prefill_sparse.py | 346 | except Exception as e: | CODE |
| LOW | max/kernels/benchmarks/misc/comparison/bench_amd_mha.py | 501 | except Exception as e: | CODE |
| LOW | …els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py | 281 | except Exception as e: | CODE |
| LOW | …els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py | 422 | except Exception as e: | CODE |
| LOW⚡ | max/kernels/benchmarks/misc/comparison/bench_amd_mla.py | 824 | except Exception as e: | CODE |
| LOW | max/kernels/benchmarks/misc/comparison/bench_amd_mla.py | 1265 | except Exception as e: | CODE |
| LOW | max/kernels/benchmarks/misc/comparison/bench_amd_mla.py | 1466 | except Exception as e: | CODE |
| LOW | max/kernels/benchmarks/misc/comparison/bench_amd_mla.py | 1536 | except Exception as e: | CODE |
| LOW | max/kernels/benchmarks/autotune/kbench.py | 714 | except Exception: | CODE |
| MEDIUM | max/kernels/benchmarks/autotune/kbench.py | 711 | def main() -> None: | CODE |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 158 | except Exception as e: | CODE |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 167 | except Exception as exc: | CODE |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 257 | except Exception: | CODE |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 625 | except Exception as e: | CODE |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 1163 | except Exception as e: | CODE |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 1197 | except Exception: | CODE |
| LOW | max/kernels/benchmarks/autotune/tests/test_kbench.py | 105 | except Exception: | CODE |
| LOW | max/python/max/_interpreter.py | 46 | except Exception as _e: | CODE |
| LOW | max/python/max/_interpreter.py | 73 | except Exception: | CODE |
| LOW | max/python/max/benchmark/serve_replay.py | 52 | except Exception: | CODE |
| LOW | max/python/max/benchmark/serve_replay.py | 74 | except Exception: | CODE |
| LOW | max/python/max/benchmark/serve_replay.py | 88 | except Exception: | CODE |
| LOW | max/python/max/benchmark/benchmark_serving.py | 526 | except Exception as e: | CODE |
| LOW | max/python/max/benchmark/benchmark_serving.py | 568 | except Exception: | CODE |
| LOW | max/python/max/benchmark/benchmark_serving.py | 795 | except Exception as e: | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 462 | except Exception: | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 644 | except Exception: | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 730 | except Exception: | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 1032 | except Exception: | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 1124 | except Exception: | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 1347 | except Exception: | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 1457 | except Exception: | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 1568 | except Exception: | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 1658 | except Exception: | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 1696 | except Exception: | CODE |
| 383 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/write-nightly-release.py | 29 | CODE | |
| LOW | docs/generate-arch-docs.py | 111 | CODE | |
| LOW | docs/generate-arch-docs.py | 245 | CODE | |
| LOW | docs/generate-models-table.py | 200 | CODE | |
| LOW | docs/generate-models-table.py | 257 | CODE | |
| LOW | max/kernels/test/gpu/fuzz/fuzz.py | 845 | CODE | |
| LOW | max/kernels/test/gpu/fuzz/fuzz.py | 1050 | CODE | |
| LOW | max/kernels/benchmarks/misc/analyze_4wave_autotune.py | 55 | CODE | |
| LOW | max/kernels/benchmarks/misc/utils/bench.py | 128 | CODE | |
| LOW | max/kernels/benchmarks/misc/utils/bench.py | 215 | CODE | |
| LOW | …ernels/benchmarks/misc/comparison/bench_ep_baseline.py | 457 | CODE | |
| LOW | max/kernels/benchmarks/misc/comparison/sweep_decode.py | 51 | CODE | |
| LOW | …/benchmarks/misc/comparison/bench_blackwell_prefill.py | 452 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 1285 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 684 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 734 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 855 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 1547 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 1780 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 1941 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 1974 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 2032 | CODE | |
| LOW | max/kernels/benchmarks/autotune/tuning_codegen.py | 95 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kplot.py | 111 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kprofile.py | 751 | CODE | |
| LOW | max/python/docs/check_api_coverage.py | 90 | CODE | |
| LOW | max/python/docs/check_api_coverage.py | 216 | CODE | |
| LOW | max/python/docs/check_api_coverage.py | 408 | CODE | |
| LOW | max/python/max/_interpreter.py | 205 | CODE | |
| LOW | max/python/max/benchmark/sweep_benchmark_serving.py | 109 | CODE | |
| LOW | max/python/max/benchmark/serve_replay.py | 60 | CODE | |
| LOW | max/python/max/benchmark/benchmark_serving.py | 320 | CODE | |
| LOW | max/python/max/benchmark/benchmark_serving.py | 936 | CODE | |
| LOW | max/python/max/benchmark/benchmark_serving.py | 1347 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/multi_turn.py | 64 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/multi_turn.py | 691 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/metrics.py | 1190 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/metrics.py | 428 | CODE | |
| LOW | …ax/benchmark/benchmark_shared/serving_result_output.py | 153 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 541 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 399 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 1243 | CODE | |
| LOW | …ython/max/benchmark/benchmark_shared/server_metrics.py | 237 | CODE | |
| LOW | …ython/max/benchmark/benchmark_shared/server_metrics.py | 430 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/sse.py | 82 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/warmup.py | 245 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/utils.py | 88 | CODE | |
| LOW | max/python/max/benchmark/benchmark_shared/model_csv.py | 789 | CODE | |
| LOW | …nchmark/benchmark_shared/datasets/nemotron_opencode.py | 646 | CODE | |
| LOW | …nchmark/benchmark_shared/datasets/nemotron_opencode.py | 558 | CODE | |
| LOW | …/python/max/benchmark/benchmark_shared/datasets/all.py | 110 | CODE | |
| LOW | …ax/benchmark/benchmark_shared/datasets/distribution.py | 65 | CODE | |
| LOW | …ax/benchmark/benchmark_shared/datasets/agentic_code.py | 113 | CODE | |
| LOW | …ax/benchmark/benchmark_shared/datasets/agentic_code.py | 195 | CODE | |
| LOW | …ax/benchmark/benchmark_shared/datasets/agentic_code.py | 240 | CODE | |
| LOW | …n/max/benchmark/benchmark_shared/datasets/batch_job.py | 179 | CODE | |
| LOW | max/python/max/experimental/tensor.py | 148 | CODE | |
| LOW | max/python/max/experimental/nn/module.py | 951 | CODE | |
| LOW | max/python/max/experimental/nn/_compile_utils.py | 687 | CODE | |
| LOW | max/python/max/experimental/nn/_compile_utils.py | 736 | CODE | |
| 419 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | max/kernels/benchmarks/autotune/kdiff.py | 51 | export KUBECONFIG=/dev/null ; # recommended | STRING |
| HIGH | max/python/max/nn/kv_cache/cache_params.py | 778 | """Type of KV cache connector to use (null, local, tiered, dkv).""" | STRING |
| HIGH | …/architectures/deepseekV3_modulev3/layers/quant_mla.py | 250 | """Fused ``q_a_proj || kv_a_proj_with_mqa`` (bf16 or FP8).""" | STRING |
| HIGH | max/python/max/pipelines/lib/embeddings_pipeline.py | 144 | tracer.push("prepare_response") | CODE |
| HIGH | max/python/max/profiler/tracing.py | 137 | tracer.push("child_operation") | STRING |
| HIGH | max/python/max/profiler/tracing.py | 144 | tracer.push("child_operation") | STRING |
| HIGH | max/python/max/profiler/tracing.py | 164 | self.push(message, color) | CODE |
| HIGH | max/python/max/profiler/tracing.py | 219 | self.push(message, color) | CODE |
| HIGH | max/python/max/serve/parser/json_utils.py | 23 | (?<boolean> true | false | null ) | CODE |
| HIGH | max/python/max/serve/worker_interface/zmq_interface.py | 306 | response_queue=self.response_queue_config.push(), | CODE |
| HIGH | max/python/max/serve/worker_interface/_zmq_queue.py | 268 | return self.push(), self.pull() | CODE |
| HIGH⚡ | …ests/integration/unorganized/test_memory_estimation.py | 301 | ([DeviceSpec.cpu()], KVConnectorType.null, 0), | CODE |
| HIGH⚡ | …ests/integration/unorganized/test_memory_estimation.py | 302 | ([DeviceSpec.accelerator(id=0)], KVConnectorType.null, 0), | CODE |
| HIGH⚡ | …ests/integration/unorganized/test_memory_estimation.py | 306 | KVConnectorType.null, | CODE |
| HIGH⚡ | …ests/integration/unorganized/test_memory_estimation.py | 311 | KVConnectorType.null, | CODE |
| HIGH⚡ | …ests/integration/unorganized/test_memory_estimation.py | 316 | KVConnectorType.null, | CODE |
| HIGH⚡ | …ests/integration/unorganized/test_memory_estimation.py | 367 | (1, KVConnectorType.null, 1), | CODE |
| HIGH⚡ | …ests/integration/unorganized/test_memory_estimation.py | 369 | (2, KVConnectorType.null, 1), | CODE |
| HIGH⚡ | …res/unified_dspark_gemma4/test_dspark_gemma4_module.py | 710 | """Mean per-position KL(ref || max) over fp32 softmax distributions.""" | STRING |
| HIGH | …okenization/test_kimi_reasoning_toolarg_enforcement.py | 161 | # anyOf(string-enum | null): once the value opens with a quote, only the | COMMENT |
| HIGH | …ation/accuracy/llm_fuzz/scenarios/structured_output.py | 207 | # (non-dict, null, recursive $ref) must be rejected. | COMMENT |
| HIGH | …tion/accuracy/llm_fuzz/scenarios/models/kimi_battle.py | 103 | f"Expected str|null, got {type(data['value']).__name__}" | CODE |
| HIGH | …ation/accuracy/llm_fuzz/scenarios/models/glm_battle.py | 222 | detail=f"nickname should be string or null, got {type(data['nickname']).__name__}", | CODE |
| HIGH | …ation/accuracy/llm_fuzz/scenarios/models/glm_battle.py | 297 | detail=f"value should be string or null, got {type(data['value']).__name__}", | CODE |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 1188 | # 15. anyOf with nullable string: anyOf: [{type:string},{type:null}] | COMMENT |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 1182 | "and reason is null (must be null, not a string)." | CODE |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 1351 | f"status={status!r} not in enum ['active','inactive',null]" | CODE |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 1386 | f"not in [true, false, null]" | CODE |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 1950 | "a next pointer (another node or null)." | CODE |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 2725 | "string 'none' instead of null. Do not use null, " | CODE |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 3998 | f"name: expected string or null, got {type(name).__name__}" | CODE |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 4004 | f"age: expected integer or null, got " | CODE |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 4011 | f"tags: expected array or null, got " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 135 | "integer vs number, null, nested objects, fixed property order" | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 842 | f"nickname: expected string or null, got {type(nickname).__name__}" | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 1104 | f"nickname: expected string or null, got {type(nn).__name__}" | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 1156 | f"reason: expected null, got " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 1204 | f"middle_name: expected string or null, " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 1791 | f"score: expected number or null, " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 1997 | f"metadata: expected object or null, " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 2075 | f"tags: expected array or null, " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 2677 | f"backup_contact: expected object or null, got " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 3372 | "kind (file or directory), and children (array or null)." | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 3491 | f"{field}: expected string or null, got " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 3557 | f"count: expected integer or null, got " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 3607 | f"enabled: expected boolean or null, got " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 3661 | f"score: expected number or null, got " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 3712 | f"tags: expected array or null, got " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 3778 | f"address: expected object or null, got " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 4050 | "Upsert a record. name is string or null, age is " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 4051 | "integer or null, tags is array of strings or null." | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 4153 | f"config: expected object or null, got " | CODE |
| HIGH | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 4281 | f"object, or null, got {type(result).__name__}" | CODE |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 2660 | """Verify anyOf: [$ref, null] allows both valid object and null. | STRING |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 3544 | """anyOf [integer, null]: prompt pushes model toward string output.""" | STRING |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 3595 | """anyOf [boolean, null]: prompt tries to elicit string 'true'.""" | STRING |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 3646 | """anyOf [number, null]: prompt tries to elicit boolean value.""" | STRING |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 3699 | """anyOf [array of strings, null]: prompt tries to elicit a bare string.""" | STRING |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 3766 | """anyOf [typed object, null]: prompt tries to flatten nested fields.""" | STRING |
| HIGH⚡ | …llm_fuzz/scenarios/validation/tc_schema_enforcement.py | 4140 | """anyOf [$ref to typed object, null] — the Pydantic Optional[Model] pattern.""" | STRING |
| 14 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …x/kernels/benchmarks/misc/comparison/install_sglang.py | 19 | def update_pip() -> None: | CODE |
| LOW | max/python/max/benchmark/benchmark_serving.py | 147 | logger = logging.getLogger(__name__) | CODE |
| LOW | max/python/max/benchmark/results_to_csv.py | 80 | logger = logging.getLogger(__name__) | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/multi_turn.py | 55 | logger = logging.getLogger(__name__) | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/metrics.py | 46 | __all__ = [ | CODE |
| LOW | …ax/benchmark/benchmark_shared/serving_result_output.py | 62 | logger = logging.getLogger(__name__) | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/request.py | 57 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ython/max/benchmark/benchmark_shared/server_metrics.py | 36 | logger = logging.getLogger(__name__) | CODE |
| LOW | …thon/max/benchmark/benchmark_shared/serving_metrics.py | 51 | logger = logging.getLogger(__name__) | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/warmup.py | 46 | logger = logging.getLogger(__name__) | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/utils.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/utils.py | 279 | def set_ulimit(target_soft_limit: int = 65535) -> None: | CODE |
| LOW | …x/benchmark/benchmark_shared/lora_benchmark_manager.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | …x/python/max/benchmark/benchmark_shared/single_turn.py | 61 | logger = logging.getLogger(__name__) | CODE |
| LOW | max/python/max/benchmark/benchmark_shared/model_csv.py | 75 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/benchmark/benchmark_shared/datasets/instruct_coder.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | …enchmark_shared/datasets/multiturn_distribution_fit.py | 78 | logger = logging.getLogger(__name__) | CODE |
| LOW | …nchmark/benchmark_shared/datasets/nemotron_opencode.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | …on/max/benchmark/benchmark_shared/datasets/__init__.py | 52 | __all__ = [ | CODE |
| LOW | …/python/max/benchmark/benchmark_shared/datasets/all.py | 84 | logger = logging.getLogger(__name__) | CODE |
| LOW | …thon/max/benchmark/benchmark_shared/datasets/random.py | 43 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ax/benchmark/benchmark_shared/datasets/agentic_code.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | …hmark/benchmark_shared/datasets/artificial_analysis.py | 45 | logger = logging.getLogger(__name__) | CODE |
| LOW | …n/max/benchmark/benchmark_shared/datasets/batch_job.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/max/benchmark/benchmark_shared/datasets/chat_judge.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | max/python/max/experimental/realization_context.py | 111 | def set_seed(value: int) -> None: | CODE |
| LOW | max/python/max/experimental/realization_context.py | 762 | __all__ = [ | CODE |
| LOW | max/python/max/experimental/__init__.py | 47 | __all__ = ["Tensor", "functional", "random", "tensor"] | CODE |
| LOW | max/python/max/experimental/random.py | 43 | __all__ = ["gaussian", "normal", "seed", "set_seed", "uniform"] | CODE |
| LOW | max/python/max/experimental/executor.py | 424 | __all__ = [ | CODE |
| LOW | max/python/max/experimental/nn/__init__.py | 70 | __all__ = [ | CODE |
| LOW | max/python/max/experimental/nn/_compilation_timer.py | 34 | __all__ = [ | CODE |
| LOW | max/python/max/experimental/nn/rope/__init__.py | 17 | __all__ = [ | CODE |
| LOW | max/python/max/experimental/nn/norm/__init__.py | 19 | __all__ = ["GemmaRMSNorm", "GroupNorm", "LayerNorm", "RMSNorm", "rms_norm"] | CODE |
| LOW | …/python/max/experimental/nn/common_layers/mesh_axis.py | 27 | __all__ = ["DP", "TP"] | CODE |
| LOW | …ax/experimental/nn/common_layers/functional_kernels.py | 372 | __all__ = [ | CODE |
| LOW | max/python/max/experimental/torch/__init__.py | 21 | __all__ = [ | CODE |
| LOW | max/python/max/experimental/sharding/per_shard_dim.py | 31 | __all__ = [ | CODE |
| LOW | max/python/max/experimental/sharding/picker.py | 39 | __all__ = [ | CODE |
| LOW | max/python/max/experimental/sharding/__init__.py | 118 | __all__ = [ | CODE |
| LOW | max/python/max/experimental/sharding/mode.py | 25 | __all__ = [ | CODE |
| LOW | max/python/max/experimental/sharding/rules/__init__.py | 101 | __all__ = [ | CODE |
| LOW | max/python/max/experimental/testing/__init__.py | 21 | __all__ = ["assert_all_close"] | CODE |
| LOW | max/python/max/experimental/cascade/__init__.py | 37 | __all__ = [ | CODE |
| LOW | …python/max/experimental/cascade/grpc_runtime/server.py | 48 | logger = logging.getLogger(__name__) | CODE |
| LOW | …python/max/experimental/cascade/grpc_runtime/client.py | 71 | logger = logging.getLogger(__name__) | CODE |
| LOW | …thon/max/experimental/cascade/grpc_runtime/__init__.py | 20 | __all__ = ["GrpcRuntimeClient", "SubprocGrpcRuntimeClient"] | CODE |
| LOW | …ython/max/experimental/cascade/grpc_runtime/runtime.py | 20 | __all__ = ["GrpcRuntimeClient", "SubprocGrpcRuntimeClient"] | CODE |
| LOW | max/python/max/experimental/cascade/core/__init__.py | 29 | __all__ = [ | CODE |
| LOW | …python/max/experimental/cascade/http_runtime/server.py | 56 | logger = logging.getLogger(__name__) | CODE |
| LOW | …thon/max/experimental/cascade/http_runtime/__init__.py | 18 | __all__ = ["HttpRuntimeProxy", "SubprocHttpRuntime"] | CODE |
| LOW | …thon/max/experimental/cascade/workers/max_tokenizer.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | …n/max/experimental/cascade/workers/max_model_worker.py | 47 | logger = logging.getLogger(__name__) | CODE |
| LOW | max/python/max/experimental/cascade/serve/__init__.py | 18 | __all__ = ["CascadeFastAPI", "build_router"] | CODE |
| LOW | max/python/max/experimental/cascade/serve/main.py | 62 | logger = logging.getLogger(__name__) | CODE |
| LOW | max/python/max/experimental/functional/__init__.py | 203 | __all__ = [ | CODE |
| LOW | max/python/max/experimental/functional/spmd_ops.py | 116 | __all__ = [ | CODE |
| LOW | max/python/max/_xgrammar/structural_tag.py | 602 | __all__ = [ | CODE |
| LOW | max/python/max/_xgrammar/__init__.py | 379 | __all__ = [ | CODE |
| LOW | max/python/max/nn/__init__.py | 93 | __all__ = [ | CODE |
| 269 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …s/benchmarks/misc/comparison/bench_blackwell_decode.py | 425 | CODE | |
| LOW | …/benchmarks/misc/comparison/bench_blackwell_prefill.py | 350 | CODE | |
| LOW | max/kernels/benchmarks/misc/comparison/bench_amd_mha.py | 146 | CODE | |
| LOW | max/kernels/benchmarks/misc/comparison/bench_amd_mha.py | 349 | CODE | |
| LOW | max/kernels/benchmarks/misc/comparison/bench_amd_mha.py | 390 | CODE | |
| LOW | max/kernels/benchmarks/misc/comparison/bench_amd_mha.py | 431 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kbench.py | 105 | CODE | |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 513 | CODE | |
| LOW | …/benchmark/benchmark_shared/datasets/instruct_coder.py | 159 | CODE | |
| LOW | …nchmark/benchmark_shared/datasets/nemotron_opencode.py | 443 | CODE | |
| LOW | …ax/benchmark/benchmark_shared/datasets/agentic_code.py | 240 | CODE | |
| LOW | max/python/max/experimental/nn/conv.py | 67 | CODE | |
| LOW | …xperimental/nn/common_layers/multi_latent_attention.py | 87 | CODE | |
| LOW | max/python/max/nn/kernels.py | 278 | CODE | |
| LOW | max/python/max/nn/kernels.py | 2707 | CODE | |
| LOW | max/python/max/nn/kernels.py | 4061 | CODE | |
| LOW | max/python/max/nn/kernels.py | 4231 | CODE | |
| LOW | max/python/max/nn/kernels.py | 5228 | CODE | |
| LOW | max/python/max/nn/kernels.py | 5439 | CODE | |
| LOW | max/python/max/nn/kernels.py | 5610 | CODE | |
| LOW | max/python/max/nn/kernels.py | 5956 | CODE | |
| LOW | max/python/max/nn/kernels.py | 6219 | CODE | |
| LOW | max/python/max/nn/kernels.py | 6547 | CODE | |
| LOW | max/python/max/nn/kernels.py | 6698 | CODE | |
| LOW | max/python/max/nn/kernels.py | 6756 | CODE | |
| LOW | max/python/max/nn/kernels.py | 6804 | CODE | |
| LOW | max/python/max/nn/kernels.py | 6890 | CODE | |
| LOW | max/python/max/nn/kernels.py | 6949 | CODE | |
| LOW | max/python/max/nn/kernels.py | 7393 | CODE | |
| LOW | max/python/max/nn/kernels.py | 8310 | CODE | |
| LOW | max/python/max/nn/kernels.py | 8383 | CODE | |
| LOW | max/python/max/nn/conv_transpose.py | 86 | CODE | |
| LOW | max/python/max/nn/conv_transpose.py | 295 | CODE | |
| LOW | max/python/max/nn/conv.py | 95 | CODE | |
| LOW | max/python/max/nn/conv.py | 382 | CODE | |
| LOW | max/python/max/nn/conv.py | 587 | CODE | |
| LOW | max/python/max/nn/quant_ops.py | 158 | CODE | |
| LOW | max/python/max/nn/quant_ops.py | 191 | CODE | |
| LOW | max/python/max/nn/attention/attention_with_rope.py | 60 | CODE | |
| LOW | max/python/max/nn/attention/attention_with_rope.py | 977 | CODE | |
| LOW | max/python/max/nn/attention/attention_with_rope.py | 1134 | CODE | |
| LOW | max/python/max/nn/attention/multi_latent_attention.py | 91 | CODE | |
| LOW | max/python/max/nn/attention/multi_latent_attention.py | 580 | CODE | |
| LOW | …/python/max/nn/attention/multi_latent_attention_fp8.py | 59 | CODE | |
| LOW | max/python/max/nn/sampling/rejection_sampler.py | 379 | CODE | |
| LOW | max/python/max/nn/lora/attention_lora.py | 44 | CODE | |
| LOW | max/python/max/nn/lora/attention_lora.py | 204 | CODE | |
| LOW | max/python/max/nn/moe/stacked_moe.py | 275 | CODE | |
| LOW | max/python/max/nn/moe/moe.py | 275 | CODE | |
| LOW | max/python/max/graph/graph.py | 686 | CODE | |
| LOW | max/python/max/graph/ops/concat.py | 97 | CODE | |
| LOW | …/max/pipelines/architectures/olmo3/layers/attention.py | 214 | CODE | |
| LOW | …elines/architectures/deepseekV3_2/layers/transforms.py | 161 | CODE | |
| LOW | …elines/architectures/deepseekV3_2/layers/sparse_mla.py | 112 | CODE | |
| LOW | …elines/architectures/deepseekV3_2/layers/sparse_mla.py | 750 | CODE | |
| LOW | …ax/pipelines/architectures/gpt_oss/layers/attention.py | 190 | CODE | |
| LOW | …nes/architectures/gpt_oss_modulev3/layers/attention.py | 199 | CODE | |
| LOW | …max/pipelines/architectures/gemma3/layers/attention.py | 50 | CODE | |
| LOW | …max/pipelines/architectures/gemma3/layers/attention.py | 281 | CODE | |
| LOW | …/architectures/deepseekV3_modulev3/layers/quant_mla.py | 72 | CODE | |
| 95 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | max/kernels/benchmarks/autotune/kplot.py | 93 | y_text: bool = True # Print value on top of the bar | CODE |
| LOW | …ython/max/benchmark/benchmark_shared/datasets/types.py | 225 | # Check if extension is supported | COMMENT |
| LOW | max/python/max/experimental/nn/module.py | 1048 | # Check if the constant_external creation should be done in a | COMMENT |
| LOW | max/python/max/nn/linear.py | 323 | # Check if head boundaries align with block boundaries | COMMENT |
| LOW | max/python/max/nn/kernels.py | 8182 | # Set min_top_p to the scalar value if provided, otherwise use top_p | COMMENT |
| LOW | max/python/max/nn/parallel/numpy_parallel_ops.py | 223 | # Check if all arrays are contiguous | COMMENT |
| LOW | max/python/max/nn/layer/layer.py | 810 | # Check if weight has symbolic dimensions | COMMENT |
| LOW | max/python/max/nn/kv_cache/cache_params.py | 2206 | # Check if we are allocating sufficient blocks. | COMMENT |
| LOW | max/python/max/nn/hooks/base_print_hook.py | 132 | # Print outputs. | COMMENT |
| LOW | max/python/max/config/__init__.py | 75 | # Check if the class has a custom enum mapping | COMMENT |
| LOW | max/python/max/config/__init__.py | 134 | # Check if this is Optional[T] (Union[T, None]) | COMMENT |
| LOW | max/python/max/config/__init__.py | 219 | # Check if this is Optional[T] (Union[T, None]) | COMMENT |
| LOW | max/python/max/config/__init__.py | 533 | # Check if this looks like a full MAXConfig file | COMMENT |
| LOW | max/python/max/config/__init__.py | 542 | # Check if the top-level keys are mostly class fields (individual config) | COMMENT |
| LOW | max/python/max/config/__init__.py | 652 | # Check if the base class has a _get_enum_mapping method | COMMENT |
| LOW | max/python/max/graph/weight.py | 453 | # Check if this is a partial function wrapping head_aware_col_sharding_strategy. | COMMENT |
| LOW | max/python/max/graph/weight.py | 466 | # Check if this is a partial function wrapping stacked_qkv_sharding_strategy. | COMMENT |
| LOW | max/python/max/graph/weight.py | 484 | # Check if this is a partial function wrapping gate_up_sharding_strategy. | COMMENT |
| LOW | max/python/max/graph/weights/load_gguf.py | 90 | # Check if a weight exists | STRING |
| LOW | max/python/max/graph/ops/stack.py | 98 | # Check if axis is within bounds | COMMENT |
| LOW | max/python/max/_interpreter_ops/handlers.py | 1240 | # Check if it's an index/integer type by looking at the attribute | COMMENT |
| LOW | …python/max/pipelines/architectures/deepseekV3/model.py | 121 | # Check if EP should be configured | COMMENT |
| LOW | max/python/max/pipelines/architectures/gpt_oss/model.py | 229 | # Check if input_row_offsets is a list or a single tensor | COMMENT |
| LOW | …hon/max/pipelines/architectures/qwen2_5vl/tokenizer.py | 104 | # Check if spatial merging is possible early | COMMENT |
| LOW | …rchitectures/autoencoders/autoencoder_kl_qwen_image.py | 738 | # Check if this weight needs numpy transformation | COMMENT |
| LOW | …x/python/max/pipelines/architectures/kimik2_5/model.py | 318 | # Check if EP should be configured | COMMENT |
| LOW | …lines/modeling/dataprocessing/causal_attention_mask.py | 70 | # Set diagonal to k + 1 so that tokens attend to themselves. | COMMENT |
| LOW | …x/pipelines/kv_cache/paged_kv_cache/transfer_engine.py | 139 | # Set SO_REUSEADDR to avoid TIME_WAIT issues | COMMENT |
| LOW | …x/pipelines/kv_cache/paged_kv_cache/transfer_engine.py | 929 | # Check if the relevant transport env vars are set. You can get away | COMMENT |
| LOW | …on/max/pipelines/kv_cache/paged_kv_cache/block_pool.py | 101 | # Check if a block with the same hash is already committed. | COMMENT |
| LOW | max/python/max/pipelines/lib/registry.py | 1273 | # Check if there's a secondary tokenizer (tokenizer_2) in the manifest | COMMENT |
| LOW | max/python/max/pipelines/lib/config/config.py | 421 | # Check if key matches the prefix filter | COMMENT |
| LOW | max/python/max/pipelines/lib/config/config.py | 428 | # Check if this field exists in the config class (Pydantic model) | COMMENT |
| LOW | max/python/max/pipelines/lib/config/config.py | 1426 | # Check if the architecture is Llama3 (LlamaForCausalLM) | COMMENT |
| LOW | max/python/max/pipelines/lib/config/model_config.py | 1346 | # Check if file exists locally (direct, local repo, or cache). | COMMENT |
| LOW | max/python/max/pipelines/lib/pipeline_variants/utils.py | 1042 | # Check if any context has structured output | COMMENT |
| LOW | max/python/max/pipelines/lora/lora.py | 1042 | # Check if name already exists first | COMMENT |
| LOW | max/python/max/pipelines/lora/lora.py | 1214 | # Check if already active before putting | COMMENT |
| LOW | max/python/max/serve/scheduler/lora_scheduler_utils.py | 57 | # Check if (protected LoRAs + new LoRA) fits within capacity. | COMMENT |
| LOW | max/python/max/serve/scheduler/decode_scheduler.py | 231 | # Set dst_idx to -1 to denote pages which the decode already has due to | COMMENT |
| LOW | …/scheduler/batch_constructor/text_batch_constructor.py | 917 | # Check if the request fits in memory | COMMENT |
| LOW | …/scheduler/batch_constructor/text_batch_constructor.py | 974 | # Check if it fits within the token budget | COMMENT |
| LOW | …/scheduler/batch_constructor/text_batch_constructor.py | 1023 | # Check if it fits within the token budget | COMMENT |
| LOW | …/scheduler/batch_constructor/text_batch_constructor.py | 1392 | # Set priority to the majority case, defaulting to TG if tied | COMMENT |
| LOW | max/python/max/serve/pipelines/llm.py | 337 | # Check if reasoning was disabled in the prompt. Use the | COMMENT |
| LOW | max/python/max/serve/pipelines/echo_gen.py | 197 | # Check if we have more tokens to echo and haven't reached max length | COMMENT |
| LOW⚡ | max/python/max/serve/telemetry/common.py | 322 | # Check if the logger name starts with any of the allowed component prefixes | COMMENT |
| LOW | max/python/max/serve/router/openai_routes.py | 3049 | # Check if LoRA is enabled | COMMENT |
| LOW | max/python/max/serve/router/_image_resolution.py | 386 | # Check if it's a directory. | COMMENT |
| LOW | max/python/max/serve/router/_image_resolution.py | 390 | # Check if path is within allowed roots. | COMMENT |
| LOW | max/python/max/serve/router/_image_resolution.py | 405 | # Read the file with size limit. | COMMENT |
| LOW | max/tests/integration/tools/debugging_utils.py | 486 | # Check if we found the tensors | COMMENT |
| LOW | max/tests/integration/graph/test_engine.py | 350 | # Check if the outputs really alias. | COMMENT |
| LOW | …/architectures/deepseekV3_2/test_hadamard_transform.py | 35 | # Check if outputs are close with appropriate tolerance | COMMENT |
| LOW | …ration/architectures/qwen2_5vl/test_image_processor.py | 211 | # Check if the difference is systematic | COMMENT |
| LOW | …ration/architectures/qwen2_5vl/test_image_processor.py | 219 | # Check if it's a scaling issue | COMMENT |
| LOW | …ion/architectures/qwen2_5vl/tests/test_patch_merger.py | 206 | # Check if outputs are close with appropriate tolerance | COMMENT |
| LOW | …on/architectures/qwen2_5vl/tests/test_qwen_vl_utils.py | 379 | # Check if both are numpy arrays or lists of PIL Images | COMMENT |
| LOW | …s/integration/architectures/idefics3/test_connector.py | 291 | # Check if outputs are close with appropriate tolerance | COMMENT |
| LOW | …on/architectures/idefics3/test_vision_encoder_layer.py | 296 | # Check if outputs are close with appropriate tolerance | COMMENT |
| 17 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …/kernels/test/gpu/compute_sanitizer/stress_schedule.sh | 15 | # Schedule-amplification harness for inter-block global-memory races. | COMMENT |
| MEDIUM | …/kernels/test/gpu/compute_sanitizer/stress_schedule.sh | 26 | # This harness amplifies the schedule with three knobs that need no kernel | COMMENT |
| MEDIUM | …ernels/benchmarks/misc/utils/warp_profiling/profile.py | 118 | # Create comprehensive visualization showing all SMs | COMMENT |
| MEDIUM | …chmarks/gpu/linalg/bench_matmul_llama3_70B_4xH100.yaml | 20 | # This file is facilitate development before GTC and should be combined | COMMENT |
| LOW | max/kernels/benchmarks/autotune/kbench_model.py | 534 | # just use compile-time parameters and ignore runtime variables. | COMMENT |
| MEDIUM | max/python/max/benchmark/benchmark_shared/metrics.py | 823 | # the harness didn't launch the server (e.g. benchmarking an external | COMMENT |
| LOW | max/python/max/nn/quant_ops.py | 355 | # activation scales are [1xm] which but in the dynamic scaled matmul we expect just use x_scale[0,0] | COMMENT |
| MEDIUM | max/python/max/nn/parallel/numpy_parallel_ops.py | 261 | # to better utilize available parallelism and memory bandwidth. | COMMENT |
| MEDIUM | max/python/max/config/config_file_model.py | 109 | """Optional section name for comprehensive/multi-section config files. | STRING |
| MEDIUM | max/python/max/driver/buffer.py | 330 | # Hardcoded but we should move to a robust versioning system if this | COMMENT |
| MEDIUM | max/python/max/graph/graph.py | 917 | # This may over-declare but is deterministic and comprehensive. | COMMENT |
| MEDIUM | max/python/max/pipelines/logging_utils.py | 40 | """Logs comprehensive pipeline and KVCache configuration information. | STRING |
| MEDIUM | max/python/max/pipelines/context/sampling_params.py | 336 | """Logs comprehensive sampling parameters information. | STRING |
| MEDIUM | max/python/max/pipelines/lib/eplb_stats.py | 400 | # (wherever the harness injects them), so no separate host counter is | COMMENT |
| LOW | max/python/max/_entrypoints/pipelines.py | 710 | # Help was requested and printed, just return | COMMENT |
| MEDIUM | max/python/max/serve/config.py | 372 | """Log comprehensive server configuration information. | STRING |
| MEDIUM | …/max/serve/scheduler/batch_constructor/token_budget.py | 96 | """Whether this budget may shrink the context via ``context.chunk`` in order to fit within the remaining capacit | STRING |
| MEDIUM | max/python/layer_benchmarks/precompile_layer.py | 34 | # A session only because the harness signature takes one; graph building | COMMENT |
| MEDIUM | max/python/layer_benchmarks/testbed/runner.py | 101 | # weights registry (and the reference weights a harness stashes | COMMENT |
| MEDIUM | max/python/layer_benchmarks/testbed/runner.py | 229 | # Compile first so harness can store weights for the torch reference. | COMMENT |
| MEDIUM⚡ | …x/python/layer_benchmarks/testbed/kbench_entrypoint.py | 44 | # harness ABC so each harness declares its own shape keys. | COMMENT |
| MEDIUM⚡ | …x/python/layer_benchmarks/testbed/kbench_entrypoint.py | 48 | # to the harness as static params. | COMMENT |
| MEDIUM | …x/python/layer_benchmarks/testbed/kbench_entrypoint.py | 122 | # Extract harness name from the config bundle. | COMMENT |
| MEDIUM | …x/python/layer_benchmarks/testbed/kbench_entrypoint.py | 136 | # Filter out control keys before passing to the harness. | COMMENT |
| MEDIUM | …ayer_benchmarks/testbed/harnesses/wan_vae_attention.py | 163 | # harness catches that regression), small enough that | COMMENT |
| MEDIUM | …sts/integration/graph/test_custom_kernel_validation.py | 384 | # Test multiple operations in sequence to ensure comprehensive validation | COMMENT |
| MEDIUM | …sts/integration/graph/test_custom_kernel_validation.py | 338 | """Tests for comprehensive kernel signature validation.""" | STRING |
| MEDIUM⚡ | max/tests/integration/xarch_warm/test_cpu_warm_cache.py | 90 | # actually zeroed the count in this harness before relying on it below. | COMMENT |
| LOW | …integration/architectures/deepseekV3_2/test_indexer.py | 334 | # ``slice_freqs_cis`` and just pass ``rope.freqs_cis``. | COMMENT |
| MEDIUM | max/tests/integration/accuracy/run_mmmu_video_eval.py | 753 | # Fail on a broken harness (no successful inferences / mostly errors) so | COMMENT |
| LOW | max/tests/integration/accuracy/verify_pipelines.py | 1328 | # Let generate_llm_logits.py validate the `--devices` CLI arg and just pass | COMMENT |
| MEDIUM | …/integration/accuracy/model_evals/run_scicode_local.sh | 14 | # Provisions the scicode/h5py harness venv + test_data.h5 (cached in /tmp), then | COMMENT |
| MEDIUM | …racy/logit_verification/logit_verification_config.yaml | 64 | # The models here are considered robust. They are tested with all metrics. | COMMENT |
| MEDIUM | …racy/logit_verification/logit_verification_config.yaml | 139 | # be migrated to being a robust pipelines. | COMMENT |
| LOW⚡ | …/tests/integration/kv_cache/test_connector_protocol.py | 51 | # ``touch`` is fire-and-forget with a ``-> None`` annotation, so just call | COMMENT |
| MEDIUM | …/tests/integration/test_common/pipeline_model_dummy.py | 246 | # Definitely not the correct way to do this, but it's for testing | COMMENT |
| MEDIUM | max/tests/tests/benchmark/test_single_turn.py | 58 | """Calculate comprehensive statistics for intervals.""" | STRING |
| MEDIUM⚡ | max/tests/tests/driver/test_buffer.py | 917 | # Create a 3x4 tensor for more comprehensive testing | COMMENT |
| MEDIUM⚡ | …sts/tests/pipelines/lib/test_max_config_inheritance.py | 324 | """Test inheritance with comprehensive config files (multiple sections).""" | STRING |
| MEDIUM⚡ | …sts/tests/pipelines/lib/test_max_config_inheritance.py | 325 | # Create base comprehensive config | COMMENT |
| MEDIUM | …sts/tests/pipelines/lib/test_max_config_inheritance.py | 341 | # Create child comprehensive config that inherits from base | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CONTRIBUTING.md | 46 | ### Step 1: Evaluate and get buy-in on the change | COMMENT |
| LOW | CONTRIBUTING.md | 93 | ### Step 2: Create a pull request | COMMENT |
| LOW | CONTRIBUTING.md | 241 | ### Step 3: PR triage and review | COMMENT |
| LOW | CONTRIBUTING.md | 254 | ### Step 4: Internal review and syncing | COMMENT |
| LOW | CONTRIBUTING.md | 273 | ### Step 5: Review feedback and iteration | COMMENT |
| LOW⚡ | docs/code/develop/index/graph_simple.py | 21 | # Step 1: Define the graph structure | COMMENT |
| LOW⚡ | docs/code/develop/index/graph_simple.py | 30 | # Step 2: Compile the graph | COMMENT |
| LOW⚡ | docs/code/develop/index/graph_simple.py | 34 | # Step 3: Execute with data | COMMENT |
| LOW⚡ | …/max/pipelines/architectures/olmo3/layers/attention.py | 168 | # Step 1: QKV matmul. | COMMENT |
| LOW⚡ | …/max/pipelines/architectures/olmo3/layers/attention.py | 175 | # Step 2: Apply full-dimension QK norm before rope. | COMMENT |
| LOW⚡ | …/max/pipelines/architectures/olmo3/layers/attention.py | 185 | # Step 3: Fused rope + split + KV store. | COMMENT |
| LOW | …/max/pipelines/architectures/olmo3/layers/attention.py | 200 | # Step 5: Compute flash attention (reads K/V from cache) | COMMENT |
| LOW | …n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py | 494 | # Step 1: Extract prompt from request and apply chat template if needed | COMMENT |
| LOW | …n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py | 531 | # Step 2: Load and process images | COMMENT |
| LOW | …n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py | 549 | # Step 3: Process images with custom image processor (if any) and expand <|image_pad|> placeholders in text | COMMENT |
| LOW | …n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py | 593 | # Step 4: Tokenize the expanded text | COMMENT |
| LOW | …n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py | 646 | # Step 5: Process vision model inputs for Qwen3VL using image processing results | COMMENT |
| LOW | …architectures/unified_mtp_glm5_2/unified_mtp_glm5_2.py | 209 | # Step 0: ALL hidden states (per-batch gather at accepted positions) + | COMMENT |
| LOW⚡ | …lines/architectures/olmo2_modulev3/layers/attention.py | 143 | # Step 1: QKV matmul. | COMMENT |
| LOW⚡ | …lines/architectures/olmo2_modulev3/layers/attention.py | 150 | # Step 2: Apply full-dimension QK norm before rope. | COMMENT |
| LOW⚡ | …lines/architectures/olmo2_modulev3/layers/attention.py | 159 | # Step 3: Fused rope + split + KV store. | COMMENT |
| LOW | …lines/architectures/olmo2_modulev3/layers/attention.py | 174 | # Step 5: Compute flash attention | COMMENT |
| LOW | …ines/architectures/kimik2_5/unified_eagle_mha_model.py | 266 | # Step 0: ALL hidden states + VARIABLE logits. | COMMENT |
| LOW | max/python/max/pipelines/lib/eplb_rebalance.py | 155 | # Step 1: pack groups to nodes. | COMMENT |
| LOW⚡ | max/python/max/pipelines/lib/eplb_rebalance.py | 171 | # Step 2: construct redundant experts within nodes. | COMMENT |
| LOW⚡ | max/python/max/pipelines/lib/eplb_rebalance.py | 179 | # Step 3: pack physical experts to GPUs within each node. | COMMENT |
| LOW | max/tests/integration/accuracy/llm_fuzz/model_config.py | 192 | # Step 1: Try HuggingFace fetch using --model as repo ID | COMMENT |
| LOW | max/tests/integration/accuracy/llm_fuzz/model_config.py | 205 | # Step 2: Apply manual overrides (highest priority) | COMMENT |
| LOW⚡ | …/accuracy/llm_fuzz/scenarios/tool_schema_validation.py | 1371 | # Step 1: initial tool call | COMMENT |
| LOW | …/accuracy/llm_fuzz/scenarios/tool_schema_validation.py | 1390 | # Step 2: provide tool result, ask follow-up that triggers another call | COMMENT |
| LOW | …/accuracy/llm_fuzz/scenarios/tool_schema_validation.py | 1440 | # Step 3: multi-tool conversation | COMMENT |
| LOW⚡ | …/accuracy/llm_fuzz/scenarios/models/kimi_production.py | 537 | # Step 1: Structured output request | COMMENT |
| LOW⚡ | …/accuracy/llm_fuzz/scenarios/models/kimi_production.py | 561 | # Step 2: Tool calling request | COMMENT |
| LOW⚡ | …/accuracy/llm_fuzz/scenarios/models/kimi_production.py | 576 | # Step 3: Plain chat request | COMMENT |
| LOW | max/docs/accuracy-debugging.md | 52 | ## Step 1: Dump the intermediate tensors with `debug_model` | COMMENT |
| LOW | max/docs/accuracy-debugging.md | 79 | ## Step 2: Compare to find the area of divergence | COMMENT |
| LOW | max/docs/accuracy-debugging.md | 106 | ## Step 3: Add fine-grained print logging | COMMENT |
| LOW | max/docs/accuracy-debugging.md | 182 | ## Step 4: Export full tensors with `debug_model` | COMMENT |
| LOW | max/docs/accuracy-debugging.md | 211 | ## Step 5: Compare the tensors with `compare_tensors` | COMMENT |
| LOW⚡ | max/examples/diffusion/simple_offline_generation.py | 700 | # Step 6: Prepare inputs for the pipeline | COMMENT |
| LOW⚡ | max/examples/diffusion/simple_offline_generation.py | 760 | # Step 8: Get the output for our request | COMMENT |
| LOW⚡ | max/examples/diffusion/simple_offline_generation.py | 771 | # Step 9: Extract and save images from OutputImageContent | COMMENT |
| LOW | max/examples/diffusion/simple_offline_generation.py | 410 | # Step 1: Initialize pipeline configuration | COMMENT |
| LOW | max/examples/diffusion/simple_offline_generation.py | 488 | # Step 2: Initialize the tokenizer | COMMENT |
| LOW | max/examples/diffusion/simple_offline_generation.py | 537 | # Step 3: Initialize the pipeline | COMMENT |
| LOW | max/examples/diffusion/simple_offline_generation.py | 568 | # Step 4: Create an OpenResponsesRequest | COMMENT |
| LOW | max/examples/diffusion/simple_offline_generation.py | 664 | # Step 5: Create a PixelContext object from the request | COMMENT |
| LOW | max/examples/diffusion/simple_offline_generation.py | 744 | # Step 7: Execute the pipeline | COMMENT |
| LOW | bazel/internal/pytest-shard.py | 72 | # Step 1: Pull out anything marked with either | COMMENT |
| LOW | mojo/stdlib/docs/adding-gpu-targets.md | 347 | ### Step 1: Gather GPU information | COMMENT |
| LOW | mojo/stdlib/docs/adding-gpu-targets.md | 376 | ### Step 2: Create the target function | COMMENT |
| LOW | mojo/stdlib/docs/adding-gpu-targets.md | 404 | ### Step 3: Create the `GPUInfo` alias | COMMENT |
| LOW | mojo/stdlib/docs/adding-gpu-targets.md | 423 | ### Step 4: Update `_get_info_from_target` | COMMENT |
| LOW | mojo/stdlib/docs/adding-gpu-targets.md | 457 | ### Step 5: Update `GPUInfo.target` method | COMMENT |
| LOW | mojo/stdlib/docs/adding-gpu-targets.md | 475 | ### Step 6: Build and test | COMMENT |
| LOW | mojo/proposals/deinit-arg-convention.md | 250 | ### Step 1: Formalize the destructor convention | COMMENT |
| LOW | mojo/proposals/deinit-arg-convention.md | 317 | ### Step 2: Remove `__disable_del` | COMMENT |
| LOW | mojo/proposals/deinit-arg-convention.md | 326 | ### Step 3: Restrict usage of the `deinit` convention | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | docs/code/develop/index/graph_simple.py | 21 | # Step 1: Define the graph structure | COMMENT |
| LOW⚡ | docs/code/develop/index/graph_simple.py | 30 | # Step 2: Compile the graph | COMMENT |
| LOW⚡ | docs/code/develop/index/graph_simple.py | 34 | # Step 3: Execute with data | COMMENT |
| LOW⚡ | …/max/pipelines/architectures/olmo3/layers/attention.py | 168 | # Step 1: QKV matmul. | COMMENT |
| LOW⚡ | …/max/pipelines/architectures/olmo3/layers/attention.py | 175 | # Step 2: Apply full-dimension QK norm before rope. | COMMENT |
| LOW⚡ | …/max/pipelines/architectures/olmo3/layers/attention.py | 185 | # Step 3: Fused rope + split + KV store. | COMMENT |
| LOW | …/max/pipelines/architectures/olmo3/layers/attention.py | 200 | # Step 5: Compute flash attention (reads K/V from cache) | COMMENT |
| LOW | …n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py | 494 | # Step 1: Extract prompt from request and apply chat template if needed | COMMENT |
| LOW | …n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py | 531 | # Step 2: Load and process images | COMMENT |
| LOW | …n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py | 549 | # Step 3: Process images with custom image processor (if any) and expand <|image_pad|> placeholders in text | COMMENT |
| LOW | …n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py | 593 | # Step 4: Tokenize the expanded text | COMMENT |
| LOW | …n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py | 646 | # Step 5: Process vision model inputs for Qwen3VL using image processing results | COMMENT |
| LOW | …architectures/unified_mtp_glm5_2/unified_mtp_glm5_2.py | 209 | # Step 0: ALL hidden states (per-batch gather at accepted positions) + | COMMENT |
| LOW⚡ | …lines/architectures/olmo2_modulev3/layers/attention.py | 143 | # Step 1: QKV matmul. | COMMENT |
| LOW⚡ | …lines/architectures/olmo2_modulev3/layers/attention.py | 150 | # Step 2: Apply full-dimension QK norm before rope. | COMMENT |
| LOW⚡ | …lines/architectures/olmo2_modulev3/layers/attention.py | 159 | # Step 3: Fused rope + split + KV store. | COMMENT |
| LOW | …lines/architectures/olmo2_modulev3/layers/attention.py | 174 | # Step 5: Compute flash attention | COMMENT |
| LOW | …ines/architectures/kimik2_5/unified_eagle_mha_model.py | 266 | # Step 0: ALL hidden states + VARIABLE logits. | COMMENT |
| LOW | max/python/max/pipelines/lib/eplb_rebalance.py | 155 | # Step 1: pack groups to nodes. | COMMENT |
| LOW⚡ | max/python/max/pipelines/lib/eplb_rebalance.py | 171 | # Step 2: construct redundant experts within nodes. | COMMENT |
| LOW⚡ | max/python/max/pipelines/lib/eplb_rebalance.py | 179 | # Step 3: pack physical experts to GPUs within each node. | COMMENT |
| LOW | max/tests/integration/accuracy/llm_fuzz/model_config.py | 192 | # Step 1: Try HuggingFace fetch using --model as repo ID | COMMENT |
| LOW | max/tests/integration/accuracy/llm_fuzz/model_config.py | 205 | # Step 2: Apply manual overrides (highest priority) | COMMENT |
| LOW⚡ | …/accuracy/llm_fuzz/scenarios/tool_schema_validation.py | 1371 | # Step 1: initial tool call | COMMENT |
| LOW | …/accuracy/llm_fuzz/scenarios/tool_schema_validation.py | 1390 | # Step 2: provide tool result, ask follow-up that triggers another call | COMMENT |
| LOW | …/accuracy/llm_fuzz/scenarios/tool_schema_validation.py | 1440 | # Step 3: multi-tool conversation | COMMENT |
| LOW⚡ | …/accuracy/llm_fuzz/scenarios/models/kimi_production.py | 537 | # Step 1: Structured output request | COMMENT |
| LOW⚡ | …/accuracy/llm_fuzz/scenarios/models/kimi_production.py | 561 | # Step 2: Tool calling request | COMMENT |
| LOW⚡ | …/accuracy/llm_fuzz/scenarios/models/kimi_production.py | 576 | # Step 3: Plain chat request | COMMENT |
| LOW⚡ | max/examples/diffusion/simple_offline_generation.py | 700 | # Step 6: Prepare inputs for the pipeline | COMMENT |
| LOW⚡ | max/examples/diffusion/simple_offline_generation.py | 760 | # Step 8: Get the output for our request | COMMENT |
| LOW⚡ | max/examples/diffusion/simple_offline_generation.py | 771 | # Step 9: Extract and save images from OutputImageContent | COMMENT |
| LOW | max/examples/diffusion/simple_offline_generation.py | 410 | # Step 1: Initialize pipeline configuration | COMMENT |
| LOW | max/examples/diffusion/simple_offline_generation.py | 488 | # Step 2: Initialize the tokenizer | COMMENT |
| LOW | max/examples/diffusion/simple_offline_generation.py | 537 | # Step 3: Initialize the pipeline | COMMENT |
| LOW | max/examples/diffusion/simple_offline_generation.py | 568 | # Step 4: Create an OpenResponsesRequest | COMMENT |
| LOW | max/examples/diffusion/simple_offline_generation.py | 664 | # Step 5: Create a PixelContext object from the request | COMMENT |
| LOW | max/examples/diffusion/simple_offline_generation.py | 744 | # Step 7: Execute the pipeline | COMMENT |
| LOW | bazel/internal/pytest-shard.py | 72 | # Step 1: Pull out anything marked with either | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …hmarks/misc/comparison/bench_blackwell_grouped_gemm.py | 15 | # Mimics bench.py scaffolding; uses naive float64 reference for correctness. | COMMENT |
| MEDIUM | max/python/max/benchmark/benchmark_shared/request.py | 872 | # to stream chain-of-thought tokens separately from "content". These | COMMENT |
| MEDIUM | max/python/max/graph/graph.py | 674 | # ``device_chains[DeviceRef.CPU()]`` is the host orchestration chain (the | COMMENT |
| MEDIUM | max/python/max/pipelines/architectures/laguna/arch.py | 51 | # scaffolding in ``model.py`` is in place but not yet validated. | COMMENT |
| MEDIUM | …on/max/pipelines/architectures/flux2/flux2_executor.py | 705 | # -- Denoising loop orchestration ----------------------------------------- | COMMENT |
| MEDIUM | …elines/architectures/qwen3_embedding_modulev3/model.py | 126 | # Remove lm_head weights — embedding model doesn't use them | COMMENT |
| MEDIUM | max/python/max/serve/telemetry/common.py | 129 | # covers slow ops (request time, model load, compile) and long agentic requests. | COMMENT |
| MEDIUM | max/python/max/serve/router/openresponses_routes.py | 81 | # Request is already parsed and validated via dependency injection | COMMENT |
| MEDIUM | max/python/max/serve/router/openai_routes.py | 1443 | # so replayed chain-of-thought is not silently dropped before the | COMMENT |
| MEDIUM | …tion_pipeline/test_overlap_text_generation_pipeline.py | 357 | # Worst-case boundary request: committed tokens fill the context window and | COMMENT |
| MEDIUM | max/tests/integration/accuracy/run_mmmu_video_eval.py | 276 | # not here: when a reasoning parser is active, chain-of-thought is split out | COMMENT |
| MEDIUM | max/tests/integration/accuracy/run_mmmu_video_eval.py | 443 | # The server's reasoning parser (if any) already removed chain-of-thought | COMMENT |
| MEDIUM | max/tests/integration/accuracy/run_longbench_v2.py | 121 | # Truncate prompt to fit context window | COMMENT |
| MEDIUM | …sts/integration/accuracy/model_evals/run_text_evals.sh | 14 | # Runs all five non-agentic text evals in sequence against a running server. | COMMENT |
| MEDIUM | …ation/accuracy/llm_fuzz/scenarios/kv_cache_pressure.py | 119 | # Probe near the model's context window boundary. | COMMENT |
| MEDIUM | …ntegration/accuracy/llm_fuzz/scenarios/tool_calling.py | 938 | # multi-step agentic prompt encourages several tool calls; the | COMMENT |
| MEDIUM | …gration/accuracy/llm_fuzz/scenarios/models/kimi_3am.py | 152 | # 8K char tool result in history -- common in RAG pipelines | COMMENT |
| MEDIUM | max/tests/tests/benchmark/test_benchmark_datasets.py | 1337 | # at run time, like agentic-code / instruct-coder). | COMMENT |
| MEDIUM | max/examples/embedding-knowledge-base/README.md | 1 | # Knowledge base with a text embedding model | COMMENT |
| MEDIUM | …/stdlib/scripts/unicode-data/GraphemeBreakProperty.txt | 1200 | B77D..B797 ; LVT # Lo [27] HANGUL SYLLABLE RAG..HANGUL SYLLABLE RAH | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …tests/integration/nn/kv_cache/test_kv_cache_manager.py | 625 | dummy_id = RequestID("dummy-test") | CODE |
| LOW⚡ | …tests/integration/nn/kv_cache/test_kv_cache_manager.py | 626 | kv_manager.alloc_dummy(dummy_id, replica_idx=0) | CODE |
| LOW⚡ | …tests/integration/nn/kv_cache/test_kv_cache_manager.py | 628 | assert kv_manager.get_req_blocks(dummy_id, replica_idx=0) == [8] | CODE |
| LOW⚡ | …/pipelines/text_generation_pipeline/test_dp_padding.py | 660 | for dummy_id in dummy_ids: | CODE |
| LOW⚡ | …/pipelines/text_generation_pipeline/test_dp_padding.py | 661 | assert kv_manager.contains(dummy_id, replica_idx=1) | CODE |
| LOW⚡ | …/pipelines/text_generation_pipeline/test_dp_padding.py | 669 | for dummy_id in dummy_ids: | CODE |
| LOW⚡ | …/pipelines/text_generation_pipeline/test_dp_padding.py | 670 | assert not kv_manager.contains(dummy_id, replica_idx=1) | CODE |
| LOW | …ration/accuracy/llm_fuzz/scenarios/openrouter_tests.py | 1818 | lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " * ( | CODE |
| LOW | …ration/accuracy/llm_fuzz/scenarios/openrouter_tests.py | 1818 | lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " * ( | CODE |
| LOW | …scenarios/validation/basic_reasoning_and_tool_usage.py | 150 | "lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do " | CODE |
| LOW | …scenarios/validation/basic_reasoning_and_tool_usage.py | 150 | "lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do " | CODE |
| LOW | max/tests/tests/graph/ops/test_call.py | 241 | "placeholder", | CODE |
| LOW | …thon-extension-modules/feature-overview/test_module.py | 78 | person.change_name("John Doe") | CODE |
| LOW | …thon-extension-modules/feature-overview/test_module.py | 79 | assert person.name() == "John Doe" | CODE |
| LOW | …est/python-extension-modules/def-method/test_module.py | 41 | same_person = person._with("Jane Doe", 25) | CODE |
| LOW | …est/python-extension-modules/def-method/test_module.py | 42 | assert person.get_name() == "Jane Doe" | CODE |
| LOW | …est/python-extension-modules/def-method/test_module.py | 59 | assert person.get_name() == "Jane Doe" | CODE |
| LOW⚡ | …est/python-extension-modules/def-method/test_module.py | 85 | person.set_name_and_age("John Doe", 25) | CODE |
| LOW⚡ | …est/python-extension-modules/def-method/test_module.py | 86 | assert person.get_name() == "John Doe" | CODE |
| LOW⚡ | …est/python-extension-modules/def-method/test_module.py | 96 | person.set_name_and_age("John Doe", 25) | CODE |
| LOW⚡ | …est/python-extension-modules/def-method/test_module.py | 105 | person.set_name("John Doe") | CODE |
| LOW⚡ | …est/python-extension-modules/def-method/test_module.py | 106 | assert person.get_name() == "John Doe" | CODE |
| LOW | mojo/docs/releases/2022-11.md | 40 | a new "placeholder" attribute. This allows us to expose the power of the KGEN | CODE |
| LOW | mojo/stdlib/test/builtin/test_file_dummy_input.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | CODE |
| LOW | mojo/stdlib/test/builtin/test_file_dummy_input.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …ests/tests/nn/module_v3/quant_layers/test_quant_mla.py | 443 | assert layer.o_proj.weight.data.mapping.to_placements() == (Sharded(1),) | CODE |
| CRITICAL | …ests/tests/nn/module_v3/quant_layers/test_quant_mla.py | 444 | assert layer.o_proj.weight.weight_scale_inv.mapping.to_placements() == ( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rnels/benchmarks/misc/utils/cutlass_profiler_parser.py | 18 | # Usage: | COMMENT |
| LOW | …enchmarks/misc/utils/bench_vllm_flashinfer_decoding.py | 17 | # Usage: | COMMENT |
| LOW | …nchmarks/misc/utils/bench_vllm_flashinfer_attention.py | 17 | # Usage: | COMMENT |
| LOW | …s/misc/comparison/bench_mla_decode_sm100_kimi_fp8.yaml | 21 | # Usage: | COMMENT |
| LOW | …hmarks/misc/comparison/bench_blackwell_grouped_gemm.py | 18 | # Usage example: | COMMENT |
| LOW | …c/comparison/bench_mla_decode_sm100_deepseek_bf16.yaml | 21 | # Usage: | COMMENT |
| LOW | …/misc/comparison/bench_mla_decode_sm100_kimi_bf16.yaml | 21 | # Usage: | COMMENT |
| LOW | …sc/comparison/bench_mla_decode_sm100_deepseek_fp8.yaml | 21 | # Usage: | COMMENT |
| LOW | …s/benchmarks/gpu/nn/bench_mla_sparse_prefill_tune.yaml | 18 | # Usage: | COMMENT |
| LOW | …benchmark/configs/serving_flux2_t2i_random_config.yaml | 15 | # Usage: | COMMENT |
| LOW | …s/embedding-knowledge-base/src/embeddings/kb_system.py | 134 | # Example usage | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | max/python/max/serve/process_control.py | 251 | async def run_task() -> None: | CODE |
| LOW | max/tests/integration/test_common/registry.py | 34 | def test_function(manage_production_models): | STRING |
| LOW | mojo/stdlib/test/python/my_module.py | 31 | def my_function(name) -> str: # noqa: ANN001 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | max/tests/tests/serve/test_openresponses_routes.py | 352 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | max/tests/integration/accuracy/verify_pipelines.py | 313 | # Even if verdicts is empty, we want to make sure to call write. When we | COMMENT |