AI Slop Code RIsk Monitor

vllm-project/vllm-ascend

Community maintained hardware plugin for vLLM on Huawei Ascend

15.7 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for vllm-project/vllm-ascend, a Python project with 2,949 GitHub stars. SynthScan examined 1,073,299 lines of code across 4030 source files, recording 12998 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 15.7 (Elevated pattern signal); it is not an authorship estimate.

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

15.7
Adjusted Signal
15.7
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
2.9K
Stars
Python
Language
1.1M
Lines of Code
4.0K
Files
13.0K
Pattern Hits
2026-10-12
Scan Date
0.04
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 40.8/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 3.9/100 · LOW

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

Agent Over-Engineering Ratio 43.7/100 · MEDIUM

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

PR Review Velocity Impact 55.5/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 9HIGH 166MEDIUM 1731LOW 11092

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers7837 hits · 7418 pts
SeverityFileLineSnippetContext
LOWcollect_env.py110def run_and_parse_first_match(run_lambda, command, regex):CODE
LOWcollect_env.py121def run_and_return_first_line(run_lambda, command):CODE
LOW…tention_score/tests/test_flash_decoding_generalized.py149def _expected_fd_compute_cores(case: FDCase, aic_num=ARCH35_MAX_AIC):CODE
LOW…tention_score/tests/test_flash_decoding_generalized.py378def test_fd_generalized_accuracy(case):CODE
LOW…tention_score/tests/test_flash_decoding_generalized.py386def test_fd_automatic_fallback_accuracy(case):CODE
LOW…tention_score/tests/test_flash_decoding_generalized.py397def test_zero_valid_blocks_should_produce_zero_output():CODE
LOW…tention_score/tests/test_flash_decoding_generalized.py408def test_cross_base_task_partial_write_completion_is_stable():CODE
LOW…tention_score/tests/test_flash_decoding_generalized.py419def test_case_matrix_covers_fd_boundaries():CODE
LOW…rc/attention/sparse_attention_score/tests/test_fp16.py25def _register_sparse_attention_score_op():CODE
LOW…rc/attention/sparse_attention_score/tests/test_fp16.py69def generate_block_index_with_causal(CODE
LOW…tention_score/tests/test_sparse_attention_score_fp8.py31def _register_sparse_attention_score_op():CODE
LOW…tention_score/tests/test_sparse_attention_score_fp8.py75def generate_block_index_with_causal(CODE
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py40def _register_sparse_attention_score_op():CODE
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py84def generate_block_index_with_causal(CODE
LOW…r_v2/tests/pytest/quant_lightning_indexer_v2_golden.py1031 def broadcast_mx_scale_d_axis(self, tensor):CODE
LOW…lightning_indexer_v2/tests/pytest/collect_perf_data.py37def collect_and_save_incremental(prof_folder, test_result_path):CODE
LOW…tning_indexer_v2/tests/pytest/result_compare_method.py27def cal_relative_diff_np_isclose(real_data, expect_data, type_str="fp16"):CODE
LOW…tning_indexer_v2/tests/pytest/result_compare_method.py93def display_output_np_isclose(real_data, expect_data, start, end, expect_fp32_data=None):CODE
LOW…tning_indexer_v2/tests/pytest/result_compare_method.py676def _gather_return_values_by_index(topk_value, result_indices, params, output_idx_offset):CODE
LOW…tning_indexer_v2/tests/pytest/result_compare_method.py716def check_result_return_value(CODE
LOW…tning_indexer_v2/tests/pytest/test_qliv2_test_utils.py26def test_case_selector_preserves_requested_order(tmp_path):CODE
LOW…tning_indexer_v2/tests/pytest/test_qliv2_test_utils.py40def test_case_selector_rejects_ambiguous_or_invalid_selection(tmp_path):CODE
LOW…tning_indexer_v2/tests/pytest/test_qliv2_test_utils.py48def test_result_writer_uses_readable_name_and_migrates_legacy_result(tmp_path):CODE
LOW…tning_indexer_v2/tests/pytest/test_qliv2_test_utils.py76def test_comparison_failure_raises_serializable_assertion():CODE
LOW…tning_indexer_v2/tests/pytest/test_qliv2_test_utils.py88def test_normalize_legacy_params_adds_weight_dtype():CODE
LOW⚡…ightning_indexer_v2/tests/pytest/batch/replace_path.py16def replace_paths_in_test_file(test_file_path, path):CODE
LOW…htning_indexer_v2/tests/assets/impl/metadata_inputs.py72def generate_quant_lightning_indexer_metadata_inputs(CODE
LOW…ning_indexer_v2/tests/assets/impl/batch_consistency.py101 def validate_disjoint_relations(self, relations):CODE
LOW…quant_lightning_indexer_v2/tests/assets/impl/inputs.py461 def normalize_compare_attributes(compare_context):CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py57 def convert_quant_lightning_indexer_metadata(CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py59 def quant_lightning_indexer_metadata_meta(CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py81 def quant_lightning_indexer_meta(CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py137 def quant_lightning_indexer_candidate_meta(CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py202def quant_lightning_indexer_metadata(CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py256def quant_lightning_indexer_metadata_fallback(CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py302def quant_lightning_indexer_candidate(CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py443def _qli_newapi_build_metadata(CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py508def quant_lightning_indexer_candidate_source(CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py596def quant_lightning_indexer_candidate_consumer(CODE
LOWcsrc/cmake/scripts/parse_changed_files.py87 def get_test_example_ops_test_options(self, f: Path) -> list[str]:CODE
LOWcsrc/cmake/scripts/util/opdesc_parser.py307def _set_all_options_to_opdescs(op_descs, soc_ver_compile_options):CODE
LOWcsrc/cmake/scripts/util/ascendc_impl_build.py82def add_dtype_fmt_option_single(x, x_n, is_ref: bool = False):CODE
LOWcsrc/cmake/scripts/util/ascendc_impl_build.py124def get_shortsoc_compile_option(compile_option_list: list, shortsoc:str):CODE
LOWcsrc/cmake/scripts/util/ascendc_ops_config.py36def get_specified_suffix_file(root_dir, suffix):CODE
LOWcsrc/cmake/scripts/util/ascendc_ops_config.py58def get_input_or_output_config(in_or_out):CODE
LOWcsrc/cmake/scripts/util/ascendc_ops_config.py79def get_inputs_or_outputs_config(inputs_or_outputs):CODE
LOWcsrc/cmake/scripts/util/ascendc_ops_config.py253def generate_operator_cfg_file(json_files, binary_info_config, soc, out_dir, gen_json_status):CODE
LOWcsrc/cmake/scripts/examples/get_opapi_abs_path.py33 def get_environ_custom_lib_paths() -> list[Path]:CODE
LOWcsrc/cmake/scripts/examples/get_opapi_abs_path.py53 def get_default_custom_lib_paths() -> list[Path]:CODE
LOWcsrc/cmake/scripts/examples/get_opapi_abs_path.py90 def get_default_builtin_lib_paths() -> list[Path]:CODE
LOWcsrc/cmake/scripts/utest/gen_tiling_data_stub.py27def check_if_new_tiling_file_path_existed(ori_file: Path) -> Path:CODE
LOWcsrc/cmake/scripts/utest/gen_tiling_data_stub.py104def convert_template_tilingkey(ori_file: Path):CODE
LOWcsrc/cmake/scripts/utest/gen_tiling_data_stub.py145def convert_to_old_tiling_struct_style(redirected_file_path):CODE
LOWcsrc/cmake/scripts/utest/gen_coverage.py36 def get_exclude_paths_from_yaml(yaml_path: Path):CODE
LOWcsrc/cmake/scripts/utest/gen_coverage.py68 def init_filter_str_from_yaml(self, source_dir: Path, yaml_path: Path):CODE
LOWcsrc/scripts/build_cache.py699def _candidate_cann_metadata_files() -> list[Path]:CODE
LOWcsrc/scripts/build_cache.py731def _hash_compiler_environment(CODE
LOWcsrc/scripts/build_cache.py860def _expand_internal_symlink_targets(CODE
LOWcsrc/scripts/build_cache.py1281def _publish_action_state_path(state_dir: Path, action_identity: str) -> Path:CODE
LOWcsrc/scripts/build_cache.py1293def _publish_action_artifacts(CODE
7777 more matches not shown…
Decorative Section Separators1092 hits · 3519 pts
SeverityFileLineSnippetContext
MEDIUM.gitleaks.toml1# ==============================================COMMENT
MEDIUM.gitleaks.toml6# ==============================================COMMENT
MEDIUM.gitleaks.toml17# ==============================================================================COMMENT
MEDIUM.gitleaks.toml19# ==============================================================================COMMENT
MEDIUM.gitleaks.toml32# ==============================================================================COMMENT
MEDIUM.gitleaks.toml35# ==============================================================================COMMENT
MEDIUM.gitleaks.toml47# ==============================================================================COMMENT
MEDIUM.gitleaks.toml50# ==============================================================================COMMENT
MEDIUM⚡.gitleaks.toml79# ==============================================================================COMMENT
MEDIUM⚡.gitleaks.toml81# ==============================================================================COMMENT
MEDIUM⚡.gitleaks.toml88# ==============================================================================COMMENT
MEDIUM⚡.gitleaks.toml90# ==============================================================================COMMENT
MEDIUMcsrc/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/build.sh2# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/build.sh10# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/gmm/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/gmm/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/gmm/grouped_matmul_swiglu_quant/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/gmm/grouped_matmul_swiglu_quant/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…gmm/grouped_matmul_swiglu_quant/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…gmm/grouped_matmul_swiglu_quant/op_host/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/gmm/grouped_matmul_swiglu_quant_v2/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/gmm/grouped_matmul_swiglu_quant_v2/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…/grouped_matmul_swiglu_quant_v2/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…/grouped_matmul_swiglu_quant_v2/op_host/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…tmul_swiglu_quant_weight_nz_tensor_list/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…tmul_swiglu_quant_weight_nz_tensor_list/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/gmm/gmm_dequant_situ_quant/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/gmm/gmm_dequant_situ_quant/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…sed_scatter_copy_sparse_flash_attention/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…sed_scatter_copy_sparse_flash_attention/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/kda_layout_swap12/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/kda_layout_swap12/CMakeLists.txt6# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/kda_layout_swap12/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/kda_layout_swap12/op_host/CMakeLists.txt6# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…/kv_quant_sparse_attn_sharedkv_metadata/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…/kv_quant_sparse_attn_sharedkv_metadata/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…t_sparse_attn_sharedkv_metadata/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…t_sparse_attn_sharedkv_metadata/op_host/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…_attn_sharedkv_metadata/op_kernel_aicpu/CMakeLists.txt1# ---------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…_attn_sharedkv_metadata/op_kernel_aicpu/CMakeLists.txt9# ---------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/sparse_attn_sharedkv/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/sparse_attn_sharedkv/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…/attention/sparse_attn_sharedkv/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…/attention/sparse_attn_sharedkv/op_host/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/k2q_csr/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/k2q_csr/CMakeLists.txt4# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…tion/k2q_csr/k2q_csr_row_prefix/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…tion/k2q_csr/k2q_csr_row_prefix/op_host/CMakeLists.txt3# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…ion/k2q_csr/k2q_csr_tile_prefix/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…ion/k2q_csr/k2q_csr_tile_prefix/op_host/CMakeLists.txt3# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…/attention/k2q_csr/k2q_csr_meta/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…/attention/k2q_csr/k2q_csr_meta/op_host/CMakeLists.txt3# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…/attention/k2q_csr/k2q_csr_hist/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…/attention/k2q_csr/k2q_csr_hist/op_host/CMakeLists.txt3# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…tention/k2q_csr/k2q_csr_scatter/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…tention/k2q_csr/k2q_csr_scatter/op_host/CMakeLists.txt3# -----------------------------------------------------------------------------------------------------------COMMENT
1032 more matches not shown…
Self-Referential Comments554 hits · 1658 pts
SeverityFileLineSnippetContext
MEDIUMcodecov.yml15# This file is a part of the vllm-ascend project.COMMENT
MEDIUMsetup.py16# This file is a part of the vllm-ascend project.COMMENT
MEDIUMformat.sh18# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/collect_user_first_contribution.sh18# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/shellcheck.sh18# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/aisbench.py15# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/vllm_bench.py15# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/check_repo.sh18# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/check_logger.sh16# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/check_python_src_init.py16# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/png-lint.sh18# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/check_symbolic_meta.py17# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/mooncake_installer.sh18# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/mooncake_installer.sh97# Define a function to handle the git clone operationCOMMENT
MEDIUMtools/format_contributors.py15# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/actionlint.sh18# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/check_boolean_context_manager.py17# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/check_forbidden_imports.py17# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/mypy.sh18# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/check_long_functions.py17# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/bisect/version_compat.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/bisect/coordinator.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/bisect/runner.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/bisect/config.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/bisect/auto_bisect.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/bisect/git_ops.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/bisect/worker_agent.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/bisect/good_table.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/bisect/__init__.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/bisect/build_manager.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/bisect/report.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/bisect/state.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtools/bisect/verdict.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/test_utils.py13# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/conftest.py16# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/test_batch_invariant.py14# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/test_envs.py13# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/test_ascend_config.py13# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/base.py13# This file is a part of the vllm-ascend project.COMMENT
MEDIUM⚡tests/ut/test_logger.py13# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/_310p/test_model_runner_310p.py13# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/_310p/test_kv_block_zeroer_310p.py13# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/_310p/test_block_table_310p.py13# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/_310p/ops/test_gdn_310.py15# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/_310p/ops/test_rotary_embedding_310.py13# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/attention/test_sfa_o_proj_weight_switch.py13# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/attention/test_mla_v1.py2569 # Create a mock metadata where prefill_metadata.chunked_context.seq_tot is an empty list, so that iters == 0COMMENT
MEDIUMtests/ut/attention/utils.py318 # Create a realistic slot mapping that corresponds to the block tableCOMMENT
MEDIUMtests/ut/core/test_short_request_first_scheduler.py3# This file is a part of the vllm-ascend project.COMMENT
MEDIUM…t/core/test_recompute_scheduler_short_request_first.py3# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/core/test_profiling_chunk.py3# This file is a part of the vllm-ascend project.COMMENT
MEDIUM…/ut/core/test_short_request_first_scheduler_install.py3# This file is a part of the vllm-ascend project.COMMENT
MEDIUM…t/distributed/kv_transfer/test_kv_transfer_failures.py15# This file is a part of the vllm-ascend project.COMMENT
MEDIUM…ted/kv_transfer/kv_p2p/test_remote_decode_lifecycle.py16# This file is a part of the vllm-ascend project.COMMENT
MEDIUM…ed/kv_transfer/kv_p2p/test_remote_prefill_lifecycle.py16# This file is a part of the vllm-ascend project.COMMENT
MEDIUM…/ut/distributed/weight_transfer/test_npu_ipc_engine.py15# This file is a part of the vllm-ascend project.COMMENT
MEDIUM…s/ut/distributed/weight_transfer/test_packed_tensor.py15# This file is a part of the vllm-ascend project.COMMENT
MEDIUM…ted/weight_transfer/test_e2e_weight_transfer_oracle.py15# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/distributed/ascend_store/test_backend.py15# This file is a part of the vllm-ascend project.COMMENT
MEDIUM…sts/ut/distributed/ascend_store/test_pool_scheduler.py15# This file is a part of the vllm-ascend project.COMMENT
494 more matches not shown…
Over-Commented Block1064 hits · 994 pts
SeverityFileLineSnippetContext
LOWcodecov.yml1#COMMENT
LOWcollect_env.py1#COMMENT
LOWsetup.py1#COMMENT
LOW.gitleaks.toml1# ==============================================COMMENT
LOW.gitleaks.toml21# [extend]COMMENT
LOW.gitleaks.toml41# entropy = 3.5COMMENT
LOW.gitleaks.toml81# ==============================================================================COMMENT
LOW.readthedocs.yaml1# Read the Docs configuration file (English + Chinese)COMMENT
LOWformat.sh1#!/usr/bin/env bashCOMMENT
LOWcsrc/utils.h1#pragma onceCOMMENT
LOWcsrc/build.sh1#!/bin/bashCOMMENT
LOWcsrc/build.sh741 fiCOMMENT
LOWcsrc/build.sh761COMMENT
LOWcsrc/torch_binding.cpp21#include <torch/torch.h>COMMENT
LOWcsrc/torch_binding.cpp41#include "gmm/grouped_matmul_swiglu_quant_v2/grouped_matmul_swiglu_quant_v2_torch_adpt.h"COMMENT
LOWcsrc/torch_binding.cpp61#include "moe/dequant_situ_quant/dequant_situ_quant_torch_adpt.h"COMMENT
LOWcsrc/gmm/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
LOWcsrc/gmm/grouped_matmul_swiglu_quant/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
LOW…t/op_host/op_api/aclnn_grouped_matmul_swiglu_quant.cpp1/**COMMENT
LOW…t/op_host/op_api/aclnn_grouped_matmul_swiglu_quant.cpp541#endifCOMMENT
LOW…lu_quant/op_kernel/grouped_matmul_swiglu_quant_utils.h21COMMENT
LOW…nt_v2/op_kernel/grouped_matmul_swiglu_quant_v2_utils.h21 defined(DT_INT4) && ORIG_DTYPE_WEIGHT == DT_INT4COMMENT
LOW…_grouped_matmul_swiglu_quant_weight_nz_tensor_list.cpp1/*COMMENT
LOW…_dequant_situ_quant/op_kernel/gmm_dequant_situ_quant.h501 GmmMt mm_;COMMENT
LOW…/kv_quant_sparse_attn_sharedkv_metadata/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
LOW…t_sparse_attn_sharedkv_metadata/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
LOW…p_api/aclnn_kv_quant_sparse_attn_sharedkv_metadata.cpp21#include "aclnn_kernels/common/op_error_check.h"COMMENT
LOW…k2q_csr/k2q_csr_common/op_host/k2q_csr_tiling_common.h1/**COMMENT
LOW…rc/attention/kv_compress_epilog/op_host/CMakeLists.txt1# This program is free software, you can redistribute it and/or modify it.COMMENT
LOW…rc/attention/kv_compress_epilog/op_host/CMakeLists.txt21# target_sources(op_host_aclnn PRIVATECOMMENT
LOW…ttention/compressor/op_host/arch35/compressor_tiling.h21#include <vector>COMMENT
LOW…ttention/compressor/op_host/arch32/compressor_tiling.h21#include <vector>COMMENT
LOW…ssor/op_kernel/arch35/compressor_template_tiling_key.h21#define ASCENDC_TPL_1_BW 1 // 每个参数占用1个bit位COMMENT
LOWcsrc/attention/compressor/op_kernel/arch35/vf/vf_mul.h261#endifCOMMENT
LOW…ssor/op_kernel/arch32/compressor_template_tiling_key.h21#define ASCENDC_TPL_1_BW 1 // 每个参数占用1个bit位COMMENT
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py1781 dual_golden_l1norm(npu_out_cpu, cpu_out_fp32, cpu_out, "NPU vs dual-golden")COMMENT
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py1801COMMENT
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py1821# query_fp8, key_fp8, value_fp8, q_scales, k_scales, v_scales = (COMMENT
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py1841# cpu_out = cpu_sparse_attention_score_fp8(COMMENT
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py1861# block_size=block_size,COMMENT
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py1881# # --- Three blocks ---COMMENT
LOW…ion_score/op_kernel/sparse_attention_score_tilingkey.h21#define SASA_FP8_D128_BF16_TILING 10004COMMENT
LOW…e_attention_score/op_kernel/attn_infra/gemm/helper.hpp121};COMMENT
LOW…on_score/op_kernel/attn_infra/gemm/dispatch_policy.hpp61#endif // GEMM_DISPATCH_POLICY_HPPCOMMENT
LOW…re/op_kernel/attn_infra/gemm/tile_common/tile_copy.hpp21#include "../../../attn_infra/gemm/tile_common/copy_l1_to_l0a_a5.hpp"COMMENT
LOW…nfra/gemm/block/block_mmad_qk_arch35_ABf16_C_to_UB.hpp21#include "../../../attn_infra/base_defs.hpp"COMMENT
LOW…n_score/op_kernel/attn_infra/gemm/block/block_mmad.hpp61#if (__CCE_AICORE__ == 310)COMMENT
LOW…nfra/gemm/block/block_mmad_pv_arch35_ABf16_C_to_UB.hpp21#include "../../../attn_infra/base_defs.hpp"COMMENT
LOW…op_kernel/attn_infra/epilogue/block/block_epilogue.hpp21>COMMENT
LOW…anage/op_kernel/fused_lightning_indexer_manage_union.h1121COMMENT
LOW…nage/fused_quant_lightning_indexer_manage_torch_adpt.h21// index_weights - bf16 [T, H]COMMENT
LOW…ernel/fused_quant_lightning_indexer_manage_workspace.h1#ifndef FUSED_QUANT_LIGHTNING_INDEXER_MANAGE_WORKSPACE_HCOMMENT
LOW…el/fused_quant_lightning_indexer_manage_service_cube.h61 static constexpr uint32_t M_MTE1_EVENT = EVENT_ID3;COMMENT
LOW…/fused_quant_lightning_indexer_manage_service_vector.h181__aicore__ inline void LIVectorMtpC8<LIT>::InitBuffers(TPipe *pipe)COMMENT
LOW…nel/arch35/fused_sparse_attention_overlap_kernel_mla.h21#include "kernel_tiling/kernel_tiling.h"COMMENT
LOW…35/fused_sparse_attention_overlap_service_vector_mla.h21#include "lib/matmul_intf.h"COMMENT
LOW…ch35/fused_sparse_attention_overlap_service_cube_mla.h21#include "lib/matmul_intf.h"COMMENT
LOW…ttention/rms_norm_dynamic_quant/op_host/CMakeLists.txt1# This program is free software, you can redistribute it and/or modify it.COMMENT
LOW…ttention/rms_norm_dynamic_quant/op_host/CMakeLists.txt21# )COMMENT
LOWcsrc/attention/msa_index_score/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
1004 more matches not shown…
Unused Imports691 hits · 620 pts
SeverityFileLineSnippetContext
LOW…quant_lightning_indexer_v2/torch_extension/__init__.py9CODE
LOW…quant_lightning_indexer_v2/torch_extension/__init__.py10CODE
LOW…quant_lightning_indexer_v2/torch_extension/__init__.py10CODE
LOW…quant_lightning_indexer_v2/torch_extension/__init__.py10CODE
LOW…quant_lightning_indexer_v2/torch_extension/__init__.py10CODE
LOW…quant_lightning_indexer_v2/torch_extension/__init__.py10CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py14CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py15CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py15CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py15CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py15CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py15CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py15CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py18CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py19CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py20CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py21CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py22CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py22CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py23CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py27CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py27CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py27CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py27CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py33CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py34CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py35CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py35CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py35CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py35CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py35CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py35CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py35CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py35CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py35CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py35CODE
LOWcsrc/scripts/build_cache.py15CODE
LOWtools/test_memfabric_pd_read.py26CODE
LOWtools/test_memfabric_pd_read.py125CODE
LOWtools/upload_to_openlibing.py3CODE
LOWtools/check_symbolic_meta.py20CODE
LOWtools/send_mm_request.py1CODE
LOWtools/check_long_functions.py20CODE
LOWtools/docs_codegen/scanner.py1CODE
LOWtools/docs_codegen/sphinx_extension.py1CODE
LOWtools/docs_codegen/generator.py1CODE
LOWtools/docs_codegen/cli.py1CODE
LOWtools/docs_codegen/utils.py1CODE
LOWtools/docs_codegen/yaml_loader.py1CODE
LOWtools/docs_codegen/converters.py1CODE
LOWtools/docs_codegen/errors.py1CODE
LOWtests/ut/test_platform.py116CODE
LOWtests/ut/test_platform.py176CODE
LOWtests/ut/test_platform.py2098CODE
LOWtests/ut/_310p/test_mamba_align_fallback_310p_source.py9CODE
LOWtests/ut/core/test_batch_job_aware_scheduler.py14CODE
LOWtests/ut/distributed/test_yuanrong_backend.py22CODE
LOW…s/ut/distributed/weight_transfer/test_packed_tensor.py26CODE
LOWtests/ut/distributed/ascend_store/test_backend.py27CODE
LOW…sts/ut/distributed/ascend_store/test_pool_scheduler.py35CODE
631 more matches not shown…
Excessive Try-Catch Wrapping451 hits · 489 pts
SeverityFileLineSnippetContext
MEDIUMsetup.py202 print(f"Error running build_aclnn.sh: {e}")CODE
LOW…/tests/pytest/test_quant_lightning_indexer_v2_batch.py122 except Exception as error:CODE
LOW…/tests/pytest/test_quant_lightning_indexer_v2_batch.py170 except Exception as e:CODE
LOW…/tests/pytest/test_quant_lightning_indexer_v2_batch.py181 except Exception as e:CODE
MEDIUM…/tests/pytest/test_quant_lightning_indexer_v2_batch.py71def qliv2(testcase_file):CODE
LOW…lightning_indexer_v2/tests/pytest/collect_perf_data.py159 except Exception as e:CODE
LOW…lightning_indexer_v2/tests/pytest/collect_perf_data.py181 except Exception as e:CODE
LOW…ightning_indexer_v2/tests/pytest/batch/replace_path.py31 except Exception as e:CODE
LOW…sts/pytest/batch/quant_lightning_indexer_v2_pt_save.py144 except Exception as e:CODE
LOW…sts/pytest/batch/quant_lightning_indexer_v2_pt_save.py166 except Exception as e:CODE
LOW…ention/quant_lightning_indexer_v2/tests/assets/spec.py33 except Exception as exc:CODE
LOW…ghtning_indexer_v2/tests/assets/impl/npu_preprocess.py64 except Exception:CODE
LOW…quant_lightning_indexer_v2/tests/assets/impl/golden.py71 except Exception as exc:CODE
LOW…htning_indexer_v2/tests/assets/impl/metadata_inputs.py40 except Exception:CODE
LOW…quant_lightning_indexer_v2/tests/assets/impl/inputs.py83 except Exception as exc:CODE
LOW…quant_lightning_indexer_v2/tests/assets/impl/inputs.py100 except Exception as exc:CODE
LOW…quant_lightning_indexer_v2/tests/assets/impl/inputs.py118 except Exception as exc:CODE
LOW…quant_lightning_indexer_v2/tests/assets/impl/inputs.py144 except Exception as exc:CODE
LOW…quant_lightning_indexer_v2/tests/assets/impl/inputs.py166 except Exception as exc:CODE
LOW…uant_lightning_indexer_v2/tests/assets/impl/compare.py53 except Exception as exc:CODE
LOWcsrc/cmake/scripts/convert_yaml.py30 except Exception as e:CODE
LOWcsrc/cmake/scripts/convert_yaml.py81 except Exception as e:CODE
LOWcsrc/cmake/scripts/check_version_compatible.py92 except Exception as e:CODE
LOWcsrc/cmake/scripts/util/ascendc_gen_options.py23 except Exception as err:CODE
LOWcsrc/cmake/scripts/examples/get_soc_info.py52 except Exception as e:CODE
LOWcsrc/cmake/scripts/utest/gen_tiling_data_stub.py430 except Exception as e:CODE
LOWcsrc/scripts/opgen/opgen_standalone.py157 except Exception as e:CODE
LOWcsrc/scripts/package/package.py86 except Exception as exception:CODE
LOWcsrc/scripts/package/package.py166 except Exception as ex:CODE
LOWcsrc/scripts/package/package.py819 except Exception as e:CODE
LOWcsrc/scripts/package/common/py/pkg_parser.py989 except Exception:CODE
LOWtools/aisbench.py360 except Exception as e:CODE
LOWtools/send_request.py131 except Exception:CODE
LOWtools/vllm_bench.py152 except Exception as e:CODE
MEDIUMtools/vllm_bench.py146def run_vllm_bench_case(model_name, port, config, baseline, threshold=0.97, modeCODE
LOWtools/test_memfabric_pd_read.py167 except Exception as error:CODE
LOW⚡tools/test_memfabric_pd_read.py365 except Exception as error:CODE
LOW⚡tools/test_memfabric_pd_read.py372 except Exception as error:CODE
LOW⚡tools/test_memfabric_pd_read.py379 except Exception as error:CODE
LOWtools/test_memfabric_pd_read.py412 except Exception as error:CODE
MEDIUMtools/test_memfabric_pd_read.py122def _load_torch():CODE
LOWtools/upload_to_openlibing.py52 except Exception as e:CODE
LOWtools/upload_to_openlibing.py156 except Exception:CODE
LOWtools/upload_to_openlibing.py247 except Exception as e:CODE
LOWtools/ai_qos.py137 except Exception as e:CODE
MEDIUMtools/ai_qos.py145 print("Error: no visible NPU devices found.", file=sys.stderr)CODE
MEDIUMtools/ai_qos.py173 print(f"Error: {VISIBLE_DEVICE_ENV} must list at least one device.", file=sys.stderr)CODE
LOWtools/format_contributors.py41 except Exception:CODE
LOWtools/format_contributors.py45 except Exception:CODE
LOWtools/bisect/version_compat.py166 except Exception as exc: # noqa: BLE001 - broken metadata must not abort discoveryCODE
LOWtools/bisect/version_compat.py285 except Exception as exc: # noqa: BLE001 - add context for bisect logsCODE
LOWtools/bisect/build_manager.py75 except Exception: # noqa: BLE001 - best effort; fall back to rebuildCODE
LOWtests/ut/proxy/test_load_balance_proxy_server.py81 except Exception:CODE
LOWtests/ut/proxy/test_load_balance_proxy_server.py96 except Exception:CODE
LOWtests/ut/distributed/ascend_store/test_glm53_store.py374 except Exception as error:CODE
MEDIUMtests/ut/distributed/ascend_store/test_glm53_store.py371def save():CODE
LOW…/ut/distributed/ascend_store/test_mooncake_pipeline.py106 except Exception as exc:CODE
LOW…/ut/distributed/ascend_store/test_mooncake_pipeline.py420 except Exception as exc:CODE
MEDIUM…/ut/distributed/ascend_store/test_mooncake_pipeline.py102def run():CODE
MEDIUM…/ut/distributed/ascend_store/test_mooncake_pipeline.py407def run():CODE
391 more matches not shown…
Deep Nesting564 hits · 452 pts
SeverityFileLineSnippetContext
LOWcollect_env.py198CODE
LOWsetup.py74CODE
LOWsetup.py328CODE
LOW…tention_score/tests/test_flash_decoding_generalized.py176CODE
LOW…tention_score/tests/test_flash_decoding_generalized.py269CODE
LOW…rc/attention/sparse_attention_score/tests/test_fp16.py25CODE
LOW…rc/attention/sparse_attention_score/tests/test_fp16.py69CODE
LOW…rc/attention/sparse_attention_score/tests/test_fp16.py133CODE
LOW…rc/attention/sparse_attention_score/tests/test_fp16.py269CODE
LOW…tention_score/tests/test_sparse_attention_score_fp8.py31CODE
LOW…tention_score/tests/test_sparse_attention_score_fp8.py75CODE
LOW…tention_score/tests/test_sparse_attention_score_fp8.py155CODE
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py40CODE
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py84CODE
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py209CODE
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py345CODE
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py467CODE
LOW…msa_index_score/tests/golden/msa_index_score_golden.py63CODE
LOW…r_v2/tests/pytest/quant_lightning_indexer_v2_golden.py1327CODE
LOW…r_v2/tests/pytest/quant_lightning_indexer_v2_golden.py2680CODE
LOW…r_v2/tests/pytest/quant_lightning_indexer_v2_golden.py371CODE
LOW…r_v2/tests/pytest/quant_lightning_indexer_v2_golden.py670CODE
LOW…r_v2/tests/pytest/quant_lightning_indexer_v2_golden.py982CODE
LOW…/tests/pytest/test_quant_lightning_indexer_v2_batch.py160CODE
LOW…lightning_indexer_v2/tests/pytest/collect_perf_data.py37CODE
LOW…lightning_indexer_v2/tests/pytest/collect_perf_data.py92CODE
LOW…tning_indexer_v2/tests/pytest/result_compare_method.py46CODE
LOW…tning_indexer_v2/tests/pytest/result_compare_method.py244CODE
LOW…tning_indexer_v2/tests/pytest/result_compare_method.py403CODE
LOW…2/tests/pytest/quant_lightning_indexer_v2_acl_graph.py74CODE
LOW…est/batch/quant_lightning_indexer_v2_pt_loadprocess.py20CODE
LOW…ghtning_indexer_v2/tests/assets/impl/npu_preprocess.py124CODE
LOW…ning_indexer_v2/tests/assets/impl/metadata_protocol.py181CODE
LOW…ning_indexer_v2/tests/assets/impl/batch_consistency.py284CODE
LOW…ning_indexer_v2/tests/assets/impl/batch_consistency.py468CODE
LOW…ning_indexer_v2/tests/assets/impl/batch_consistency.py546CODE
LOWcsrc/cmake/scripts/parse_changed_files.py186CODE
LOWcsrc/cmake/scripts/parse_changed_files.py209CODE
LOWcsrc/cmake/scripts/util/opdesc_parser.py326CODE
LOWcsrc/cmake/scripts/util/opdesc_parser.py361CODE
LOWcsrc/cmake/scripts/util/opdesc_parser.py182CODE
LOWcsrc/cmake/scripts/util/opdesc_parser.py212CODE
LOWcsrc/cmake/scripts/util/opdesc_parser.py283CODE
LOWcsrc/cmake/scripts/util/parse_ini_to_json.py158CODE
LOWcsrc/cmake/scripts/util/parse_ini_to_json.py239CODE
LOWcsrc/cmake/scripts/util/parse_ini_to_json.py314CODE
LOWcsrc/cmake/scripts/util/ascendc_impl_build.py345CODE
LOWcsrc/cmake/scripts/util/ascendc_impl_build.py419CODE
LOWcsrc/cmake/scripts/util/ascendc_impl_build.py501CODE
LOWcsrc/cmake/scripts/util/ascendc_bin_param_build.py437CODE
LOWcsrc/cmake/scripts/util/ascendc_bin_param_build.py215CODE
LOWcsrc/cmake/scripts/util/ascendc_gen_options.py28CODE
LOWcsrc/cmake/scripts/utest/gen_tiling_data_stub.py83CODE
LOWcsrc/cmake/scripts/utest/gen_tiling_data_stub.py104CODE
LOWcsrc/cmake/scripts/utest/gen_tiling_data_stub.py200CODE
LOWcsrc/scripts/build_cache.py360CODE
LOWcsrc/scripts/build_cache.py1216CODE
LOWcsrc/scripts/build_cache.py1293CODE
LOWcsrc/scripts/build_cache.py1421CODE
LOWcsrc/scripts/package/package.py245CODE
504 more matches not shown…
Empty Error Handlers74 hits · 370 pts
SeverityFileLineSnippetContext
HIGHcsrc/scripts/build_cache.py142except OSError:CODE
HIGHcsrc/scripts/build_cache.py460except UnicodeDecodeError:CODE
HIGHcsrc/scripts/package/common/py/version_info.py84except ValueError:CODE
HIGHtools/bisect/runner.py114except psutil.Error:CODE
HIGHtools/docs_codegen/converters.py137except json.JSONDecodeError:CODE
HIGHtests/ut/conftest.py137except RuntimeError:CODE
HIGHtests/ut/proxy/test_load_balance_proxy_server.py96except Exception:CODE
HIGHtests/ut/proxy/test_load_balance_proxy_server.py81except Exception:CODE
HIGH…ts/ut/distributed/ascend_store/test_mooncake_hybrid.py307except RuntimeError:CODE
HIGHtests/e2e/conftest.py263except ProcessLookupError:CODE
HIGH…sts/e2e/pull_request/one_card/test_sfa_v1_precision.py47except Exception:CODE
HIGHtests/e2e/pull_request/one_card/rlhf/conftest.py168except Exception:CODE
HIGHtests/e2e/models/test_rm_eval_correctness.py68except ValueError:CODE
HIGHtests/e2e/common/multi_node/benchmark_results.py91except (ValueError, AttributeError):CODE
HIGHtests/e2e/common/multi_node/external_dp/runtime.py123except OSError:CODE
HIGHtests/e2e/common/single_node/kv_pool_runtime.py117except ProcessLookupError:CODE
HIGHtests/e2e/common/single_node/kv_pool_runtime.py83except OSError:CODE
HIGHtests/e2e/common/single_node/kv_pool_runtime.py115except ProcessLookupError:CODE
HIGHtests/e2e/common/single_node/test_single_node.py498except (ValueError, AttributeError):CODE
HIGH…kills/vllm-ascend-release/scripts/scan_release_bugs.py92except Exception:CODE
HIGH…ills/vllm-ascend-release/scripts/scan_test_coverage.py158except Exception:CODE
HIGHvllm_ascend/__init__.py46except Exception:CODE
HIGHvllm_ascend/logger.py165except Exception:CODE
HIGHvllm_ascend/logger.py120except OSError:CODE
HIGHvllm_ascend/core/scheduler_profiling_chunk.py242except AttributeError:CODE
HIGHvllm_ascend/eplb/core/eplb_utils.py107except Exception:CODE
HIGHvllm_ascend/distributed/eplb/eplb_communicator.py50except ImportError:CODE
HIGHvllm_ascend/distributed/eplb/eplb_communicator.py511except Exception:CODE
HIGHvllm_ascend/distributed/eplb/eplb_communicator.py525except Exception:CODE
HIGHvllm_ascend/distributed/eplb/eplb_communicator.py534except Exception:CODE
HIGHvllm_ascend/distributed/eplb/eplb_communicator.py516except Exception:CODE
HIGHvllm_ascend/distributed/eplb/eplb_communicator.py521except Exception:CODE
HIGHvllm_ascend/distributed/eplb/hixl_compat.py469except Exception:CODE
HIGHvllm_ascend/distributed/kv_transfer/__init__.py114except ImportError:CODE
HIGH…tributed/kv_transfer/kv_p2p/sfa_pd_rd2h/send_thread.py187except queue.Empty:CODE
HIGH…tributed/kv_transfer/kv_p2p/sfa_pd_rd2h/send_thread.py198except queue.Empty:CODE
HIGH…ibuted/kv_transfer/kv_pool/ascend_store/coordinator.py460except (TypeError, ValueError):CODE
HIGH…stributed/kv_transfer/kv_pool/ascend_store/metadata.py797except ValueError:CODE
HIGH…ibuted/kv_transfer/kv_pool/ascend_store/kv_transfer.py78except Exception:CODE
HIGH…ibuted/kv_transfer/kv_pool/ascend_store/kv_transfer.py94except Exception:CODE
HIGH…ibuted/kv_transfer/kv_pool/ascend_store/kv_transfer.py752except Exception:CODE
HIGH…nsfer/kv_pool/ascend_store/backend/mooncake_backend.py56except Exception:CODE
HIGH…del_executor/warmup/rejection_sampler_triton_warmup.py315except ImportError:CODE
HIGHvllm_ascend/model_executor/warmup/rms_triton_warmup.py73except ImportError:CODE
HIGHvllm_ascend/models/minimax_m3/ops/msa_m3_triton.py147except AssertionError:CODE
HIGHvllm_ascend/models/minimax_m3/ops/msa_m3_triton.py167except AssertionError:CODE
HIGHvllm_ascend/patch/platform/patch_balance_schedule.py92except Exception:CODE
HIGHvllm_ascend/patch/platform/patch_dyntra_lb_core.py60except Exception:CODE
HIGHvllm_ascend/patch/platform/patch_profiling_chunk.py66except RuntimeError:CODE
HIGHvllm_ascend/patch/worker/patch_triton.py86except ImportError:CODE
HIGHvllm_ascend/patch/worker/patch_triton.py120except ImportError:CODE
HIGHvllm_ascend/patch/worker/patch_triton.py318except ImportError:CODE
HIGHvllm_ascend/patch/worker/patch_kv_cache_dtype.py119except ImportError:CODE
HIGH…_ascend/patch/worker/patch_v2/patch_spec_decode_310.py62except Exception:CODE
HIGHvllm_ascend/model_loader/rfork/transfer_backend.py171except Exception:CODE
HIGHvllm_ascend/model_loader/rfork/transfer_backend.py177except Exception:CODE
HIGHvllm_ascend/model_loader/rfork/rfork_loader.py578except (TypeError, ValueError, RuntimeError):CODE
HIGH…fill_v1/load_balance_proxy_layerwise_server_example.py115except ImportError:CODE
HIGH…fill_v1/load_balance_proxy_layerwise_server_example.py295except ValueError:CODE
HIGH…fill_v1/load_balance_proxy_layerwise_server_example.py129except Exception:CODE
14 more matches not shown…
Cross-File Repetition53 hits · 265 pts
SeverityFileLineSnippetContext
HIGHtests/ut/attention/utils.py0specification for a batch configuration (workload shape only).STRING
HIGHtests/ut/spec_decode/test_eagle_proposer.py0specification for a batch configuration (workload shape only).STRING
HIGHtests/e2e/pull_request/one_card/attention_utils.py0specification for a batch configuration (workload shape only).STRING
HIGHtests/ut/patch/platform/test_prefix_cache_cp_patches.py0build a kvcachetensor; vllm #51718 renamed shared_by -> layers on main.STRING
HIGHtests/ut/worker/test_model_runner_v2_mamba.py0build a kvcachetensor; vllm #51718 renamed shared_by -> layers on main.STRING
HIGHtests/ut/worker/test_attn_utils_v2.py0build a kvcachetensor; vllm #51718 renamed shared_by -> layers on main.STRING
HIGH…l_request/one_card/test_model_runner_v1_with_device.py0build a kvcachetensor; vllm #51718 renamed shared_by -> layers on main.STRING
HIGH…l_request/four_card/spec_decode/test_mtp_qwen3_next.py0compare the short outputs of hf and vllm when using greedy sampling. run `pytest tests/e2e/pull_request/one_card/test_vlSTRING
HIGH…pull_request/four_card/spec_decode/test_mtp_step3p5.py0compare the short outputs of hf and vllm when using greedy sampling. run `pytest tests/e2e/pull_request/one_card/test_vlSTRING
HIGH…equest/four_card/spec_decode/test_dspark_deepseekv4.py0compare the short outputs of hf and vllm when using greedy sampling. run `pytest tests/e2e/pull_request/one_card/test_vlSTRING
HIGH…/e2e/pull_request/two_card/test_gpt_oss_distributed.py0compare the short outputs of hf and vllm when using greedy sampling. run `pytest tests/e2e/pull_request/one_card/test_vlSTRING
HIGHtests/e2e/pull_request/one_card/test_vlm.py0compare the short outputs of hf and vllm when using greedy sampling. run `pytest tests/e2e/pull_request/one_card/test_vlSTRING
HIGH…s/e2e/pull_request/two_card/lora/test_qwen3moe_lora.py0i want you to act as a sql terminal in front of an example database, you need only to return the sql command to me. do nSTRING
HIGH…ts/e2e/pull_request/one_card/lora/test_llama32_lora.py0i want you to act as a sql terminal in front of an example database, you need only to return the sql command to me. do nSTRING
HIGHtests/e2e/pull_request/one_card/lora/test_olmoe_lora.py0i want you to act as a sql terminal in front of an example database, you need only to return the sql command to me. do nSTRING
HIGHvllm_ascend/_310p/quantization/methods/w8a8_dynamic.py0return (w1, w1_scale, w2, w2_scale) in the standard mlp layout.STRING
HIGHvllm_ascend/quantization/methods/w4a8/w4a8.py0return (w1, w1_scale, w2, w2_scale) in the standard mlp layout.STRING
HIGHvllm_ascend/quantization/methods/w8a8/w8a8_dynamic.py0return (w1, w1_scale, w2, w2_scale) in the standard mlp layout.STRING
HIGHvllm_ascend/attention/dsa_v1.py0metadata for mlacommon. note: please read the comment at the top of the file before trying to understand this classSTRING
HIGHvllm_ascend/attention/sfa_v1.py0metadata for mlacommon. note: please read the comment at the top of the file before trying to understand this classSTRING
HIGHvllm_ascend/attention/mla_v1.py0metadata for mlacommon. note: please read the comment at the top of the file before trying to understand this classSTRING
HIGHvllm_ascend/attention/context_parallel/dsa_cp.py0metadata for mlacommon. note: please read the comment at the top of the file before trying to understand this classSTRING
HIGHvllm_ascend/attention/dsa_v1.py0note: please read the comment at the top of the file before trying to understand this classSTRING
HIGHvllm_ascend/attention/sfa_v1.py0note: please read the comment at the top of the file before trying to understand this classSTRING
HIGHvllm_ascend/attention/mla_v1.py0note: please read the comment at the top of the file before trying to understand this classSTRING
HIGHvllm_ascend/attention/context_parallel/dsa_cp.py0note: please read the comment at the top of the file before trying to understand this classSTRING
HIGHvllm_ascend/attention/context_parallel/mla_cp.py0note: please read the comment at the top of the file before trying to understand this classSTRING
HIGH…d/distributed/kv_transfer/kv_p2p/mooncake_connector.py0get and clear the requests that have been completed. returns: a set of request ids that have been completed.STRING
HIGH…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py0get and clear the requests that have been completed. returns: a set of request ids that have been completed.STRING
HIGH…tributed/kv_transfer/kv_p2p/mooncake_d2rh_connector.py0get and clear the requests that have been completed. returns: a set of request ids that have been completed.STRING
HIGH…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py0get and clear the requests that have been completed. returns: a set of request ids that have been completed.STRING
HIGH…ibuted/kv_transfer/kv_pool/ascend_store/kv_transfer.py0get and clear the requests that have been completed. returns: a set of request ids that have been completed.STRING
HIGH…d/distributed/kv_transfer/kv_p2p/mooncake_connector.py0run the thread to handle kv cache transfer requests.STRING
HIGH…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py0run the thread to handle kv cache transfer requests.STRING
HIGH…tributed/kv_transfer/kv_p2p/mooncake_d2rh_connector.py0run the thread to handle kv cache transfer requests.STRING
HIGH…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py0run the thread to handle kv cache transfer requests.STRING
HIGH…ibuted/kv_transfer/kv_pool/ascend_store/kv_transfer.py0run the thread to handle kv cache transfer requests.STRING
HIGH…d/distributed/kv_transfer/kv_p2p/mooncake_connector.py0for remote prefill, pull all prompt blocks from remote asynchronously relative to engine execution. args: request (requeSTRING
HIGH…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py0for remote prefill, pull all prompt blocks from remote asynchronously relative to engine execution. args: request (requeSTRING
HIGH…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py0for remote prefill, pull all prompt blocks from remote asynchronously relative to engine execution. args: request (requeSTRING
HIGH…d/distributed/kv_transfer/kv_p2p/mooncake_connector.py0once a request is finished, determine whether request blocks should be freed now or will be sent asynchronously and freeSTRING
HIGH…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py0once a request is finished, determine whether request blocks should be freed now or will be sent asynchronously and freeSTRING
HIGH…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py0once a request is finished, determine whether request blocks should be freed now or will be sent asynchronously and freeSTRING
HIGH…d/distributed/kv_transfer/kv_p2p/mooncake_connector.py0hash the string using sha-256 and convert it into an int64 integer.STRING
HIGH…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py0hash the string using sha-256 and convert it into an int64 integer.STRING
HIGH…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py0hash the string using sha-256 and convert it into an int64 integer.STRING
HIGH…scend/distributed/kv_transfer/kv_p2p/mooncake/utils.py0hash the string using sha-256 and convert it into an int64 integer.STRING
HIGHvllm_ascend/models/qwen3_dspark.py0per-position acceptance probability for each drafted token.STRING
HIGHvllm_ascend/models/deepseek_v4/dspark.py0per-position acceptance probability for each drafted token.STRING
HIGHvllm_ascend/models/deepseek_v41/dspark.py0per-position acceptance probability for each drafted token.STRING
HIGHvllm_ascend/quantization/methods/w4a8/w4a8.py0normalized weight payload for the fused_mc2 comm path.STRING
HIGHvllm_ascend/quantization/methods/w8a8/w8a8_dynamic.py0normalized weight payload for the fused_mc2 comm path.STRING
HIGHvllm_ascend/ops/fused_moe/routed_experts.py0normalized weight payload for the fused_mc2 comm path.STRING
Structural Annotation Overuse102 hits · 195 pts
SeverityFileLineSnippetContext
LOW⚡…el/grouped_matmul_swiglu_quant_weight_nz_tensor_list.h302 // Step 1: Read grouplist reduceSum to calculate total data countCOMMENT
LOW⚡…el/grouped_matmul_swiglu_quant_weight_nz_tensor_list.h310 // Step 2: Calculate core allocationCOMMENT
LOW⚡…el/grouped_matmul_swiglu_quant_weight_nz_tensor_list.h333 // Step 3: Calculate total data volumeCOMMENT
LOW⚡…el/grouped_matmul_swiglu_quant_weight_nz_tensor_list.h339 // Step 4: Allocate spaceCOMMENT
LOW⚡…d_matmul_swiglu_quant_weight_nz_tensor_list_split_ws.h396 // Step 1: Read grouplist reduceSum to calculate total data countCOMMENT
LOW⚡…d_matmul_swiglu_quant_weight_nz_tensor_list_split_ws.h400 // Step 2: Calculate core allocationCOMMENT
LOW⚡…d_matmul_swiglu_quant_weight_nz_tensor_list_split_ws.h423 // Step 3: Calculate total data volumeCOMMENT
LOW⚡…d_matmul_swiglu_quant_weight_nz_tensor_list_split_ws.h429 // Step 4: Allocate spaceCOMMENT
LOW⚡…rc/attention/sparse_attention_score/tests/test_bf16.py446 # Step 3: PV: [groupSize, valid_len] x [valid_len, D] -> [groupSize, D]COMMENT
LOW⚡…rc/attention/sparse_attention_score/tests/test_bf16.py449 # Step 4: rescale OCOMMENT
LOW⚡…rc/attention/sparse_attention_score/tests/test_bf16.py457 # Step 5: final divide + castCOMMENT
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py414 # Step 1: QK: [groupSize, D] x [D, valid_len] -> [groupSize, valid_len]COMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h236 // Step 1: Cast int8 -> half -> fp32COMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h244 // Step 2: Mul dequant_scaleCOMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h252 // Step 3: Add dequant_bias (if exists)COMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h289 // Step 1: tanh(gate / beta) * betaCOMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h299 // Step 2: sigmoid(gate) = 1 / (1 + exp(-gate))COMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h334 // Step 3: situ_a = tanhResult * sigmoidResultCOMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h338 // Step 4: if linear_beta > 0: up = linear_beta * tanh(up / linear_beta)COMMENT
LOW…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h349 // Step 5: output = situ_a * up = tanhResult * upCOMMENT
LOW⚡…moe/situ_mx_quant/op_host/situ_mx_quant_infershape.cpp89 // Step 1: Compute y shape (Situ output)COMMENT
LOW⚡…moe/situ_mx_quant/op_host/situ_mx_quant_infershape.cpp96 // Step 2: Compute mxscale shapeCOMMENT
LOW⚡…tu_mx_quant/op_kernel/arch35/situ_mx_quant_axis_last.h206 // Step 1: Situ activationCOMMENT
LOW⚡…tu_mx_quant/op_kernel/arch35/situ_mx_quant_axis_last.h211 // Step 2: MxQuant - extract max exponent per 32-element blockCOMMENT
LOW⚡…tu_mx_quant/op_kernel/arch35/situ_mx_quant_axis_last.h216 // Step 3: MxQuant - compute E8M0 scale and reciprocal scaleCOMMENT
LOW⚡…tu_mx_quant/op_kernel/arch35/situ_mx_quant_axis_last.h224 // Step 4: MxQuant - quantize to FP8COMMENT
LOWtests/ut/quantization/methods/kv_cache/test_kv_c8.py397 # Step 1: Create weightsCOMMENT
LOWtests/ut/quantization/methods/kv_cache/test_kv_c8.py412 # Step 2: Simulate weight loadingCOMMENT
LOWtests/ut/quantization/methods/kv_cache/test_kv_c8.py440 # Step 3: Process after loadingCOMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md75#### Step 1: Software InstallationCOMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md89#### Step 2: Configure mooncake.json and Start mooncake_masterCOMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md200#### Step 4: Start vLLM inference serviceCOMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md448#### Step 5: MooncakeStore SSD Offload (Embedded Real Client Mode)COMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md607#### Step 1: Prerequisite ChecksCOMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md636 # Step 1: Disable HDK signature verification (only needs to be executed once per machine)COMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md681#### Step 2: Software InstallationCOMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md688#### Step 3: Configure Memcache Config FileCOMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md761#### Step 4: Run MetaServiceCOMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md771#### Step 5: Start vLLM inference serviceCOMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md990#### Step 6: Memcache and vLLM Separated Deployment {: #Memcache-and-vLLM-Separated-Deployment }COMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md1016#### Step 7: Enable Memcache SSD CacheCOMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md1161#### Step 1: Install Yuanrong DatasystemCOMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md1176#### Step 2: Choose a Service Discovery BackendCOMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md1275#### Step 3: Start Datasystem WorkerCOMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md1335#### Step 4: Configure Environment Variables and `yuanrong.json`COMMENT
LOW…user_guide/feature_guide/kv_cache_pool_ascend_store.md1474#### Step 5: Run AscendStoreConnector (Yuanrong Backend)COMMENT
LOWdocs/source/user_guide/feature_guide/ucm_deployment.md782# Step 1: Pre-seed KV cache (25600 = 32000 * 0.8)COMMENT
LOWdocs/source/user_guide/feature_guide/ucm_deployment.md796# Step 2: Run performance testCOMMENT
LOW…r_guide/Design_Documents/ModelRunner_prepare_inputs.md99### Step 1: All requests in the prefill phaseCOMMENT
LOW…r_guide/Design_Documents/ModelRunner_prepare_inputs.md209### Step 2: Chunked prefillCOMMENT
LOW…rials/features/pd_colocated_mooncake_multi_instance.md276### Step 1: Baseline (No Cache)COMMENT
LOW…rials/features/pd_colocated_mooncake_multi_instance.md288### Step 2: Local DRAM HitCOMMENT
LOW…rials/features/pd_colocated_mooncake_multi_instance.md293### Step 3: Cross-Node DRAM HitCOMMENT
LOW⚡vllm_ascend/core/batch_job_aware_scheduler.py262 # Step 1: estimate how many tokens this round will advanceCOMMENT
LOW⚡vllm_ascend/core/batch_job_aware_scheduler.py269 # Step 2: simulate position after this round's executionCOMMENT
LOW⚡vllm_ascend/core/batch_job_aware_scheduler.py272 # Step 3: estimate the NEXT round's token demandCOMMENT
LOW⚡vllm_ascend/core/batch_job_aware_scheduler.py281 # Step 4: compute new blocks needed from that positionCOMMENT
LOW⚡vllm_ascend/eplb/core/policy/policy_default_eplb.py46 # Step 1: Sort the items by weight in descending order (we are sorting by weight now)COMMENT
LOW⚡vllm_ascend/eplb/core/policy/policy_default_eplb.py59 # Step 2: Calculate the number of items per boxCOMMENT
LOW⚡vllm_ascend/eplb/core/policy/policy_default_eplb.py64 # Step 3: Initialize card_num boxes with empty lists to store item IDsCOMMENT
42 more matches not shown…
Modern Structural Boilerplate156 hits · 166 pts
SeverityFileLineSnippetContext
LOWsetup.py44logger = logging.getLogger(__name__)CODE
LOW…tning_indexer_v2/tests/pytest/result_compare_method.py24logger = logging.getLogger(__name__)CODE
LOW…quant_lightning_indexer_v2/torch_extension/__init__.py1__all__ = [CODE
LOWtools/upload_to_openlibing.py19logger = logging.getLogger(__name__)CODE
LOWtools/ai_qos.py338 def set_qos(self, state_path: Path) -> None:CODE
LOWtools/bisect/version_compat.py38logger = logging.getLogger(__name__)CODE
LOWtools/bisect/coordinator.py38logger = logging.getLogger(__name__)CODE
LOWtools/bisect/runner.py51logger = logging.getLogger(__name__)CODE
LOWtools/bisect/git_ops.py26logger = logging.getLogger(__name__)CODE
LOWtools/bisect/good_table.py40logger = logging.getLogger(__name__)CODE
LOWtools/bisect/build_manager.py44logger = logging.getLogger(__name__)CODE
LOWtools/bisect/state.py22logger = logging.getLogger(__name__)CODE
LOWtools/bisect/verdict.py30logger = logging.getLogger(__name__)CODE
LOWtests/ut/proxy/test_load_balance_proxy_server.py67def _set_script(port: int, items: list[dict]) -> None:CODE
LOWtests/e2e/conftest.py90logger = logging.getLogger(__name__)CODE
LOWtests/e2e/common/multi_node/dp_mode.py9logger = logging.getLogger(__name__)CODE
LOWtests/e2e/common/multi_node/utils.py11logger = logging.getLogger(__name__)CODE
LOWtests/e2e/common/multi_node/benchmark_results.py6logger = logging.getLogger(__name__)CODE
LOW…s/e2e/common/multi_node/internal_dp/test_multi_node.py27logger = logging.getLogger(__name__)CODE
LOW…e2e/common/multi_node/internal_dp/multi_node_config.py19logger = logging.getLogger(__name__)CODE
LOWtests/e2e/common/multi_node/internal_dp/utils.py17__all__ = [CODE
LOW…2e/common/multi_node/external_dp/external_dp_config.py21logger = logging.getLogger(__name__)CODE
LOWtests/e2e/common/multi_node/external_dp/runtime.py36logger = logging.getLogger(__name__)CODE
LOWtests/e2e/common/multi_node/external_dp/utils.py28logger = logging.getLogger(__name__)CODE
LOW…/e2e/common/multi_node/external_dp/test_external_dp.py45logger = logging.getLogger(__name__)CODE
LOWtests/e2e/common/single_node/test_single_node.py28logger = logging.getLogger(__name__)CODE
LOWtests/e2e/common/single_node/single_node_config.py14logger = logging.getLogger(__name__)CODE
LOW…2e/vllm_interface/vllm_interface_contracts/__init__.py34__all__ = [CODE
LOW…m_interface/vllm_interface_contracts/call_contracts.py1479__all__ = [CODE
LOWvllm_ascend/logger.py137def _setup_file_logging(log_dir: str | None = None) -> None:CODE
LOW⚡vllm_ascend/platform.py1163def _update_compilation_modes(vllm_config: VllmConfig, ascend_config: AscendConfig) -> None:CODE
LOWvllm_ascend/platform.py405 def update_block_size_for_backend(cls, vllm_config: VllmConfig) -> None:CODE
LOWvllm_ascend/platform.py1503def _set_pytorch_npu_alloc_env(vllm_config: VllmConfig) -> None:CODE
LOWvllm_ascend/utils.py1290def set_potential_max_tokens(vllm_config) -> None:CODE
LOWvllm_ascend/_310p/attention/metadata_builder.py39def set_query_lens_cpu(attn_metadata: AscendMetadata, query_lens_cpu: torch.Tensor) -> None:CODE
LOWvllm_ascend/_310p/spec_decode/__init__.py20__all__ = [CODE
LOWvllm_ascend/_310p/quantization/__init__.py20__all__ = [CODE
LOWvllm_ascend/_310p/sample/__init__.py3__all__ = ["AscendSampler310"]CODE
LOWvllm_ascend/_310p/ops/fla/__init__.py6__all__ = [CODE
LOWvllm_ascend/_310p/worker/v2/model_runner.py674 def update_requests(self, scheduler_output: SchedulerOutput) -> None:CODE
LOWvllm_ascend/_310p/worker/v2/spec_utils.py486def set_draft_step_host(step: int) -> None:CODE
LOW…m_ascend/_310p/worker/v2/spec_decode/mtp_speculator.py284 def _set_draft_step(self, step: int) -> None:CODE
LOW⚡vllm_ascend/attention/sfa_v1.py1576 def _update_indexcache_topk_indices(self, topk_indices: torch.Tensor) -> None:CODE
LOWvllm_ascend/core/profiling_chunk_predictor.py214 def set_target_latency(self, base_chunk_size: int, elapsed_time: float = 0.0) -> None:CODE
LOWvllm_ascend/xlite/utils.py41def set_dummy_tensor(tensor: torch.Tensor) -> None:CODE
LOWvllm_ascend/xlite/xlite.py466 def set_xlite_attr(xlite_attr: str, layer_attr: str) -> None:CODE
LOW⚡vllm_ascend/distributed/eplb/eplb_communicator.py365 def set_stream(self, stream: torch.Stream | None) -> None:CODE
LOW⚡vllm_ascend/distributed/eplb/eplb_communicator.py370 def set_transfer_context(self, old_indices: np.ndarray, layer_idx: int) -> None:CODE
LOWvllm_ascend/distributed/eplb/eplb_communicator.py81 def set_stream(self, stream: torch.Stream | None) -> None:CODE
LOWvllm_ascend/distributed/eplb/eplb_state.py69 def _set_local_expert_range(self, expert_load_view: torch.Tensor) -> None:CODE
LOW…end/distributed/device_communicators/pyhccl_wrapper.py256__all__ = [CODE
LOW…scend/distributed/ec_transfer/ec_memcache_connector.py196 def update_state_after_alloc(self, request: "Request", index: int) -> None:CODE
LOW⚡…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py177 def update_computed_tokens(self, computed_tokens: int) -> None:CODE
LOW⚡…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py181 def update_transferred_tokens(self, transferred_tokens: int) -> None:CODE
LOW…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py627 def update_failed_task(self, req_id: str) -> None:CODE
LOW⚡…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py1299 def set_xfer_handshake_metadata(self, metadata: dict[int, KVConnectorHandshakeMetadata]) -> None:CODE
LOW⚡…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py1309 def set_xfer_handshake_metadata_pp_aware(self, metadata) -> None:CODE
LOW…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py1632 def set_xfer_handshake_metadata(self, metadata: dict[int, KVConnectorHandshakeMetadata]) -> None:CODE
LOW…distributed/kv_transfer/kv_p2p/mooncake/base_worker.py365__all__ = ["MooncakeBaseConnectorWorker"]CODE
LOW…nd/distributed/kv_transfer/kv_p2p/mooncake/metadata.py174__all__ = [CODE
96 more matches not shown…
Verbosity Indicators73 hits · 152 pts
SeverityFileLineSnippetContext
LOW⚡…el/grouped_matmul_swiglu_quant_weight_nz_tensor_list.h302 // Step 1: Read grouplist reduceSum to calculate total data countCOMMENT
LOW⚡…el/grouped_matmul_swiglu_quant_weight_nz_tensor_list.h310 // Step 2: Calculate core allocationCOMMENT
LOW⚡…el/grouped_matmul_swiglu_quant_weight_nz_tensor_list.h333 // Step 3: Calculate total data volumeCOMMENT
LOW⚡…el/grouped_matmul_swiglu_quant_weight_nz_tensor_list.h339 // Step 4: Allocate spaceCOMMENT
LOW⚡…d_matmul_swiglu_quant_weight_nz_tensor_list_split_ws.h396 // Step 1: Read grouplist reduceSum to calculate total data countCOMMENT
LOW⚡…d_matmul_swiglu_quant_weight_nz_tensor_list_split_ws.h400 // Step 2: Calculate core allocationCOMMENT
LOW⚡…d_matmul_swiglu_quant_weight_nz_tensor_list_split_ws.h423 // Step 3: Calculate total data volumeCOMMENT
LOW⚡…d_matmul_swiglu_quant_weight_nz_tensor_list_split_ws.h429 // Step 4: Allocate spaceCOMMENT
LOW⚡…rc/attention/sparse_attention_score/tests/test_bf16.py446 # Step 3: PV: [groupSize, valid_len] x [valid_len, D] -> [groupSize, D]COMMENT
LOW⚡…rc/attention/sparse_attention_score/tests/test_bf16.py449 # Step 4: rescale OCOMMENT
LOW⚡…rc/attention/sparse_attention_score/tests/test_bf16.py457 # Step 5: final divide + castCOMMENT
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py414 # Step 1: QK: [groupSize, D] x [D, valid_len] -> [groupSize, valid_len]COMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h236 // Step 1: Cast int8 -> half -> fp32COMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h244 // Step 2: Mul dequant_scaleCOMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h252 // Step 3: Add dequant_bias (if exists)COMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h289 // Step 1: tanh(gate / beta) * betaCOMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h299 // Step 2: sigmoid(gate) = 1 / (1 + exp(-gate))COMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h334 // Step 3: situ_a = tanhResult * sigmoidResultCOMMENT
LOW⚡…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h338 // Step 4: if linear_beta > 0: up = linear_beta * tanh(up / linear_beta)COMMENT
LOW…/moe/dequant_situ_quant/op_kernel/dequant_situ_quant.h349 // Step 5: output = situ_a * up = tanhResult * upCOMMENT
LOW⚡…moe/situ_mx_quant/op_host/situ_mx_quant_infershape.cpp89 // Step 1: Compute y shape (Situ output)COMMENT
LOW⚡…moe/situ_mx_quant/op_host/situ_mx_quant_infershape.cpp96 // Step 2: Compute mxscale shapeCOMMENT
LOW⚡…tu_mx_quant/op_kernel/arch35/situ_mx_quant_axis_last.h206 // Step 1: Situ activationCOMMENT
LOW⚡…tu_mx_quant/op_kernel/arch35/situ_mx_quant_axis_last.h211 // Step 2: MxQuant - extract max exponent per 32-element blockCOMMENT
LOW⚡…tu_mx_quant/op_kernel/arch35/situ_mx_quant_axis_last.h216 // Step 3: MxQuant - compute E8M0 scale and reciprocal scaleCOMMENT
LOW⚡…tu_mx_quant/op_kernel/arch35/situ_mx_quant_axis_last.h224 // Step 4: MxQuant - quantize to FP8COMMENT
LOWtests/ut/quantization/methods/kv_cache/test_kv_c8.py397 # Step 1: Create weightsCOMMENT
LOWtests/ut/quantization/methods/kv_cache/test_kv_c8.py412 # Step 2: Simulate weight loadingCOMMENT
LOWtests/ut/quantization/methods/kv_cache/test_kv_c8.py440 # Step 3: Process after loadingCOMMENT
LOW⚡vllm_ascend/core/batch_job_aware_scheduler.py262 # Step 1: estimate how many tokens this round will advanceCOMMENT
LOW⚡vllm_ascend/core/batch_job_aware_scheduler.py269 # Step 2: simulate position after this round's executionCOMMENT
LOW⚡vllm_ascend/core/batch_job_aware_scheduler.py272 # Step 3: estimate the NEXT round's token demandCOMMENT
LOW⚡vllm_ascend/core/batch_job_aware_scheduler.py281 # Step 4: compute new blocks needed from that positionCOMMENT
LOW⚡vllm_ascend/eplb/core/policy/policy_default_eplb.py46 # Step 1: Sort the items by weight in descending order (we are sorting by weight now)COMMENT
LOW⚡vllm_ascend/eplb/core/policy/policy_default_eplb.py59 # Step 2: Calculate the number of items per boxCOMMENT
LOW⚡vllm_ascend/eplb/core/policy/policy_default_eplb.py64 # Step 3: Initialize card_num boxes with empty lists to store item IDsCOMMENT
LOWvllm_ascend/eplb/core/policy/policy_default_eplb.py86 # Step 4: Distribute items into boxes based on weightCOMMENT
LOWvllm_ascend/eplb/core/policy/policy_default_eplb.py108 # Step 5: Output each box's contents and total weightCOMMENT
LOW⚡vllm_ascend/ops/cv_linear.py24 # Step 1: Quantize (Vector)STRING
LOW⚡vllm_ascend/ops/cv_linear.py27 # Step 2: Matrix multiply (Cube)STRING
LOWvllm_ascend/ops/triton/batch_invariant/rmsnorm.py52 # Step 1: Compute sum of squares in float32 to avoid overflowCOMMENT
LOW⚡vllm_ascend/ops/triton/batch_invariant/rmsnorm.py63 # Step 2: Compute RMS (root mean square) in float32COMMENT
LOW⚡vllm_ascend/ops/triton/batch_invariant/rmsnorm.py68 # Step 3: Normalize and apply weightCOMMENT
LOWvllm_ascend/ops/triton/mamba/lightning_attn.py421 # Step 1: Compute diagonal blocks of attentionCOMMENT
LOWvllm_ascend/ops/triton/mamba/lightning_attn.py469 # Step 2: Compute key-value outer products for each block in parallel.COMMENT
LOWvllm_ascend/ops/triton/mamba/lightning_attn.py496 # Step 3: Reduce key-value outer products across blocks and updateCOMMENT
LOWvllm_ascend/ops/triton/mamba/lightning_attn.py516 # Step 4: Compute non-diagonal blocks of attention.COMMENT
LOW⚡…fill_v1/load_balance_proxy_layerwise_server_example.py22# Step 1: Start Your Backend ServersCOMMENT
LOW⚡…fill_v1/load_balance_proxy_layerwise_server_example.py34# Step 2: Start the Proxy ServerCOMMENT
LOW⚡…fill_v1/load_balance_proxy_layerwise_server_example.py48# Step 3: Send a Request to the ProxyCOMMENT
LOW⚡…fill_v1/load_balance_proxy_layerwise_server_example.py70# Step 4: Health CheckCOMMENT
LOW⚡…egated_prefill_v1/load_balance_proxy_server_example.py22# Step 1: Start Your Backend ServersCOMMENT
LOW⚡…egated_prefill_v1/load_balance_proxy_server_example.py34# Step 2: Start the Proxy ServerCOMMENT
LOW⚡…egated_prefill_v1/load_balance_proxy_server_example.py48# Step 3: Send a Request to the ProxyCOMMENT
LOW⚡…egated_prefill_v1/load_balance_proxy_server_example.py70# Step 4: Health CheckCOMMENT
LOW⚡…egated_prefill_v1/load_balance_proxy_server_example.py80# Step 5: Add or Remove Prefiller or Decoder Instances (Optional)COMMENT
LOW⚡examples/eplb/eplb_deepseek.py108 # Step 1: pack groups to nodesCOMMENT
LOW⚡examples/eplb/eplb_deepseek.py117 # Step 2: construct redundant experts within nodesCOMMENT
LOW⚡examples/eplb/eplb_deepseek.py122 # Step 3: pack physical_experts to GPUsCOMMENT
LOW⚡examples/offline_DSD_k_tuner/generate_config.py425 # Step 1: get acceptance_rate_per_posCOMMENT
13 more matches not shown…
Cross-Language Confusion25 hits · 128 pts
SeverityFileLineSnippetContext
HIGHtools/bisect/runner.py297 sources = " ; ".join(f"source {f} 2>/dev/null || true" for f in _ENV_SOURCE_FILES)CODE
HIGHtools/bisect/worker_agent.py53 sources = " ; ".join(f"source {f} 2>/dev/null || true" for f in runner._ENV_SOURCE_FILES)CODE
HIGH⚡tests/e2e/generate_coverage_html.py502 (r.coverage || {}).arch && r.coverage.arch.includes(filterType)CODE
HIGH⚡tests/e2e/generate_coverage_html.py507 (r.coverage || {}).graph_mode && r.coverage.graph_mode.includes(filterGraph)CODE
HIGH⚡tests/e2e/generate_coverage_html.py513 return Object.values(cov).some(arr => arr && arr.length > 0);CODE
HIGH⚡tests/e2e/generate_coverage_html.py679 while (i < total && rows.length < pageSize && scanned < ZERO_SCAN_CAP) {CODE
HIGH⚡tests/e2e/generate_coverage_html.py682 if (!coveredSet.has(key) && !isInvalidCombo(combo, dims)) rows.push(combo);CODE
HIGH⚡tests/e2e/generate_coverage_html.py687 scanCapped: scanned >= ZERO_SCAN_CAP && rows.length < pageSize,CODE
HIGHtests/e2e/generate_coverage_html.py405 let currentSort = {col: null, asc: true};CODE
HIGHtests/e2e/generate_coverage_html.py421 const c = r.card_count || 1;CODE
HIGHtests/e2e/generate_coverage_html.py458 const isMarked = Object.values(cov).some(arr => arr && arr.length > 0);CODE
HIGHtests/e2e/generate_coverage_html.py534 `<a href="#" onclick="window._hmFilter=null;filter();return false;" style="color:#2563eb">✕ clear</a>`;CODE
HIGHtests/e2e/generate_coverage_html.py592 return (vals && vals.length) ? new Set(vals) : new Set();CODE
HIGHtests/e2e/generate_coverage_html.py629 for (const v of arr) next.push([...combo, v]);CODE
HIGHtests/e2e/generate_coverage_html.py707 return (vals && vals.length) ? vals.filter(v => allowed.includes(v)) : [];CODE
HIGHtests/e2e/generate_coverage_html.py713 for (const c of combos) for (const v of s) next.push([...c, v]);CODE
HIGHtests/e2e/generate_coverage_html.py724 entry.tests.push(r);CODE
HIGHtests/e2e/generate_coverage_html.py866 if (window._explorerState && explorerPage === 0) tbody.innerHTML = html;CODE
HIGHtests/e2e/generate_coverage_html.py949 window._hmFilter = null;CODE
HIGHvllm_ascend/ascend_config.py425 "draft_window_size": null,STRING
HIGHvllm_ascend/ascend_config.py456 "expert_map_path": null,STRING
HIGHvllm_ascend/ascend_config.py459 "expert_map_record_path": null,STRING
HIGHvllm_ascend/ascend_config.py500 "need_timing": null,STRING
HIGHvllm_ascend/ascend_config.py523 "method": null,STRING
HIGH…nsfer/kv_pool/ascend_store/backend/mooncake_backend.py578 raise TypeError(f"tenant_id must be a string or null, got {type(value).__name__}: {value!r}")CODE
AI Structural Patterns137 hits · 120 pts
SeverityFileLineSnippetContext
LOW…rc/attention/sparse_attention_score/tests/test_fp16.py379CODE
LOW…rc/attention/sparse_attention_score/tests/test_fp16.py421CODE
LOW…tention_score/tests/test_sparse_attention_score_fp8.py493CODE
LOW…tention_score/tests/test_sparse_attention_score_fp8.py621CODE
LOW…tention_score/tests/test_sparse_attention_score_fp8.py771CODE
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py566CODE
LOW…rc/attention/sparse_attention_score/tests/test_bf16.py608CODE
LOW…tning_indexer_v2/tests/pytest/result_compare_method.py30CODE
LOW…tning_indexer_v2/tests/pytest/result_compare_method.py241CODE
LOW…tning_indexer_v2/tests/pytest/result_compare_method.py244CODE
LOW…ghtning_indexer_v2/tests/assets/impl/npu_preprocess.py221CODE
LOW…quant_lightning_indexer_v2/tests/assets/impl/inputs.py790CODE
LOW…rch_extension/graph_convert_quant_lightning_indexer.py57CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py202CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py256CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py302CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py363CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py508CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py596CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py59CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py81CODE
LOW…_indexer_v2/torch_extension/quant_lightning_indexer.py137CODE
LOWcsrc/scripts/util/build_opp_kernel_static.py226CODE
LOWtests/deepseek_v41_utils.py143CODE
LOWtests/ut/test_ascend_forward_context.py26CODE
LOWtests/ut/kv_offload/test_dspark_resident_kv.py49CODE
LOWtests/ut/kv_offload/test_dspark_prefill_config.py14CODE
LOWtests/ut/kv_offload/mooncake_v2/helpers.py98CODE
LOWtests/ut/kv_offload/mooncake_v2/helpers.py133CODE
LOWtests/ut/attention/utils.py139CODE
LOWtests/ut/distributed/ascend_store/test_pool_worker.py50CODE
LOWtests/ut/distributed/ascend_store/test_pool_worker.py2399CODE
LOWtests/ut/model_executor/warmup/helpers.py12CODE
LOWtests/ut/_tools/build_cache_test_utils.py15CODE
LOWtests/ut/_tools/test_build_cache.py84CODE
LOWtests/ut/spec_decode/test_dspark_proposer.py342CODE
LOWtests/ut/model_loader/rfork/test_identity_validation.py102CODE
LOWtests/ut/model_loader/rfork/test_identity_validation.py136CODE
LOWtests/ut/ops/test_token_dispatcher.py49CODE
LOWtests/e2e/conftest.py286CODE
LOWtests/e2e/conftest.py981CODE
LOWtests/e2e/conftest.py1413CODE
LOW…e/pull_request/one_card/test_attention_v1_precision.py130CODE
LOWtests/e2e/pull_request/one_card/attention_utils.py139CODE
LOW…/singlecard_ops/test_kimi_kda_recurrent_ascendc_npu.py62CODE
LOW…e_node/ops/singlecard_ops/test_npu_moe_gating_top_k.py33CODE
LOW…/singlecard_ops/test_recurrent_gated_delta_rule_310.py38CODE
LOWvllm_ascend/ascend_forward_context.py101CODE
LOWvllm_ascend/_310p/model_runner_310p.py568CODE
LOWvllm_ascend/_310p/npu_input_batch.py10CODE
LOWvllm_ascend/_310p/fused_moe/fused_moe.py155CODE
LOWvllm_ascend/_310p/ops/fla/gdn_310.py145CODE
LOWvllm_ascend/attention/indexer_kpool.py600CODE
LOWvllm_ascend/attention/context_parallel/common_cp.py315CODE
LOW…distributed/kv_transfer/kv_p2p/sfa_pd_rd2h/protocol.py197CODE
LOW…stributed/kv_transfer/kv_pool/ascend_store/metadata.py535CODE
LOW…stributed/kv_transfer/kv_pool/ascend_store/metadata.py848CODE
LOW…stributed/kv_transfer/kv_pool/ascend_store/metadata.py968CODE
LOW…stributed/kv_transfer/kv_pool/ascend_store/metadata.py1083CODE
LOW…stributed/kv_transfer/kv_pool/ascend_store/metadata.py1307CODE
77 more matches not shown…
Hallucination Indicators9 hits · 95 pts
SeverityFileLineSnippetContext
CRITICALtests/ut/model_executor/test_qwen3_dspark.py51 model.model.fc.weight.data.copy_(fc_weight)CODE
CRITICAL⚡tests/ut/model_executor/test_glm_mla_dspark.py137 layer.self_attn.attn.impl.exec_kv_prefill.assert_not_called()CODE
CRITICALvllm_ascend/attention/sfa_v1.py1097 weight_uq_qr = self.q_proj.weight.data.T.contiguous()CODE
CRITICALvllm_ascend/spec_decode/llm_base_proposer.py519 self.model.model.embed_tokens.weight.cpu(),CODE
CRITICALvllm_ascend/ops/triton/triton_utils.py74 device_properties: dict[str, Any] = triton.runtime.driver.active.utils.get_device_properties(CODE
CRITICALvllm_ascend/ops/triton/rms_norm.py77 device_properties = triton.runtime.driver.active.utils.get_device_properties(q.device)CODE
CRITICALvllm_ascend/ops/triton/batch_invariant/rmsnorm.py115 max_grid_size = triton.runtime.driver.active.utils.get_device_properties(torch.npu.current_device())[CODE
CRITICALvllm_ascend/ops/triton/batch_invariant/matmul.py272 triton.runtime.driver.active.utils.get_device_properties(torch.npu.current_device())["num_vectorcore"] // 2CODE
CRITICALvllm_ascend/ops/triton/spec_decode/ngram.py214 properties = triton.runtime.driver.active.utils.get_device_properties(device_idx)CODE
Redundant / Tautological Comments55 hits · 85 pts
SeverityFileLineSnippetContext
LOWsetup.py85 # Check if Chip Name exists (Ascend950 includes it directly)COMMENT
LOWtools/collect_user_first_contribution.sh135 # Check if it's in format "ID+username" or just "username"COMMENT
LOWtools/collect_user_first_contribution.sh166# Check if we should do incremental updateCOMMENT
LOWtools/collect_user_first_contribution.sh173 # Check if LAST_COMMIT is an ancestor of CURRENT_HEADCOMMENT
LOWtools/collect_user_first_contribution.sh227 # Check if contributor already exists (deduplication)COMMENT
LOWtools/mooncake_installer.sh196# Check if thirdparties directory existsCOMMENT
LOWtools/mooncake_installer.sh206# Check if yalantinglibs is already installedCOMMENT
LOWtools/mooncake_installer.sh255# Check if .gitmodules existsCOMMENT
LOWtools/mooncake_installer.sh257 # Check if submodules are already initialized by looking for the .git directory in the first submoduleCOMMENT
LOWtools/mooncake_installer.sh307# Check if Go is already installedCOMMENT
LOW…ts/ut/model_loader/netloader/test_netloader_elastic.py792 # Check if the start() method is called.COMMENT
LOWtests/ut/ops/test_comm_utils.py50 # Check if the output tensor is created properlyCOMMENT
LOW…four_card/rlhf/consistency/test_batch_invariant_tp4.py221 # Check if tokens match firstCOMMENT
LOW…s/e2e/pull_request/two_card/lora/test_qwen3moe_lora.py46 # Print the outputs.COMMENT
LOW…est/one_card/compile/test_graphex_norm_quant_fusion.py166 # Check if fusion operator is availableCOMMENT
LOW…est/one_card/compile/test_graphex_norm_quant_fusion.py189 # Check if the bias operator existsCOMMENT
LOWtests/e2e/pull_request/one_card/lora/test_ilama_lora.py32 # Print the outputs.COMMENT
LOWtests/e2e/pull_request/one_card/lora/test_olmoe_lora.py69 # Print the outputs.COMMENT
LOW…ingle_node/ops/singlecard_ops/triton/test_bad_words.py38 # Check if adding this bad word would exceed the token limitCOMMENT
LOW…ingle_node/ops/singlecard_ops/triton/test_bad_words.py64 # Set input_ids to match the first bad wordCOMMENT
LOWtests/e2e/common/multi_node/run.sh59# Set transformers to offline mode to avoid downloading models during testsCOMMENT
LOW…lm-ascend-release/scripts/update_version_references.py83 # Check if this update has a regex pattern or a template patternCOMMENT
LOW…lm-ascend-release/scripts/update_version_references.py180 # Check if all updates are manual actionsCOMMENT
LOW…ts/skills/vllm-ascend-release/scripts/fetch_commits.py172 # Check if this tag's commit is an ancestor of headCOMMENT
LOW…ts/skills/vllm-ascend-release/scripts/fetch_commits.py1210 # Check if message already contains the full URL patternCOMMENT
LOW…ills/vllm-ascend-release/scripts/scan_test_coverage.py329 # Check if there's a linked issue and if it's resolvedCOMMENT
LOWvllm_ascend/profiling_config.py557 # Check if the configuration file already existsSTRING
LOWvllm_ascend/core/dyntra_lb_scheduler.py1055 # Check if the scheduling constraints are satisfied.COMMENT
LOWvllm_ascend/core/recompute_scheduler.py869 # Check if the scheduling constraints are satisfied.COMMENT
LOWvllm_ascend/core/scheduler_profiling_chunk.py1074 # Check if the scheduling constraints are satisfied.COMMENT
LOW…d/distributed/kv_transfer/kv_p2p/mooncake_connector.py807 # Check if we have the remote metadata cached.COMMENT
LOW…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py741 # Check if we have the remote metadata cached.COMMENT
LOW…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py861 # Check if we have the remote metadata cached.COMMENT
LOWvllm_ascend/quantization/utils.py100 # Check if it's a local pathCOMMENT
LOWvllm_ascend/quantization/methods/w8a8/w8a8_mxfp8.py178 # Check if already transformed to avoid double transformationCOMMENT
LOWvllm_ascend/quantization/methods/w8a8/w8a8_mxfp8.py404 # Check if already transformed to avoid double transformationCOMMENT
LOWvllm_ascend/patch/platform/patch_balance_schedule.py722 # Check if the scheduling constraints are satisfied.COMMENT
LOW⚡…ascend/model_loader/netloader/executor/netloader_pg.py63 # Check if world_size is positiveCOMMENT
LOW⚡…ascend/model_loader/netloader/executor/netloader_pg.py66 # Check if rank is within [0, world_size - 1]COMMENT
LOW⚡…ascend/model_loader/netloader/executor/netloader_pg.py69 # Check if HCCL is availableCOMMENT
LOW⚡…ascend/model_loader/netloader/executor/netloader_pg.py72 # Check if timeout is a timedelta typeCOMMENT
LOW⚡…ascend/model_loader/netloader/executor/netloader_pg.py75 # Check if group_name already existsCOMMENT
LOW…ascend/model_loader/netloader/executor/netloader_pg.py121 # Check if pg_options is None or not of type ProcessGroupHCCL.OptionsCOMMENT
LOW…ascend/model_loader/netloader/executor/netloader_pg.py169 # Check if pg is in keys of _world.pg_coalesce_stateCOMMENT
LOWvllm_ascend/worker/worker.py1220 # Check if profiling is enabled (RFC #6954 - align with upstream vLLM)COMMENT
LOWvllm_ascend/compilation/compiler_interface.py128 # Set sym_range to limit static kernel compilation to specified batch sizes.COMMENT
LOWexamples/offline_data_parallel.py172 # Print the outputs.COMMENT
LOWexamples/eplb/eplb_strategy.py48 # Check if element is numericCOMMENT
LOW.github/workflows/pr_revert_command.yml218 # Check if a revert PR already exists for this PR.COMMENT
LOW.github/workflows/pr_cherry_pick_command.yml201 # Check if a cherry-pick PR already exists for this target branch.COMMENT
LOW.github/workflows/scripts/test_selector.py1651 # Check if this test covers any line of this functionCOMMENT
LOW.github/workflows/scripts/test_selector.py1776 # Check if this test covers any line of this functionCOMMENT
LOW.github/workflows/scripts/detect_po_changes.py154 # Check if this is a multi-line table block.COMMENT
LOW.github/workflows/scripts/detect_po_changes.py441 # Check if this is a modification of an existing paragraphCOMMENT
LOW.github/ISSUE_TEMPLATE/400-bug-report.yml56 # Print the outputs.COMMENT
Docstring Block Structure13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHtools/upload_to_openlibing.py64 Upload files to OpenLibing OBS bucket. Args: file_paths: List of file paths to upload openlibiSTRING
HIGHvllm_ascend/_310p/attention/attention_v1.py327 Main dispatch method for attention operations. Routes the execution to Decode, Prefill, or Chunked PreSTRING
HIGHvllm_ascend/_310p/attention/attention_mask.py123 Retrieves the appropriate attention mask based on the model configuration. When compressed mask is supSTRING
HIGHvllm_ascend/xlite/xlite.py664Look up and initialize the appropriate xlite model adapter based on the architecture specified in vLLM config and thSTRING
HIGHvllm_ascend/xlite/xlite.py736Proxy unknown attributes to the wrapped runnable model. Args: key (str): The attribute name requestSTRING
HIGH…nsfer/kv_pool/ascend_store/backend/mooncake_backend.py584 Parse storage size strings with support for units: GB, MB, KB, B Args: value: Input value (int, str, oSTRING
HIGH…nsfer/kv_pool/ascend_store/backend/mooncake_backend.py630 Convert numeric string to byte count Args: number_str: Numeric portion of input multiplier: UnSTRING
HIGH…cend/quantization/methods/w4a4/w4a4_mxfp4_flatquant.py34Get decomposed dimensions for Kronecker quantization. Args: n: Dimension to decompose m: Tensor paraSTRING
HIGH…ascend/model_loader/netloader/executor/netloader_pg.py41 Initializes a stateless process group. Args: host: Hostname. port: Port number. world_size: Size oSTRING
HIGHvllm_ascend/ops/triton/query_gather_prep.py131Return the fused query as a contiguous [H, T, nope+rope] tensor. Args: ql_nope: [T, H, nope_dim] partial quSTRING
HIGHvllm_ascend/ops/triton/fla/chunk.py276 Args: q (torch.Tensor): queries of shape `[B, T, H, K]` if `head_first=False` else `[B, H, T, KSTRING
HIGHexamples/save_sharded_state_310.py121 Extract quantization description from JSON configuration file. Args: json_file: Path to the JSON confiSTRING
HIGH…es/dynamic_bucket_load_balancer/hybrid_proxy_server.py113 Split servers into num_groups groups. Args: servers (list): the server list to group. STRING
AI Slop Vocabulary15 hits · 37 pts
SeverityFileLineSnippetContext
MEDIUMtests/ut/proxy/test_load_balance_proxy_server.py137 """Create a FastAPI app that serves as a mock prefill/decode backend.STRING
LOW…s/ut/distributed/weight_transfer/test_packed_tensor.py84 # already implements ``__enter__``/``__exit__`` so just return it.COMMENT
LOWtests/ut/ops/test_vocab_parallel_embedding.py155 # Should just pass through without maskingCOMMENT
MEDIUM…rd/rlhf/state_transitions/test_hccl_weight_transfer.py52# container: the harness hands the server `ASCEND_RT_VISIBLE_DEVICES` explicitly,COMMENT
MEDIUM⚡tests/e2e/pull_request/one_card/rlhf/conftest.py74# Server harnessCOMMENT
MEDIUM…rlhf/state_transitions/test_npu_ipc_weight_transfer.py63# device index inside the container: the harness hands the serverCOMMENT
LOWvllm_ascend/attention/attention_v1.py886 # just use getattr to avoid attribute error.COMMENT
MEDIUMvllm_ascend/core/profiling_chunk_predictor.py139 # Keep a robust fallback for environments where least-squares mayCOMMENT
MEDIUMvllm_ascend/ops/triton/v2/apply_grammar_bitmask.py105 # Disable MULTIBUFFER to better utilize the UB buffer, which givesCOMMENT
LOWvllm_ascend/worker/block_table.py213 # NOTE(woosuk): We can't simply use `token_indices // block_size`COMMENT
LOWvllm_ascend/worker/v2/model_runner.py209 # so here we just call init_speculator to reinitialize speculator.COMMENT
MEDIUM…fill_v1/load_balance_proxy_layerwise_server_example.py83# - For production, ensure your backend servers are robust and secure.COMMENT
MEDIUM…egated_prefill_v1/load_balance_proxy_server_example.py111# - For production, ensure your backend servers are robust and secure.COMMENT
MEDIUMexamples/disaggregated_encoder/disagg_epd_proxy.py244 # for nixl connector to facilitate kv transfer...COMMENT
MEDIUM…ted/epd_load_balance_proxy_layerwise_server_example.py92# - For production, ensure your backend servers are robust and secure.COMMENT
Modern AI Meta-Vocabulary10 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUMtests/ut/attention/test_dsa_v41_cp.py121 # Keep the real prepared-query/quantization orchestration; emulate kernels.COMMENT
MEDIUMtests/ut/models/test_glm5next_kpool_model_backend.py21# The operator PR owns these kernels. Each orchestration test below replacesCOMMENT
MEDIUMtests/ut/ops/test_moe_comm_method.py438 # Mock the unified MoE MLP orchestration returning (tensor, event).COMMENT
MEDIUMtests/ut/ops/test_moe_comm_method.py486 # Verify the unified MoE MLP orchestration was calledCOMMENT
MEDIUMdocs/source/user_guide/feature_guide/rl.md312## Tool calling for agentic RLCOMMENT
MEDIUMdocs/source/tutorials/models/GLM5.md7[GLM-5](https://huggingface.co/zai-org/GLM-5) uses a Mixture-of-Experts (MoE) architecture and targets complex systems eCODE
MEDIUMdocs/source/tutorials/models/GLM5.3-Flash.md5[GLM-5.3-Flash](https://huggingface.co/zai-org/GLM-5.3-Flash) is the first natively multimodal model in the GLM-5 seriesCODE
MEDIUMdocs/source/tutorials/models/GLM5.2.md5[GLM-5.2](https://huggingface.co/zai-org/GLM-5.2) uses a Mixture-of-Experts (MoE) architecture and targets complex systeCODE
MEDIUMvllm_ascend/attention/dsa_v1.py1151 # the trailing context window plus the whole current draft block.COMMENT
MEDIUMvllm_ascend/attention/attention_v1.py574 # Note: Some embedding model weights are in float32 format.COMMENT
Slop Phrases4 hits · 15 pts
SeverityFileLineSnippetContext
LOW…ransfer/sparse_kv_offload/sparse_kv_offload_manager.py143 # NOTE make sure to allocate k+v together and split them after allocate.COMMENT
MEDIUM⚡…fill_v1/load_balance_proxy_layerwise_server_example.py27# For testing, you can use the provided mock server:COMMENT
MEDIUM⚡…egated_prefill_v1/load_balance_proxy_server_example.py27# For testing, you can use the provided mock server:COMMENT
MEDIUM⚡…ted/epd_load_balance_proxy_layerwise_server_example.py27# For testing, you can use the provided mock server:COMMENT
Fake / Example Data9 hits · 11 pts
SeverityFileLineSnippetContext
LOW⚡tests/ut/ops/test_rotary_embedding.py247 dummy_key = mock_rope.call_args.args[2]CODE
LOW⚡tests/ut/ops/test_rotary_embedding.py248 assert dummy_key.shape == (query.shape[0], HEAD_SIZE)CODE
LOW⚡tests/ut/ops/test_rotary_embedding.py249 assert dummy_key.dtype == query.dtypeCODE
LOW⚡tests/ut/ops/test_rotary_embedding.py250 assert dummy_key.device == query.deviceCODE
LOWtests/e2e/pull_request/one_card/test_mla_precision.py206 for layer_name in ["placeholder"]:CODE
LOWtests/e2e/pull_request/one_card/test_mla_precision.py211 ["placeholder"],CODE
LOW…e/pull_request/one_card/test_attention_v1_precision.py291 ["placeholder"],CODE
LOWvllm_ascend/ops/rotary_embedding.py292 dummy_key = (CODE
LOWvllm_ascend/ops/rotary_embedding.py304 dummy_key,CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHtests/e2e/pull_request/two_card/test_prefix_caching.py17# A prompt containing a large markdown table. The table is randomly generated by GPT-4.COMMENT
Overly Generic Function Names8 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/ut/kv_offload/test_d2rh_pp_lifetime.py16def handle_request(self, meta):CODE
LOWtests/ut/kv_offload/test_mooncake_hybrid_connector.py196 def handle_request(req_meta: dict[str, Any]):CODE
LOWtests/ut/kv_offload/test_mooncake_hybrid_connector.py238 def handle_request(req_meta: dict[str, Any]):CODE
LOWtests/ut/kv_offload/test_mooncake_hybrid_connector.py308 def handle_request(req_meta: dict[str, Any]):CODE
LOW…tributed/kv_transfer/kv_p2p/test_mooncake_connector.py915 def handle_request(req_meta: dict[str, Any]):CODE
LOW…tributed/kv_transfer/kv_p2p/test_mooncake_connector.py969 def handle_request(req_meta):CODE
LOW…tributed/kv_transfer/kv_p2p/test_mooncake_connector.py1016 def handle_request(req_meta: dict[str, Any]):CODE
LOWtests/ut/_tools/test_doctest_helper.py15def helper():CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWvllm_ascend/worker/model_runner_v1.py3122 # TODO: implement PR 28597 from vllmCOMMENT