Repository Analysis

vllm-project/vllm-ascend

Community maintained hardware plugin for vLLM on Ascend

14.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of vllm-project/vllm-ascend, a C++ project with 2,730 GitHub stars. SynthScan v2.0 examined 812,559 lines of code across 3290 source files, recording 8127 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 14.1 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

14.1
Adjusted Score
14.1
Raw Score
100%
Time Factor
2026-08-29
Last Push
2.7K
Stars
C++
Language
812.6K
Lines of Code
3.3K
Files
8.1K
Pattern Hits
2026-08-29
Scan Date
0.03
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 7HIGH 77MEDIUM 1457LOW 6586

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers4141 hits · 3979 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
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/util/build_opp_kernel_static.py229def parser_compile_static_library(subparsers):CODE
LOWcsrc/scripts/util/build_opp_kernel_static.py602 def _gen_register_resouce_code(self, op_type: str):STRING
LOWcsrc/scripts/util/build_opp_kernel_static.py645 def _gen_tuning_register_resouce_code(self, op_type: str):CODE
LOWcsrc/scripts/util/build_opp_kernel_static.py697 def _gen_binary_resource_code(self, op_type: str) -> str:CODE
LOWcsrc/scripts/util/build_opp_kernel_static.py728def generate_op_resource_h_file(args):CODE
LOWcsrc/scripts/util/build_opp_kernel_static.py737def parser_generate_op_resource_h_file(subparsers):CODE
LOWcsrc/scripts/package/package.py135def generate_version_header_content(target_conf) -> Iterator[str]:CODE
LOWcsrc/scripts/package/package.py487def generate_filelist_file_by_xml_config(xml_config: XmlConfig, filter_key: list[str], package_check: bool):CODE
LOWcsrc/scripts/package/package.py507def get_pkg_xml_relative_path(pkg_args: Namespace) -> str:CODE
LOWcsrc/scripts/package/common/py/pkg_parser.py247def parse_package_attr_by_args(args: Namespace) -> dict:CODE
LOWcsrc/scripts/package/common/py/pkg_parser.py424def get_env_items_by_version_dir(version_dir: str | None) -> Iterator[tuple[str, str]]:CODE
LOWcsrc/scripts/package/common/py/pkg_parser.py430def get_os_arch_default_env_items() -> Iterator[tuple[str, str]]:CODE
LOWcsrc/scripts/package/common/py/pkg_parser.py455def get_env_items_by_timestamp(timestamp: str | None) -> Iterator[tuple[str, str]]:CODE
LOWcsrc/scripts/package/common/py/pkg_parser.py506def extract_generate_info_content(generate_info_ele: ET.Element, env_dict: EnvDict) -> dict:CODE
LOWcsrc/scripts/package/common/py/pkg_parser.py512def parse_generate_infos_by_loaded_block(CODE
LOWcsrc/scripts/package/common/py/pkg_parser.py626 def replace_pkg_inner_softlink(key: str, value: str) -> tuple[str, str]:CODE
LOWcsrc/scripts/package/common/py/pkg_parser.py760def expand_file_info_asterisk(parsed_result: FileInfoParsedResult, env: ParseEnv) -> Iterator[FileInfoParsedResult]:CODE
LOWcsrc/scripts/package/common/py/pkg_parser.py827def trans_file_info_to_result(file_info: FileInfo) -> FileInfoParsedResult:CODE
LOWcsrc/scripts/package/common/py/pkg_parser.py924def make_loaded_block_element(root_ele: ET.Element, dst_path: str = "") -> LoadedBlockElement:CODE
LOWcsrc/scripts/package/common/py/filelist.py111def get_filelist_header_string() -> str:CODE
LOWcsrc/scripts/package/common/py/filelist.py135def get_soft_links_not_in_common_paths(filelist: FileList, target_env: str) -> Iterator[list[str]]:CODE
LOWcsrc/scripts/package/common/py/filelist.py292def check_features_in_filelist(features: set[str], filelist: FileList) -> set[str]:CODE
LOWcsrc/scripts/package/common/py/filelist.py457def convert_nested_path_in_filelist(filelist: FileList):CODE
LOWcsrc/scripts/package/common/py/filelist.py511def get_transform_nested_path_func(parallel: bool) -> Callable[[FileList], FileList]:CODE
LOWcsrc/scripts/package/common/py/packer.py184def create_makeself_pkg_params_factory(CODE
LOWcsrc/scripts/package/common/py/packer.py189 def create_makeself_pkg_params(makeself_dir: str, package_attr: dict, independent_pkg=False) -> MakeselfPkgParams:CODE
LOWcsrc/scripts/package/common/py/packer.py220def create_run_package_command(params: MakeselfPkgParams) -> tuple[str | None, str | None]:CODE
LOWtools/aisbench.py330def maybe_download_from_modelscope(CODE
LOWtools/send_request.py22def _generate_prompt_for_length(server, seed: str, target_tokens: int, use_chat: bool = False) -> tuple[str, int]:CODE
LOWtools/check_python_src_init.py28def check_init_file_in_package(directory):CODE
4081 more matches not shown…
Decorative Section Separators879 hits · 2834 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/attention/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…rc/attention/recurrent_gated_delta_rule/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…rc/attention/recurrent_gated_delta_rule/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/kda_gate_cumsum/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/kda_gate_cumsum/CMakeLists.txt6# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/kda_gate_cumsum/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/kda_gate_cumsum/op_host/CMakeLists.txt6# -----------------------------------------------------------------------------------------------------------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
819 more matches not shown…
Self-Referential Comments514 hits · 1538 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
MEDIUMtests/ut/test_logger.py13# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/kv_offload/a2/test_remote_decode_lifecycle.py16# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/kv_offload/a2/test_remote_prefill_lifecycle.py16# 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_tp.py13# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/attention/utils.py318 # Create a realistic slot mapping that corresponds to the block tableCOMMENT
MEDIUMtests/ut/attention/a2/test_mla_v1.py1923 # Create a mock metadata where prefill_metadata.chunked_context.seq_tot is an empty list, so that iters == 0COMMENT
MEDIUMtests/ut/attention/a2/test_sfa_v1_precision.py16# This file is a part of the vllm-ascend project.COMMENT
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…/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
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
454 more matches not shown…
Over-Commented Block912 hits · 867 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# function gen_op() {COMMENT
LOWcsrc/build.sh761# rm -rf "${BASE_DIR}/examples"COMMENT
LOWcsrc/torch_binding.cpp21#include <ATen/core/Formatting.h>COMMENT
LOWcsrc/torch_binding.cpp41#include "moe/moe_gating_top_k/moe_gating_top_k_torch_adpt.h"COMMENT
LOWcsrc/torch_binding.cpp61#include <c10/core/Scalar.h>COMMENT
LOWcsrc/torch_binding_meta.cpp1941 ops.impl("situ_mx_quant", &vllm_ascend::meta::situ_mx_quant_meta);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…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…tention/recurrent_gated_delta_rule/op_host/math_util.h61#endif // _MATH_UTIL_H_COMMENT
LOW…ated_delta_rule/op_kernel/recurrent_gated_delta_rule.h581#endifCOMMENT
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…a_gate_cumsum/op_host/op_api/aclnn_kda_gate_cumsum.cpp1/**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
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…lightning_indexer/op_kernel/lightning_indexer_common.h161COMMENT
LOW…rc/attention/mla_prolog_v3/op_host/mla_prolog_tiling.h21#include <vector>COMMENT
LOW…a_prolog_v3/op_kernel/mla_prolog_template_tiling_key.h21#endifCOMMENT
LOW…a_prolog_v3/op_kernel/mla_prolog_template_tiling_key.h41#endifCOMMENT
LOW…a_prolog_v3/op_kernel/mla_prolog_template_tiling_key.h61 // bit:6-11 量化场景:0-非量化 1-MMQcQr量化 2-MMQcQr量化+KVcache量化 3-MMcqCkvKr量化+MMQcQr量化COMMENT
LOW…ntion/mla_prolog_v3/op_kernel/arch35/mla_prolog_comm.h161#define A_EVENT1 EVENT_ID5COMMENT
LOW…mla_prolog_v3/op_api/aclnn_mla_prolog_v3_weight_nz.cpp1/**COMMENT
LOW…nel/vllm_quant_lightning_indexer_template_tiling_key.h21#define QLI_TPL_INT8 2COMMENT
LOW…exer/op_kernel/arch35/quant_lightning_indexer_common.h161{COMMENT
LOW…ion/op_host/kv_quant_sparse_flash_attention_tiling.cpp101#define OP_LOGE_FOR_INVALID_SHAPE_WITH_REASON(opname, param, actual, reason) \COMMENT
852 more matches not shown…
Unused Imports463 hits · 418 pts
SeverityFileLineSnippetContext
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/_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.py25CODE
LOW…sts/ut/distributed/ascend_store/test_pool_scheduler.py23CODE
LOWtests/ut/distributed/ascend_store/test_pool_worker.py25CODE
LOWtests/ut/distributed/ascend_store/test_coordinator.py23CODE
LOWtests/ut/distributed/ascend_store/test_metadata.py21CODE
LOWtests/ut/distributed/ascend_store/test_kv_transfer.py25CODE
LOW…istributed/ascend_store/test_ascend_store_connector.py23CODE
LOWtests/ut/model_executor/test_qwen3_dspark.py20CODE
LOWtests/ut/model_executor/warmup/helpers.py4CODE
LOWtests/ut/models/minimax_m3/test_minimax_m3_eplb.py4CODE
LOWtests/ut/models/minimax_m3/test_minimax_m3_vit.py4CODE
LOWtests/ut/models/minimax_m3/test_minimax_m3.py4CODE
LOWtests/ut/models/minimax_m3/test_msa_m3.py5CODE
LOWtests/ut/_tools/test_docs_codegen.py1CODE
LOWtests/ut/spec_decode/test_step3p5_source_regression.py10CODE
LOWtests/ut/spec_decode/test_utils.py9CODE
LOW…t/spec_decode/test_eagle_aclgraph_source_regression.py4CODE
LOWtests/ut/spec_decode/test_speculators_vwn_eagle3.py22CODE
LOW…/ut/spec_decode/test_extract_hidden_states_proposer.py22CODE
LOWtests/ut/spec_decode/test_dspark_proposer.py20CODE
LOWtests/ut/spec_decode/test_llm_base_proposer.py19CODE
LOW…patch/platform/test_patch_speculative_config_dspark.py4CODE
LOW…s/ut/patch/worker/test_patch_routed_experts_capture.py16CODE
LOW…/ut/patch/worker/patch_common/test_hccl_pg_registry.py15CODE
LOW…ut/patch/worker/patch_common/test_patch_distributed.py15CODE
LOWtests/ut/lora/test_quant_moe.py6CODE
LOWtests/e2e/coverage_taxonomy.py23CODE
LOWtests/e2e/generate_coverage_html.py13CODE
LOW…ull_request/four_card/qwen3_32b_v2_migration_common.py33CODE
LOW…four_card/lora/test_qwen35_27b_multi_lora_mtp_eager.py10CODE
LOW…e2e/pull_request/two_card/test_hccl_weight_transfer.py51CODE
LOW…/pull_request/two_card/spec_decode/test_spec_decode.py19CODE
LOW…/pull_request/one_card/test_npu_ipc_weight_transfer.py33CODE
LOW…e/pull_request/one_card/test_minimax_m3_sparse_attn.py19CODE
LOW…sts/e2e/pull_request/one_card/model_runner_v2/utils.py18CODE
LOW…2e/pull_request/one_card/spec_decode/test_ngram_npu.py1CODE
LOW…ts/e2e/pull_request/one_card/spec_decode/test_eagle.py1CODE
LOWtests/e2e/pull_request/one_card/spec_decode/conftest.py1CODE
LOW…s/e2e/pull_request/one_card/spec_decode/test_dspark.py1CODE
LOW…s/e2e/pull_request/one_card/spec_decode/test_dflash.py1CODE
LOW…s/e2e/pull_request/one_card/spec_decode/test_suffix.py1CODE
LOW…est/one_card/spec_decode/test_mtp_eagle_correctness.py21CODE
403 more matches not shown…
Excessive Try-Catch Wrapping301 hits · 336 pts
SeverityFileLineSnippetContext
MEDIUMsetup.py202 print(f"Error running build_aclnn.sh: {e}")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.py293 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
LOWtools/test_memfabric_pd_read.py365 except Exception as error:CODE
LOWtools/test_memfabric_pd_read.py372 except Exception as error:CODE
LOWtools/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.py248 except Exception as exc: # noqa: BLE001 - add context for bisect logsCODE
LOWtools/bisect/build_manager.py73 except Exception: # noqa: BLE001 - best effort; fall back to rebuildCODE
LOWtests/ut/attention/a2/test_sfa_v1_precision.py47 except Exception:CODE
MEDIUMtests/e2e/conftest.py580def _read_output(self, pipe, prefix):CODE
MEDIUMtests/e2e/conftest.py736def _read_output(self, pipe, prefix):CODE
MEDIUMtests/e2e/conftest.py1179def __exit__(self, exc_type, exc_value, traceback):CODE
LOWtests/e2e/conftest.py364 except Exception:CODE
LOWtests/e2e/conftest.py587 except Exception as e:CODE
LOWtests/e2e/conftest.py743 except Exception as e:CODE
LOWtests/e2e/conftest.py952 except Exception:CODE
LOWtests/e2e/conftest.py1208 except Exception as e:CODE
LOWtests/e2e/conftest.py1331 except Exception as e:CODE
LOWtests/e2e/conftest.py1390 except Exception as e:CODE
LOWtests/e2e/conftest.py1474 except Exception:CODE
LOWtests/e2e/conftest.py1542 except Exception:CODE
LOWtests/e2e/conftest.py1577 except Exception:CODE
LOWtests/e2e/conftest.py1693 except Exception:CODE
LOWtests/e2e/utils.py53 except Exception:CODE
MEDIUMtests/e2e/pull_request/four_card/test_graph_mode.py674 print("Error: Timeout waiting for worker results. A worker might have crashed.")CODE
MEDIUMtests/e2e/pull_request/one_card/rlhf/conftest.py256def health(url) -> int:CODE
LOWtests/e2e/pull_request/one_card/rlhf/conftest.py169 except Exception:CODE
LOWtests/e2e/pull_request/one_card/rlhf/conftest.py213 except Exception:CODE
LOWtests/e2e/pull_request/one_card/rlhf/conftest.py259 except Exception:CODE
LOWtests/e2e/pull_request/one_card/rlhf/conftest.py194 except Exception:CODE
LOWtests/e2e/nightly/multi_node/scripts/utils.py142 except Exception:CODE
LOWtests/e2e/nightly/multi_node/scripts/utils.py145 except Exception:CODE
LOW…ts/e2e/nightly/multi_node/scripts/benchmark_results.py41 except Exception:CODE
MEDIUM…ts/e2e/nightly/multi_node/scripts/benchmark_results.py36def get_vllm_version() -> str:CODE
LOW…/e2e/nightly/multi_node/external_dp/scripts/runtime.py150 except Exception:CODE
241 more matches not shown…
Deep Nesting375 hits · 314 pts
SeverityFileLineSnippetContext
LOWcollect_env.py198CODE
LOWsetup.py74CODE
LOWsetup.py340CODE
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.py43CODE
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/package/package.py245CODE
LOWcsrc/scripts/package/package.py403CODE
LOWcsrc/scripts/package/common/py/filelist.py135CODE
LOWtools/upload_to_openlibing.py25CODE
LOWtools/upload_to_openlibing.py59CODE
LOWtools/generate_zh_docs.py309CODE
LOWtools/ai_qos.py338CODE
LOWtools/send_mm_request.py71CODE
LOWtools/check_boolean_context_manager.py38CODE
LOWtools/spec_decode_metrics.py15CODE
LOWtools/check_long_functions.py29CODE
LOWtools/check_long_functions.py82CODE
LOWtools/docs_codegen/converters.py109CODE
LOWtests/ut/test_envs.py26CODE
LOWtests/ut/kv_offload/test_mooncake_connector.py3127CODE
LOWtests/ut/kv_offload/test_mooncake_connector.py3156CODE
LOWtests/ut/kv_offload/test_mooncake_connector.py3180CODE
LOWtests/ut/distributed/ascend_store/test_backend.py393CODE
LOW…sts/ut/distributed/ascend_store/test_pool_scheduler.py800CODE
LOWtests/ut/distributed/ascend_store/test_pool_worker.py1672CODE
LOW…istributed/ascend_store/test_ascend_store_connector.py227CODE
LOWtests/ut/spec_decode/test_step3p5_source_regression.py94CODE
LOWtests/ut/spec_decode/test_step3p5_source_regression.py154CODE
315 more matches not shown…
Cross-File Repetition38 hits · 190 pts
SeverityFileLineSnippetContext
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/w8a8sc.py0310p-only w8a8 dynamic linear scheme. notes: - this scheme is discovered via 310p local registry.STRING
HIGHvllm_ascend/_310p/quantization/methods/w8a8_static.py0310p-only w8a8 dynamic linear scheme. notes: - this scheme is discovered via 310p local registry.STRING
HIGHvllm_ascend/_310p/quantization/methods/w8a8_dynamic.py0310p-only w8a8 dynamic linear scheme. notes: - this scheme is discovered via 310p local registry.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…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…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…ted/kv_transfer/kv_pool/ascend_store/pool_scheduler.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
Structural Annotation Overuse88 hits · 176 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/test_kv_c8.py397 # Step 1: Create weightsCOMMENT
LOWtests/ut/quantization/methods/test_kv_c8.py412 # Step 2: Simulate weight loadingCOMMENT
LOWtests/ut/quantization/methods/test_kv_c8.py440 # Step 3: Process after loadingCOMMENT
LOW…ghtly/single_node/models/scripts/GUIDE_AND_TEMPLATE.md322### Step 1: Write your test logic in `test_single_node.py`COMMENT
LOW…ghtly/single_node/models/scripts/GUIDE_AND_TEMPLATE.md330### Step 2: Register your function in `TEST_HANDLERS`COMMENT
LOW…ghtly/single_node/models/scripts/GUIDE_AND_TEMPLATE.md339### Step 3: Enable in YAMLCOMMENT
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
LOWvllm_ascend/core/batch_job_aware_scheduler.py262 # Step 1: estimate how many tokens this round will advanceCOMMENT
LOWvllm_ascend/core/batch_job_aware_scheduler.py269 # Step 2: simulate position after this round's executionCOMMENT
LOWvllm_ascend/core/batch_job_aware_scheduler.py272 # Step 3: estimate the NEXT round's token demandCOMMENT
LOWvllm_ascend/core/batch_job_aware_scheduler.py281 # Step 4: compute new blocks needed from that positionCOMMENT
LOWvllm_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
LOWvllm_ascend/eplb/core/policy/policy_default_eplb.py59 # Step 2: Calculate the number of items per boxCOMMENT
LOWvllm_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
LOWvllm_ascend/ops/cv_linear.py21 # Step 1: Quantize (Vector)STRING
LOWvllm_ascend/ops/cv_linear.py24 # 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
LOWvllm_ascend/ops/triton/batch_invariant/rmsnorm.py63 # Step 2: Compute RMS (root mean square) in float32COMMENT
LOWvllm_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
LOWexamples/offline_inference_audio_language.py76 # NOTE: The default `max_num_seqs` and `max_model_len` may result in OOM onCOMMENT
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
28 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/test_kv_c8.py397 # Step 1: Create weightsCOMMENT
LOWtests/ut/quantization/methods/test_kv_c8.py412 # Step 2: Simulate weight loadingCOMMENT
LOWtests/ut/quantization/methods/test_kv_c8.py440 # Step 3: Process after loadingCOMMENT
LOWvllm_ascend/core/batch_job_aware_scheduler.py262 # Step 1: estimate how many tokens this round will advanceCOMMENT
LOWvllm_ascend/core/batch_job_aware_scheduler.py269 # Step 2: simulate position after this round's executionCOMMENT
LOWvllm_ascend/core/batch_job_aware_scheduler.py272 # Step 3: estimate the NEXT round's token demandCOMMENT
LOWvllm_ascend/core/batch_job_aware_scheduler.py281 # Step 4: compute new blocks needed from that positionCOMMENT
LOWvllm_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
LOWvllm_ascend/eplb/core/policy/policy_default_eplb.py59 # Step 2: Calculate the number of items per boxCOMMENT
LOWvllm_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
LOWvllm_ascend/ops/cv_linear.py21 # Step 1: Quantize (Vector)STRING
LOWvllm_ascend/ops/cv_linear.py24 # 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
LOWvllm_ascend/ops/triton/batch_invariant/rmsnorm.py63 # Step 2: Compute RMS (root mean square) in float32COMMENT
LOWvllm_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
LOWexamples/eplb/eplb_deepseek.py108 # Step 1: pack groups to nodesCOMMENT
LOWexamples/eplb/eplb_deepseek.py117 # Step 2: construct redundant experts within nodesCOMMENT
LOWexamples/eplb/eplb_deepseek.py122 # Step 3: pack physical_experts to GPUsCOMMENT
LOWexamples/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.py234 sources = " ; ".join(f"source {f} 2>/dev/null || true" for f in _ENV_SOURCE_FILES)CODE
HIGHtools/bisect/worker_agent.py58 sources = " ; ".join(f"source {f} 2>/dev/null || true" for f in runner._ENV_SOURCE_FILES)CODE
HIGHtests/e2e/generate_coverage_html.py502 (r.coverage || {}).arch && r.coverage.arch.includes(filterType)CODE
HIGHtests/e2e/generate_coverage_html.py507 (r.coverage || {}).graph_mode && r.coverage.graph_mode.includes(filterGraph)CODE
HIGHtests/e2e/generate_coverage_html.py513 return Object.values(cov).some(arr => arr && arr.length > 0);CODE
HIGHtests/e2e/generate_coverage_html.py679 while (i < total && rows.length < pageSize && scanned < ZERO_SCAN_CAP) {CODE
HIGHtests/e2e/generate_coverage_html.py682 if (!coveredSet.has(key) && !isInvalidCombo(combo, dims)) rows.push(combo);CODE
HIGHtests/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.py246 "draft_window_size": null,STRING
HIGHvllm_ascend/ascend_config.py273 "expert_map_path": null,STRING
HIGHvllm_ascend/ascend_config.py276 "expert_map_record_path": null,STRING
HIGHvllm_ascend/ascend_config.py317 "need_timing": null,STRING
HIGHvllm_ascend/ascend_config.py340 "method": null,STRING
HIGH…nsfer/kv_pool/ascend_store/backend/mooncake_backend.py336 raise TypeError(f"tenant_id must be a string or null, got {type(value).__name__}: {value!r}")CODE
Modern Structural Boilerplate116 hits · 122 pts
SeverityFileLineSnippetContext
LOWsetup.py44logger = logging.getLogger(__name__)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.py37logger = 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.py42logger = logging.getLogger(__name__)CODE
LOWtools/bisect/state.py22logger = logging.getLogger(__name__)CODE
LOWtools/bisect/verdict.py30logger = logging.getLogger(__name__)CODE
LOWtests/e2e/conftest.py90logger = logging.getLogger(__name__)CODE
LOW…htly/multi_node/internal_dp/scripts/test_multi_node.py27logger = logging.getLogger(__name__)CODE
LOW…ly/multi_node/internal_dp/scripts/multi_node_config.py19logger = logging.getLogger(__name__)CODE
LOW…ts/e2e/nightly/multi_node/internal_dp/scripts/utils.py17__all__ = [CODE
LOWtests/e2e/nightly/multi_node/scripts/utils.py11logger = logging.getLogger(__name__)CODE
LOW…ts/e2e/nightly/multi_node/scripts/benchmark_results.py6logger = logging.getLogger(__name__)CODE
LOW…y/multi_node/external_dp/scripts/external_dp_config.py21logger = logging.getLogger(__name__)CODE
LOW…/e2e/nightly/multi_node/external_dp/scripts/runtime.py36logger = logging.getLogger(__name__)CODE
LOW…ts/e2e/nightly/multi_node/external_dp/scripts/utils.py28logger = logging.getLogger(__name__)CODE
LOW…tly/multi_node/external_dp/scripts/test_external_dp.py45logger = logging.getLogger(__name__)CODE
LOW…nightly/single_node/models/scripts/test_single_node.py28logger = logging.getLogger(__name__)CODE
LOW…ghtly/single_node/models/scripts/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.py1474__all__ = [CODE
LOWvllm_ascend/logger.py137def _setup_file_logging(log_dir: str | None = None) -> None:CODE
LOWvllm_ascend/platform.py1008def _update_compilation_modes(vllm_config: VllmConfig, ascend_config) -> None:CODE
LOWvllm_ascend/platform.py326 def update_block_size_for_backend(cls, vllm_config: VllmConfig) -> None:CODE
LOWvllm_ascend/platform.py1277def _set_pytorch_npu_alloc_env(vllm_config: VllmConfig) -> None:CODE
LOWvllm_ascend/utils.py1089def 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/attention/sfa_v1.py1252 def _update_indexcache_topk_indices(self, topk_indices: torch.Tensor) -> None:CODE
LOWvllm_ascend/core/recompute_scheduler.py196 def _update_waiting_for_remote_kv(self, request: Request) -> None:CODE
LOWvllm_ascend/core/profiling_chunk_predictor.py213 def set_target_latency(self, base_chunk_size: int, elapsed_time: float = 0.0) -> None:CODE
LOWvllm_ascend/xlite/xlite.py440 def set_xlite_attr(xlite_attr: str, layer_attr: str) -> None:CODE
LOW…end/distributed/device_communicators/pyhccl_wrapper.py256__all__ = [CODE
LOW…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py170 def update_computed_tokens(self, computed_tokens: int) -> None:CODE
LOW…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py174 def update_transferred_tokens(self, transferred_tokens: int) -> None:CODE
LOW…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py620 def update_failed_task(self, req_id: str) -> None:CODE
LOW…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py1170 def set_xfer_handshake_metadata(self, metadata: dict[int, KVConnectorHandshakeMetadata]) -> None:CODE
LOW…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py1463 def set_xfer_handshake_metadata(self, metadata: dict[int, KVConnectorHandshakeMetadata]) -> None:CODE
LOW…istributed/kv_transfer/kv_p2p/sfa_pd_rd2h/scheduler.py62 def update_computed_tokens(self, computed_tokens: int) -> None:CODE
LOW…istributed/kv_transfer/kv_p2p/sfa_pd_rd2h/scheduler.py65 def update_transferred_tokens(self, transferred_tokens: int) -> None:CODE
LOW…d/kv_transfer/kv_pool/recompute_cpu_offload/manager.py534 def update_connector_output(self, connector_output: KVConnectorOutput) -> None:CODE
LOW…tributed/kv_transfer/kv_pool/ucm_connector/__init__.py5__all__ = ["UCMConnectorV1"]CODE
LOW…ributed/kv_transfer/kv_pool/ucm_connector/connector.py265 def update_connector_output(self, connector_output: KVConnectorOutput) -> None:CODE
LOW…ributed/kv_transfer/kv_pool/ucm_connector/connector.py281 def set_xfer_handshake_metadata(self, metadata: dict[int, KVConnectorHandshakeMetadata]) -> None:CODE
LOW…ributed/kv_transfer/kv_pool/ucm_connector/connector.py94 def set_host_xfer_buffer_ops(self, copy_operation: CopyBlocksOp) -> None:CODE
LOW…ributed/kv_transfer/kv_pool/ucm_connector/connector.py214 def update_state_after_alloc(self, request: "Request", blocks: "KVCacheBlocks", num_external_tokens: int) -> None:CODE
LOW…ibuted/kv_transfer/kv_pool/ascend_store/pool_worker.py460 def set_external_slot_release_waiter(self, waiter: Callable[[int], None]) -> None:CODE
LOW…ibuted/kv_transfer/kv_pool/ascend_store/kv_transfer.py479 def _set_os_thread_name(self) -> None:CODE
LOW…ted/kv_transfer/kv_pool/ascend_store/pool_scheduler.py987 def update_finished_sending(self, finished_sending: set[str] | None) -> None:CODE
LOW…ted/kv_transfer/kv_pool/ascend_store/pool_scheduler.py991 def update_finished_recving(self, finished_recving: set[str] | None) -> None:CODE
LOWvllm_ascend/model_executor/offloader/__init__.py6__all__ = [CODE
LOWvllm_ascend/model_executor/warmup/__init__.py6__all__ = [CODE
LOWvllm_ascend/models/llama_eagle3.py14logger = logging.getLogger(__name__)CODE
56 more matches not shown…
Redundant / Tautological Comments64 hits · 99 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.py742 # Check if the start() method is called.COMMENT
LOWtests/ut/ops/test_comm_utils.py49 # Check if the output tensor is created properlyCOMMENT
LOW…four_card/rlhf/consistency/test_batch_invariant_tp4.py219 # 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
LOWtests/e2e/nightly/multi_node/scripts/run.sh66# Set transformers to offline mode to avoid downloading models during testsCOMMENT
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
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.py561 # Check if the configuration file already existsSTRING
LOWvllm_ascend/core/dyntra_lb_scheduler.py1054 # Check if the scheduling constraints are satisfied.COMMENT
LOWvllm_ascend/core/recompute_scheduler.py926 # Check if the scheduling constraints are satisfied.COMMENT
LOWvllm_ascend/core/scheduler_profiling_chunk.py687 # Check if the scheduling constraints are satisfied.COMMENT
LOW…d/distributed/kv_transfer/kv_p2p/mooncake_connector.py796 # Check if we have the remote metadata cached.COMMENT
LOW…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py656 # 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
LOWvllm_ascend/quantization/utils.py103 # Check if it's a local pathCOMMENT
LOWvllm_ascend/quantization/methods/w8a8/w8a8_mxfp8.py142 # Check if already transformed to avoid double transformationCOMMENT
LOWvllm_ascend/quantization/methods/w8a8/w8a8_mxfp8.py331 # Check if already transformed to avoid double transformationCOMMENT
LOWvllm_ascend/patch/platform/patch_balance_schedule.py733 # 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/sample/rejection_sampler.py1215 # Check if draft token is in candidatesCOMMENT
LOWvllm_ascend/sample/rejection_sampler.py1539 # Check if draft token is in candidatesCOMMENT
LOW…scend/ops/triton/v2/sample/apply_top_k_top_p_triton.py243 # Check if any of the pivots satisfy termination conditionCOMMENT
LOW…scend/ops/triton/v2/sample/apply_top_k_top_p_triton.py317 # Check if any of the pivots satisfy termination conditionCOMMENT
LOW…scend/ops/triton/v2/sample/apply_top_k_top_p_triton.py496 # Check if the pivot satisfies termination conditionCOMMENT
LOW…scend/ops/triton/v2/sample/apply_top_k_top_p_triton.py651 # Check if the pivot satisfies termination conditionCOMMENT
LOW…scend/ops/triton/v2/sample/apply_top_k_top_p_triton.py714 # Check if the pivot satisfies termination conditionCOMMENT
LOWvllm_ascend/worker/worker.py1041 # Check if profiling is enabled (RFC #6954 - align with upstream vLLM)COMMENT
LOWvllm_ascend/worker/model_runner_v1.py2046 # Check if the scheduler signaled that calibration is complete.COMMENT
LOWvllm_ascend/worker/model_runner_v1.py4199 # Check if shared_by contains both MambaSpec and HiddenStateCacheSpec.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.py760 # Check if this test covers any line of this functionCOMMENT
4 more matches not shown…
AI Structural Patterns87 hits · 80 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
LOWcsrc/scripts/util/build_opp_kernel_static.py226CODE
LOWtests/ut/test_ascend_forward_context.py21CODE
LOWtests/ut/attention/utils.py139CODE
LOWtests/ut/attention/a2/test_attention_v1_precision.py129CODE
LOWtests/ut/distributed/ascend_store/test_pool_worker.py42CODE
LOWtests/ut/distributed/ascend_store/test_pool_worker.py1528CODE
LOWtests/ut/model_executor/warmup/helpers.py12CODE
LOWtests/ut/ops/a2/test_token_dispatcher.py48CODE
LOWtests/e2e/conftest.py286CODE
LOWtests/e2e/conftest.py966CODE
LOWtests/e2e/conftest.py1398CODE
LOW…/singlecard_ops/test_kimi_kda_recurrent_ascendc_npu.py61CODE
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.py59CODE
LOWvllm_ascend/_310p/model_runner_310p.py571CODE
LOWvllm_ascend/_310p/npu_input_batch.py10CODE
LOWvllm_ascend/_310p/fused_moe/fused_moe.py103CODE
LOWvllm_ascend/_310p/ops/fla/gdn_310.py146CODE
LOWvllm_ascend/attention/context_parallel/common_cp.py213CODE
LOW…stributed/kv_transfer/kv_pool/ascend_store/metadata.py490CODE
LOW…stributed/kv_transfer/kv_pool/ascend_store/metadata.py752CODE
LOW…stributed/kv_transfer/kv_pool/ascend_store/metadata.py871CODE
LOW…stributed/kv_transfer/kv_pool/ascend_store/metadata.py961CODE
LOW…stributed/kv_transfer/kv_pool/ascend_store/metadata.py1159CODE
LOW…ibuted/kv_transfer/kv_pool/ascend_store/kv_transfer.py599CODE
LOW…ted/kv_transfer/kv_pool/ascend_store/pool_scheduler.py1028CODE
LOWvllm_ascend/models/minimax_m3/minimax_m3.py149CODE
LOWvllm_ascend/models/minimax_m3/minimax_m3.py694CODE
LOW…m_ascend/spec_decode/extract_hidden_states_proposer.py115CODE
LOWvllm_ascend/spec_decode/ngram_proposer_npu.py14CODE
LOWvllm_ascend/spec_decode/medusa_proposer.py16CODE
LOWvllm_ascend/spec_decode/llm_base_proposer.py575CODE
LOWvllm_ascend/spec_decode/llm_base_proposer.py769CODE
LOWvllm_ascend/spec_decode/suffix_proposer.py10CODE
LOWvllm_ascend/spec_decode/step3p5.py209CODE
LOWvllm_ascend/spec_decode/step3p5.py322CODE
LOWvllm_ascend/spec_decode/ngram_proposer.py15CODE
LOWvllm_ascend/quantization/methods/w4a8/w4a8_mxfp4.py97CODE
LOWvllm_ascend/quantization/methods/w8a8/w8a8_static.py117CODE
LOW…cend/quantization/methods/w4a4/w4a4_mxfp4_flatquant.py143CODE
LOWvllm_ascend/quantization/methods/wna16/w8a16.py72CODE
LOWvllm_ascend/patch/platform/patch_fused_moe.py91CODE
LOW…lm_ascend/patch/platform/patch_kv_cache_coordinator.py503CODE
LOW…lm_ascend/patch/platform/patch_kv_cache_coordinator.py573CODE
LOWvllm_ascend/patch/worker/patch_kimi_k25.py73CODE
LOWvllm_ascend/sample/rejection_sampler.py1130CODE
LOWvllm_ascend/sample/rejection_sampler.py1482CODE
LOWvllm_ascend/ops/linear.py159CODE
LOWvllm_ascend/ops/linear.py235CODE
LOWvllm_ascend/ops/linear.py284CODE
LOWvllm_ascend/ops/linear.py374CODE
LOWvllm_ascend/ops/activation.py32CODE
27 more matches not shown…
Hallucination Indicators7 hits · 70 pts
SeverityFileLineSnippetContext
CRITICALvllm_ascend/attention/sfa_v1.py701 weight_uq_qr = self.q_proj.weight.data.T.contiguous()CODE
CRITICALvllm_ascend/spec_decode/llm_base_proposer.py435 self.model.model.embed_tokens.weight.cpu(),CODE
CRITICALvllm_ascend/ops/triton/triton_utils.py49 device_properties: dict[str, Any] = triton.runtime.driver.active.utils.get_device_properties(CODE
CRITICALvllm_ascend/ops/triton/rms_norm.py51 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
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/ascend_forward_context.py281Select the MoE communication method according to parallel settings, device generation, and token count. 1. Non-STRING
HIGHvllm_ascend/_310p/attention/attention_v1.py311 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.py655Look up and initialize the appropriate xlite model adapter based on the architecture specified in vLLM config and thSTRING
HIGHvllm_ascend/xlite/xlite.py716Proxy unknown attributes to the wrapped runnable model. Args: key (str): The attribute name requestSTRING
HIGH…nsfer/kv_pool/ascend_store/backend/mooncake_backend.py342 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.py388 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/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 Vocabulary12 hits · 30 pts
SeverityFileLineSnippetContext
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.py146 # Should just pass through without maskingCOMMENT
MEDIUMtests/e2e/pull_request/one_card/rlhf/conftest.py74# Server harnessCOMMENT
LOWvllm_ascend/attention/attention_v1.py1358 # just use getattr to avoid attribute error.COMMENT
MEDIUMvllm_ascend/core/profiling_chunk_predictor.py138 # Keep a robust fallback for environments where least-squares mayCOMMENT
MEDIUMvllm_ascend/ops/triton/rope.py273 # TODO: use a more robust method to get BLOCK_SIZE_HEADCOMMENT
LOWvllm_ascend/worker/block_table.py189 # NOTE(woosuk): We can't simply use `token_indices // block_size`COMMENT
LOWvllm_ascend/worker/v2/model_runner.py147 # 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
Slop Phrases4 hits · 15 pts
SeverityFileLineSnippetContext
LOW…ransfer/sparse_kv_offload/sparse_kv_offload_manager.py71 # 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
Modern AI Meta-Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
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.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.py716 # the trailing context window plus the whole current draft block.COMMENT
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 Names6 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/ut/kv_offload/test_mooncake_hybrid_connector.py109 def handle_request(req_meta: dict[str, Any]):CODE
LOWtests/ut/kv_offload/test_mooncake_hybrid_connector.py151 def handle_request(req_meta: dict[str, Any]):CODE
LOWtests/ut/kv_offload/test_mooncake_hybrid_connector.py221 def handle_request(req_meta: dict[str, Any]):CODE
LOWtests/ut/kv_offload/test_mooncake_connector.py836 def handle_request(req_meta: dict[str, Any]):CODE
LOWtests/ut/kv_offload/test_mooncake_connector.py877 def handle_request(req_meta: dict[str, Any]):CODE
LOWtests/ut/kv_offload/test_mooncake_connector.py946 def handle_request(req_meta: dict[str, Any]):CODE
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/ut/attention/a2/test_mla_precision.py205 for layer_name in ["placeholder"]:CODE
LOWtests/ut/attention/a2/test_mla_precision.py210 ["placeholder"],CODE
LOWtests/ut/attention/a2/test_attention_v1_precision.py290 ["placeholder"],CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWvllm_ascend/worker/model_runner_v1.py2736 # TODO: implement PR 28597 from vllmCOMMENT