Repository Analysis

vllm-project/vllm-ascend

Community maintained hardware plugin for vLLM on Ascend

14.2 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,504 GitHub stars. SynthScan v2.0 examined 642,386 lines of code across 2762 source files, recording 6242 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 14.2 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.2
Adjusted Score
14.2
Raw Score
100%
Time Factor
2026-07-14
Last Push
2.5K
Stars
C++
Language
642.4K
Lines of Code
2.8K
Files
6.2K
Pattern Hits
2026-07-14
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 5HIGH 80MEDIUM 1210LOW 4947

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 6242 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 Identifiers2942 hits · 2918 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
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.py306def maybe_download_from_modelscope(CODE
LOWtools/check_python_src_init.py28def check_init_file_in_package(directory):CODE
LOWtools/ai_qos.py50def _unset_state_parse_failed(state_path: Path) -> None:CODE
LOWtools/ai_qos.py56def _parse_and_validate_unset_state(data: object) -> tuple[dict, list[str], dict[str, list[int]], dict[str, list[int]]]:CODE
LOWtools/ai_qos.py195def _capture_original_sdma_mata(CODE
LOWtools/ai_qos.py224def _merge_baseline_for_new_devices(CODE
LOWtools/ai_qos.py249def _load_first_apply_baseline(CODE
LOWtools/docs_codegen/scanner.py208 def _validate_unique_block_names(blocks: Sequence[ModelCodeBlock]) -> None:CODE
LOWtools/docs_codegen/generator.py115 def _validate_generated_script(generated_script: GeneratedScript, *, block: ModelCodeBlock) -> None:CODE
LOWtools/docs_codegen/generator.py138def create_default_generator_service(repo_root: str | Path | None = None) -> GeneratorService:CODE
LOWtools/docs_codegen/utils.py179def substitute_template_positionals(CODE
LOWtools/docs_codegen/converters.py232def _resolve_single_node_server_port(envs: Mapping[str, ScalarValue]) -> ScalarValue:CODE
LOWtools/docs_codegen/converters.py240def _convert_single_node_case(CODE
LOWtools/docs_codegen/converters.py366def _convert_external_dp_template(loaded_yaml: LoadedYaml, *, block: ModelCodeBlock) -> GeneratedScript:CODE
LOWtools/docs_codegen/converters.py417def _convert_external_dp_launch(loaded_yaml: LoadedYaml, *, block: ModelCodeBlock) -> GeneratedScript:CODE
2882 more matches not shown…
Decorative Section Separators699 hits · 2234 pts
SeverityFileLineSnippetContext
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/ngram_spec_decode/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/ngram_spec_decode/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------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/kv_compress_epilog/CMakeLists.txt1# ----------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/kv_compress_epilog/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…rc/attention/kv_compress_epilog/op_host/CMakeLists.txt8# ======================================================================================================================COMMENT
MEDIUMcsrc/attention/compressor/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/compressor/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/compressor/README.md185 # -------------COMMENT
MEDIUMcsrc/attention/compressor/README.md339 # -------------COMMENT
MEDIUMcsrc/attention/compressor/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/compressor/op_host/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/lightning_indexer/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/lightning_indexer/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/lightning_indexer/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/lightning_indexer/op_host/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…/attention/vllm_quant_lightning_indexer/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…/attention/vllm_quant_lightning_indexer/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/vllm_quant_lightning_indexer/README.md87 # -------------COMMENT
MEDIUMcsrc/attention/vllm_quant_lightning_indexer/README.md165 # -------------COMMENT
MEDIUM…on/vllm_quant_lightning_indexer/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…on/vllm_quant_lightning_indexer/op_host/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…tention/kv_quant_sparse_flash_attention/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…tention/kv_quant_sparse_flash_attention/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…kv_quant_sparse_flash_attention/op_host/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUM…kv_quant_sparse_flash_attention/op_host/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/store_kv_block/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/store_kv_block/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/store_kv_block/op_host/CMakeLists.txt8# ======================================================================================================================COMMENT
MEDIUMcsrc/attention/rms_norm_dynamic_quant/CMakeLists.txt1# -----------------------------------------------------------------------------------------------------------COMMENT
MEDIUMcsrc/attention/rms_norm_dynamic_quant/CMakeLists.txt9# -----------------------------------------------------------------------------------------------------------COMMENT
639 more matches not shown…
Self-Referential Comments454 hits · 1358 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/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/vllm_compat.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/test_sfa_cp.py13# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/attention/utils.py330 # Create a realistic slot mapping that corresponds to the block tableCOMMENT
MEDIUMtests/ut/attention/a2/test_sfa_cp_precision.py16# This file is a part of the vllm-ascend project.COMMENT
MEDIUMtests/ut/attention/a2/test_mla_v1.py1880 # Create a mock metadata where prefill_metadata.chunked_context.seq_tot is an empty list, so that iters == 0COMMENT
MEDIUMtests/ut/attention/a2/test_mla_cp_precision.py16# This file is a part of the vllm-ascend project.COMMENT
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…ts/ut/core/test_short_request_first_scheduler_mixin.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
394 more matches not shown…
Over-Commented Block819 hits · 770 pts
SeverityFileLineSnippetContext
LOWcodecov.yml1#COMMENT
LOWcollect_env.py1#COMMENT
LOWsetup.py1#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 "gmm/grouped_matmul_swiglu_quant_v2/grouped_matmul_swiglu_quant_v2_torch_adpt.h"COMMENT
LOWcsrc/torch_binding_meta.cpp1761 ops.impl("device_print_tensor", &vllm_ascend::meta::device_print_tensor_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…ntion/ngram_spec_decode/ngram_spec_decode_torch_adpt.h1/*COMMENT
LOW…ntion/ngram_spec_decode/ngram_spec_decode_torch_adpt.h41 // CopyOut path issues DataCopyPad GM writes whose burst length canCOMMENT
LOW…tion/ngram_spec_decode/op_kernel/ngram_spec_decode.cpp1// Licensed under the BSD 3-Clause License (the "License");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…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…lightning_indexer/op_kernel/lightning_indexer_common.h161COMMENT
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
LOW…ion/op_host/kv_quant_sparse_flash_attention_tiling.cpp121#define OP_LOGE_FOR_INVALID_VALUE_WITH_REASON(opname, param, actual, reason) \COMMENT
LOW…5/kv_quant_sparse_flash_attention_service_vector_mla.h21#include "lib/matmul_intf.h"COMMENT
LOW…el/arch35/kv_quant_sparse_flash_attention_kernel_mla.h21#include "kernel_tiling/kernel_tiling.h"COMMENT
LOW…h35/kv_quant_sparse_flash_attention_service_cube_mla.h21#include "lib/matrix/matmul/tiling.h"COMMENT
LOW…h35/kv_quant_sparse_flash_attention_service_cube_mla.h381// /* 生成Arg Traits, kernel中只需要调用ARGS_TRAITS就可以获取所有CubeBlock中的模板参数 */COMMENT
LOW…arch35/kv_quant_sparse_flash_attention_common_arch35.h21#include "../../sparse_flash_attention/arch35/common/util_regbase.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/common/op_kernel/buffer_manager.h61#endifCOMMENT
LOWcsrc/attention/common/op_kernel/offset_calculator.h21#include "kernel_operator.h"COMMENT
LOW…ernel/arch35/sparse_flash_attention_service_cube_mla.h21#include "lib/matmul_intf.h"COMMENT
LOW…n/op_kernel/arch35/sparse_flash_attention_kernel_mla.h21#include "kernel_tiling/kernel_tiling.h"COMMENT
LOW…nel/arch35/sparse_flash_attention_service_vector_mla.h21#include "lib/matmul_intf.h"COMMENT
LOW…c/attention/load_index_kv_cache/op_host/CMakeLists.txt1# ----------------------------------------------------------------------------COMMENT
LOW…c/attention/load_index_kv_cache/op_host/CMakeLists.txt21COMMENT
LOW…ad_index_kv_cache/op_host/load_index_kv_cache_tiling.h21#include <iostream>COMMENT
LOWcsrc/attention/store_kv_block_metadata/CMakeLists.txt1# ---------------------------------------------------------------------------------------------------------COMMENT
LOW…lock_metadata/op_api/aclnn_store_kv_block_metadata.cpp21#include "aclnn_kernels/common/op_error_check.h"COMMENT
LOW…tion/indexer_compress_epilog_v2/op_host/CMakeLists.txt1# ----------------------------------------------------------------------------COMMENT
LOW…tion/indexer_compress_epilog_v2/op_host/CMakeLists.txt21COMMENT
LOW…_epilog_v2/op_host/indexer_compress_epilog_v2_tiling.h21#include <iostream>COMMENT
LOW…_epilog_v2/op_kernel/indexer_compress_epilog_v2_base.h281#endifCOMMENT
LOW…on/recurrent_gated_delta_rule_v310/op_host/math_util.h61#endif // _MATH_UTIL_H_COMMENT
LOW…tention/indexer_compress_epilog/op_host/CMakeLists.txt1# ----------------------------------------------------------------------------COMMENT
759 more matches not shown…
Unused Imports321 hits · 286 pts
SeverityFileLineSnippetContext
LOWtools/check_symbolic_meta.py20CODE
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/distributed/ascend_store/test_backend.py24CODE
LOW…sts/ut/distributed/ascend_store/test_pool_scheduler.py21CODE
LOWtests/ut/distributed/ascend_store/test_config_data.py22CODE
LOWtests/ut/distributed/ascend_store/test_pool_worker.py21CODE
LOWtests/ut/distributed/ascend_store/test_coordinator.py23CODE
LOWtests/ut/distributed/ascend_store/test_kv_transfer.py23CODE
LOW…istributed/ascend_store/test_ascend_store_connector.py22CODE
LOWtests/ut/_tools/test_docs_codegen.py1CODE
LOWtests/ut/spec_decode/test_step3p5_source_regression.py10CODE
LOWtests/ut/spec_decode/test_utils.py9CODE
LOWtests/ut/spec_decode/test_speculators_vwn_eagle3.py22CODE
LOW…/ut/spec_decode/test_extract_hidden_states_proposer.py22CODE
LOWtests/ut/spec_decode/test_llm_base_proposer.py19CODE
LOW…ut/patch/platform/test_patch_glm47_tool_call_parser.py28CODE
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/ops/test_moe_mlp.py8CODE
LOWtests/e2e/coverage_taxonomy.py23CODE
LOWtests/e2e/generate_coverage_html.py13CODE
LOW…pull_request/two_card/test_sequence_parallelism_moe.py48CODE
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…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
LOW…ts/e2e/pull_request/one_card/spec_decode/test_ngram.py1CODE
LOWtests/e2e/pull_request/one_card/spec_decode/utils.py1CODE
LOW…est/one_card/spec_decode/test_extract_hidden_states.py28CODE
LOW…ll_request/one_card/spec_decode/test_draft_parallel.py1CODE
LOW…ull_request/one_card/compile/test_norm_quant_fusion.py27CODE
LOW…glecard_ops/test_chunk_gated_delta_rule_fwd_h_aclnn.py8CODE
LOW…single_node/ops/singlecard_ops/test_chunk_fwd_o_310.py7CODE
LOW…ts/e2e/nightly/multi_node/internal_dp/scripts/utils.py3CODE
LOW…ts/e2e/nightly/multi_node/internal_dp/scripts/utils.py3CODE
LOW…ts/e2e/nightly/multi_node/internal_dp/scripts/utils.py3CODE
LOW…ts/e2e/nightly/multi_node/internal_dp/scripts/utils.py3CODE
LOW…ts/e2e/nightly/multi_node/internal_dp/scripts/utils.py3CODE
LOW…ts/e2e/nightly/multi_node/internal_dp/scripts/utils.py3CODE
LOW…ts/e2e/nightly/multi_node/external_dp/scripts/utils.py29CODE
LOW…node/ops/singlecard_ops/test_vocabparallelembedding.py5CODE
LOW…node/ops/singlecard_ops/test_vocabparallelembedding.py7CODE
LOW…le_node/ops/singlecard_ops/test_compressor_metadata.py8CODE
261 more matches not shown…
Excessive Try-Catch Wrapping253 hits · 278 pts
SeverityFileLineSnippetContext
MEDIUMsetup.py230 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.py269 except Exception as e: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/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/build_manager.py73 except Exception: # noqa: BLE001 - best effort; fall back to rebuildCODE
LOWtools/bisect/vllm_compat.py49 except Exception as exc: # noqa: BLE001 - vllm may be absent/brokenCODE
LOWtests/ut/attention/a2/test_sfa_v1_precision.py47 except Exception:CODE
LOWtests/ut/ops/a3_2/test_select_experts.py54 except Exception as exc:CODE
MEDIUMtests/e2e/conftest.py566def _read_output(self, pipe, prefix):CODE
MEDIUMtests/e2e/conftest.py722def _read_output(self, pipe, prefix):CODE
LOWtests/e2e/conftest.py350 except Exception:CODE
LOWtests/e2e/conftest.py573 except Exception as e:CODE
LOWtests/e2e/conftest.py729 except Exception as e:CODE
LOWtests/e2e/conftest.py941 except Exception:CODE
LOWtests/e2e/conftest.py1196 except Exception as e:CODE
LOWtests/e2e/conftest.py1319 except Exception as e:CODE
LOWtests/e2e/conftest.py1378 except Exception as e:CODE
LOWtests/e2e/conftest.py1464 except Exception:CODE
LOWtests/e2e/conftest.py1532 except Exception:CODE
LOWtests/e2e/conftest.py1567 except Exception:CODE
LOWtests/e2e/conftest.py1683 except Exception:CODE
LOWtests/e2e/utils.py53 except Exception:CODE
MEDIUMtests/e2e/pull_request/four_card/test_graph_mode.py650 print("Error: Timeout waiting for worker results. A worker might have crashed.")CODE
LOW…pull_request/two_card/test_sequence_parallelism_moe.py385 except Exception:CODE
LOW…pull_request/two_card/test_sequence_parallelism_moe.py411 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.py213 except Exception:CODE
LOW…tly/multi_node/external_dp/scripts/test_external_dp.py72 except Exception as exc: # pragma: no cover - diagnostic onlyCODE
LOWtests/e2e/nightly/scripts/update_good_table.py52 except Exception:CODE
LOW…s/multicard_ops_a3/test_dispatch_gmm_combine_decode.py533 except Exception as e:CODE
LOW…ops/singlecard_ops/triton/test_compute_slot_mapping.py105 except Exception as e:CODE
MEDIUM…ops/singlecard_ops/triton/test_compute_slot_mapping.py106 print(f"Error during executionm: {e}")CODE
LOW…kills/vllm-ascend-release/scripts/scan_release_bugs.py71 except Exception:CODE
LOW…kills/vllm-ascend-release/scripts/scan_release_bugs.py92 except Exception:CODE
MEDIUM…lm-ascend-release/scripts/update_version_references.py223 print(f"Error: {e}")CODE
MEDIUM…llm-ascend-release/scripts/update_checklist_section.py134 print(f"Error: Content file not found: {content_path}")CODE
LOW…ts/skills/vllm-ascend-release/scripts/fetch_commits.py1540 except Exception as e:CODE
MEDIUM…ts/skills/vllm-ascend-release/scripts/fetch_commits.py1541 print(f"Error: {e}")CODE
MEDIUM…ills/vllm-ascend-release/scripts/generate_checklist.py57 print(f"Error: Template not found at {template_path}")CODE
LOW…ills/vllm-ascend-release/scripts/scan_test_coverage.py137 except Exception:CODE
LOW…ills/vllm-ascend-release/scripts/scan_test_coverage.py158 except Exception:CODE
193 more matches not shown…
Deep Nesting291 hits · 254 pts
SeverityFileLineSnippetContext
LOWcollect_env.py198CODE
LOWsetup.py74CODE
LOWsetup.py368CODE
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/generate_zh_docs.py114CODE
LOWtools/generate_zh_docs.py216CODE
LOWtools/ai_qos.py340CODE
LOWtools/check_boolean_context_manager.py38CODE
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.py2464CODE
LOWtests/ut/kv_offload/test_mooncake_connector.py2493CODE
LOWtests/ut/kv_offload/test_mooncake_connector.py2517CODE
LOWtests/ut/attention/a2/test_sfa_cp_precision.py275CODE
LOWtests/ut/attention/a2/test_sfa_cp_precision.py573CODE
LOWtests/ut/attention/a2/test_attention_cp_precision.py308CODE
LOWtests/ut/spec_decode/test_step3p5_source_regression.py106CODE
LOWtests/ut/spec_decode/test_step3p5_source_regression.py166CODE
LOW…ch/platform/test_patch_deepseek_v4_tool_call_parser.py32CODE
LOW…tch/platform/test_patch_minimax_m2_tool_call_parser.py69CODE
LOWtests/ut/ops/test_fused_moe.py267CODE
LOWtests/ut/worker/a2/test_block_table.py89CODE
LOWtests/ut/worker/a2/test_block_table.py252CODE
LOWtests/e2e/conftest.py874CODE
LOWtests/e2e/conftest.py335CODE
LOWtests/e2e/conftest.py379CODE
LOWtests/e2e/conftest.py566CODE
LOWtests/e2e/conftest.py642CODE
LOWtests/e2e/conftest.py722CODE
LOWtests/e2e/generate_coverage_html.py120CODE
LOWtests/e2e/generate_coverage_html.py134CODE
LOWtests/e2e/pull_request/four_card/test_graph_mode.py608CODE
LOW…l_request/four_card/spec_decode/test_mtp_qwen3_next.py38CODE
LOW…pull_request/four_card/spec_decode/test_mtp_step3p5.py39CODE
LOW…pull_request/two_card/test_sequence_parallelism_moe.py322CODE
LOW…/pull_request/two_card/spec_decode/test_spec_decode.py71CODE
LOW…/pull_request/two_card/spec_decode/test_spec_decode.py247CODE
231 more matches not shown…
Cross-File Repetition46 hits · 230 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…/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
HIGH…2e/pull_request/two_card/test_flashcomm_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…2e/pull_request/two_card/lora/test_qwen3moe_lora_tp.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/modelslim_config.py0create a quantization scheme instance for a layer. args: quant_description: the quantization description dictionary. preSTRING
HIGHvllm_ascend/quantization/fp8_config.py0create a quantization scheme instance for a layer. args: quant_description: the quantization description dictionary. preSTRING
HIGHvllm_ascend/quantization/modelslim_config.py0create a quantization scheme instance for a layer. args: quant_description: the quantization description dictionary. preSTRING
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/sfa_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
HIGH…m_ascend/compilation/passes/qknorm_rope_fusion_pass.py0check if the pass is applicable for the current configuration.STRING
HIGH…nd/compilation/passes/allreduce_rmsnorm_fusion_pass.py0check if the pass is applicable for the current configuration.STRING
HIGH…lm_ascend/compilation/passes/norm_quant_fusion_pass.py0check if the pass is applicable for the current configuration.STRING
HIGHvllm_ascend/compilation/passes/sequence_parallelism.py0check if the pass is applicable for the current configuration.STRING
Structural Annotation Overuse66 hits · 129 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
LOWtests/ut/quantization/methods/test_kv_c8.py393 # Step 1: Create weightsCOMMENT
LOWtests/ut/quantization/methods/test_kv_c8.py408 # Step 2: Simulate weight loadingCOMMENT
LOWtests/ut/quantization/methods/test_kv_c8.py436 # Step 3: Process after loadingCOMMENT
LOW…ghtly/single_node/models/scripts/GUIDE_AND_TEMPLATE.md279### Step 1: Write your test logic in `test_single_node.py`COMMENT
LOW…ghtly/single_node/models/scripts/GUIDE_AND_TEMPLATE.md287### Step 2: Register your function in `TEST_HANDLERS`COMMENT
LOW…ghtly/single_node/models/scripts/GUIDE_AND_TEMPLATE.md296### 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.md278### Step 1: Baseline (No Cache)COMMENT
LOW…rials/features/pd_colocated_mooncake_multi_instance.md290### Step 2: Local DRAM HitCOMMENT
LOW…rials/features/pd_colocated_mooncake_multi_instance.md295### Step 3: Cross-Node DRAM HitCOMMENT
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
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
LOW…les/external_online_dp/dp_load_balance_proxy_server.py22# Step 1: Start Your Backend ServersCOMMENT
LOW…les/external_online_dp/dp_load_balance_proxy_server.py34# Step 2: Start the Proxy ServerCOMMENT
LOW…les/external_online_dp/dp_load_balance_proxy_server.py45# Step 3: Send a Request to the ProxyCOMMENT
LOW…les/external_online_dp/dp_load_balance_proxy_server.py67# Step 4: Health CheckCOMMENT
LOWexamples/disaggregated_encoder/disagg_epd_proxy.py404 # Step 1: Process through Encoder instance (if has MM input)COMMENT
LOWexamples/disaggregated_encoder/disagg_epd_proxy.py411 # Step 2: Process through Prefill instanceCOMMENT
LOWexamples/disaggregated_encoder/disagg_epd_proxy.py418 # Step 3: Process through Decode instanceCOMMENT
LOWexamples/disaggregated_encoder/disagg_epd_proxy.py485 # Step 1: Process through Encoder instance (if has MM input)COMMENT
LOWexamples/disaggregated_encoder/disagg_epd_proxy.py492 # Step 2: Process through Prefill instanceCOMMENT
LOWexamples/disaggregated_encoder/disagg_epd_proxy.py499 # Step 3: Process through Decode instanceCOMMENT
LOWexamples/dynamic_bucket_load_balancer/README.md59## Step 1: Start Your Backend ServersCOMMENT
LOWexamples/dynamic_bucket_load_balancer/README.md70## Step 2: Start the Proxy ServerCOMMENT
6 more matches not shown…
Cross-Language Confusion19 hits · 110 pts
SeverityFileLineSnippetContext
HIGHtools/bisect/runner.py243 sources = " ; ".join(f"source {f} 2>/dev/null || true" for f in _ENV_SOURCE_FILES)CODE
HIGHtools/bisect/worker_agent.py57 sources = " ; ".join(f"source {f} 2>/dev/null || true" for f in runner._ENV_SOURCE_FILES)CODE
HIGHtests/e2e/generate_coverage_html.py500 (r.coverage || {}).arch && r.coverage.arch.includes(filterType)CODE
HIGHtests/e2e/generate_coverage_html.py505 (r.coverage || {}).graph_mode && r.coverage.graph_mode.includes(filterGraph)CODE
HIGHtests/e2e/generate_coverage_html.py511 return Object.values(cov).some(arr => arr && arr.length > 0);CODE
HIGHtests/e2e/generate_coverage_html.py677 while (i < total && rows.length < pageSize && scanned < ZERO_SCAN_CAP) {CODE
HIGHtests/e2e/generate_coverage_html.py680 if (!coveredSet.has(key) && !isInvalidCombo(combo, dims)) rows.push(combo);CODE
HIGHtests/e2e/generate_coverage_html.py685 scanCapped: scanned >= ZERO_SCAN_CAP && rows.length < pageSize,CODE
HIGHtests/e2e/generate_coverage_html.py403 let currentSort = {col: null, asc: true};CODE
HIGHtests/e2e/generate_coverage_html.py419 const c = r.card_count || 1;CODE
HIGHtests/e2e/generate_coverage_html.py456 const isMarked = Object.values(cov).some(arr => arr && arr.length > 0);CODE
HIGHtests/e2e/generate_coverage_html.py532 `<a href="#" onclick="window._hmFilter=null;filter();return false;" style="color:#2563eb">✕ clear</a>`;CODE
HIGHtests/e2e/generate_coverage_html.py590 return (vals && vals.length) ? new Set(vals) : new Set();CODE
HIGHtests/e2e/generate_coverage_html.py627 for (const v of arr) next.push([...combo, v]);CODE
HIGHtests/e2e/generate_coverage_html.py705 return (vals && vals.length) ? vals.filter(v => allowed.includes(v)) : [];CODE
HIGHtests/e2e/generate_coverage_html.py711 for (const c of combos) for (const v of s) next.push([...c, v]);CODE
HIGHtests/e2e/generate_coverage_html.py722 entry.tests.push(r);CODE
HIGHtests/e2e/generate_coverage_html.py864 if (window._explorerState && explorerPage === 0) tbody.innerHTML = html;CODE
HIGHtests/e2e/generate_coverage_html.py947 window._hmFilter = null;CODE
Verbosity Indicators51 hits · 104 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
LOWtests/ut/quantization/methods/test_kv_c8.py393 # Step 1: Create weightsCOMMENT
LOWtests/ut/quantization/methods/test_kv_c8.py408 # Step 2: Simulate weight loadingCOMMENT
LOWtests/ut/quantization/methods/test_kv_c8.py436 # Step 3: Process after loadingCOMMENT
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
LOW…les/external_online_dp/dp_load_balance_proxy_server.py22# Step 1: Start Your Backend ServersCOMMENT
LOW…les/external_online_dp/dp_load_balance_proxy_server.py34# Step 2: Start the Proxy ServerCOMMENT
LOW…les/external_online_dp/dp_load_balance_proxy_server.py45# Step 3: Send a Request to the ProxyCOMMENT
LOW…les/external_online_dp/dp_load_balance_proxy_server.py67# Step 4: Health CheckCOMMENT
LOWexamples/disaggregated_encoder/disagg_epd_proxy.py404 # Step 1: Process through Encoder instance (if has MM input)COMMENT
LOWexamples/disaggregated_encoder/disagg_epd_proxy.py411 # Step 2: Process through Prefill instanceCOMMENT
LOWexamples/disaggregated_encoder/disagg_epd_proxy.py418 # Step 3: Process through Decode instanceCOMMENT
LOWexamples/disaggregated_encoder/disagg_epd_proxy.py485 # Step 1: Process through Encoder instance (if has MM input)COMMENT
LOWexamples/disaggregated_encoder/disagg_epd_proxy.py492 # Step 2: Process through Prefill instanceCOMMENT
LOWexamples/disaggregated_encoder/disagg_epd_proxy.py499 # Step 3: Process through Decode instanceCOMMENT
LOW…ted/epd_load_balance_proxy_layerwise_server_example.py22# Step 1: Start Your Backend ServersCOMMENT
LOW…ted/epd_load_balance_proxy_layerwise_server_example.py38# Step 2: Start the Proxy ServerCOMMENT
LOW…ted/epd_load_balance_proxy_layerwise_server_example.py65# Step 3: Send a Request to the ProxyCOMMENT
LOW…ted/epd_load_balance_proxy_layerwise_server_example.py78# Step 4: Health CheckCOMMENT
Redundant / Tautological Comments61 hits · 94 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.py378 # Check if the start() method is called.COMMENT
LOWtests/ut/ops/test_comm_utils.py49 # Check if the output tensor is created properlyCOMMENT
LOW…2e/pull_request/two_card/lora/test_qwen3moe_lora_tp.py44 # Print the outputs.COMMENT
LOWtests/e2e/pull_request/one_card/test_batch_invariant.py327 # Check if tokens match firstCOMMENT
LOWtests/e2e/pull_request/one_card/test_batch_invariant.py601 # Check if tokens match firstCOMMENT
LOW…est/one_card/compile/test_graphex_norm_quant_fusion.py246 # Check if fusion operator is availableCOMMENT
LOW…est/one_card/compile/test_graphex_norm_quant_fusion.py269 # 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.sh40# 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.py187 # Check if the configuration file already existsSTRING
LOWvllm_ascend/core/recompute_scheduler.py783 # Check if the scheduling constraints are satisfied.COMMENT
LOWvllm_ascend/core/scheduler_profiling_chunk.py683 # Check if the scheduling constraints are satisfied.COMMENT
LOWvllm_ascend/core/scheduler_dynamic_batch.py506 # Check if the scheduling constraints are satisfied.COMMENT
LOW…d/distributed/kv_transfer/kv_p2p/mooncake_connector.py746 # Check if we have the remote metadata cached.COMMENT
LOW…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py647 # Check if we have the remote metadata cached.COMMENT
LOW…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py732 # Check if we have the remote metadata cached.COMMENT
LOWvllm_ascend/quantization/utils.py52 # Check if it's a local pathCOMMENT
LOWvllm_ascend/quantization/methods/w8a8_mxfp8.py122 # Check if already transformed to avoid double transformationCOMMENT
LOWvllm_ascend/quantization/methods/w8a8_mxfp8.py354 # Check if already transformed to avoid double transformationCOMMENT
LOWvllm_ascend/patch/platform/patch_balance_schedule.py683 # Check if the scheduling constraints are satisfied.COMMENT
LOWvllm_ascend/patch/platform/patch_speculative_config.py86 # Check if this is an MTP variantCOMMENT
LOWvllm_ascend/patch/worker/patch_v2/patch_uva.py37 # Check if current version is the one with UVA disabledCOMMENT
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.py1050 # Check if draft token is in candidatesCOMMENT
LOWvllm_ascend/sample/rejection_sampler.py1368 # Check if draft token is in candidatesCOMMENT
LOWvllm_ascend/ops/linear_op.py383 # Check if w8a8 quantization is enabled. If not, communicate immediately.COMMENT
LOWvllm_ascend/ops/flashcomm2_oshard_manager.py53 # Check if the layer is a target for sharding.COMMENT
LOWvllm_ascend/worker/worker.py936 # Check if profiling is enabled (RFC #6954 - align with upstream vLLM)COMMENT
LOWvllm_ascend/worker/model_runner_v1.py1994 # Check if the scheduler signaled that calibration is complete.COMMENT
LOWvllm_ascend/compilation/compiler_interface.py128 # Set sym_range to limit static kernel compilation to specified batch sizes.COMMENT
LOWexamples/offline_data_parallel.py176 # Print the outputs.COMMENT
LOWexamples/eplb/eplb_strategy.py48 # Check if element is numericCOMMENT
LOW.github/workflows/pr_revert_command.yml220 # 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/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
1 more matches not shown…
AI Structural Patterns91 hits · 86 pts
SeverityFileLineSnippetContext
LOWcsrc/scripts/util/build_opp_kernel_static.py226CODE
LOWtests/ut/test_ascend_forward_context.py19CODE
LOWtests/ut/attention/utils.py151CODE
LOWtests/ut/attention/a2/test_attention_v1_precision.py129CODE
LOWtests/ut/ops/test_gdn_attn_builder.py129CODE
LOWtests/ut/ops/test_fused_moe.py79CODE
LOWtests/ut/ops/a2/test_token_dispatcher.py48CODE
LOWtests/e2e/conftest.py272CODE
LOWtests/e2e/conftest.py955CODE
LOWtests/e2e/conftest.py1386CODE
LOW…pull_request/two_card/test_sequence_parallelism_moe.py124CODE
LOW…s/multicard_ops_a3/test_dispatch_gmm_combine_decode.py444CODE
LOW…s/multicard_ops_a3/test_dispatch_gmm_combine_decode.py317CODE
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.py58CODE
LOWvllm_ascend/_310p/model_runner_310p.py614CODE
LOWvllm_ascend/_310p/npu_input_batch.py10CODE
LOWvllm_ascend/_310p/fused_moe/fused_moe.py86CODE
LOWvllm_ascend/_310p/fused_moe/fused_moe.py154CODE
LOWvllm_ascend/_310p/quantization/methods/w8a8_dynamic.py81CODE
LOWvllm_ascend/_310p/ops/fla/gdn_310.py146CODE
LOWvllm_ascend/attention/context_parallel/common_cp.py177CODE
LOWvllm_ascend/attention/context_parallel/mla_cp.py568CODE
LOW…ibuted/kv_transfer/kv_pool/ascend_store/config_data.py654CODE
LOW…ibuted/kv_transfer/kv_pool/ascend_store/config_data.py778CODE
LOW…ibuted/kv_transfer/kv_pool/ascend_store/config_data.py918CODE
LOW…ted/kv_transfer/kv_pool/ascend_store/pool_scheduler.py688CODE
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.py570CODE
LOWvllm_ascend/spec_decode/llm_base_proposer.py755CODE
LOWvllm_ascend/spec_decode/suffix_proposer.py12CODE
LOWvllm_ascend/spec_decode/step3p5.py211CODE
LOWvllm_ascend/spec_decode/step3p5.py328CODE
LOWvllm_ascend/spec_decode/ngram_proposer.py17CODE
LOWvllm_ascend/quantization/method_adapters.py249CODE
LOWvllm_ascend/quantization/methods/w4a4_mxfp4.py163CODE
LOWvllm_ascend/quantization/methods/w4a8_mxfp4.py88CODE
LOWvllm_ascend/quantization/methods/w4a8_mxfp4.py143CODE
LOWvllm_ascend/quantization/methods/w8a8_mxfp8.py240CODE
LOWvllm_ascend/quantization/methods/w8a16.py72CODE
LOWvllm_ascend/quantization/methods/w4a16.py248CODE
LOWvllm_ascend/quantization/methods/w8a8_static.py140CODE
LOWvllm_ascend/quantization/methods/w4a8.py488CODE
LOWvllm_ascend/quantization/methods/w8a8_dynamic.py214CODE
LOW…lm_ascend/quantization/methods/w4a4_mxfp4_flatquant.py156CODE
LOWvllm_ascend/quantization/methods/w4a16_mxfp4.py113CODE
LOWvllm_ascend/quantization/methods/base.py235CODE
LOW…lm_ascend/patch/platform/patch_kv_cache_coordinator.py468CODE
LOWvllm_ascend/patch/worker/patch_kimi_k25.py73CODE
LOWvllm_ascend/sample/rejection_sampler.py967CODE
LOWvllm_ascend/sample/rejection_sampler.py1311CODE
LOWvllm_ascend/ops/linear.py142CODE
LOWvllm_ascend/ops/linear.py218CODE
LOWvllm_ascend/ops/linear.py270CODE
LOWvllm_ascend/ops/linear.py370CODE
LOWvllm_ascend/ops/vocab_parallel_embedding.py249CODE
LOWvllm_ascend/ops/activation.py34CODE
31 more matches not shown…
Modern Structural Boilerplate76 hits · 79 pts
SeverityFileLineSnippetContext
LOWsetup.py44logger = logging.getLogger(__name__)CODE
LOWtools/ai_qos.py340 def set_qos(self, state_path: Path) -> None:CODE
LOWtools/bisect/coordinator.py36logger = 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.py39logger = logging.getLogger(__name__)CODE
LOWtools/bisect/build_manager.py42logger = logging.getLogger(__name__)CODE
LOWtools/bisect/vllm_compat.py35logger = logging.getLogger(__name__)CODE
LOWtools/bisect/state.py22logger = logging.getLogger(__name__)CODE
LOWtools/bisect/verdict.py30logger = logging.getLogger(__name__)CODE
LOWtests/ut/patch/test_hunyuan_vl_processor_compat.py189 def _set_model_specific_special_tokens(self, special_tokens: dict[str, str]) -> None:CODE
LOWtests/e2e/conftest.py90logger = logging.getLogger(__name__)CODE
LOW…htly/multi_node/internal_dp/scripts/test_multi_node.py26logger = 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.py16logger = logging.getLogger(__name__)CODE
LOW…/e2e/nightly/multi_node/external_dp/scripts/runtime.py31logger = logging.getLogger(__name__)CODE
LOW…ts/e2e/nightly/multi_node/external_dp/scripts/utils.py26logger = logging.getLogger(__name__)CODE
LOW…tly/multi_node/external_dp/scripts/test_external_dp.py38logger = logging.getLogger(__name__)CODE
LOW…nightly/single_node/models/scripts/test_single_node.py22logger = logging.getLogger(__name__)CODE
LOW…ghtly/single_node/models/scripts/single_node_config.py12logger = logging.getLogger(__name__)CODE
LOWvllm_ascend/logger.py137def _setup_file_logging(log_dir: str | None = None) -> None:CODE
LOWvllm_ascend/platform.py312 def update_block_size_for_backend(cls, vllm_config: VllmConfig) -> None:CODE
LOWvllm_ascend/utils.py1218def set_potential_max_tokens(vllm_config) -> None:CODE
LOWvllm_ascend/_310p/attention/metadata_builder.py38def 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/dsa_v1.py1481 def _update_indexcache_topk_indices(self, topk_indices: torch.Tensor, offset: int = 0) -> None:CODE
LOWvllm_ascend/attention/sfa_v1.py1448 def _update_indexcache_topk_indices(self, topk_indices: torch.Tensor) -> None:CODE
LOWvllm_ascend/core/recompute_scheduler.py161 def _update_waiting_for_remote_kv(self, request: Request) -> None:CODE
LOWvllm_ascend/core/profiling_chunk_predictor.py169 def set_target_latency(self, base_chunk_size: int, elapsed_time: float = 0.0) -> None:CODE
LOW…end/distributed/device_communicators/pyhccl_wrapper.py256__all__ = [CODE
LOW…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py167 def update_computed_tokens(self, computed_tokens: int) -> None:CODE
LOW…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py171 def update_transferred_tokens(self, transferred_tokens: int) -> None:CODE
LOW…ted/kv_transfer/kv_p2p/mooncake_layerwise_connector.py577 def update_failed_task(self, req_id: str) -> None:CODE
LOW…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py1158 def set_xfer_handshake_metadata(self, metadata: dict[int, KVConnectorHandshakeMetadata]) -> None:CODE
LOW…ibuted/kv_transfer/kv_p2p/mooncake_hybrid_connector.py1459 def set_xfer_handshake_metadata(self, metadata: dict[int, KVConnectorHandshakeMetadata]) -> None:CODE
LOW…ibuted/kv_transfer/kv_pool/lmcache_ascend_connector.py5__all__ = ["LMCacheConnectorV1"]CODE
LOW…scend/distributed/kv_transfer/kv_pool/ucm_connector.py265 def update_connector_output(self, connector_output: KVConnectorOutput) -> None:CODE
LOW…scend/distributed/kv_transfer/kv_pool/ucm_connector.py281 def set_xfer_handshake_metadata(self, metadata: dict[int, KVConnectorHandshakeMetadata]) -> None:CODE
LOW…scend/distributed/kv_transfer/kv_pool/ucm_connector.py94 def set_host_xfer_buffer_ops(self, copy_operation: CopyBlocksOp) -> None:CODE
LOW…scend/distributed/kv_transfer/kv_pool/ucm_connector.py214 def update_state_after_alloc(self, request: "Request", blocks: "KVCacheBlocks", num_external_tokens: int) -> None:CODE
LOW…d/kv_transfer/kv_pool/recompute_cpu_offload/manager.py517 def update_connector_output(self, connector_output: KVConnectorOutput) -> None:CODE
LOW…ibuted/kv_transfer/kv_pool/ascend_store/config_data.py283 def set_cache_coordinator(self, cache_coordinator: Any | None) -> None:CODE
LOWvllm_ascend/quantization/__init__.py31__all__ = ["AscendModelSlimConfig", "AscendCompressedTensorsConfig", "AscendFp8Config"]CODE
LOWvllm_ascend/quantization/methods/__init__.py71__all__ = [CODE
LOWvllm_ascend/patch/platform/patch_pp_mtp.py209def _update_pp_mtp_spec_token_ids(scheduler, scheduler_output, model_runner_output) -> None:CODE
LOWvllm_ascend/patch/worker/patch_distributed.py32logger = logging.getLogger(__name__)CODE
LOWvllm_ascend/patch/worker/patch_draft_quarot.py14logger = logging.getLogger(__name__)CODE
LOWvllm_ascend/patch/worker/patch_eagle3_init.py56logger = logging.getLogger(__name__)CODE
LOWvllm_ascend/patch/worker/patch_gqa_c8.py27logger = logging.getLogger(__name__)CODE
LOWvllm_ascend/patch/worker/_hccl_pg_registry.py25logger = logging.getLogger(__name__)CODE
LOWvllm_ascend/patch/worker/patch_eagle3_pp_aux.py45logger = logging.getLogger(__name__)CODE
LOW…lm_ascend/patch/worker/patch_minimax_m2_linear_attn.py36logger = logging.getLogger(__name__)CODE
LOW…lm_ascend/patch/worker/patch_routed_experts_capture.py32logger = logging.getLogger(__name__)CODE
LOWvllm_ascend/ops/__init__.py54__all__ = ["AscendQuickGELU", "AscendSiluAndMul", "AscendRotaryEmbedding", "AscendDeepseekScalingRotaryEmbedding"]CODE
16 more matches not shown…
Docstring Block Structure13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHvllm_ascend/ascend_forward_context.py304Select the MoE communication method according to parallel settings, device generation, token count, and quantizationSTRING
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.py547Look up and initialize the appropriate xlite model adapter based on the architecture specified in vLLM config and thSTRING
HIGHvllm_ascend/xlite/xlite.py611Proxy unknown attributes to the wrapped runnable model. Args: key (str): The attribute name requestSTRING
HIGH…nsfer/kv_pool/ascend_store/backend/mooncake_backend.py324 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.py370 Convert numeric string to byte count Args: number_str: Numeric portion of input multiplier: UnSTRING
HIGH…lm_ascend/quantization/methods/w4a4_mxfp4_flatquant.py37Get 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
HIGHvllm_ascend/ops/fused_moe/experts_selector.py328 Select top-k experts based on router logits. Args: hidden_states: Hidden states of shape (num_tokens, STRING
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
Hallucination Indicators5 hits · 50 pts
SeverityFileLineSnippetContext
CRITICALvllm_ascend/spec_decode/llm_base_proposer.py445 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.py47 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
AI Slop Vocabulary18 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUM…hamming_dist_top_k/op_kernel/hamming_dist_top_k_base.h148 uint32_t blockLen = static_cast<uint32_t>(16 * sizeof(half)); // Determine blockLen (more robust for copying by datCODE
LOWtests/ut/ops/test_vocab_parallel_embedding.py138 # Should just pass through without maskingCOMMENT
LOWvllm_ascend/attention/dsa_v1.py190 # attention name assertion, we just set name to FLASH_ATTN to avoid assertion error.COMMENT
LOWvllm_ascend/attention/attention_v1.py81 # attention name assertion, we just set name to FLASH_ATTN to avoid assertion error.COMMENT
LOWvllm_ascend/attention/attention_v1.py1131 # just use getattr to avoid attribute error.COMMENT
LOWvllm_ascend/attention/sfa_v1.py130 # attention name assertion, we just set name to FLASH_ATTN to avoid assertion error.COMMENT
LOWvllm_ascend/attention/mla_v1.py84 # attention name assertion, we just set name to FLASH_ATTN to avoid assertion error.COMMENT
MEDIUMvllm_ascend/core/profiling_chunk_predictor.py94 # Keep a robust fallback for environments where least-squares mayCOMMENT
MEDIUMvllm_ascend/patch/platform/patch_balance_schedule.py102# signature once at import (rather than parsing a version string) is robust toCOMMENT
MEDIUMvllm_ascend/ops/triton/rope.py273 # TODO: use a more robust method to get BLOCK_SIZE_HEADCOMMENT
LOWvllm_ascend/worker/block_table.py198 # NOTE(woosuk): We can't simply use `token_indices // block_size`COMMENT
MEDIUMvllm_ascend/worker/model_runner_v1.py2194 # We simply utilize the implementation in vLLM.COMMENT
LOWvllm_ascend/worker/v2/model_runner.py86 # 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
MEDIUM…les/external_online_dp/dp_load_balance_proxy_server.py79# - 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 · 18 pts
SeverityFileLineSnippetContext
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…les/external_online_dp/dp_load_balance_proxy_server.py29# 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
Synthetic Comment Markers2 hits · 15 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
HIGH…lm_ascend/patch/worker/patch_minimax_m2_linear_attn.py153 # Force staticmethod style, as requested.COMMENT
Overly Generic Function Names4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/ut/kv_offload/test_mooncake_hybrid_connector.py65 def handle_request(req_meta: dict[str, Any]):CODE
LOWtests/ut/kv_offload/test_mooncake_hybrid_connector.py135 def handle_request(req_meta: dict[str, Any]):CODE
LOWtests/ut/kv_offload/test_mooncake_connector.py630 def handle_request(req_meta: dict[str, Any]):CODE
LOWtests/ut/kv_offload/test_mooncake_connector.py699 def handle_request(req_meta: dict[str, Any]):CODE
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/ut/attention/a2/test_mla_precision.py212 for layer_name in ["placeholder"]:CODE
LOWtests/ut/attention/a2/test_mla_precision.py217 ["placeholder"],CODE
LOWtests/ut/attention/a2/test_attention_cp_precision.py501 for layer_name in ["placeholder"]:CODE
LOWtests/ut/attention/a2/test_attention_v1_precision.py292 ["placeholder"],CODE
Modern AI Meta-Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
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
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWvllm_ascend/worker/model_runner_v1.py2721 # TODO: implement PR 28597 from vllmCOMMENT