Repository Analysis

NVIDIA/TensorRT-LLM

TensorRT LLM provides users with an easy-to-use Python API to define Large Language Models (LLMs) and supports state-of-the-art optimizations to perform inference efficiently on NVIDIA GPUs. TensorRT LLM also contains components to create Python and C++ runtimes that orchestrate the inference execution in a performant way.

21.8 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of NVIDIA/TensorRT-LLM, a Python project with 14,494 GitHub stars. SynthScan v2.0 examined 2,115,652 lines of code across 5961 source files, recording 31610 pattern matches distributed across 26 syntactic categories. The overall adjusted score of 21.8 places this repository in the Moderate AI signal band.

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

21.8
Adjusted Score
21.8
Raw Score
100%
Time Factor
2026-08-28
Last Push
14.5K
Stars
Python
Language
2.1M
Lines of Code
6.0K
Files
31.6K
Pattern Hits
2026-08-29
Scan Date
0.12
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 49HIGH 677MEDIUM 5653LOW 25231

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 31610 distinct pattern matches across 26 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.

Decorative Section Separators5022 hits · 16626 pts
SeverityFileLineSnippetContext
MEDIUMagent-flow/tests/workflows/perf_optimize/test_gitops.py190# ── where the git command runs ───────────────────────────────────────────────COMMENT
MEDIUM…-flow/tests/workflows/perf_analyze/test_task_schema.py752# ── where the paths live decides whether they are checked ───────────────────COMMENT
MEDIUMagent-flow/agent_flow/layers.py530 # ------------------------------------------------------------------COMMENT
MEDIUMagent-flow/agent_flow/layers.py532 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/metrics/test_collector.py685# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/metrics/test_collector.py687# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/metrics/test_collector.py1022# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/metrics/test_collector.py1025# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/metrics/test_collector.py287# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/metrics/test_collector.py289# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/_torch/attention/test_triton_prefill.py168# ===========================================================================COMMENT
MEDIUMtests/unittest/_torch/attention/test_triton_prefill.py170# ===========================================================================COMMENT
MEDIUMtests/unittest/_torch/attention/test_triton_prefill.py398# ===========================================================================COMMENT
MEDIUMtests/unittest/_torch/attention/test_triton_prefill.py400# ===========================================================================COMMENT
MEDIUMtests/unittest/_torch/attention/model_attn_config.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/_torch/attention/model_attn_config.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/_torch/attention/model_attn_config.py532# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/_torch/attention/model_attn_config.py534# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/_torch/attention/model_attn_config.py628# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/_torch/attention/model_attn_config.py630# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/_torch/attention/model_attn_config.py694# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/_torch/attention/model_attn_config.py697# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/_torch/attention/backend_case.py265# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/_torch/attention/backend_case.py277# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/_torch/attention/test_attention_mla.py1240# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/_torch/attention/test_attention_mla.py1258# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/unittest/_torch/attention/test_attention_backends.py232# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/unittest/_torch/attention/test_attention_backends.py237# ---------------------------------------------------------------------------COMMENT
MEDIUM…attention/sparse/test_cute_dsl_fp4_paged_mqa_logits.py36# ---------------------------------------------------------------------------COMMENT
MEDIUM…attention/sparse/test_cute_dsl_fp4_paged_mqa_logits.py39# ---------------------------------------------------------------------------COMMENT
MEDIUM…attention/sparse/test_cute_dsl_fp4_paged_mqa_logits.py137# ---------------------------------------------------------------------------COMMENT
MEDIUM…attention/sparse/test_cute_dsl_fp4_paged_mqa_logits.py139# ---------------------------------------------------------------------------COMMENT
MEDIUM…attention/sparse/test_cute_dsl_fp4_paged_mqa_logits.py215# ---------------------------------------------------------------------------COMMENT
MEDIUM…attention/sparse/test_cute_dsl_fp4_paged_mqa_logits.py217# ---------------------------------------------------------------------------COMMENT
MEDIUM…attention/sparse/test_cute_dsl_fp4_paged_mqa_logits.py292# ---------------------------------------------------------------------------COMMENT
MEDIUM…attention/sparse/test_cute_dsl_fp4_paged_mqa_logits.py294# ---------------------------------------------------------------------------COMMENT
MEDIUM…attention/sparse/test_cute_dsl_fp4_paged_mqa_logits.py550# ---------------------------------------------------------------------------COMMENT
MEDIUM…attention/sparse/test_cute_dsl_fp4_paged_mqa_logits.py552# ---------------------------------------------------------------------------COMMENT
MEDIUM…torch/attention/sparse/test_minimax_m3_dense_decode.py52# --------------------------------------------------------------------------COMMENT
MEDIUM…torch/attention/sparse/test_minimax_m3_dense_decode.py54# --------------------------------------------------------------------------COMMENT
MEDIUM…torch/attention/sparse/test_minimax_m3_dense_decode.py130# --------------------------------------------------------------------------COMMENT
MEDIUM…torch/attention/sparse/test_minimax_m3_dense_decode.py132# --------------------------------------------------------------------------COMMENT
MEDIUM…torch/attention/sparse/test_minimax_m3_dense_decode.py328# --------------------------------------------------------------------------COMMENT
MEDIUM…torch/attention/sparse/test_minimax_m3_dense_decode.py330# --------------------------------------------------------------------------COMMENT
MEDIUM…nittest/_torch/attention/sparse/test_cpp_custom_ops.py38# ---------------------------------------------------------------------------COMMENT
MEDIUM…nittest/_torch/attention/sparse/test_cpp_custom_ops.py40# ---------------------------------------------------------------------------COMMENT
MEDIUM…nittest/_torch/attention/sparse/test_cpp_custom_ops.py46# ===================================================================COMMENT
MEDIUM…nittest/_torch/attention/sparse/test_cpp_custom_ops.py48# ===================================================================COMMENT
MEDIUM…nittest/_torch/attention/sparse/test_cpp_custom_ops.py325# ===================================================================COMMENT
MEDIUM…nittest/_torch/attention/sparse/test_cpp_custom_ops.py327# ===================================================================COMMENT
MEDIUM…nittest/_torch/attention/sparse/test_cpp_custom_ops.py492# ===================================================================COMMENT
MEDIUM…nittest/_torch/attention/sparse/test_cpp_custom_ops.py494# ===================================================================COMMENT
MEDIUM…nittest/_torch/attention/sparse/test_cpp_custom_ops.py591# ===================================================================COMMENT
MEDIUM…nittest/_torch/attention/sparse/test_cpp_custom_ops.py593# ===================================================================COMMENT
MEDIUM…torch/attention/sparse/test_cute_dsl_gvr_topk_tiers.py427# ---------------------------------------------------------------------------COMMENT
MEDIUM…torch/attention/sparse/test_cute_dsl_gvr_topk_tiers.py430# ---------------------------------------------------------------------------COMMENT
MEDIUM…torch/attention/sparse/test_cute_dsl_gvr_topk_tiers.py478# ---------------------------------------------------------------------------COMMENT
MEDIUM…torch/attention/sparse/test_cute_dsl_gvr_topk_tiers.py481# ---------------------------------------------------------------------------COMMENT
MEDIUM…torch/attention/sparse/test_cute_dsl_gvr_topk_tiers.py500# ---------------------------------------------------------------------------COMMENT
MEDIUM…torch/attention/sparse/test_cute_dsl_gvr_topk_tiers.py509# ---------------------------------------------------------------------------COMMENT
4962 more matches not shown…
Hyper-Verbose Identifiers15293 hits · 13793 pts
SeverityFileLineSnippetContext
LOWsetup.py241def should_skip_precompiled_package_data(filename: str) -> bool:CODE
LOWagent-flow/tests/test_utils.py49def test_probe_reports_the_skills_the_backend_lists():CODE
LOWagent-flow/tests/test_utils.py60def test_probe_treats_a_backend_that_cannot_say_as_unreachable():CODE
LOWagent-flow/tests/test_utils.py75def test_probe_surfaces_a_backend_failure_instead_of_raising():CODE
LOWagent-flow/tests/test_utils.py83def test_probe_covers_every_requested_backend():CODE
LOWagent-flow/tests/test_utils.py95def test_resolve_returns_the_loaded_spelling_of_the_first_candidate():CODE
LOWagent-flow/tests/test_utils.py103def test_resolve_falls_open_when_the_probe_could_not_answer():CODE
LOWagent-flow/tests/test_utils.py108def test_resolve_reports_an_answered_miss_as_evidence_of_absence():CODE
LOWagent-flow/tests/test_utils.py113def test_resolve_handles_an_empty_candidate_list():CODE
LOWagent-flow/tests/test_utils.py123def test_resolve_matches_a_plugin_qualified_install_from_a_bare_name():CODE
LOWagent-flow/tests/test_utils.py132def test_resolve_returns_the_loaded_spelling_verbatim():CODE
LOWagent-flow/tests/test_utils.py138def test_resolve_prefers_an_exact_match_over_a_plugin_suffix():CODE
LOWagent-flow/tests/test_utils.py147def test_resolve_does_not_match_across_plugins_or_on_a_partial_name():CODE
LOWagent-flow/tests/test_console.py34def test_main_agent_tool_call_has_no_subagent_badge(monkeypatch):CODE
LOWagent-flow/tests/test_console.py45def test_bash_tool_call_extracts_description_and_command(monkeypatch):CODE
LOWagent-flow/tests/test_console.py66def test_bash_tool_call_surfaces_extra_flags(monkeypatch):CODE
LOWagent-flow/tests/test_console.py90def test_bash_tool_call_without_description_renders_only_command(monkeypatch):CODE
LOWagent-flow/tests/test_console.py101def test_bash_tool_call_prefixes_command_with_shell_prompt(monkeypatch):CODE
LOWagent-flow/tests/test_console.py111def test_read_tool_call_renders_path_without_json_braces(monkeypatch):CODE
LOWagent-flow/tests/test_console.py129def test_read_tool_call_surfaces_offset_and_limit(monkeypatch):CODE
LOWagent-flow/tests/test_console.py151def test_write_tool_call_renders_path_and_content_without_json(monkeypatch):CODE
LOWagent-flow/tests/test_console.py174def test_write_tool_call_truncates_very_long_content(monkeypatch):CODE
LOWagent-flow/tests/test_console.py197def test_edit_tool_call_renders_path_and_diff(monkeypatch):CODE
LOWagent-flow/tests/test_console.py221def test_edit_tool_call_surfaces_replace_all_flag(monkeypatch):CODE
LOWagent-flow/tests/test_console.py241def test_edit_tool_call_shows_added_and_deleted_line_counts(monkeypatch):CODE
LOWagent-flow/tests/test_console.py261def test_edit_tool_call_handles_empty_old_or_new_string(monkeypatch):CODE
LOWagent-flow/tests/test_console.py280def test_edit_tool_call_truncates_very_long_diffs(monkeypatch):CODE
LOWagent-flow/tests/test_console.py306def test_todowrite_tool_call_renders_checkbox_list(monkeypatch):CODE
LOWagent-flow/tests/test_console.py345def test_file_change_tool_call_renders_each_patch(monkeypatch):CODE
LOWagent-flow/tests/test_console.py393def test_file_change_tool_call_shows_added_and_deleted_line_counts(monkeypatch):CODE
LOWagent-flow/tests/test_console.py429def test_file_change_tool_call_truncates_long_diffs(monkeypatch):CODE
LOWagent-flow/tests/test_console.py455def test_file_change_tool_call_handles_empty_changes(monkeypatch):CODE
LOWagent-flow/tests/test_console.py470def test_todowrite_tool_call_handles_empty_list(monkeypatch):CODE
LOWagent-flow/tests/test_console.py485def test_unknown_tool_with_command_field_does_not_render_as_bash(monkeypatch):CODE
LOWagent-flow/tests/test_console.py510def test_unknown_tool_with_file_path_does_not_render_as_write(monkeypatch):CODE
LOWagent-flow/tests/test_console.py535def test_known_tool_with_wrong_shape_falls_through_to_json(monkeypatch):CODE
LOWagent-flow/tests/test_console.py557def test_subagent_tool_call_renders_label_and_indent(monkeypatch):CODE
LOWagent-flow/tests/test_console.py584def test_session_init_panel_lists_skills_plugins_and_agents(monkeypatch):CODE
LOWagent-flow/tests/test_console.py606def test_session_init_panel_handles_empty_payload(monkeypatch):CODE
LOWagent-flow/tests/test_console.py614def test_subagent_text_event_renders_label(monkeypatch):CODE
LOWagent-flow/tests/test_console.py630def test_server_tool_call_renders_distinct_label(monkeypatch):CODE
LOWagent-flow/tests/test_console.py643def test_thinking_event_renders_dim_and_truncates(monkeypatch):CODE
LOWagent-flow/tests/test_console.py655def test_rate_limit_warning_renders_status_and_metadata(monkeypatch):CODE
LOWagent-flow/tests/test_console.py674def test_compact_boundary_renders_trigger_and_token_counts(monkeypatch):CODE
LOWagent-flow/tests/test_console.py686def test_compact_boundary_renders_without_optional_fields(monkeypatch):CODE
LOWagent-flow/tests/test_console.py697def test_started_panel_renders_version_segment_when_present(monkeypatch):CODE
LOWagent-flow/tests/test_console.py714def test_started_panel_omits_version_segment_when_blank(monkeypatch):CODE
LOWagent-flow/tests/test_console.py730def test_started_panel_renders_reasoning_effort_when_present(monkeypatch):CODE
LOWagent-flow/tests/test_console.py743def test_started_panel_omits_reasoning_effort_when_blank(monkeypatch):CODE
LOWagent-flow/tests/test_console.py756def test_console_write_recovers_from_blocking_io_error(monkeypatch):CODE
LOWagent-flow/tests/test_console.py780def test_console_write_passes_through_when_no_error(monkeypatch):CODE
LOWagent-flow/tests/test_console.py796def test_print_message_recovers_from_blocking_io_error(monkeypatch):CODE
LOWagent-flow/tests/test_console.py819def test_ensure_blocking_streams_sets_flag(monkeypatch):CODE
LOWagent-flow/tests/test_agent_layer.py416def test_disallowed_tools_blocks_ask_user_question_when_hitl_enabled():CODE
LOWagent-flow/tests/test_agent_layer.py426def test_disallowed_tools_skipped_when_hitl_disabled():CODE
LOWagent-flow/tests/test_agent_layer.py436def test_ask_human_tool_resolves_numeric_choice_to_label():CODE
LOWagent-flow/tests/test_agent_layer.py39def test_stateless_layer_creates_fresh_client_per_call():CODE
LOWagent-flow/tests/test_agent_layer.py55def test_persistent_layer_reuses_client_across_calls():CODE
LOWagent-flow/tests/test_agent_layer.py72def test_one_forward_performs_one_backend_send_and_appends_response():CODE
LOWagent-flow/tests/test_agent_layer.py91def test_layer_prints_live_agent_activity(capsys):CODE
15233 more matches not shown…
Over-Commented Block3386 hits · 3122 pts
SeverityFileLineSnippetContext
LOWconstraints.txt1# setup.py appends these constraints to wheel install_requires, so every entryCOMMENT
LOWconstraints.txt21jupyter_server>=2.20.0COMMENT
LOWsetup.py1# SPDX-FileCopyrightText: Copyright (c) 2022-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWrequirements-dev.txt1-r requirements.txtCOMMENT
LOWruff-legacy.toml1# <<<< AUTO-GENERATED by scripts/legacy_utils.py gen-configs >>>>COMMENT
LOW.coderabbit.yaml1# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWagent-flow/pyproject.toml101#COMMENT
LOW…flow/tests/workflows/modeling_bringup/test_workflow.py1141 _task_schema.load_and_validate_task_yaml(missing)COMMENT
LOW…flow/tests/workflows/modeling_bringup/test_workflow.py1341 assert "reopens the failing Goals" not in reviewerCOMMENT
LOWagent-flow/agent_flow/config.py21 # backend consumes this — it is forwarded verbatim to the Claude AgentCOMMENT
LOWagent-flow/agent_flow/config.py81 # Code's built-in ``AskUserQuestion`` so the agent's questions reachCOMMENT
LOWagent-flow/agent_flow/config.py101 #COMMENT
LOW…gent_flow/workflows/modeling_bringup/task.example.yaml1# Example brief for the modeling-bringup workflow. Copy this file toCOMMENT
LOW…gent_flow/workflows/modeling_bringup/task.example.yaml21# Optional: free-form guidance for the PlanDrafter and Coder. Not a QACOMMENT
LOW…low/workflows/modeling_bringup/task.slurm.example.yaml1# Example Slurm brief for the modeling-bringup workflow. Copy this file toCOMMENT
LOWagent-flow/agent_flow/workflows/agent_team/workflow.py121 self.reviewer_context_reset_interval = reviewer_context_reset_intervalCOMMENT
LOWagent-flow/agent_flow/workflows/agent_team/workflow.py141 # plan phase is skipped entirely and the workflow starts at theCOMMENT
LOWagent-flow/agent_flow/workflows/agent_team/workflow.py161 self.plan_path,COMMENT
LOWagent-flow/agent_flow/workflows/agent_team/workflow.py241 # tools mutate ``status.md`` directly; no per-iteration context isCOMMENT
LOWagent-flow/agent_flow/workflows/agent_team/workflow.py701 "--clean to rerun from scratch, or pass "COMMENT
LOWagent-flow/agent_flow/workflows/agent_team/workflow.py741 # Runs after the done-handling above, so a previously completedCOMMENT
LOWagent-flow/agent_flow/workflows/agent_team/state.py21# Stages in the workflow.COMMENT
LOWagent-flow/agent_flow/workflows/agent_team/state.py41# ``replan`` mode to revise ``plan.md`` and ``acceptance-criteria.md``COMMENT
LOW…w/agent_flow/workflows/perf_optimize/task.example.yaml1# Example brief for the perf-optimize workflow. Copy this file toCOMMENT
LOW…w/agent_flow/workflows/perf_optimize/task.example.yaml21# tuning config (tuning/extra_llm_api_options.yaml), which the optimizerCOMMENT
LOW…w/agent_flow/workflows/perf_optimize/task.example.yaml41 # num_prompts: [32, 128, 512] # curve mode only: per-point num_prompts,COMMENT
LOW…w/agent_flow/workflows/perf_optimize/task.example.yaml61 nsys_iter_range: "100-150"COMMENT
LOW…w/agent_flow/workflows/perf_optimize/task.example.yaml81# max_rounds: 5 # the loop RUNS this many rounds (each: anCOMMENT
LOW…w/agent_flow/workflows/perf_optimize/task.example.yaml101# accept_fraction: 0.5 # measured gain must reach this fraction ofCOMMENT
LOW…w/agent_flow/workflows/perf_optimize/task.example.yaml121# target_metric: output_throughput # result-JSON key gains are computed on:COMMENT
LOW…w/agent_flow/workflows/perf_optimize/task.example.yaml141# docker_image: /path/to/trtllm-pytorch-<version>.sqshCOMMENT
LOW…w/agent_flow/workflows/perf_optimize/task.example.yaml161# sol:COMMENT
LOW…flow/agent_flow/workflows/perf_optimize/task_schema.py81 load_disagg_config,COMMENT
LOW…flow/agent_flow/workflows/perf_optimize/task_schema.py121# Published, not enforced. The validator deliberately does NOT reject aCOMMENT
LOW…nt-flow/agent_flow/workflows/perf_optimize/workflow.py481 # The analyzer just planned against the currentCOMMENT
LOW…nt-flow/agent_flow/workflows/perf_optimize/workflow.py1121 # ends the campaign is the break at the top of the loop,COMMENT
LOWagent-flow/agent_flow/workflows/perf_optimize/state.py41# Later fields are additive: old v2 checkpoints load withCOMMENT
LOWagent-flow/agent_flow/workflows/perf_optimize/state.py61# expected perf benefit). Opens **replan-only** (noCOMMENT
LOWagent-flow/agent_flow/workflows/perf_optimize/state.py121 # Loop position. ``round_index`` / ``item_index`` / ``attempt_index``COMMENT
LOWagent-flow/agent_flow/workflows/perf_optimize/state.py141 # ``last_profiled_analysis_dir``. True initially, after every accept,COMMENT
LOWagent-flow/agent_flow/workflows/perf_optimize/state.py161 approach_violation: str = ""COMMENT
LOW…ow/agent_flow/workflows/perf_analyze/task.example.yaml1# Example brief for the perf-analyze workflow. Copy this file toCOMMENT
LOW…ow/agent_flow/workflows/perf_analyze/task.example.yaml21 num_prompts: 200COMMENT
LOW…ow/agent_flow/workflows/perf_analyze/task.example.yaml41# interpreted with the perf-nsight-compute-analysis skill.COMMENT
LOW…ow/agent_flow/workflows/perf_analyze/task.example.yaml61# The skill is internal, so open-source builds of the toolkit strip it.COMMENT
LOW…-flow/agent_flow/workflows/perf_analyze/task_schema.py81# and ``srun`` works here". Every existing ``task.yaml`` is written thatCOMMENT
LOW…-flow/agent_flow/workflows/perf_analyze/task_schema.py101COMMENT
LOW…-flow/agent_flow/workflows/perf_analyze/task_schema.py141# actionable error so stale task.yaml files fail loudly instead ofCOMMENT
LOW…-flow/agent_flow/workflows/perf_analyze/task_schema.py181# Keys nothing in the schema consumes, but which are deliberate channels to theCOMMENT
LOW…-flow/agent_flow/workflows/perf_analyze/task_schema.py201)COMMENT
LOWagent-flow/agent_flow/workflows/perf_analyze/state.py21# valid), so the version stays at 1 — bumping it would hard-fail everyCOMMENT
LOWagent-flow/agent_flow/workflows/perf_analyze/state.py41# marked done) otherwise.COMMENT
LOWagent-flow/examples/human_in_the_loop.py61 # Intentionally vague: the agent should call ``ask_human`` mid-turnCOMMENT
LOWdocker/common/install_ci.sh1#!/bin/bashCOMMENT
LOWtests/unittest/conftest.py1# SPDX-FileCopyrightText: Copyright (c) 2022-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtests/unittest/test_s3_output.py1# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtests/unittest/metrics/test_collector.py1# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtests/unittest/_torch/test_connector.py1# SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtests/unittest/_torch/test_utils.py1# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtests/unittest/_torch/test_mmap_utils.py1# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
3326 more matches not shown…
Cross-File Repetition451 hits · 2255 pts
SeverityFileLineSnippetContext
HIGHagent-flow/agent_flow/workflows/agent_team/workflow.py0compose stop hooks that require *every* listed tool to be called. ``require_tool_call_stop_hook`` enforces "at least oneSTRING
HIGH…nt-flow/agent_flow/workflows/perf_optimize/workflow.py0compose stop hooks that require *every* listed tool to be called. ``require_tool_call_stop_hook`` enforces "at least oneSTRING
HIGH…ent-flow/agent_flow/workflows/perf_analyze/workflow.py0compose stop hooks that require *every* listed tool to be called. ``require_tool_call_stop_hook`` enforces "at least oneSTRING
HIGHagent-flow/agent_flow/workflows/agent_team/progress.py0return the most recent entry written by ``agent``, or ``none``.STRING
HIGH…nt-flow/agent_flow/workflows/perf_optimize/progress.py0return the most recent entry written by ``agent``, or ``none``.STRING
HIGH…ent-flow/agent_flow/workflows/perf_analyze/progress.py0return the most recent entry written by ``agent``, or ``none``.STRING
HIGHagent-flow/agent_flow/workflows/agent_team/progress.py0log a freshly written progress entry as a styled yaml panel.STRING
HIGH…nt-flow/agent_flow/workflows/perf_optimize/progress.py0log a freshly written progress entry as a styled yaml panel.STRING
HIGH…ent-flow/agent_flow/workflows/perf_analyze/progress.py0log a freshly written progress entry as a styled yaml panel.STRING
HIGHagent-flow/agent_flow/workflows/agent_team/progress.py0log the content returned by ``read_latest_progress``. ``caller`` is the agent making the call and drives the panel styleSTRING
HIGH…nt-flow/agent_flow/workflows/perf_optimize/progress.py0log the content returned by ``read_latest_progress``. ``caller`` is the agent making the call and drives the panel styleSTRING
HIGH…ent-flow/agent_flow/workflows/perf_analyze/progress.py0log the content returned by ``read_latest_progress``. ``caller`` is the agent making the call and drives the panel styleSTRING
HIGH…ow/agent_flow/workflows/agent_team/prompts/__init__.py0return a new bundle with each non-empty extension appended. empty / whitespace-only extensions leave the corresponding bSTRING
HIGH…agent_flow/workflows/perf_optimize/prompts/__init__.py0return a new bundle with each non-empty extension appended. empty / whitespace-only extensions leave the corresponding bSTRING
HIGH…/agent_flow/workflows/perf_analyze/prompts/__init__.py0return a new bundle with each non-empty extension appended. empty / whitespace-only extensions leave the corresponding bSTRING
HIGHtests/unittest/conftest.py0apply waives based on the waive state specified by the given waives_file.STRING
HIGHtests/integration/defs/test_list_parser.py0apply waives based on the waive state specified by the given waives_file.STRING
HIGH…sts/integration/defs/triton_server/test_list_parser.py0apply waives based on the waive state specified by the given waives_file.STRING
HIGH…s/unittest/_torch/attention/test_attention_no_cache.py0this is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). the hidden states go from (batch, num_key_vaSTRING
HIGHtests/unittest/_torch/attention/test_attention_mla.py0this is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). the hidden states go from (batch, num_key_vaSTRING
HIGHtests/unittest/_torch/attention/test_attention.py0this is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). the hidden states go from (batch, num_key_vaSTRING
HIGH…est/_torch/attention/sparse/dsa/test_dsa_sparse_mla.py0this is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). the hidden states go from (batch, num_key_vaSTRING
HIGH…ch/auto_deploy/custom_ops/attention/torch_attention.py0this is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). the hidden states go from (batch, num_key_vaSTRING
HIGH…h/auto_deploy/models/custom/modeling_nemotron_flash.py0this is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). the hidden states go from (batch, num_key_vaSTRING
HIGHtensorrt_llm/_torch/attention_backend/vanilla.py0this is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). the hidden states go from (batch, num_key_vaSTRING
HIGH…torch/attention/sparse/test_minimax_m3_dense_decode.py0replay must recompute from the live buffers, not reuse captured values.STRING
HIGH…attention/sparse/test_minimax_m3_index_decode_score.py0replay must recompute from the live buffers, not reuse captured values.STRING
HIGH…attention/sparse/test_minimax_m3_sparse_attn_decode.py0replay must recompute from the live buffers, not reuse captured values.STRING
HIGH…ts/unittest/_torch/visual_gen/test_wan_vsa_pipeline.py0return llm_models_root path if it is set in env, assert when it's set but not a valid pathSTRING
HIGH…/unittest/_torch/visual_gen/test_wan21_i2v_pipeline.py0return llm_models_root path if it is set in env, assert when it's set but not a valid pathSTRING
HIGH…sts/unittest/_torch/visual_gen/test_wan_transformer.py0return llm_models_root path if it is set in env, assert when it's set but not a valid pathSTRING
HIGH…/unittest/_torch/visual_gen/test_wan22_t2v_pipeline.py0return llm_models_root path if it is set in env, assert when it's set but not a valid pathSTRING
HIGH…ttest/_torch/visual_gen/test_wan22_ti2v_5b_pipeline.py0return llm_models_root path if it is set in env, assert when it's set but not a valid pathSTRING
HIGH…/unittest/_torch/visual_gen/test_wan22_i2v_pipeline.py0return llm_models_root path if it is set in env, assert when it's set but not a valid pathSTRING
HIGH…/unittest/_torch/visual_gen/test_wan21_t2v_pipeline.py0return llm_models_root path if it is set in env, assert when it's set but not a valid pathSTRING
HIGH…ts/unittest/_torch/visual_gen/test_trtllm_serve_e2e.py0return llm_models_root path if it is set in env, assert when it's set but not a valid pathSTRING
HIGHtests/unittest/_torch/visual_gen/test_flux_pipeline.py0return llm_models_root path if it is set in env, assert when it's set but not a valid pathSTRING
HIGHtests/unittest/_torch/visual_gen/test_model_loader.py0return llm_models_root path if it is set in env, assert when it's set but not a valid pathSTRING
HIGHtests/integration/defs/conftest.py0return llm_models_root path if it is set in env, assert when it's set but not a valid pathSTRING
HIGHtests/integration/defs/triton_server/conftest.py0return llm_models_root path if it is set in env, assert when it's set but not a valid pathSTRING
HIGH…ts/unittest/_torch/visual_gen/test_wan_vsa_pipeline.py0run full trtllm pipeline including vae decode; return (t, h, w, c) float in [0, 1].STRING
HIGH…/unittest/_torch/visual_gen/test_wan21_i2v_pipeline.py0run full trtllm pipeline including vae decode; return (t, h, w, c) float in [0, 1].STRING
HIGH…/unittest/_torch/visual_gen/test_wan22_t2v_pipeline.py0run full trtllm pipeline including vae decode; return (t, h, w, c) float in [0, 1].STRING
HIGH…ttest/_torch/visual_gen/test_wan22_ti2v_5b_pipeline.py0run full trtllm pipeline including vae decode; return (t, h, w, c) float in [0, 1].STRING
HIGH…/unittest/_torch/visual_gen/test_wan22_i2v_pipeline.py0run full trtllm pipeline including vae decode; return (t, h, w, c) float in [0, 1].STRING
HIGH…/unittest/_torch/visual_gen/test_wan21_t2v_pipeline.py0run full trtllm pipeline including vae decode; return (t, h, w, c) float in [0, 1].STRING
HIGH…ts/unittest/_torch/visual_gen/test_wan_vsa_pipeline.py0cosine similarity between two tensors (flattened to 1d, cast to float32 on cpu).STRING
HIGH…/unittest/_torch/visual_gen/test_wan21_i2v_pipeline.py0cosine similarity between two tensors (flattened to 1d, cast to float32 on cpu).STRING
HIGH…/unittest/_torch/visual_gen/test_wan22_t2v_pipeline.py0cosine similarity between two tensors (flattened to 1d, cast to float32 on cpu).STRING
HIGH…ttest/_torch/visual_gen/test_wan22_ti2v_5b_pipeline.py0cosine similarity between two tensors (flattened to 1d, cast to float32 on cpu).STRING
HIGH…/unittest/_torch/visual_gen/test_glm_image_pipeline.py0cosine similarity between two tensors (flattened to 1d, cast to float32 on cpu).STRING
HIGH…/unittest/_torch/visual_gen/test_wan22_i2v_pipeline.py0cosine similarity between two tensors (flattened to 1d, cast to float32 on cpu).STRING
HIGH…st/_torch/visual_gen/test_hunyuan_video1_5_pipeline.py0cosine similarity between two tensors (flattened to 1d, cast to float32 on cpu).STRING
HIGH…/unittest/_torch/visual_gen/test_wan21_t2v_pipeline.py0cosine similarity between two tensors (flattened to 1d, cast to float32 on cpu).STRING
HIGH…/unittest/_torch/visual_gen/test_wan21_i2v_pipeline.py0load huggingface diffusers pipeline (auto-detects class from model_index.json).STRING
HIGH…/unittest/_torch/visual_gen/test_wan22_t2v_pipeline.py0load huggingface diffusers pipeline (auto-detects class from model_index.json).STRING
HIGH…/unittest/_torch/visual_gen/test_glm_image_pipeline.py0load huggingface diffusers pipeline (auto-detects class from model_index.json).STRING
HIGH…/unittest/_torch/visual_gen/test_wan22_i2v_pipeline.py0load huggingface diffusers pipeline (auto-detects class from model_index.json).STRING
HIGH…st/_torch/visual_gen/test_hunyuan_video1_5_pipeline.py0load huggingface diffusers pipeline (auto-detects class from model_index.json).STRING
HIGH…/unittest/_torch/visual_gen/test_wan21_t2v_pipeline.py0load huggingface diffusers pipeline (auto-detects class from model_index.json).STRING
391 more matches not shown…
Unused Imports1988 hits · 1778 pts
SeverityFileLineSnippetContext
LOWagent-flow/tests/test_utils.py9CODE
LOWagent-flow/tests/conftest.py1CODE
LOWagent-flow/tests/test_console.py1CODE
LOWagent-flow/tests/test_agent_layer.py1CODE
LOWagent-flow/tests/test_sessions.py1CODE
LOWagent-flow/tests/test_module_composition.py1CODE
LOWagent-flow/tests/test_hooks.py1CODE
LOWagent-flow/tests/test_backends.py1CODE
LOWagent-flow/tests/helpers.py1CODE
LOWagent-flow/tests/test_examples.py1CODE
LOW…flow/tests/workflows/modeling_bringup/test_workflow.py3CODE
LOWagent-flow/tests/workflows/agent_team/test_status.py3CODE
LOWagent-flow/tests/workflows/agent_team/test_progress.py3CODE
LOWagent-flow/tests/workflows/agent_team/test_workflow.py1CODE
LOWagent-flow/tests/workflows/perf_optimize/test_reuse.py3CODE
LOW…ent-flow/tests/workflows/perf_optimize/test_prompts.py10CODE
LOW…ow/tests/workflows/perf_optimize/test_kernel_ledger.py3CODE
LOWagent-flow/tests/workflows/perf_optimize/test_state.py3CODE
LOW…nt-flow/tests/workflows/perf_optimize/test_progress.py3CODE
LOW…nt-flow/tests/workflows/perf_optimize/test_workflow.py3CODE
LOWagent-flow/tests/workflows/perf_optimize/test_gitops.py9CODE
LOW…flow/tests/workflows/perf_optimize/test_task_schema.py3CODE
LOWagent-flow/tests/workflows/perf_optimize/test_disagg.py9CODE
LOW…w/tests/workflows/perf_optimize/test_roadmap_schema.py3CODE
LOW…w/tests/workflows/perf_analyze/test_sol_methodology.py14CODE
LOWagent-flow/tests/workflows/perf_analyze/test_prompts.py8CODE
LOWagent-flow/tests/workflows/perf_analyze/test_state.py3CODE
LOW…ent-flow/tests/workflows/perf_analyze/test_progress.py3CODE
LOW…ent-flow/tests/workflows/perf_analyze/test_workflow.py3CODE
LOW…-flow/tests/workflows/perf_analyze/test_task_schema.py3CODE
LOWagent-flow/agent_flow/console.py1CODE
LOWagent-flow/agent_flow/hooks.py24CODE
LOWagent-flow/agent_flow/config.py1CODE
LOWagent-flow/agent_flow/__init__.py1CODE
LOWagent-flow/agent_flow/__init__.py1CODE
LOWagent-flow/agent_flow/__init__.py1CODE
LOWagent-flow/agent_flow/__init__.py1CODE
LOWagent-flow/agent_flow/__init__.py1CODE
LOWagent-flow/agent_flow/__init__.py8CODE
LOWagent-flow/agent_flow/__init__.py8CODE
LOWagent-flow/agent_flow/__init__.py9CODE
LOWagent-flow/agent_flow/__init__.py10CODE
LOWagent-flow/agent_flow/__init__.py10CODE
LOWagent-flow/agent_flow/__init__.py11CODE
LOWagent-flow/agent_flow/__init__.py11CODE
LOWagent-flow/agent_flow/__init__.py11CODE
LOWagent-flow/agent_flow/__init__.py11CODE
LOWagent-flow/agent_flow/__init__.py11CODE
LOWagent-flow/agent_flow/__init__.py11CODE
LOWagent-flow/agent_flow/__init__.py11CODE
LOWagent-flow/agent_flow/__init__.py11CODE
LOWagent-flow/agent_flow/__init__.py11CODE
LOWagent-flow/agent_flow/__init__.py11CODE
LOWagent-flow/agent_flow/types.py1CODE
LOWagent-flow/agent_flow/logger.py1CODE
LOWagent-flow/agent_flow/runtime.py1CODE
LOWagent-flow/agent_flow/utils.py13CODE
LOWagent-flow/agent_flow/module.py1CODE
LOWagent-flow/agent_flow/layers.py1CODE
LOWagent-flow/agent_flow/backends/codex.py1CODE
1928 more matches not shown…
Excessive Try-Catch Wrapping1152 hits · 1242 pts
SeverityFileLineSnippetContext
LOWsetup.py233 except Exception as e:CODE
LOWsetup.py351 except Exception as e:CODE
LOW…flow/tests/workflows/modeling_bringup/test_workflow.py844 except Exception as exc: # CLI missing / backend unreachableCODE
LOWagent-flow/tests/workflows/agent_team/test_workflow.py2289 except Exception as exc: # CLI missing / backend unreachableCODE
LOWagent-flow/agent_flow/runtime.py37 except Exception as exc:CODE
LOWagent-flow/agent_flow/utils.py99 except Exception as exc: # noqa: BLE001 - surface any backend failure as a probe errorCODE
LOWagent-flow/agent_flow/module.py100 except Exception:CODE
MEDIUMagent-flow/agent_flow/module.py19def runner() -> None:CODE
LOWagent-flow/agent_flow/layers.py380 except Exception: # noqa: BLE001 - an observer cannot fail the runCODE
LOWagent-flow/agent_flow/layers.py456 except Exception as exc:CODE
LOWagent-flow/agent_flow/layers.py484 except Exception:CODE
LOWagent-flow/agent_flow/backends/codex.py593 except Exception as exc: # noqa: BLE001 — surface any tool error to modelCODE
LOWagent-flow/agent_flow/backends/codex.py678 except Exception:CODE
LOWagent-flow/agent_flow/backends/codex.py800 except Exception:CODE
LOWagent-flow/agent_flow/backends/claude_code.py82 except Exception:CODE
LOWagent-flow/agent_flow/backends/claude_code.py98 except Exception:CODE
LOWagent-flow/agent_flow/backends/claude_code.py302 except Exception:CODE
LOW…ent_flow/workflows/modeling_bringup/prompts/_common.py92 except Exception:STRING
LOWagent-flow/agent_flow/workflows/agent_team/state.py146 except Exception:CODE
LOW…nt-flow/agent_flow/workflows/perf_optimize/workflow.py617 except Exception as exc:CODE
LOWagent-flow/agent_flow/workflows/perf_optimize/state.py258 except Exception:CODE
LOW…w/agent_flow/workflows/perf_analyze/sol_methodology.py105 except Exception: # noqa: BLE001 - a probe failure must never fail the runCODE
LOWagent-flow/agent_flow/workflows/perf_analyze/state.py123 except Exception:CODE
LOWtests/unittest/conftest.py454 except Exception:CODE
LOWtests/unittest/conftest.py505 except Exception:CODE
MEDIUMtests/unittest/conftest.py140def pytest_pyfunc_call(pyfuncitem) -> Any:CODE
LOWtests/unittest/test_pip_install.py126 except Exception as e:CODE
LOWtests/unittest/metrics/test_collector.py39 except Exception:CODE
LOWtests/unittest/_torch/misc/test_autotuner.py1221 except Exception:CODE
LOWtests/unittest/_torch/misc/test_share_tensor.py35 except Exception as e:CODE
LOWtests/unittest/_torch/misc/test_share_tensor.py204 except Exception as e:CODE
LOW…ittest/_torch/attention/sparse/dsa/test_dsa_indexer.py87 except Exception:CODE
LOW…ittest/_torch/attention/sparse/dsa/test_dsa_indexer.py3045 except Exception as e:CODE
LOW…ittest/_torch/attention/sparse/dsa/test_dsa_indexer.py3098 except Exception as e:CODE
LOW…ittest/_torch/attention/sparse/dsa/test_dsa_indexer.py3240 except Exception as e:CODE
LOW…ittest/_torch/attention/sparse/dsa/test_dsa_indexer.py3365 except Exception as e:CODE
LOW…ittest/_torch/attention/sparse/dsa/test_dsa_indexer.py3474 except Exception as e:CODE
LOW…ittest/_torch/attention/sparse/dsa/test_dsa_indexer.py3538 except Exception as e:CODE
MEDIUM…attention/sparse/deepseek_v4/test_compressor_module.py891def __del__(self):CODE
LOW…attention/sparse/deepseek_v4/test_compressor_module.py894 except Exception:CODE
LOW…attention/sparse/deepseek_v4/test_compressor_kernel.py1785except Exception:CODE
LOW…ts/unittest/_torch/visual_gen/test_trtllm_serve_e2e.py166 except Exception as err:CODE
LOWtests/unittest/_torch/visual_gen/test_flux_pipeline.py1089 except Exception as e:CODE
LOWtests/unittest/_torch/visual_gen/test_flux_pipeline.py1270 except Exception as e:CODE
LOWtests/unittest/_torch/visual_gen/test_attention_perf.py768 except Exception as e:CODE
LOWtests/unittest/_torch/visual_gen/test_attention_perf.py602 except Exception as e:CODE
LOW…ts/unittest/_torch/visual_gen/test_ltx2_transformer.py112 except Exception:CODE
LOWtests/unittest/_torch/visual_gen/test_media_decode.py175 except Exception as exc: # pragma: no cover - diagnostic pathCODE
LOW…t/_torch/visual_gen/multi_gpu/test_attn2d_attention.py157 except Exception as e:CODE
MEDIUM…t/_torch/visual_gen/multi_gpu/test_attn2d_attention.py153def _distributed_worker(rank, world_size, backend, test_fn, port):CODE
LOW…/_torch/visual_gen/multi_gpu/test_wan_async_ulysses.py88 except Exception as e:CODE
MEDIUM…/_torch/visual_gen/multi_gpu/test_wan_async_ulysses.py84def _distributed_worker(rank, world_size, backend, test_fn, port, fn_args):CODE
LOW…ttest/_torch/visual_gen/multi_gpu/test_parallel_vae.py76 except Exception as e:CODE
MEDIUM…ttest/_torch/visual_gen/multi_gpu/test_parallel_vae.py72def _distributed_worker(rank, world_size, test_fn, port):CODE
LOW…isual_gen/multi_gpu/test_flux2_transformer_parallel.py96 except Exception as e:CODE
MEDIUM…isual_gen/multi_gpu/test_flux2_transformer_parallel.py92def _distributed_worker(rank, world_size, backend, test_fn, port, kwargs):CODE
LOW…torch/visual_gen/multi_gpu/test_parallel_group_norm.py62 except Exception as e:CODE
MEDIUM…torch/visual_gen/multi_gpu/test_parallel_group_norm.py58def _distributed_worker(rank, world_size, test_fn, port):CODE
LOW…ttest/_torch/visual_gen/multi_gpu/test_ltx2_ulysses.py79 except Exception as e:CODE
MEDIUM…ttest/_torch/visual_gen/multi_gpu/test_ltx2_ulysses.py75def _distributed_worker(rank, world_size, backend, test_fn, port, fn_args):CODE
1092 more matches not shown…
Deep Nesting1503 hits · 1224 pts
SeverityFileLineSnippetContext
LOWsetup.py26CODE
LOWsetup.py253CODE
LOWagent-flow/agent_flow/hooks.py75CODE
LOWagent-flow/agent_flow/runtime.py26CODE
LOWagent-flow/agent_flow/layers.py358CODE
LOWagent-flow/agent_flow/backends/codex.py544CODE
LOWagent-flow/agent_flow/backends/codex.py446CODE
LOWagent-flow/agent_flow/backends/claude_code.py235CODE
LOW…w/agent_flow/workflows/modeling_bringup/task_schema.py41CODE
LOWagent-flow/agent_flow/workflows/agent_team/workflow.py316CODE
LOWagent-flow/agent_flow/workflows/agent_team/workflow.py520CODE
LOWagent-flow/agent_flow/workflows/agent_team/workflow.py1042CODE
LOWagent-flow/agent_flow/workflows/agent_team/progress.py180CODE
LOW…nt-flow/agent_flow/workflows/perf_optimize/workflow.py350CODE
LOW…-flow/agent_flow/workflows/perf_analyze/task_schema.py369CODE
LOWtests/unittest/conftest.py347CODE
LOWtests/unittest/gc_utils.py11CODE
LOWtests/unittest/metrics/test_collector.py405CODE
LOWtests/unittest/metrics/test_collector.py416CODE
LOWtests/unittest/_torch/helpers.py183CODE
LOW…sts/unittest/_torch/misc/test_pinned_weight_staging.py52CODE
LOWtests/unittest/_torch/misc/test_autotuner.py776CODE
LOWtests/unittest/_torch/misc/test_share_tensor.py20CODE
LOWtests/unittest/_torch/misc/test_share_tensor.py188CODE
LOWtests/unittest/_torch/attention/backend_case.py860CODE
LOWtests/unittest/_torch/attention/test_attention_mla.py749CODE
LOW…ts/unittest/_torch/attention/test_attention_op_sync.py110CODE
LOW…ts/unittest/_torch/attention/test_attention_op_sync.py166CODE
LOW…ts/unittest/_torch/attention/test_attention_op_sync.py326CODE
LOW…s/unittest/_torch/attention/test_attention_backends.py128CODE
LOW…attention/sparse/test_cute_dsl_fp4_paged_mqa_logits.py555CODE
LOW…attention/sparse/test_cute_dsl_fp4_paged_mqa_logits.py733CODE
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py846CODE
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py1058CODE
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py1172CODE
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py1661CODE
LOW…torch/attention/sparse/test_minimax_m3_msa_selector.py401CODE
LOW…attention/sparse/test_cute_dsl_fp8_paged_mqa_logits.py578CODE
LOW…orch/attention/sparse/test_cute_dsl_gvr_topk_decode.py1218CODE
LOW…orch/attention/sparse/test_cute_dsl_gvr_topk_decode.py1274CODE
LOW…ittest/_torch/attention/sparse/dsa/test_dsa_indexer.py2630CODE
LOW…est/_torch/attention/sparse/dsa/test_dsa_sparse_mla.py177CODE
LOW…est/_torch/attention/sparse/dsa/test_dsa_sparse_mla.py531CODE
LOW…ttest/_torch/attention/sparse/rocketkv/test_kernels.py75CODE
LOW…ttest/_torch/attention/sparse/rocketkv/test_kernels.py171CODE
LOW…test/_torch/attention/sparse/rocketkv/test_rocketkv.py408CODE
LOW…n/sparse/deepseek_v4/test_deepseek_v4_cache_manager.py1236CODE
LOW…n/sparse/deepseek_v4/test_deepseek_v4_cache_manager.py1301CODE
LOW…n/sparse/deepseek_v4/test_deepseek_v4_cache_manager.py1510CODE
LOW…tion/sparse/deepseek_v4/test_deepseek_v4_sparse_mla.py323CODE
LOW…tion/sparse/deepseek_v4/test_deepseek_v4_sparse_mla.py451CODE
LOW…attention/sparse/deepseek_v4/test_compressor_module.py1644CODE
LOW…attention/sparse/deepseek_v4/test_compressor_module.py2221CODE
LOW…attention/sparse/deepseek_v4/test_compressor_module.py2346CODE
LOW…attention/sparse/deepseek_v4/test_compressor_module.py2419CODE
LOW…attention/sparse/deepseek_v4/test_compressor_module.py2464CODE
LOW…attention/sparse/deepseek_v4/test_compressor_module.py2544CODE
LOW…attention/sparse/deepseek_v4/test_compressor_module.py2617CODE
LOW…attention/sparse/deepseek_v4/test_compressor_module.py2713CODE
LOW…attention/sparse/deepseek_v4/test_compressor_module.py253CODE
1443 more matches not shown…
Structural Annotation Overuse518 hits · 908 pts
SeverityFileLineSnippetContext
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py1477 # Step 2: Run TRT-LLM forward to populate actual KV cacheCOMMENT
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py1589 # Step 1: Call indexer to get topk indices (indexer internally uses its compressor)COMMENT
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py1602 # Step 2: Call MLA's compressor to compress KV cacheCOMMENT
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py1613 # Step 3: Process context requestsCOMMENT
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py1632 # Step 4: Process generation requestsCOMMENT
LOWtests/unittest/_torch/sampler/test_beam_search.py1594 # Step 1: beam 0 was latched STOP_WORDS by the finish handler.COMMENT
LOWtests/unittest/_torch/sampler/test_beam_search.py1619 # Step 3: run again. Neither slot finished this step -- they hold theCOMMENT
LOWtests/unittest/_torch/sampler/test_beam_search.py1637 # Step 4: the refilled continuation must not be pooled or masked again.COMMENT
LOWtests/unittest/_torch/thop/parallel/test_fp4_linear.py559 # Step 3: For each backend, capture and immediately test all tacticsCOMMENT
LOWtests/unittest/_torch/thop/parallel/test_fp4_linear.py615 # Step 4: Test cuda_core if it's available (single tactic, no capture needed)COMMENT
LOW…/unittest/_torch/thop/serial/test_nvfp4_marlin_gemm.py106 # Step 1: Repack weights to Marlin tiled formatCOMMENT
LOW…/unittest/_torch/thop/serial/test_nvfp4_marlin_gemm.py118 # Step 2: Process weight scales for Marlin kernelCOMMENT
LOW…/unittest/_torch/thop/serial/test_nvfp4_marlin_gemm.py127 # Step 3: Process global scale (includes exponent bias correction)COMMENT
LOWtests/unittest/_torch/executor/test_py_scheduler.py466 # Step 3: first 2 complete, now context 2,3 get scheduledCOMMENT
LOWtests/unittest/_torch/executor/test_py_scheduler.py542 # Step 1: slot 0 — req0, req1 scheduledCOMMENT
LOWtests/unittest/_torch/executor/test_py_scheduler.py547 # Step 2: slot 1 — req0/req1 still inflight, req2/req3 scheduledCOMMENT
LOWtests/unittest/_torch/executor/test_py_scheduler.py552 # Step 3: slot 0 freed (inflight = slot1 only) — req0/req1 scheduled againCOMMENT
LOWtests/unittest/_torch/executor/test_py_scheduler.py438 # Step 1: 4 context requests, only 2 fitCOMMENT
LOWtests/unittest/_torch/executor/test_py_scheduler.py451 # Step 2: first 2 become generation, remaining 2 still contextCOMMENT
LOW…ch/speculative/hw_agnostic/test_dflash_accept_stats.py66 # Step 1: req 7 accepts bonus+2 drafts, req 8 bonus only.COMMENT
LOW…ch/speculative/hw_agnostic/test_dflash_accept_stats.py69 # Step 2: req 7 accepts everything (bonus + 3 drafts, clamped input 5).COMMENT
LOW…ch/speculative/hw_agnostic/test_dflash_accept_stats.py218 # Step 1: nothing pending yet; both requests accept 0 drafts (n=1).COMMENT
LOW…ch/speculative/hw_agnostic/test_dflash_accept_stats.py221 # Step 2: req 1 accepts 2 drafts (n=3), req 2 accepts 0 (n=1).COMMENT
LOW…ch/speculative/hw_agnostic/test_dflash_accept_stats.py224 # Step 3: req 1 accepts 1 draft (n=2), req 2 accepts all 3 (n=4).COMMENT
LOWtests/unittest/_torch/modules/moe/quantize_utils.py2821 # Step 1: Apply pre_quant_scale (AWQ smoothing) if presentCOMMENT
LOWtests/unittest/_torch/modules/moe/quantize_utils.py2825 # Step 2: Quantize activation to FP8 and dequantize back (Q/DQ simulation)COMMENT
LOWtests/unittest/_torch/modules/moe/quantize_utils.py2833 # Step 3: Dequantize weightCOMMENT
LOWtests/unittest/_torch/modules/moe/quantize_utils.py2840 # Step 4: Compute matmul and scale outputCOMMENT
LOWtests/unittest/disaggregated/test_router.py406 # Step 3: s2 uniquely least (10 < 100 < 500)COMMENT
LOWtests/unittest/disaggregated/test_router.py410 # Step 4: s0 uniquely least (100 < 410 < 500)COMMENT
LOWtests/unittest/disaggregated/test_router.py414 # Step 5: s2 uniquely least (410 < 500 < 2100)COMMENT
LOW…unittest/disaggregated/test_py_cache_transceiver_mp.py951 # Step 1: Context side calls prepare_context_requests, no kvcache request is sent, thus no requestCOMMENT
LOW…unittest/disaggregated/test_py_cache_transceiver_mp.py965 # Step 2: Generation side submits receive requestsCOMMENT
LOW…unittest/disaggregated/test_py_cache_transceiver_mp.py995 # Step 1: Generation side submits receive requests, now context side doesn't know the requestsCOMMENT
LOW…unittest/disaggregated/test_py_cache_transceiver_mp.py1010 # Step 2: Context side calls prepare_context_requests, now context side knows the requestsCOMMENT
LOW…unittest/disaggregated/test_py_cache_transceiver_mp.py1020 # Step 3: Context side sends the dataCOMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py75 # Step 1: Load real model, capture report_usage kwargsCOMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py96 # Step 2: Call _background_reporter with real args, capture payloadCOMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py119 # Step 3: Spot-check against ground truthCOMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py133 # Step 4: String length checks (ShortString<=128, LongString<=256)COMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py158 # Step 5: Integer range checks (0 <= x <= 4294967295)COMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py174 # Step 6: featuresJson checkCOMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py187 # Step 7: Full jsonschema validationCOMMENT
LOW…u/custom_ops/attention/test_flashinfer_attention_op.py53 # Step 1: Retrieve KV cacheCOMMENT
LOW…u/custom_ops/attention/test_flashinfer_attention_op.py56 # Step 2: Dequantize KV cacheCOMMENT
LOW…u/custom_ops/attention/test_flashinfer_attention_op.py59 # Step 3: Apply RoPECOMMENT
LOW…u/custom_ops/attention/test_flashinfer_attention_op.py60 # Step 4: Compute attentionCOMMENT
LOW…o_deploy/singlegpu/custom_ops/rope/test_triton_rope.py137 # Step 1: Index cos/sin with position_idsCOMMENT
LOW…o_deploy/singlegpu/custom_ops/rope/test_triton_rope.py141 # Step 2: Apply PyTorch rope with qk interleavingCOMMENT
LOW…stom_ops/moe/test_trtllm_quant_mxfp4_trtllm_gen_moe.py278 # Step 1: deinterleave gate/up halves so dst gets [up | gate] in the row dim.COMMENT
LOW…inglegpu/transformations/library/test_bmm_moe_hooks.py243 # Step 1: Split gate_up into w1 and w3COMMENT
LOW…inglegpu/transformations/library/test_bmm_moe_hooks.py253 # Step 2: Split down into w2COMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py114 # Step 1: Decompose — rmsnorm should be expanded into primitivesCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py118 # Step 2: Discover fusible subgraphsCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py126 # Step 3: Generate kernelCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py298 # Step 1: Decompose — rmsnorm decomposes into primitivesCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py302 # Step 2: Discover fusible subgraphsCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py319 # Step 3: Generate Triton kernel from the novel subgraphCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py413 # Step 1: FX → MLIRCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py417 # Step 2: DecomposeCOMMENT
458 more matches not shown…
Self-Referential Comments260 hits · 780 pts
SeverityFileLineSnippetContext
MEDIUMagent-flow/tests/workflows/perf_optimize/test_gitops.py64 # Creating an existing branch is an error, not a silent reset.COMMENT
MEDIUMtests/unittest/_torch/test_connector.py188 # Create a mock request in generation state with draft tokensCOMMENT
MEDIUMtests/unittest/_torch/misc/test_share_tensor.py194 # Create a new tensor each timeCOMMENT
MEDIUM…ittest/_torch/attention/sparse/dsa/test_dsa_indexer.py662 # Create a mock instance with a simple forward methodCOMMENT
MEDIUM…attention/sparse/deepseek_v4/test_compressor_module.py844 # Create the CompressorCOMMENT
MEDIUMtests/unittest/_torch/distributed/test_cp_broadcast.py141 # Create a large list to test chunking behaviorCOMMENT
MEDIUM…ttest/_torch/visual_gen/test_trtllm_serve_endpoints.py1480 # Create a dummy reference image fileCOMMENT
MEDIUM…rnels/parallel/test_fused_dit_layernorm_shift_scale.py339 # Create a strided (non-contiguous) view by slicing a wider tensor.COMMENT
MEDIUM…s/unittest/_torch/modeling/test_modeling_multimodal.py841 # Create a dummy torch module if skipping HF inference.COMMENT
MEDIUMtests/unittest/_torch/multi_gpu/test_mnnvl_allreduce.py360 # Create a single AllReduce instance to be reused for all sequence lengthsCOMMENT
MEDIUMtests/unittest/_torch/sampler/test_beam_search_util.py33# Define a dummy model to create deterministic outputs for the testCOMMENT
MEDIUM…test/_torch/thop/parallel/test_fp8_block_scale_gemm.py486 # Create a copy of the current environmentCOMMENT
MEDIUMtests/unittest/_torch/thop/serial/test_moe_alltoall.py67 # Create a random input tensorCOMMENT
MEDIUMtests/unittest/_torch/executor/test_py_executor.py456 # Create a mock requestCOMMENT
MEDIUM…/unittest/_torch/executor/test_pytorch_model_engine.py2364 # Create a dedicated execution streamCOMMENT
MEDIUMtests/unittest/_torch/executor/test_resource_manager.py363 # Create the PeftCacheConfig with parameter names that match the expected APICOMMENT
MEDIUMtests/unittest/_torch/executor/test_resource_manager.py830 # Create a real KVCacheManager, it will run calculate_max_num_blocks_for_vswa in __init__COMMENT
MEDIUMtests/unittest/_torch/executor/test_resource_manager.py1026 # Create a dedicated execution streamCOMMENT
MEDIUM…nittest/_torch/executor/test_executor_request_queue.py272 # Create a mock request without sampling_config to avoid beam validationCOMMENT
MEDIUMtests/unittest/_torch/speculative/test_eagle3.py355 # Create a mock KV cache managerCOMMENT
MEDIUMtests/unittest/_torch/speculative/test_eagle3.py556 # Create the LLM instanceCOMMENT
MEDIUMtests/unittest/_torch/speculative/test_eagle3.py1148 # Create the LLM instanceCOMMENT
MEDIUMtests/unittest/_torch/speculative/test_eagle3.py1208 # Create the LLM instanceCOMMENT
MEDIUM…s/unittest/_torch/speculative/hw_agnostic/test_pard.py59 # Create the LLM instanceCOMMENT
MEDIUM…ch/speculative/hw_agnostic/test_dynamic_spec_decode.py38 # Create a Mock object with the mock function as side_effectCOMMENT
MEDIUMtests/unittest/_torch/modules/test_awq_quantization.py30 # Create a Linear module with NVFP4 quantization using actual initializationCOMMENT
MEDIUMtests/unittest/_torch/modules/test_moe_load_balancer.py342 # Create a real MoeLoadBalancerCOMMENT
MEDIUMtests/unittest/_torch/modules/test_moe_load_balancer.py406 # Create a real MoeLoadBalancerCOMMENT
MEDIUMtests/unittest/_torch/modules/test_fused_moe.py2523# Create a mock module with required attributes for NVFP4CutlassFusedMoEMethod.get_weights_shapes test.COMMENT
MEDIUMtests/unittest/_torch/modules/moe/test_moe_backend.py1290# This file provides a UNIFIED TEST FRAMEWORK for testing all MoE backendCOMMENT
MEDIUMtests/unittest/_torch/modules/moe/quantize_utils.py1319 # Initialize base class with use_cute_dsl_blockscaling_mm=FalseCOMMENT
MEDIUMtests/unittest/api_stability/api_stability_core.py273 # Create a MethodSnapshot for Pydantic model's __init__,COMMENT
MEDIUMtests/unittest/grpc/smg/test_smg.py969 # Create a synthetic RGBA image to test RGB conversionCOMMENT
MEDIUMtests/unittest/others/test_time_breakdown.py347 # Create a temporary JSON file for testingCOMMENT
MEDIUMtests/unittest/others/test_time_breakdown.py374 # Create a temporary fileCOMMENT
MEDIUMtests/unittest/others/test_time_breakdown.py613 # Create the diagramCOMMENT
MEDIUMtests/unittest/others/test_time_breakdown.py672 # Create the diagramCOMMENT
MEDIUMtests/unittest/disaggregated/test_remoteDictionary.py63 # Create a clean etcd client for test setup/teardownCOMMENT
MEDIUMtests/unittest/disaggregated/test_remoteDictionary.py66 # Create the dictionary under testCOMMENT
MEDIUMtests/unittest/llmapi/test_llm_encode.py213 # Create a batch that exceeds max_batch_sizeCOMMENT
MEDIUMtests/unittest/llmapi/test_llm_kv_cache_events.py224 # Create a mock mm_key with new format (hash, offset, uuid)COMMENT
MEDIUMtests/unittest/llmapi/test_llm_kv_cache_events.py313 # Create a different imageCOMMENT
MEDIUM…nittest/llmapi/apps/test_harmony_channel_validation.py320 # Create a proper output mockCOMMENT
MEDIUM…_deploy/multigpu/custom_ops/test_ad_dist_strategies.py56 # Create a simple MLP modelCOMMENT
MEDIUM…y/multigpu/transformations/library/test_ep_sharding.py208 # Create a simple graph with torch_moe node using stacked tensor formatCOMMENT
MEDIUM…egpu/transformations/library/test_attention_matcher.py137 # Define the scaling approach based on use_division flagCOMMENT
MEDIUM…egpu/transformations/library/test_attention_matcher.py972 # Create a llama-3.1 style causal maskCOMMENT
MEDIUM…egpu/transformations/library/test_attention_matcher.py1063 # Create a deterministic pseudo-random attention maskCOMMENT
MEDIUM…y/singlegpu/transformations/library/test_moe_fusion.py793 # Create a module with the FP8 MoE opCOMMENT
MEDIUM…y/singlegpu/transformations/library/test_moe_fusion.py1124 # Create a module with the NVFP4 MoE opCOMMENT
MEDIUM…pu/transformations/library/test_rope_transformation.py63 # Create a complex tensor from magnitude=1 and the computed angles.COMMENT
MEDIUM…u/transformations/library/test_redundant_transposes.py245 # Create a check function for this specific modelCOMMENT
MEDIUM…loy/singlegpu/transformations/library/test_kv_cache.py547 # Create a mock moduleCOMMENT
MEDIUM…loy/singlegpu/transformations/library/test_kv_cache.py550 # Create the transform with a proper configCOMMENT
MEDIUM…loy/singlegpu/transformations/library/test_kv_cache.py586 # Create the transform with a proper configCOMMENT
MEDIUM…loy/singlegpu/transformations/library/test_kv_cache.py589 # Create a mock moduleCOMMENT
MEDIUM…loy/singlegpu/transformations/library/test_kv_cache.py260 # Create the model with embedding layer and SDPA, wrap it in a fake factoryCOMMENT
MEDIUM…loy/singlegpu/transformations/library/test_kv_cache.py629 # Create the transform with a proper configCOMMENT
MEDIUM…loy/singlegpu/transformations/library/test_kv_cache.py632 # Create a simple mock module that just returns NoneCOMMENT
MEDIUM…loy/singlegpu/transformations/library/test_kv_cache.py676 # Create a modelCOMMENT
200 more matches not shown…
Hallucination Indicators49 hits · 665 pts
SeverityFileLineSnippetContext
CRITICAL…est/_torch/attention/sparse/test_sparse_mla_forward.py1202 mla_layer.mqa.indexer.wq_b.weight.normal_(mean=0.0,CODE
CRITICAL…est/_torch/attention/sparse/test_sparse_mla_forward.py1204 mla_layer.mqa.indexer.wk.weight.normal_(mean=0.0,CODE
CRITICAL…est/_torch/attention/sparse/test_sparse_mla_forward.py1206 mla_layer.mqa.indexer.weights_proj.weight.normal_(CODE
CRITICAL…est/_torch/attention/sparse/test_sparse_mla_forward.py1216 mla_layer.mqa.indexer.wq_b.weight.normal_(mean=0.0,CODE
CRITICAL…est/_torch/attention/sparse/test_sparse_mla_forward.py1218 mla_layer.mqa.indexer.weights_proj.weight.normal_(CODE
CRITICAL…est/_torch/attention/sparse/test_sparse_mla_forward.py1223 mla_layer.mqa.indexer.compressor.wkv_gate.weight.normal_(CODE
CRITICAL…est/_torch/attention/sparse/test_sparse_mla_forward.py1225 mla_layer.mqa.indexer.compressor.ape.normal_(CODE
CRITICAL…est/_torch/attention/sparse/test_sparse_mla_forward.py1228 mla_layer.mqa.indexer.compressor.norm.weight.fill_(1.0)CODE
CRITICAL…est/_torch/attention/sparse/test_sparse_mla_forward.py1232 mla_layer.mqa.compressor.wkv_gate.weight.normal_(CODE
CRITICAL…est/_torch/attention/sparse/test_sparse_mla_forward.py1237 mla_layer.mqa.compressor.norm.weight.fill_(1.0)CODE
CRITICAL…test/_torch/attention/sparse/dsa/test_short_seq_mha.py306 mla.mqa.indexer.wq_b.weight.normal_(mean=0.0, std=NN_INIT_STD)CODE
CRITICAL…test/_torch/attention/sparse/dsa/test_short_seq_mha.py307 mla.mqa.indexer.wk.weight.normal_(mean=0.0, std=NN_INIT_STD)CODE
CRITICAL…test/_torch/attention/sparse/dsa/test_short_seq_mha.py308 mla.mqa.indexer.weights_proj.weight.normal_(mean=0.0, std=NN_INIT_STD)CODE
CRITICAL…attention/sparse/deepseek_v4/test_compressor_module.py1571 comp.compressor.norm.weight.data.copy_(ref.norm.weight.data)CODE
CRITICALtests/unittest/_torch/visual_gen/test_runtime_lora.py146 model.block.img_mlp.up_proj.weight.zero_()CODE
CRITICALtests/unittest/_torch/visual_gen/test_runtime_lora.py147 model.block.img_mlp.down_proj.weight.zero_()CODE
CRITICALtests/unittest/_torch/visual_gen/test_runtime_lora.py148 model.block.txt_mlp.up_proj.weight.zero_()CODE
CRITICALtests/unittest/_torch/visual_gen/test_runtime_lora.py149 model.block.txt_mlp.down_proj.weight.zero_()CODE
CRITICALtests/unittest/_torch/models/test_minimax_m3_vl.py549 pe = model.vision_model.embeddings.patch_embedding.weight.detach()CODE
CRITICALtests/unittest/_torch/modeling/test_modeling_gemma4.py1300 layer.self_attn.k_norm.weight.data.normal_(0, 0.5)CODE
CRITICAL…torch/modules/moe/kimi_k3_ref_moe/kimi_k3_moe_block.py695 k3.shared_experts.gate_up_proj.weight.data.copy_(gate_up_fused)CODE
CRITICAL…torch/modules/moe/kimi_k3_ref_moe/kimi_k3_moe_block.py696 k3.shared_experts.down_proj.weight.data.copy_(CODE
CRITICAL…torch/modules/moe/kimi_k3_ref_moe/kimi_k3_moe_block.py697 hf.shared_experts.down_proj.weight.data.to(k3.shared_experts.down_proj.weight.dtype)CODE
CRITICAL…u/custom_ops/mamba/test_torch_causal_conv_cached_op.py108 tensorrt_llm._torch.auto_deploy.custom_ops.mamba.torch_backend_causal_conv._torch_causal_conv1d_decode( # type:CODE
CRITICAL…u/custom_ops/mamba/test_torch_causal_conv_cached_op.py179 tensorrt_llm._torch.auto_deploy.custom_ops.mamba.torch_backend_causal_conv._torch_causal_conv1d_prefill( # CODE
CRITICAL…nglegpu/custom_ops/mamba/test_torch_mamba_cached_op.py119 tensorrt_llm._torch.auto_deploy.custom_ops.mamba.torch_backend_mamba._torch_cached_ssm_decode( # type: ignore CODE
CRITICAL…nglegpu/custom_ops/mamba/test_torch_mamba_cached_op.py199 y_i, s_i = tensorrt_llm._torch.auto_deploy.custom_ops.mamba.torch_mamba._torch_ssm_prefill( # type: ignore # nCODE
CRITICAL…pu/custom_ops/mamba/test_cuda_causal_conv_cached_op.py184 tensorrt_llm._torch.auto_deploy.custom_ops.mamba.torch_backend_causal_conv._torch_causal_conv1d_prefill( # CODE
CRITICAL…pu/transformations/library/test_shared_kv_attention.py345 shared_op_name = torch.ops.auto_deploy.flashinfer_attention_mha_with_cache.default.name()CODE
CRITICAL…o_deploy/singlegpu/models/test_hunyuan_moe_modeling.py467 custom_moe.gate.wg.weight.data.copy_(hf_moe.gate_wg.weight.data)CODE
CRITICAL…o_deploy/singlegpu/models/test_hunyuan_moe_modeling.py486 custom_model.model.embed_tokens.weight.data.copy_(hf_model.model.embed_tokens.weight.data)CODE
CRITICAL…o_deploy/singlegpu/models/test_hunyuan_moe_modeling.py487 custom_model.model.norm.weight.data.copy_(hf_model.model.norm.weight.data)CODE
CRITICAL…t/auto_deploy/singlegpu/models/test_gemma4_modeling.py1474 ad_mlp.gate_proj.linear.weight.data.copy_(ref_mlp.gate_proj.weight.data)CODE
CRITICAL…t/auto_deploy/singlegpu/models/test_gemma4_modeling.py1475 ad_mlp.up_proj.linear.weight.data.copy_(ref_mlp.up_proj.weight.data)CODE
CRITICAL…t/auto_deploy/singlegpu/models/test_gemma4_modeling.py1476 ad_mlp.down_proj.linear.weight.data.copy_(ref_mlp.down_proj.weight.data)CODE
CRITICAL…t/auto_deploy/singlegpu/models/test_gemma4_modeling.py1481 ad_attn.q_proj.linear.weight.data.copy_(ref_attn.q_proj.weight.data)CODE
CRITICAL…t/auto_deploy/singlegpu/models/test_gemma4_modeling.py1482 ad_attn.k_proj.linear.weight.data.copy_(ref_attn.k_proj.weight.data)CODE
CRITICAL…t/auto_deploy/singlegpu/models/test_gemma4_modeling.py1483 ad_attn.v_proj.linear.weight.data.copy_(ref_attn.v_proj.weight.data)CODE
CRITICAL…t/auto_deploy/singlegpu/models/test_gemma4_modeling.py1484 ad_attn.o_proj.linear.weight.data.copy_(ref_attn.o_proj.weight.data)CODE
CRITICAL…t/auto_deploy/singlegpu/models/test_llama4_modeling.py476 hf_layer.feed_forward.experts.gate_up_proj.data.normal_(mean=0.0, std=std)CODE
CRITICAL…t/auto_deploy/singlegpu/models/test_llama4_modeling.py477 hf_layer.feed_forward.experts.down_proj.data.normal_(mean=0.0, std=std)CODE
CRITICAL…/auto_deploy/singlegpu/models/test_gemma3n_modeling.py383 model.lm_head.weight.data_ptr() == model.model.language_model.embed_tokens.weight.data_ptr()CODE
CRITICAL…deploy/singlegpu/models/test_hunyuan_dense_modeling.py211 custom_model.model.embed_tokens.weight.data.copy_(hf_model.model.embed_tokens.weight.data)CODE
CRITICAL…deploy/singlegpu/models/test_hunyuan_dense_modeling.py212 custom_model.model.norm.weight.data.copy_(hf_model.model.norm.weight.data)CODE
CRITICAL…crobenchmarks/attention_perf/attention_perf_harness.py672 mla.mqa.indexer.wq_b.weight.normal_(mean=0.0, std=std)CODE
CRITICAL…crobenchmarks/attention_perf/attention_perf_harness.py673 mla.mqa.indexer.wk.weight.normal_(mean=0.0, std=std)CODE
CRITICAL…crobenchmarks/attention_perf/attention_perf_harness.py674 mla.mqa.indexer.weights_proj.weight.normal_(mean=0.0, std=std)CODE
CRITICALtensorrt_llm/_torch/modules/fla/utils.py260 return triton.runtime.driver.active.utils.get_device_properties(CODE
CRITICALtensorrt_llm/_torch/modules/fla/utils.py313 triton.runtime.driver.active.utils.get_device_properties(i)CODE
Verbosity Indicators338 hits · 605 pts
SeverityFileLineSnippetContext
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py1477 # Step 2: Run TRT-LLM forward to populate actual KV cacheCOMMENT
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py1589 # Step 1: Call indexer to get topk indices (indexer internally uses its compressor)COMMENT
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py1602 # Step 2: Call MLA's compressor to compress KV cacheCOMMENT
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py1613 # Step 3: Process context requestsCOMMENT
LOW…est/_torch/attention/sparse/test_sparse_mla_forward.py1632 # Step 4: Process generation requestsCOMMENT
LOWtests/unittest/_torch/sampler/test_beam_search.py1594 # Step 1: beam 0 was latched STOP_WORDS by the finish handler.COMMENT
LOWtests/unittest/_torch/sampler/test_beam_search.py1619 # Step 3: run again. Neither slot finished this step -- they hold theCOMMENT
LOWtests/unittest/_torch/sampler/test_beam_search.py1637 # Step 4: the refilled continuation must not be pooled or masked again.COMMENT
LOWtests/unittest/_torch/thop/parallel/test_fp4_linear.py559 # Step 3: For each backend, capture and immediately test all tacticsCOMMENT
LOWtests/unittest/_torch/thop/parallel/test_fp4_linear.py615 # Step 4: Test cuda_core if it's available (single tactic, no capture needed)COMMENT
LOW…/unittest/_torch/thop/serial/test_nvfp4_marlin_gemm.py106 # Step 1: Repack weights to Marlin tiled formatCOMMENT
LOW…/unittest/_torch/thop/serial/test_nvfp4_marlin_gemm.py118 # Step 2: Process weight scales for Marlin kernelCOMMENT
LOW…/unittest/_torch/thop/serial/test_nvfp4_marlin_gemm.py127 # Step 3: Process global scale (includes exponent bias correction)COMMENT
LOWtests/unittest/_torch/executor/test_py_scheduler.py466 # Step 3: first 2 complete, now context 2,3 get scheduledCOMMENT
LOWtests/unittest/_torch/executor/test_py_scheduler.py542 # Step 1: slot 0 — req0, req1 scheduledCOMMENT
LOWtests/unittest/_torch/executor/test_py_scheduler.py547 # Step 2: slot 1 — req0/req1 still inflight, req2/req3 scheduledCOMMENT
LOWtests/unittest/_torch/executor/test_py_scheduler.py552 # Step 3: slot 0 freed (inflight = slot1 only) — req0/req1 scheduled againCOMMENT
LOWtests/unittest/_torch/executor/test_py_scheduler.py438 # Step 1: 4 context requests, only 2 fitCOMMENT
LOWtests/unittest/_torch/executor/test_py_scheduler.py451 # Step 2: first 2 become generation, remaining 2 still contextCOMMENT
LOW…ch/speculative/hw_agnostic/test_dflash_accept_stats.py66 # Step 1: req 7 accepts bonus+2 drafts, req 8 bonus only.COMMENT
LOW…ch/speculative/hw_agnostic/test_dflash_accept_stats.py69 # Step 2: req 7 accepts everything (bonus + 3 drafts, clamped input 5).COMMENT
LOW…ch/speculative/hw_agnostic/test_dflash_accept_stats.py218 # Step 1: nothing pending yet; both requests accept 0 drafts (n=1).COMMENT
LOW…ch/speculative/hw_agnostic/test_dflash_accept_stats.py221 # Step 2: req 1 accepts 2 drafts (n=3), req 2 accepts 0 (n=1).COMMENT
LOW…ch/speculative/hw_agnostic/test_dflash_accept_stats.py224 # Step 3: req 1 accepts 1 draft (n=2), req 2 accepts all 3 (n=4).COMMENT
LOWtests/unittest/_torch/modules/moe/quantize_utils.py2821 # Step 1: Apply pre_quant_scale (AWQ smoothing) if presentCOMMENT
LOWtests/unittest/_torch/modules/moe/quantize_utils.py2825 # Step 2: Quantize activation to FP8 and dequantize back (Q/DQ simulation)COMMENT
LOWtests/unittest/_torch/modules/moe/quantize_utils.py2833 # Step 3: Dequantize weightCOMMENT
LOWtests/unittest/_torch/modules/moe/quantize_utils.py2840 # Step 4: Compute matmul and scale outputCOMMENT
LOWtests/unittest/disaggregated/test_router.py406 # Step 3: s2 uniquely least (10 < 100 < 500)COMMENT
LOWtests/unittest/disaggregated/test_router.py410 # Step 4: s0 uniquely least (100 < 410 < 500)COMMENT
LOWtests/unittest/disaggregated/test_router.py414 # Step 5: s2 uniquely least (410 < 500 < 2100)COMMENT
LOW…unittest/disaggregated/test_py_cache_transceiver_mp.py951 # Step 1: Context side calls prepare_context_requests, no kvcache request is sent, thus no requestCOMMENT
LOW…unittest/disaggregated/test_py_cache_transceiver_mp.py965 # Step 2: Generation side submits receive requestsCOMMENT
LOW…unittest/disaggregated/test_py_cache_transceiver_mp.py995 # Step 1: Generation side submits receive requests, now context side doesn't know the requestsCOMMENT
LOW…unittest/disaggregated/test_py_cache_transceiver_mp.py1010 # Step 2: Context side calls prepare_context_requests, now context side knows the requestsCOMMENT
LOW…unittest/disaggregated/test_py_cache_transceiver_mp.py1020 # Step 3: Context side sends the dataCOMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py75 # Step 1: Load real model, capture report_usage kwargsCOMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py96 # Step 2: Call _background_reporter with real args, capture payloadCOMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py119 # Step 3: Spot-check against ground truthCOMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py133 # Step 4: String length checks (ShortString<=128, LongString<=256)COMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py158 # Step 5: Integer range checks (0 <= x <= 4294967295)COMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py174 # Step 6: featuresJson checkCOMMENT
LOWtests/unittest/llmapi/test_llm_telemetry_payload.py187 # Step 7: Full jsonschema validationCOMMENT
LOW…u/custom_ops/attention/test_flashinfer_attention_op.py53 # Step 1: Retrieve KV cacheCOMMENT
LOW…u/custom_ops/attention/test_flashinfer_attention_op.py56 # Step 2: Dequantize KV cacheCOMMENT
LOW…u/custom_ops/attention/test_flashinfer_attention_op.py59 # Step 3: Apply RoPECOMMENT
LOW…u/custom_ops/attention/test_flashinfer_attention_op.py60 # Step 4: Compute attentionCOMMENT
LOW…o_deploy/singlegpu/custom_ops/rope/test_triton_rope.py137 # Step 1: Index cos/sin with position_idsCOMMENT
LOW…o_deploy/singlegpu/custom_ops/rope/test_triton_rope.py141 # Step 2: Apply PyTorch rope with qk interleavingCOMMENT
LOW…stom_ops/moe/test_trtllm_quant_mxfp4_trtllm_gen_moe.py278 # Step 1: deinterleave gate/up halves so dst gets [up | gate] in the row dim.COMMENT
LOW…inglegpu/transformations/library/test_bmm_moe_hooks.py243 # Step 1: Split gate_up into w1 and w3COMMENT
LOW…inglegpu/transformations/library/test_bmm_moe_hooks.py253 # Step 2: Split down into w2COMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py114 # Step 1: Decompose — rmsnorm should be expanded into primitivesCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py118 # Step 2: Discover fusible subgraphsCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py126 # Step 3: Generate kernelCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py298 # Step 1: Decompose — rmsnorm decomposes into primitivesCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py302 # Step 2: Discover fusible subgraphsCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py319 # Step 3: Generate Triton kernel from the novel subgraphCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py413 # Step 1: FX → MLIRCOMMENT
LOW…o_deploy/singlegpu/mlir/test_elementwise_fusion_e2e.py417 # Step 2: DecomposeCOMMENT
278 more matches not shown…
Docstring Block Structure116 hits · 580 pts
SeverityFileLineSnippetContext
HIGH…unittest/_torch/multi_gpu/test_kv_pool_rebalance_tp.py607Local per-rank ``need_adjustment`` readings for each skew scenario. Args: case: Name of the skew scenario. STRING
HIGHtests/unittest/tools/test_prepare_dataset.py53 Build the base command for running trtllm-bench prepare-dataset. Args: output_path: Path tSTRING
HIGHtests/unittest/tools/test_prepare_dataset.py114 Execute trtllm-bench prepare-dataset with specified parameters and capture output. Args: STRING
HIGH…/unittest/auto_deploy/_utils_test/_model_test_utils.py588 Get the small model configuration for a given HuggingFace model hub ID. Args: model_hub_id: The HugginSTRING
HIGH…/integration/defs/stress_test/disagg_cancel/harness.py99Parse and validate a marathon YAML in one call. Callers that construct ``StressConfig`` directly via ``STRING
HIGH…/integration/defs/stress_test/disagg_cancel/harness.py450Map a YAML target string to a tracked worker. Args: target: One of ``gen_worker_random``, ``ctx_worker_randSTRING
HIGHtests/integration/defs/utils/timeout_manager.py71 Context manager for timing an operation and updating remaining timeout. Args: phase_name: STRING
HIGHtests/integration/defs/utils/timeout_manager.py100 Execute an operation with timeout tracking. Args: operation: The operation to execute. STRING
HIGHtests/integration/defs/utils/timeout_manager.py122 Call a function with timeout tracking. Args: func: The function to call. *argsSTRING
HIGH…f-sanity/cache_transceiver_precheck/precheck_config.py251Launch-script export lines wiring the precheck gate. Single owner of the enable/kill-switch policy, the step-timeouSTRING
HIGH…pts/cute_dsl_kernels/run_dense_bf16_gemm_persistent.py103Runs and benchmarks the persistent dense BF16/FP16 GEMM/BMM. This function prepares input tensors, launches the kerSTRING
HIGH…e_dsl_kernels/run_dense_blockscaled_gemm_persistent.py94Runs and benchmarks the persistent batched dense block-scaled GEMM. This function prepares input tensors, launches STRING
HIGH…e_dsl_kernels/run_dense_blockscaled_gemm_act_fusion.py153Runs and benchmarks the persistent batched dense block-scaled GEMM with activation fusion. This function prepares iSTRING
HIGHtensorrt_llm/_torch/weight_sharing/source_identity.py271Build an identity from a torch-backend :class:`ModelConfig`. Args: model_config: The resolved torchSTRING
HIGHtensorrt_llm/_torch/weight_sharing/source_identity.py581Decide whether a receiver may consume `source`'s shared weights. Args: local: The receiver's own identity. STRING
HIGHtensorrt_llm/_torch/weight_sharing/artifact_identity.py161Build an identity from an immutable snapshot or local checkpoint. Args: checkpoint_path: A model chSTRING
HIGHtensorrt_llm/_torch/shared_tensor/shared_tensor.py112Get a rebuild method by its key. Args: key: The numeric key of the method Returns: STRING
HIGHtensorrt_llm/_torch/shared_tensor/shared_tensor.py380Create a SharedTensorContainer from a serialized dictionary (Consumer side). This method is called by the consuSTRING
HIGHtensorrt_llm/_torch/custom_ops/torch_custom_ops.py1211Unified NVFP4 GEMM with automatic backend selection. This function automatically chooses the best backend from the STRING
HIGHtensorrt_llm/_torch/memory/gpu_memory_backend.py303Context manager scoping CUDA allocations to the GMS pool. All `torch.empty` / `torch.zeros` / etc. allocations STRING
HIGHtensorrt_llm/_torch/memory/gpu_memory_backend.py418Register tensors, commit them, and transition this client to RO. After this returns successfully, `is_rw` flipsSTRING
HIGHtensorrt_llm/_torch/visual_gen/pipeline_loader.py77Resolve checkpoint_dir to a local directory path. If checkpoint_dir is an existing local path, returns it unchaSTRING
HIGHtensorrt_llm/_torch/models/modeling_deepseekv4.py130 Dequantizes the given weight tensor using the provided scale tensor. Args: x (torch.Tensor): The quantSTRING
HIGHtensorrt_llm/_torch/models/modeling_deepseekv3.py117 Dequantizes the given weight tensor using the provided scale tensor. Args: x (torch.Tensor): The quantSTRING
HIGHtensorrt_llm/_torch/models/modeling_nemotron_nano.py1648Replace each `<video>` placeholder in `prompt_token_ids` with the full per-frame expansion (optional "This is a STRING
HIGHtensorrt_llm/_torch/models/modeling_hyperclovax.py627 Get the number of tokens per image. This method must be called after __call__ is executed. UseSTRING
HIGHtensorrt_llm/_torch/peft/lora/loaders.py45Extract and organize NeMo LoRA weights by layer and direction. Args: lora_weights: Dictionary mapping weighSTRING
HIGHtensorrt_llm/_torch/peft/lora/loaders.py90Iterate over HuggingFace LoRA weights and call iterator function for each weight. Args: iter_fn: Function tSTRING
HIGHtensorrt_llm/_torch/peft/lora/loaders.py297Find .nemo files from a single path (file or directory). This function is cached per individual path to maximize caSTRING
HIGHtensorrt_llm/_torch/peft/lora/loaders.py332Find all .nemo files from a list of directories or file paths. This function is optimized for repeated calls at genSTRING
HIGHtensorrt_llm/_torch/peft/lora/loaders.py403Unpack model config and weights from a NeMo .nemo archive file. Args: nemo_archive_path: Path to the .nemo STRING
HIGHtensorrt_llm/_torch/peft/lora/layer.py150Convert a string to the corresponding LoraModuleType. Args: name: The string name of the module typSTRING
HIGHtensorrt_llm/_torch/peft/lora/manager.py184Load NeMo LoRA checkpoint for PyTorch workflow. This is a PyTorch-specific loader for NeMo LoRA checkpoints, similaSTRING
HIGHtensorrt_llm/_torch/peft/lora/manager.py232Load LoRA checkpoint for PyTorch workflow. This function routes to the appropriate loader based on lora_ckpt_sourceSTRING
HIGHtensorrt_llm/_torch/pyexecutor/request_utils.py194Partition context for Helix CP. Args: input_token_ids: List of input token IDs. cp_rank: Current CPSTRING
HIGHtensorrt_llm/_torch/pyexecutor/request_utils.py335Merge RequestQueueItems to LlmRequests based on CP configuration. This is a router function that dispatches to the STRING
HIGHtensorrt_llm/_torch/pyexecutor/layerwise_nvtx_marker.py20 Initialize module variables Args: None: Returns: None: Raises: STRING
HIGHtensorrt_llm/_torch/pyexecutor/layerwise_nvtx_marker.py38 Descends iterators that contains Tensors and prints the Tensor Recursive function that descends iterator type STRING
HIGHtensorrt_llm/_torch/pyexecutor/layerwise_nvtx_marker.py65 Callback function that ends the NVTX marker Records the module name and tensor information Called afteSTRING
HIGHtensorrt_llm/_torch/pyexecutor/layerwise_nvtx_marker.py92 Creates an NVTX marker with the module name in it. This function is called before the module executes STRING
HIGHtensorrt_llm/_torch/pyexecutor/layerwise_nvtx_marker.py130 User level function that activates all the hooks The user needs to call this method from the network source coSTRING
HIGHtensorrt_llm/_torch/pyexecutor/sampler/sampler.py228Validate that the request can be processed by the sampler. If the request is not supported by the sampler, thisSTRING
HIGH…/_torch/auto_deploy/custom_ops/fused_moe/trtllm_moe.py682TensorRT-LLM Cutlass FP8 (W8A8) MoE for gated and non-gated MLP. Computes (per expert): For gated_mlp: STRING
HIGH…/_torch/auto_deploy/custom_ops/fused_moe/trtllm_moe.py952TensorRT-LLM Cutlass FP8 Block Scale MoE for FineGrainedFP8 format. This op uses the DeepSeek FP8 block scale formaSTRING
HIGHtensorrt_llm/_torch/auto_deploy/utils/_graph.py612Get an attribute specified by a dot-separated path on an object. Args: obj: The root object from which to rSTRING
HIGHtensorrt_llm/_torch/auto_deploy/utils/_graph.py767Remove a graph input from the given GraphModule. This is the inverse operation of add_graph_input(). It removes a pSTRING
HIGH…llm/_torch/auto_deploy/models/custom/modeling_eagle.py721Forward pass for Eagle drafter. Args: inputs_embeds: Input token embeddings [batch, seq, hidden_sizSTRING
HIGH…lm/_torch/auto_deploy/transform/library/sharding_ir.py106Convert string names like 'AUTO' to AllReduceStrategy enum. This is a shared validator for allreduce_strategy fieldSTRING
HIGHtensorrt_llm/_torch/modules/fused_moe/interface.py714 Quantize input tensor - unified interface for all MoE backends NOTE: This is a temporary interface. InSTRING
HIGHtensorrt_llm/_torch/modules/fused_moe/routing.py1131 Generate GPU-aware load balanced expert indices with rank-aware scheduling. Dispatch kernel backgroundSTRING
HIGHtensorrt_llm/_torch/modules/fused_moe/routing.py1667 Create logits that produce GPU-aware load balanced expert assignment. The heavy lifting is delegated to a routSTRING
HIGH…nsorrt_llm/_torch/modules/fused_moe/ep_group_health.py129Mark ``rank`` as failed. Idempotent. Args: rank: Index of the rank to mark, in ``[0, moe_world_sizeSTRING
HIGH…nsorrt_llm/_torch/modules/fused_moe/ep_group_health.py153Mark ``rank`` as active. Idempotent. Used when a replacement rank rejoins the group after a failure. HiSTRING
HIGH…nsorrt_llm/_torch/modules/fused_moe/ep_group_health.py200Return the active-rank bitmask split into little-endian uint64 words. Suitable for passing to CUDA kernels thatSTRING
HIGHtensorrt_llm/_torch/modules/dwdp/specs.py297Compute page-aligned layout for given parameters. Args: expert_bytes: Bytes per single expert. STRING
HIGHtensorrt_llm/_torch/modules/dwdp/page_pool.py237Get handle for a specific page. Args: slot: Double buffer slot (0 or 1). page_idx: PageSTRING
HIGHtensorrt_llm/_torch/modules/dwdp/page_pool.py268Map pages from pool[slot] starting at page_offset into VA. Maps ceil(size / page_size) pool page handles sequenSTRING
HIGHtensorrt_llm/_torch/modules/dwdp/transport.py234Allocate MNNVL handles, populate them, and exchange with all peers. This is the main entry point. Each of the `STRING
HIGHtensorrt_llm/_torch/modules/dwdp/vmm.py47Check CUDA driver API result and raise on error. Args: cu_func_ret: Return value from CUDA driver API call.STRING
HIGHtensorrt_llm/_torch/modules/dwdp/vmm.py75Align value up to the nearest multiple of alignment. Args: value: Value to align. alignment: AlignmSTRING
56 more matches not shown…
AI Slop Vocabulary177 hits · 521 pts
SeverityFileLineSnippetContext
MEDIUMagent-flow/tests/test_utils.py126 # skill that is plainly installed, because the harness lists only theCOMMENT
LOW…flow/tests/workflows/modeling_bringup/test_workflow.py643 # hosts, not just call out that Slurm commands need srun.COMMENT
MEDIUMagent-flow/tests/workflows/perf_optimize/test_disagg.py119 # The same value the harness implies is not a conflict, and what wasCOMMENT
MEDIUM…ent_flow/workflows/modeling_bringup/prompts/_common.py21# paths). If neither harness can resolve it, the getter returns an emptyCOMMENT
MEDIUM…w/agent_flow/workflows/perf_optimize/task.example.yaml166# workers + router). `config` is the harness config consumed byCOMMENT
MEDIUM…w/agent_flow/workflows/perf_optimize/task.example.yaml168# workflow drives that harness instead of launching trtllm-serve itself.COMMENT
MEDIUM…w/agent_flow/workflows/perf_optimize/task.example.yaml171# Two of its conventions are easy to trip on: `concurrency` is the harness'COMMENT
MEDIUM…w/agent_flow/workflows/perf_optimize/task.example.yaml176# with this: the live tuning config is seeded from the harness config'sCOMMENT
MEDIUMagent-flow/agent_flow/workflows/perf_optimize/disagg.py55#: The harness only knows how to wrap workers in nsys (``profiling.nsys_on``COMMENT
MEDIUMagent-flow/agent_flow/workflows/perf_optimize/disagg.py206 # The harness client is hard-wired to `--dataset-name trtllm_customCOMMENT
MEDIUM…flow/agent_flow/workflows/perf_optimize/task_schema.py381 # from the harness config's worker_config block, so anCOMMENT
MEDIUM…flow/agent_flow/workflows/perf_optimize/task_schema.py411 # Disagg first: the harness config is the source of truth for theCOMMENT
MEDIUM…nt-flow/agent_flow/workflows/perf_optimize/workflow.py305 # "Reporter produced HTML" check robust to empty-file edgeCOMMENT
MEDIUM…nt-flow/agent_flow/workflows/perf_optimize/workflow.py682 # holds the harness config's ctx / gen worker_config instead, soCOMMENT
MEDIUM…w/agent_flow/workflows/perf_analyze/sol_methodology.py33# ships, and the harness loads a plugin skill *only* under itsCOMMENT
MEDIUM…ent-flow/agent_flow/workflows/perf_analyze/workflow.py242 # "Reporter produced HTML" check robust to empty-file edgeCOMMENT
MEDIUMdocker/common/install.sh6# Resolve script directory for robust relative pathingCOMMENT
MEDIUMtests/unittest/_torch/attention/backend_capability.py29 # backend harness. (1) The NVFP4 attention op aborts without the per-tensor /COMMENT
LOW…unittest/_torch/attention/test_flashinfer_attention.py812 # For simplicity, just use 1 page per request in this example.COMMENT
MEDIUMtests/unittest/_torch/attention/backend_case.py100 # Vanilla golden / FlashInfer get harness-applied RoPE. Only affects TRTLLM.COMMENT
MEDIUMtests/unittest/_torch/attention/backend_case.py108 # MLA latent dims (only meaningful when is_mla). The unified harness runs theCOMMENT
MEDIUMtests/unittest/_torch/attention/backend_case.py111 # Vanilla golden vs FlashInfer and TRTLLM. The harness skipsCOMMENT
MEDIUMtests/unittest/_torch/attention/backend_case.py273# harness feeds the *absorbed* fused_q + latent directly (random), exercisingCOMMENT
MEDIUMtests/unittest/_torch/attention/backend_case.py502 # The harness feeds a pre-RoPE'd fused_q, so skip the RoPE step;COMMENT
MEDIUMtests/unittest/_torch/attention/backend_case.py1015 # num_seqs+1). The model engine sets these; the standalone harnessCOMMENT
LOW…ttest/_torch/visual_gen/test_trtllm_serve_endpoints.py881 # we can verify per-image output mapping, not just call counts.COMMENT
MEDIUM…rch/visual_gen/multi_gpu/test_wan_pipeline_parallel.py126# Distributed harness (mirrors tests/.../multi_gpu/test_wan_attn2d.py)COMMENT
MEDIUM…sts/unittest/_torch/peft/test_moe_lora_grouped_gemm.py711 # *reassignment* invariant, and uses a precision-robust discriminative checkCOMMENT
MEDIUM…ittest/_torch/multimodal/test_mm_encoder_standalone.py744 # the tensor's contents), while others should actually differ (those pertaining to the underlyingCOMMENT
MEDIUMtests/unittest/_torch/thop/serial/test_moe.py2718 # Reuse the established THOP packing/reference harness directly; itsCOMMENT
LOWtests/unittest/_torch/modules/test_awq_quantization.py74 # just return a dummy output since we are capturing the input before input quantizationCOMMENT
LOWtests/unittest/_torch/modules/test_awq_quantization.py175 # just return a dummy output since we are capturing the input before input quantizationCOMMENT
MEDIUM…dules/fused_moe/test_deepgemm_fused_gather_finalize.py204 # Committed gate: tight tolerance (robust across FMA-contraction differencesCOMMENT
MEDIUM…/unittest/_torch/modules/dwdp/test_dwdp_peer_ranges.py61 # ``compute_peer_ranges`` itself stays robust.COMMENT
MEDIUM…s/unittest/_torch/modules/moe/test_kimi_k3_situ_moe.py1435 # That observation was an artifact of the harness truncating pytest outputCOMMENT
MEDIUMtests/unittest/_torch/modules/moe/test_moe_module.py1029# fused kernel, so the test harness must NOT force a hostCOMMENT
MEDIUMtests/unittest/_torch/modules/moe/moe_test_utils.py723 # checkpoints load fine on this path, but this harness's synthetic MXFP4COMMENT
MEDIUMtests/unittest/others/test_kv_cache_transceiver.py572 # Drive the transfer to completion so the harness tears down cleanly.COMMENT
MEDIUMtests/unittest/others/test_lm_eval.py71# The helpers are mirrored from lm-evaluation-harness so the behaviour mustCOMMENT
MEDIUMtests/unittest/others/test_lm_eval.py187# can override the greedy defaults baked into lm-eval-harness task YAMLs.COMMENT
MEDIUMtests/unittest/others/test_lm_eval.py1475# calling conventions between the harness and the wrapper (instanceCOMMENT
MEDIUMtests/unittest/others/test_lm_eval.py1478# survived precisely because nothing ran the real harness loop.COMMENT
MEDIUM…t/disaggregated/test_cache_transceiver_precheck_e2e.py105 # memory into the following tests (same contract as the harness'sCOMMENT
MEDIUM…t/disaggregated/test_cache_transceiver_precheck_e2e.py132 # Same combination the merged single-node harness test runs:COMMENT
MEDIUMtests/unittest/disaggregated/kv_transfer_harness.py41# This harness builds real NIXL transfer agents, so force a known-goodCOMMENT
MEDIUMtests/unittest/disaggregated/kv_transfer_harness.py48# (and flaky) in the single-process threaded harness.COMMENT
MEDIUMtests/unittest/scripts/test_perf_submit.py390# gen_only run of the local harness, not just BOLT ones.COMMENT
MEDIUMtests/unittest/llmapi/test_llm_pytorch.py162 # anyways more robust than delegating cleanup to __del__.COMMENT
MEDIUMtests/unittest/llmapi/test_llm_pytorch.py178 # anyways more robust than delegating cleanup to __del__.COMMENT
MEDIUMtests/unittest/llmapi/test_gms_args.py79 # field path so the assertion is robust across Pydantic 2.x errorCOMMENT
MEDIUMtests/unittest/llmapi/test_bench_async.py160 # this robust on a loaded machine while staying far below the ~5s anCOMMENT
MEDIUMtests/unittest/llmapi/test_session_prefetcher.py511 # Accuracy-harness classes declare MODEL_PATH; warming must pick it upCOMMENT
MEDIUM…llmapi/apps/_test_trtllm_serve_multimodal_benchmark.py54 # Use pytorch backend for multimodal support and fix port to facilitate benchmarkingCOMMENT
MEDIUM…sts/unittest/llmapi/apps/_test_trtllm_serve_example.py36 # fix port to facilitate concise trtllm-serve examplesCOMMENT
LOWtests/unittest/llmapi/apps/utils.py258 # No brackets, just add the node as-isCOMMENT
MEDIUM…to_deploy/multigpu/transformations/library/conftest.py49# registered as CausalLM classes for this harness. Keep canonical discoveryCOMMENT
MEDIUM…pu/transformations/library/test_step3p7_sharding_ir.py34# The generic harness and helpers live alongside this file / under _utils_test.COMMENT
MEDIUM…pu/transformations/library/test_step3p7_sharding_ir.py45# A bare module name lets the harness resolve the model from either bundledCOMMENT
MEDIUM…ansformations/library/test_sharding_num_correctness.py498 # the standalone-export test harness has no factory or per-model YAMLCOMMENT
MEDIUM…ansformations/library/test_sharding_num_correctness.py662 # * the on-the-fly NVFP4 quant harness yields packed-uint8 / pack-factorCOMMENT
117 more matches not shown…
Cross-Language Confusion103 hits · 496 pts
SeverityFileLineSnippetContext
HIGH…-flow/tests/workflows/perf_analyze/test_task_schema.py151 # Every field is optional, so a bare ``sol:`` (YAML null) saysCOMMENT
HIGH…w/agent_flow/workflows/perf_optimize/roadmap_schema.py232 errors.append(f"'{where}.measured_gain_pct' must be a number or null, got {measured!r}")CODE
HIGH…w/agent_flow/workflows/perf_analyze/prompts/_common.py156 kill -TERM -"$PID" 2>/dev/null || kill -TERM "$PID" 2>/dev/null || trueCODE
HIGH…w/agent_flow/workflows/perf_analyze/prompts/_common.py158 kill -0 "$PID" 2>/dev/null || breakCODE
HIGH…w/agent_flow/workflows/perf_analyze/prompts/_common.py161 kill -0 "$PID" 2>/dev/null && { kill -KILL -"$PID" 2>/dev/null; kill -KILL "$PID" 2>/dev/null; } || trueCODE
HIGHtests/unittest/test_pip_install.py155 subprocess.check_call("rm *.whl || true", shell=True)CODE
HIGHtests/unittest/test_pip_install.py156 subprocess.check_call(f"apt-get install -y wget && wget -q {wheel_url}",CODE
HIGHtests/unittest/test_pip_install.py254 subprocess.check_call("pip3 install --ignore-installed pip || true",CODE
HIGHtests/unittest/test_pip_install.py256 subprocess.check_call("pip3 install --ignore-installed setuptools || true",CODE
HIGHtests/unittest/test_pip_install.py258 subprocess.check_call("pip3 install --ignore-installed wheel || true",CODE
HIGH…ts/unittest/_torch/visual_gen/test_visual_gen_utils.py590 """Schema-aware null sentinel: ``{"stg_scale": null}`` does notSTRING
HIGH…ts/unittest/_torch/visual_gen/test_visual_gen_utils.py609 null}`` reach the engine as a silent no-op."""STRING
HIGH…/_torch/peft/test_fp8_lora_grouped_gemm_regressions.py313 assert "minKN >= kFp8TmaAlignment && minKN % kFp8TmaAlignment == 0" in sourceCODE
HIGHtests/unittest/tools/test_infra_dry_run_pipeline.py49 self.assertIn("if (nodeCount > 1 || runWithSbatch)", dispatch)CODE
HIGH…ittest/kv_cache_manager_v2_tests/test_nvbug_6625710.py24 while (curr && curr->next.empty() && curr->storage.at(lcIdx) == nullptr)STRING
HIGH…ittest/kv_cache_manager_v2_tests/test_nvbug_6625710.py28it. That request is left holding a tree block whose ``prev`` is null; its nextSTRING
HIGH…ittest/kv_cache_manager_v2_tests/test_nvbug_6625710.py42 pruning a tail node: the attention page keeps a slot non-null, so the walk stopsSTRING
HIGHtests/unittest/kv_cache_manager_v2_tests/kernels.py85 return token == other.token && layer == other.layer && role == other.role && beam == other.beam;CODE
HIGHtests/unittest/kv_cache_manager_v2_tests/kernels.py107 if (idxToken < numTokens && idxHead < numHeads) {CODE
HIGHtests/unittest/kv_cache_manager_v2_tests/kernels.py112 if (sleepTime > 0 && tid == 0) {CODE
HIGHtests/unittest/kv_cache_manager_v2_tests/kernels.py138 if (idxToken < numTokens && idxHead < numHeads) {CODE
HIGHtests/unittest/kv_cache_manager_v2_tests/kernels.py143 if (sleepTime > 0 && tid == 0) {CODE
HIGHtests/unittest/kv_cache_manager_v2_tests/kernels.py153 for (uint64_t i = 0; *flag == 0u && i < maxIters; ++i) {CODE
HIGHtests/unittest/others/test_lazy_model_zoo.py276 assert not undefined, f"index maps classes to modules that do not define them: {undefined}"CODE
HIGHtests/unittest/usage/test_llmapi_config_capture.py605 """None on an Optional allowlist field is captured as null, not excluded.STRING
HIGHtests/unittest/scripts/test_pulse_triage.py67 '{"license_correction_ticket": null, "version_bump_tickets": []}'CODE
HIGHtests/unittest/scripts/test_pulse_triage.py80 'Triage completed.\n{"license_correction_ticket": null, "version_bump_tickets": []}'CODE
HIGHtests/unittest/scripts/test_perf_submit.py443 # NOT None: "(null)" means the partition really has no GPU GRES (e.g. EOS),COMMENT
HIGHtests/unittest/scripts/test_perf_submit.py475 # "(null)" is definitive, so ask for nothing -- --gres would be rejected asCOMMENT
HIGHtests/unittest/scripts/test_perf_submit.py436 _fake_sinfo(monkeypatch, local_submit_module, "(null)\ngpu:8\n")CODE
HIGHtests/unittest/scripts/test_perf_submit.py445 _fake_sinfo(monkeypatch, local_submit_module, "(null)\n")CODE
HIGHtests/unittest/scripts/test_perf_submit.py446 assert local_submit_module.partition_gpu_gres("batch") == "(null)"CODE
HIGHtests/unittest/scripts/test_perf_submit.py477 _fake_sinfo(monkeypatch, local_submit_module, "(null)\n")CODE
HIGHtests/unittest/llmapi/apps/test_tool_parsers.py1487 "command": "pwd && ls"CODE
HIGHtests/unittest/llmapi/apps/test_tool_parsers.py1052 [', "arguments": {}}', "}", ', "arguments": null}'],CODE
HIGHtests/unittest/llmapi/apps/test_tool_parsers.py1457 "pwd && ls\n"CODE
HIGHtests/integration/defs/triton_server/common.py17 r"curl -s -w %{http_code} 0.0.0.0:8000/v2/health/ready || true",CODE
HIGHtests/integration/defs/triton_server/common.py21 r"curl -s -w %{http_code} 0.0.0.0:8003/v2/health/ready || true",CODE
HIGH.devcontainer/make_env.py37 ("(echo set -a && cat " +CODE
HIGH.devcontainer/make_env.py39 " && echo && echo exec /usr/bin/env python3 -c \"'import json; import os; print(json.dumps(dict(os.environ)CODE
HIGH…m/_torch/visual_gen/models/cosmos3/pipeline_cosmos3.py464 "- `pip install cosmos_guardrail==0.3.0 && pip uninstall opencv-python`"CODE
HIGHtensorrt_llm/_torch/peft/lora/manager.py519 "enable_lora": null,STRING
HIGH…rnels/blackwell/top_k/gvr_topk_decode_self_sampling.py1120 HB=NBS; KBIG=(KPT>=2 && KPT*BLK>=2048); SCPB=(BLK>=1024)?(SPLIT?8192:16384)STRING
HIGH…ch/cute_dsl_kernels/blackwell/moe_as_dense_gemm/fc1.py2517 :param c_sf_ptr: Pointer to scale factor tensor for C (can be null)STRING
HIGH…ch/cute_dsl_kernels/blackwell/moe_as_dense_gemm/fc1.py2524 :param norm_const_ptr: Pointer to normalization constant for SFC generation (can be null)STRING
HIGH…m/_torch/cute_dsl_kernels/mega_moe_nvfp4/flag_batch.py23 flag_addr: Int64 # per-lane counter-slot address (0 == null)CODE
HIGHtensorrt_llm/scaffolding/contrib/Dynasor/evaluator.py986 if a.equals(b) or simplify(a - b) == 0:CODE
HIGHtensorrt_llm/scaffolding/contrib/Dynasor/evaluator.py1010 if _a.equals(_b):CODE
HIGHtensorrt_llm/scaffolding/contrib/Coder/prompts.py331 ``cd /testbed && git diff --no-color -- path/to/file1.py path/to/file2.py > patch.txt``STRING
HIGHtensorrt_llm/usage/llmapi_config.py480 # None: Optional field unset -> capture as null, regardless of converter.COMMENT
HIGHtensorrt_llm/evaluate/mmlu.py261 "wget https://people.eecs.berkeley.edu/~hendrycks/data.tar && tar -xf data.tar. "CODE
HIGHtensorrt_llm/serve/visual_gen_utils.py92 ``{"stg_sclae": null}`` produce a 200 with retained defaults.STRING
HIGHtensorrt_llm/serve/harmony_adapter.py1525 # Now process the actual harmony deltas (all with role=null)COMMENT
HIGHtensorrt_llm/serve/tool_parser/minimax_m2_parser.py44 # Try JSON parsing for structured types (object, array, null, etc.).COMMENT
HIGHtensorrt_llm/serve/tool_parser/qwen3_coder_parser.py26 pwd && lsSTRING
HIGHtensorrt_llm/serve/tool_parser/minimax_m3_parser.py49 (object / array / null) attempt JSON first; numerics and booleansSTRING
HIGHtensorrt_llm/serve/tool_parser/gemma4_parser.py233 # Bare value (number, boolean, null, or unquoted string)COMMENT
HIGHtensorrt_llm/serve/tool_parser/gemma4_parser.py303 - Supports: strings, numbers, booleans, null, nested objects, arraysSTRING
HIGH…rrt_llm/serve/scripts/time_breakdown/time_breakdown.py1668 }}).filter(function(t) {{ return t !== null; }});CODE
HIGH…rrt_llm/serve/scripts/time_breakdown/time_breakdown.py1673 pageYLabels.push('Req ' + reqId + ' (GPU)');CODE
43 more matches not shown…
AI Structural Patterns469 hits · 400 pts
SeverityFileLineSnippetContext
LOWagent-flow/tests/test_backends.py125CODE
LOWagent-flow/agent_flow/workflows/agent_team/workflow.py94CODE
LOW…ittest/_torch/weight_sharing/_source_identity_fakes.py99CODE
LOW…/_torch/weight_sharing/test_post_transform_profiles.py45CODE
LOWtests/unittest/_torch/misc/test_virtual_memory.py240CODE
LOW…ttest/_torch/attention/sparse/test_sparse_attention.py579CODE
LOW…ittest/_torch/attention/sparse/dsa/test_dsa_indexer.py915CODE
LOW…ttention/sparse/deepseek_v4/test_deepseek_v4_o_proj.py107CODE
LOW…ittest/_torch/visual_gen/test_attention_integration.py85CODE
LOW…ittest/_torch/visual_gen/test_attention_integration.py120CODE
LOW…ittest/_torch/visual_gen/test_attention_trtllm_sage.py53CODE
LOW…ts/unittest/_torch/visual_gen/test_qwen_image_infer.py26CODE
LOW…ttest/_torch/visual_gen/test_trtllm_serve_endpoints.py178CODE
LOW…unittest/_torch/visual_gen/test_cosmos3_transformer.py158CODE
LOW…ts/unittest/_torch/modeling/test_modeling_step3p7vl.py94CODE
LOWtests/unittest/_torch/multi_gpu/test_user_buffers.py437CODE
LOWtests/unittest/_torch/multi_gpu/test_user_buffers.py1156CODE
LOWtests/unittest/_torch/multi_gpu/test_user_buffers.py109CODE
LOW…unittest/_torch/thop/parallel/test_fp4_bmm_quantize.py59CODE
LOW…unittest/_torch/thop/parallel/test_fp4_bmm_quantize.py72CODE
LOW…h/thop/parallel_hw_agnostic/test_fused_qk_norm_rope.py100CODE
LOWtests/unittest/_torch/thop/serial/test_moe.py573CODE
LOWtests/unittest/_torch/thop/serial/test_moe.py604CODE
LOW…tor/multi_gpu/test_accuracy_with_allreduce_strategy.py71CODE
LOW…s/unittest/_torch/executor/test_kv_cache_estimation.py179CODE
LOW…s/unittest/_torch/executor/test_mamba_cache_manager.py2098CODE
LOW…s/unittest/_torch/executor/test_mamba_cache_manager.py2150CODE
LOW…unittest/_torch/executor/test_kv_cache_v2_scheduler.py195CODE
LOWtests/unittest/_torch/executor/test_benchmark_disagg.py84CODE
LOWtests/unittest/_torch/executor/test_benchmark_disagg.py580CODE
LOWtests/unittest/_torch/executor/test_py_executor.py1689CODE
LOW…unittest/_torch/executor/test_token_budget_fallback.py34CODE
LOW…s/unittest/_torch/executor/test_iter_stats_populate.py721CODE
LOW…s/unittest/_torch/executor/test_iter_stats_populate.py71CODE
LOW…sts/unittest/_torch/executor/test_kv_pool_rebalance.py52CODE
LOW…test/_torch/executor/test_kv_cache_v2_extra_buffers.py30CODE
LOW…ts/unittest/_torch/executor/test_per_layer_head_dim.py35CODE
LOWtests/unittest/_torch/modules/test_fused_moe.py1002CODE
LOW…test/_torch/modules/mamba/test_mamba2_mtp_ssm_cache.py22CODE
LOWtests/unittest/_torch/modules/moe/test_moe_module.py467CODE
LOWtests/unittest/_torch/modules/moe/test_moe_module.py528CODE
LOWtests/unittest/_torch/modules/moe/test_moe_module.py847CODE
LOWtests/unittest/_torch/modules/moe/quantize_utils.py237CODE
LOWtests/unittest/_torch/modules/moe/quantize_utils.py2118CODE
LOW…cache_manager_v2_tests/test_kv_cache_stats_behavior.py241CODE
LOW…/kv_cache_manager_v2_tests/test_kv_cache_manager_v2.py1691CODE
LOW…/kv_cache_manager_v2_tests/test_kv_cache_manager_v2.py3188CODE
LOWtests/unittest/others/test_lora_manager.py54CODE
LOWtests/unittest/utils/torch_ref.py552CODE
LOWtests/unittest/utils/torch_ref.py747CODE
LOWtests/unittest/disaggregated/test_peer.py145CODE
LOWtests/unittest/disaggregated/region/test_block.py34CODE
LOWtests/unittest/llmapi/test_utils.py61CODE
LOWtests/unittest/llmapi/lora_test_utils.py134CODE
LOWtests/unittest/llmapi/apps/openai_server.py22CODE
LOWtests/unittest/executor/test_stats_serializer.py52CODE
LOW…y/multigpu/transformations/library/test_tp_sharding.py283CODE
LOW…egpu/transformations/library/test_attention_matcher.py99CODE
LOW…egpu/transformations/library/test_attention_matcher.py200CODE
LOW…egpu/transformations/library/test_attention_matcher.py290CODE
409 more matches not shown…
Modern Structural Boilerplate380 hits · 378 pts
SeverityFileLineSnippetContext
LOWagent-flow/agent_flow/__init__.py24__all__ = [CODE
LOWagent-flow/agent_flow/backends/__init__.py7__all__ = [CODE
LOW…flow/agent_flow/workflows/modeling_bringup/__init__.py24__all__ = [CODE
LOW…w/agent_flow/workflows/modeling_bringup/task_schema.py125__all__ = [CODE
LOW…nt_flow/workflows/modeling_bringup/prompts/__init__.py64__all__ = ["MODELING_BRINGUP_PROMPTS", "build_modeling_bringup_prompts"]CODE
LOWagent-flow/agent_flow/workflows/agent_team/__init__.py34__all__ = [CODE
LOW…ow/agent_flow/workflows/agent_team/prompts/__init__.py63__all__ = [CODE
LOW…nt-flow/agent_flow/workflows/perf_optimize/__init__.py49__all__ = [CODE
LOW…flow/agent_flow/workflows/perf_optimize/task_schema.py517__all__ = [CODE
LOWagent-flow/agent_flow/workflows/perf_optimize/reuse.py393__all__ = [CODE
LOW…/agent_flow/workflows/perf_optimize/prompts/_common.py44__all__ = [CODE
LOW…agent_flow/workflows/perf_optimize/prompts/__init__.py206__all__ = [CODE
LOW…ent-flow/agent_flow/workflows/perf_analyze/__init__.py29__all__ = [CODE
LOW…-flow/agent_flow/workflows/perf_analyze/task_schema.py731__all__ = [CODE
LOW…/agent_flow/workflows/perf_analyze/prompts/__init__.py103__all__ = [CODE
LOW…ittest/_torch/attention/sparse/dsa/test_dsa_indexer.py115def _set_torch_top_k(indexer: Indexer) -> None:CODE
LOWtests/unittest/_torch/visual_gen/test_cache_dit.py231 def set_timesteps(self, n: int, device=None) -> None:CODE
LOW…est/_torch/visual_gen/test_flux2_image_conditioning.py173 def set_timesteps(self, *_args, **_kwargs) -> None:CODE
LOW…est/_torch/visual_gen/test_flux2_image_conditioning.py176 def set_begin_index(self, _index: int) -> None:CODE
LOW…s/unittest/_torch/modeling/test_modeling_deepseekv4.py1171 def update_quant_config(self, _quant_config: object) -> None:CODE
LOWtests/unittest/_torch/sampler/test_torch_sampler.py1513 def set_finished_reason(self, finish_reason: FinishReason, beam: int) -> None:CODE
LOW…/unittest/_torch/executor/test_pytorch_model_engine.py1496 def set_attn_max_seq_len(self, max_seq_len: int) -> None:CODE
LOW…s/unittest/_torch/executor/test_kv_cache_manager_v2.py605 def set_prepopulated_prompt_len(self, length: int, tokens_per_block: int) -> None:CODE
LOWtests/unittest/_torch/modules/test_alltoall_watchdog.py49 def set_flags(self, phase: str, flags: list[int]) -> None:CODE
LOWtests/unittest/_torch/modules/test_mla_registry.py39 def update_quant_config(self, _quant_config: object) -> None:CODE
LOWtests/unittest/_torch/modules/moe/test_moe_backend.py92logger = logging.getLogger(__name__)CODE
LOW…cache_manager_v2_tests/test_kv_cache_stats_behavior.py98 def set_prepopulated_prompt_len(self, length: int, tokens_per_block: int) -> None:CODE
LOW…/kv_cache_manager_v2_tests/test_kv_cache_manager_v2.py1458 def update_batch(self, stream: CudaStream) -> None:CODE
LOWtests/unittest/others/test_tracing.py29logger = logging.getLogger(__name__)CODE
LOWtests/unittest/utils/llm_data.py12__all__ = [CODE
LOW…ts/unittest/disaggregated/test_sync_transfer_timing.py44 def set_kv_cache_transfer_start(self, v: int) -> None:CODE
LOW…ts/unittest/disaggregated/test_sync_transfer_timing.py47 def set_kv_cache_transfer_end(self, v: int) -> None:CODE
LOW…ts/unittest/disaggregated/test_sync_transfer_timing.py50 def set_kv_cache_size(self, v: int) -> None:CODE
LOWtests/unittest/scripts/test_fetch_cache.py168def _set_origin_url(worktree: Path, url: str) -> None:CODE
LOWtests/unittest/llmapi/apps/_test_openai_prometheus.py33logger = logging.getLogger(__name__)CODE
LOWtests/unittest/llmapi/apps/_test_openai_perf_metrics.py17logger = logging.getLogger(__name__)CODE
LOW…sts/unittest/executor/test_fatal_error_health_check.py47logger = logging.getLogger(__name__)CODE
LOW…_deploy/singlegpu/custom_ops/test_multi_stream_attn.py109def _set_linear_meta(node: Node, out_features: int) -> None:CODE
LOWtests/integration/defs/conftest.py70logger = logging.getLogger(__name__)CODE
LOW…/integration/defs/stress_test/disagg_cancel/harness.py50logger = logging.getLogger(__name__)CODE
LOWtests/integration/defs/utils/periodic_junit.py376 def _setup_hang_dump(self) -> None:CODE
LOWtests/integration/defs/utils/__init__.py26__all__ = [CODE
LOW…s/integration/defs/accuracy/test_llm_api_autodeploy.py69def _set_quant_config(llm, model_id: str) -> None:CODE
LOWtests/integration/defs/sysinfo/get_sysinfo.py34logger = logging.getLogger(__name__)CODE
LOWtests/integration/defs/perf/utils.py501 def set_runtime_configs(self, *args) -> None:CODE
LOWtests/integration/defs/thirdparty/test_git_modules.py14logger = logging.getLogger(__name__)CODE
LOW…/integration/defs/thirdparty/test_cmake_third_party.py16logger = logging.getLogger(__name__)CODE
LOWtests/test_common/s3_output.py31logger = logging.getLogger(__name__)CODE
LOWtests/microbenchmarks/bench_moe/cli.py683 def set_if_unset(dest: str, value: Any) -> None:CODE
LOWtests/microbenchmarks/bench_moe/timing/__init__.py48__all__ = [CODE
LOWtests/microbenchmarks/bench_moe/routing/__init__.py76__all__ = [CODE
LOW…crobenchmarks/attention_perf/attention_perf_harness.py72__all__ = ["AttnCase", "Signals", "collect_signals", "sm_arch", "device_name"]CODE
LOWtensorrt_llm/sampling_params.py469 def _set_request_provided_fields(self, field_names: Iterable[str]) -> None:CODE
LOWtensorrt_llm/_common.py42__all__ = [CODE
LOWtensorrt_llm/ray_stub.py44__all__ = [CODE
LOWtensorrt_llm/__init__.py138__all__ = [CODE
LOWtensorrt_llm/prompt_adapter_manager.py35__all__ = [CODE
LOWtensorrt_llm/lora_manager.py46__all__ = [CODE
LOWtensorrt_llm/serialization.py51__all__ = [CODE
LOWtensorrt_llm/_ray_utils.py37__all__ = [CODE
320 more matches not shown…
Redundant / Tautological Comments228 hits · 330 pts
SeverityFileLineSnippetContext
LOWsetup.py309 # Check if file matches any pattern using fnmatch (same as wheel extraction)COMMENT
LOW…ittest/_torch/attention/sparse/dsa/test_dsa_indexer.py2809 # Check if exactly the sameCOMMENT
LOW…attention/sparse/deepseek_v4/test_compressor_kernel.py2639 # Print resultsCOMMENT
LOW…attention/sparse/deepseek_v4/test_compressor_kernel.py2755 # Print resultsCOMMENT
LOW…arse/deepseek_v4/test_deepseek_v4_indices_transform.py67 # Set compressed_topk to 2048 to test all compressed tokensCOMMENT
LOW…ittest/_torch/multi_gpu/test_lowprecision_allreduce.py164 # Check if total differences is multiple of 8COMMENT
LOW…ittest/_torch/multi_gpu/test_lowprecision_allreduce.py166 # Check if all diff_values_output are in tmp_raw_resultCOMMENT
LOW…ittest/_torch/multi_gpu/test_lowprecision_allreduce.py214 # Print resultsCOMMENT
LOWtests/unittest/_torch/sampler/test_logits_logprobs.py525 # Check if the logprob matches the top-rank logprob from the logitsCOMMENT
LOWtests/unittest/_torch/sampler/test_logits_logprobs.py535 # Check if the logprob matches the token-id logprob from the logitsCOMMENT
LOWtests/unittest/_torch/sampler/test_torch_sampler.py1343 # Check if sizes are correctCOMMENT
LOWtests/unittest/_torch/sampler/test_torch_sampler.py1354 # Check if values are added correctlyCOMMENT
LOW…sts/unittest/_torch/thop/parallel/test_fp8_quantize.py194 # Check if the bits of paddings are zero.COMMENT
LOW…test/_torch/thop/parallel/test_fp8_block_scale_gemm.py498 # Print the outputCOMMENT
LOW…sts/unittest/_torch/executor/test_router_dealer_ipc.py86 # Check if any process is still alive and terminate if neededCOMMENT
LOWtests/unittest/_torch/modules/test_moe_host_sharer.py44 # Check if the data matches the expected patternCOMMENT
LOWtests/unittest/_torch/modules/test_moe_host_sharer.py157 # Check if all expert tensors are correctly shared and stored in all_tensorsCOMMENT
LOWtests/unittest/_torch/modules/moe/test_moe_module.py338 # Check if we should run full tactic replayCOMMENT
LOWtests/unittest/_torch/modules/moe/test_moe_backend.py1548 # Check if this backend+quant_algo combination supports autotuner capture/replayCOMMENT
LOWtests/unittest/tools/test_test_to_stage_mapping.py330 # Check if stage name contains the backend identifierCOMMENT
LOWtests/unittest/scaffolding/test_mcp_worker.py148 # Check if process exited unexpectedlyCOMMENT
LOWtests/unittest/scaffolding/test_mcp_worker.py152 # Check if timeout occurredCOMMENT
LOWtests/unittest/disaggregated/test_perf_logger.py125 # Close file handlers before the temporary directory exits.COMMENT
LOWtests/unittest/disaggregated/test_perf_logger.py151 # Close file handlers before the temporary directory exits.COMMENT
LOW…unittest/disaggregated/test_py_cache_transceiver_mp.py780 # Print results and assert on rank 0COMMENT
LOWtests/unittest/llmapi/test_llm_args.py3132 # Check if this field is exempt (check class and all parent classes)COMMENT
LOWtests/unittest/llmapi/test_llm_args.py3304 # Check if the default is a mutable type instanceCOMMENT
LOWtests/unittest/llmapi/apps/_test_openai_prometheus.py192 # Check if iteration stats metrics have sample valuesCOMMENT
LOWtests/unittest/llmapi/apps/utils.py218 # Check if this group has bracket notationCOMMENT
LOWtests/unittest/llmapi/apps/utils.py230 # Check if it's a range (contains dash)COMMENT
LOWtests/unittest/llmapi/apps/_test_openai_cache_salt.py79 # Check if metrics endpoint is availableCOMMENT
LOWtests/unittest/llmapi/apps/_test_openai_cache_salt.py157 # Check if metrics are availableCOMMENT
LOW…ions/library/test_allreduce_residual_rmsnorm_fusion.py141 # Check if fused node in the graph and verify strategyCOMMENT
LOW…glegpu/transformations/library/test_trtllm_gen_diag.py382 # Print valuesCOMMENT
LOW…eploy/singlegpu/utils/test_delete_unused_submodules.py171 # Check if any of the node's inputs come from a target module's get_attrCOMMENT
LOW…deploy/singlegpu/models/test_glm4_moe_lite_modeling.py401 # Check if this is an MoE expert weightCOMMENT
LOWtests/integration/defs/conftest.py1516 # Check if nvidia-smi returned a valid numeric valueCOMMENT
LOWtests/integration/defs/conftest.py1891 # Check if any suite name matches the test nameCOMMENT
LOWtests/integration/defs/common.py781 # Check if the port is freeCOMMENT
LOWtests/integration/defs/test_e2e.py1746 # Print the outputs.COMMENT
LOWtests/integration/defs/test_list_validation.py81 # Check if perf test config can be successfully loaded.COMMENT
LOWtests/integration/defs/stress_test/stress_test.py1476 # Check if we have any valid dataCOMMENT
LOWtests/integration/defs/stress_test/stress_test.py623 # Check if port is availableCOMMENT
LOWtests/integration/defs/stress_test/stress_test.py627 # Check if server is already runningCOMMENT
LOWtests/integration/defs/stress_test/stress_test.py769 # Check if process is still runningCOMMENT
LOWtests/integration/defs/stress_test/stress_test.py1339 # Check if process completed successfullyCOMMENT
LOW…s/integration/defs/disaggregated/test_disaggregated.py2920 # Check if process completed successfullyCOMMENT
LOW…ntegration/defs/accuracy/test_disaggregated_serving.py94 # Check if the command executed successfullyCOMMENT
LOW…integration/defs/examples/run_llm_quickstart_atexit.py23 # Print the outputs.COMMENT
LOW…egration/defs/examples/test_ad_speculative_decoding.py322# Set up to test the prefill-only version of the EagleWrapper model in test_eagle_wrapper_forward().COMMENT
LOW…egration/defs/examples/test_ad_speculative_decoding.py911 # Set previously_accepted_tokens to the length of input_ids (all context tokens are accepted)COMMENT
LOWtests/integration/defs/sysinfo/get_sysinfo.py278 #Set is_remote to False temporarilyCOMMENT
LOWtests/integration/defs/perf/perf_regression_utils.py96 # Set trigger_mr_commit to commitCOMMENT
LOWtests/integration/defs/perf/perf_regression_utils.py152 # Check if all valid values are identicalCOMMENT
LOWtests/integration/defs/perf/perf_regression_utils.py341 # Check if this metric is regressive (only for key regression metrics)COMMENT
LOWtests/integration/defs/perf/test_perf.py644 # Check if device subtype is present (for autodeploy tests)COMMENT
LOWtests/integration/defs/perf/test_perf.py1753 # Check if any commands failed.COMMENT
LOWtests/integration/defs/perf/data_export.py434 # Check if someone the log could not be found or setCOMMENT
LOWtests/integration/defs/perf/utils.py630 # Print the output log to buf.COMMENT
LOWtests/integration/defs/perf/utils.py635 # Print the output log to buf.COMMENT
168 more matches not shown…
Modern AI Meta-Vocabulary69 hits · 201 pts
SeverityFileLineSnippetContext
MEDIUMrequirements.txt88mcp<2.0.0 # 2.0.0 removed mcp.server.fastmcp; scaffolding still uses the 1.x APIsCODE
MEDIUM…flow/tests/workflows/modeling_bringup/test_workflow.py1154# (manual or in CI), but the prompt scaffolding must stay intact acrossCOMMENT
MEDIUM…nt-flow/tests/workflows/perf_optimize/test_workflow.py271# ------------------------------------------------------- stubbed orchestrationCOMMENT
MEDIUM…ent-flow/tests/workflows/perf_analyze/test_workflow.py164# ------------------------------------------------------- stubbed orchestrationCOMMENT
MEDIUMagent-flow/agent_flow/workflows/agent_team/workflow.py314 # ------------------------------------------------------------- orchestrationCOMMENT
MEDIUM…nt-flow/agent_flow/workflows/perf_optimize/workflow.py348 # ------------------------------------------------------------- orchestrationCOMMENT
MEDIUM…ent-flow/agent_flow/workflows/perf_analyze/workflow.py291 # ------------------------------------------------------------- orchestrationCOMMENT
MEDIUM…ittest/_torch/modeling/test_modeling_qwen3_5_vl_moe.py233# --- Layered parity test scaffold -------------------------------------------COMMENT
MEDIUM…s/unittest/_torch/modeling/test_modeling_qwen3_5_vl.py213# --- Layered parity test scaffold -------------------------------------------COMMENT
MEDIUMtests/unittest/_torch/modules/helix_test_utils.py281# MPI orchestrationCOMMENT
MEDIUMtests/unittest/others/test_lm_eval.py525# format, thinking-mode chain-of-thought, empty output, etc.).COMMENT
MEDIUMtests/unittest/disaggregated/test_mamba_transfer.py241 # dummy attention layer (page table scaffolding)COMMENT
MEDIUMtests/unittest/disaggregated/test_kda_mamba_transfer.py163 # dummy attention layer (page table scaffolding)COMMENT
MEDIUMtests/unittest/llmapi/apps/_test_openai_embeddings.py195# sentence-embedding model. A separate, opt-in server (loads a multi-GBCOMMENT
MEDIUMtests/unittest/executor/test_proxy_fast_death.py101 # Broadcast happened event-driven: sticky flag set + EngineDeadError pushed.COMMENT
MEDIUM…ation/defs/accuracy/test_llm_api_pytorch_multimodal.py473 # chain-of-thought reasoning before outputting the answer.COMMENT
MEDIUM…on/defs/examples/visual_gen/test_visual_gen_cosmos3.py51# Cosmos3 requires VANILLA attention and guardrails disabled in CI.COMMENT
MEDIUM…m-test-specialist/references/test_config_template.yaml225# [optional] Number of few-shot examples prepended to each prompt (--num_fewshot).COMMENT
MEDIUM…e/skills/perf-host-optimization/references/examples.md149# Use UPPER_WORKSPACE_DIR to isolate agentic runs from manual runsCOMMENT
MEDIUM…tllm-test-script-builder/scripts/build_slurm_script.py617 # the orchestrating host. Callers should pass --local-log-dir pointing toSTRING
MEDIUM…ference_Time_Compute_Implementation_in_TensorRT-LLM.md9 - [Introduction for Scaffolding: A Framework for inference-time compute](#introduction-for-scaffolding)CODE
MEDIUM…ference_Time_Compute_Implementation_in_TensorRT-LLM.md10 - [Core Features](#scaffolding-core-feature)CODE
MEDIUM…ference_Time_Compute_Implementation_in_TensorRT-LLM.md11 - [Architecture](#scaffolding-architecture)CODE
MEDIUM…ference_Time_Compute_Implementation_in_TensorRT-LLM.md12 - [Worker](#scaffolding-architecture-worker)CODE
MEDIUM…ference_Time_Compute_Implementation_in_TensorRT-LLM.md13 - [Controller](#scaffolding-architecture-controller)CODE
MEDIUM…ference_Time_Compute_Implementation_in_TensorRT-LLM.md14 - [ScaffoldingLlm](#scaffolding-architecture-scaffoldingllm)CODE
MEDIUM…ference_Time_Compute_Implementation_in_TensorRT-LLM.md15 - [An Example: Implement Dynasor on Scaffolding](#example-for-scaffolding)CODE
MEDIUM…ference_Time_Compute_Implementation_in_TensorRT-LLM.md17 - [Implement Dynasor-CoT in Scaffolding](#dynasor-cot-implement-in-scaffolding)CODE
MEDIUM…ference_Time_Compute_Implementation_in_TensorRT-LLM.md18 - [Implement Dynasor-CoT based Majority Voting in Scaffolding](#dynasor-cot-based-majority-vote-in-scaffolding)CODE
MEDIUM…ference_Time_Compute_Implementation_in_TensorRT-LLM.md21 - [Feature List on Scaffolding](#scaffolding-feature-list)CODE
MEDIUM…ference_Time_Compute_Implementation_in_TensorRT-LLM.md22 - [Future Work](#scaffolding-future-work)CODE
MEDIUM…ference_Time_Compute_Implementation_in_TensorRT-LLM.md334 # For the probe task, append the suffix to force a chain-of-thought leading to an answer.COMMENT
MEDIUM…ference_Time_Compute_Implementation_in_TensorRT-LLM.md347 # If the current prompt indicates the chain-of-thought phase has ended, use one type of suffix.COMMENT
MEDIUM…_and_Agentic_Workload_Optimizations_in_TensorRT-LLM.md43- [Part II. Agentic-Workload Optimizations](#part-ii-agentic-workload-optimizations)CODE
MEDIUM…_and_Agentic_Workload_Optimizations_in_TensorRT-LLM.md45 - [Lessons from DeepSeek-V3.2 Agentic Workload Optimization](#lessons-from-deepseek-v32-agentic-workload-optimization)CODE
MEDIUM…_and_Agentic_Workload_Optimizations_in_TensorRT-LLM.md46 - [End-to-End Optimizations for Agentic Serving](#end-to-end-optimizations-for-agentic-serving)CODE
MEDIUM…_and_Agentic_Workload_Optimizations_in_TensorRT-LLM.md54 - [Optimize scheduling, orchestration, and protocol handling](#optimize-scheduling-orchestration-and-protocol-handCODE
MEDIUM…_and_Agentic_Workload_Optimizations_in_TensorRT-LLM.md319The latest measured fixed-shape InferenceX curve establishes the clean model/runtime baseline for [Part II](#part-ii-ageCODE
MEDIUM…_and_Agentic_Workload_Optimizations_in_TensorRT-LLM.md326[AA-AgentPerf](https://artificialanalysis.ai/methodology/agentperf) measures how many active coding agents an inference CODE
MEDIUM…_and_Agentic_Workload_Optimizations_in_TensorRT-LLM.md364Starting from the final model/runtime stack in [Part I](#part-i-deepseek-v4-model-support-and-optimizations), this sectiCODE
MEDIUM…_and_Agentic_Workload_Optimizations_in_TensorRT-LLM.md425##### Optimize scheduling, orchestration, and protocol handlingCOMMENT
MEDIUMtensorrt_llm/_torch/models/modeling_mistral.py727 # path) or intentionally absent (e.g. raw few-shot eval like MMLU).COMMENT
MEDIUMtensorrt_llm/_torch/pyexecutor/sampler/__init__.py74 # Lazily forward everything else to the sampler orchestration module.COMMENT
MEDIUMtensorrt_llm/_torch/modules/dwdp/__init__.py84 # Setup orchestrationCOMMENT
MEDIUM…dsl_kernels/blackwell/pertoken_adaln/pertoken_adaln.py19# Provenance: the row-per-CTA scaffold (two-pass mean/var warp+CTA reduce,COMMENT
MEDIUM…_llm/scaffolding/contrib/Dynasor/dynasor_controller.py104 # For the probe task, append the suffix to force a chain-of-thought leading to an answer.COMMENT
MEDIUMtensorrt_llm/scaffolding/contrib/Dynasor/evaluator.py468 # Handle Chinese few-shot multiple choice problem answer extractionCOMMENT
MEDIUM…nsorrt_llm/scaffolding/contrib/iter_research/README.md31### MCP tools under `examples/scaffolding/mcp`COMMENT
MEDIUMtensorrt_llm/scaffolding/contrib/Coder/__init__.py21 # python examples/scaffolding/mcp/coder/coder_mcp.py --port 8083STRING
MEDIUMtensorrt_llm/scaffolding/contrib/Coder/coder.py262 # python examples/scaffolding/mcp/coder/coder_mcp.py --port 8083STRING
MEDIUMtensorrt_llm/evaluate/covost2.py264 # rfind so that if the model dumps chain-of-thought with theCOMMENT
MEDIUMtensorrt_llm/evaluate/longbench_v2.py238 # Handle RAG modeCOMMENT
MEDIUMtensorrt_llm/evaluate/lm_eval.py223 # whose chain-of-thought output exceeds lm-eval's default (~512).COMMENT
MEDIUMtensorrt_llm/evaluate/lm_eval.py318 # thinking mode produces long chain-of-thought output. DefaultCOMMENT
MEDIUMtensorrt_llm/evaluate/lm_eval_tasks/mmmu_pro/utils.py29# smaller / MoE models that benefit the most from chain-of-thought).COMMENT
MEDIUMtensorrt_llm/llmapi/llm_args.py2963 # internal plumbing remain as scaffolding (see DSparkConfidenceHead /COMMENT
MEDIUMtensorrt_llm/executor/proxy.py428 # event-driven (see _handle_worker_death), so a coarse interval isCOMMENT
MEDIUMtensorrt_llm/commands/serve.py802 # causal-LM architecture; remap it to the text-embedding model class so theCOMMENT
MEDIUMtensorrt_llm/serve/openai_server.py137# request body: the large agentic chat body otherwise blocks the serving eventCOMMENT
MEDIUMtensorrt_llm/serve/openai_protocol.py1200# outright. Codex multi-agent sessions carry "agent_message" items, which noCOMMENT
9 more matches not shown…
Fake / Example Data73 hits · 72 pts
SeverityFileLineSnippetContext
LOW…/unittest/_torch/multimodal/test_multimodal_runtime.py885 extra = {"multimodal_data": {"multimodal_embedding": "placeholder"}}CODE
LOW…ts/unittest/disaggregated/test_disagg_openai_client.py251 dummy_data = [CODE
LOW…ts/unittest/disaggregated/test_disagg_openai_client.py258 for data in dummy_data:CODE
LOW…ts/unittest/disaggregated/test_disagg_openai_client.py279 assert chunk == dummy_data[i]CODE
LOWtests/unittest/llmapi/test_llm_pytorch.py1537 "lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magCODE
LOWtests/unittest/llmapi/test_llm_pytorch.py1537 "lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magCODE
LOWtests/unittest/llmapi/test_llm_pytorch.py1622 "lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et doCODE
LOWtests/unittest/llmapi/test_llm_pytorch.py1622 "lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et doCODE
LOWtests/unittest/llmapi/test_llm_pytorch.py1805 "lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et doCODE
LOWtests/unittest/llmapi/test_llm_pytorch.py1805 "lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et doCODE
LOWtests/unittest/llmapi/apps/test_chat_utils.py435 "placeholder": retrieve_multimodal_placeholder(_MM_MODEL_TYPE, modality, index + 1),CODE
LOW…y/multigpu/transformations/library/test_tp_sharding.py503 placeholder_targets = [node.target for node in gm.graph.nodes if node.op == "placeholder"]CODE
LOW…eploy/singlegpu/transformations/test_pipeline_cache.py810 restored_input = next(node for node in restored.graph.nodes if node.op == "placeholder")CODE
LOW…y/singlegpu/transformations/library/test_moe_fusion.py1869 if node.op == "placeholder" and node.target == "routing_weights":CODE
LOW…/singlegpu/transformations/library/test_gemm_fusion.py721 if node.op in ("placeholder", "output", "get_attr"):CODE
LOW…/transformations/library/test_kvcache_vswa_metadata.py91 return [node.target for node in gm.graph.nodes if node.op == "placeholder"]CODE
LOW…/transformations/library/test_kvcache_vswa_metadata.py144 and arg.op == "placeholder"CODE
LOW…/transformations/library/test_kvcache_vswa_metadata.py186 if node.op == "placeholder" and "seq_len_with_cache" in str(node.target):CODE
LOW…pu/transformations/library/test_shared_kv_attention.py173 placeholder_names = [node.target for node in gm.graph.nodes if node.op == "placeholder"]CODE
LOW…pu/transformations/library/test_shared_kv_attention.py317 placeholder_names = [node.target for node in gm.graph.nodes if node.op == "placeholder"]CODE
LOW…pu/transformations/library/test_shared_kv_attention.py403 placeholder_names = [node.target for node in gm.graph.nodes if node.op == "placeholder"]CODE
LOW…inglegpu/transformations/library/test_fuse_silu_mul.py52 if n.op == "placeholder":CODE
LOW…inglegpu/transformations/library/test_fuse_silu_mul.py77 if n.op == "placeholder":CODE
LOW…inglegpu/transformations/library/test_fuse_silu_mul.py104 if n.op == "placeholder":CODE
LOW…t/auto_deploy/singlegpu/compile/test_captured_graph.py119 node for node in gm.graph.nodes if node.op == "placeholder" and node.target == "out"CODE
LOW…/auto_deploy/singlegpu/compile/test_piecewise_utils.py247 for op_type in ("placeholder", "call_method", "call_module", "output", "get_attr"):CODE
LOWtests/integration/defs/llmapi/test_llm_api_connector.py176 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore mCODE
LOWtests/integration/defs/llmapi/test_llm_api_connector.py176 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore mCODE
LOW…k/references/runtime-execution/attention-dp-padding.md29- **Expected effect:** higher throughput and MFU under ragged DP load by removing dummy-token compute + per-step host paCODE
LOWtensorrt_llm/_torch/pyexecutor/resource_manager.py283 TODO(TRTLLM-12045): each model should provide its own warmup dummy_dataSTRING
LOWtensorrt_llm/_torch/auto_deploy/utils/node_utils.py979 # in the graph, and this input_id_node op is "placeholder". Nevertheless, it serves as a properCOMMENT
LOWtensorrt_llm/_torch/auto_deploy/utils/node_utils.py967 if input_id_node is None and node.op == "placeholder":CODE
LOWtensorrt_llm/_torch/auto_deploy/utils/_graph.py418 inps = [node.meta.get("val", _NO_VAL) for node in gm.graph.nodes if node.op == "placeholder"]CODE
LOWtensorrt_llm/_torch/auto_deploy/utils/_graph.py502 node_last_input = graph.find_nodes(op="placeholder", sort=True)[-1]CODE
LOWtensorrt_llm/_torch/auto_deploy/utils/_graph.py545 if n.op != "placeholder":CODE
LOWtensorrt_llm/_torch/auto_deploy/utils/_graph.py789 if input_node.op != "placeholder":CODE
LOWtensorrt_llm/_torch/auto_deploy/utils/_graph.py796 placeholder_nodes = graph.find_nodes(op="placeholder", sort=True)CODE
LOWtensorrt_llm/_torch/auto_deploy/utils/graph_writer.py54 if node.op == "placeholder":CODE
LOW…lm/_torch/auto_deploy/models/custom/modeling_gemma4.py2251 node.target for node in language_model.graph.nodes if node.op == "placeholder"CODE
LOW…llm/_torch/auto_deploy/models/custom/modeling_eagle.py996 return {node.name for node in submodule.graph.nodes if node.op == "placeholder"}CODE
LOWtensorrt_llm/_torch/auto_deploy/mlir/fx_to_mlir.py175 if node.op == "placeholder":CODE
LOW…orrt_llm/_torch/auto_deploy/compile/piecewise_utils.py291 if node.op in ("placeholder", "output"):CODE
LOW…_torch/auto_deploy/compile/backends/torch_cudagraph.py719 if node.op == "placeholder":CODE
LOW…_torch/auto_deploy/compile/backends/torch_cudagraph.py130 if node.op == "placeholder":CODE
LOWtensorrt_llm/_torch/auto_deploy/shim/ad_executor.py791 dummy_token = -1CODE
LOWtensorrt_llm/_torch/auto_deploy/shim/ad_executor.py850 input_ids.extend([dummy_token] * (1 + draft_len))CODE
LOWtensorrt_llm/_torch/auto_deploy/transform/interface.py801 input_nodes = gm.graph.find_nodes(op="placeholder", target=name)CODE
LOW…torch/auto_deploy/transform/graph_module_visualizer.py208 "placeholder": {"fillcolor": "lightgreen", "shape": "box"},CODE
LOW…torch/auto_deploy/transform/graph_module_visualizer.py615 elif node.op == "placeholder":CODE
LOW…rch/auto_deploy/transform/pipeline_cache/structural.py242 if node.op in ("placeholder", "get_attr"):CODE
LOW…lm/_torch/auto_deploy/transform/library/sharding_ir.py1284 batch_info_host_nodes = gm.graph.find_nodes(op="placeholder", target="batch_info_host")CODE
LOW…rt_llm/_torch/auto_deploy/transform/library/kvcache.py142 op="placeholder", target=input_nameCODE
LOW…rt_llm/_torch/auto_deploy/transform/library/kvcache.py153 node_last_input = gm.graph.find_nodes(op="placeholder", sort=True)[-1]CODE
LOW…rt_llm/_torch/auto_deploy/transform/library/kvcache.py177 node_last_input = gm.graph.find_nodes(op="placeholder", sort=True)[-1]CODE
LOW…sorrt_llm/_torch/auto_deploy/transform/library/rope.py435 if current.op in ("get_attr", "placeholder"):CODE
LOW…_deploy/transform/library/cleanup_input_constraints.py46 input_node = graph.find_nodes(op="placeholder")[1]CODE
LOWtensorrt_llm/_torch/modules/fused_moe/moe_scheduler.py167 # Existing truncation at Step 4 discards dummy-token outputs automatically.COMMENT
LOWtensorrt_llm/_torch/compilation/piecewise_optimizer.py88 if node.op == "placeholder":CODE
LOWtensorrt_llm/_torch/compilation/piecewise_optimizer.py290 if node.op in ("output", "placeholder"):CODE
LOWtensorrt_llm/_torch/compilation/backend.py203 if node.op == "placeholder":CODE
13 more matches not shown…
Magic Placeholder Names5 hits · 22 pts
SeverityFileLineSnippetContext
HIGHtensorrt_llm/scaffolding/contrib/Coder/__init__.py16 api_key="your-api-key",STRING
HIGHtensorrt_llm/scaffolding/contrib/Coder/coder.py257 api_key="your-api-key",STRING
HIGHexamples/scaffolding/mcp/README.md45export TAVILY_API_KEY=<your_api_key>CODE
HIGHexamples/scaffolding/mcp/README.md90python3 mcptest.py --API_KEY YOUR_API_KEYCODE
HIGH.github/ISSUE_TEMPLATE/06-bug-report.yml21 Consider redacting or replacing sensitive values with placeholders like `<YOUR_TOKEN_HERE>` when sharing configuraCODE
Slop Phrases12 hits · 21 pts
SeverityFileLineSnippetContext
LOWtensorrt_llm/functional.py441 # Note: When not using deepseek_yarn, make sure to set mscale_all_dim to 0.0.COMMENT
LOW…m/_torch/auto_deploy/custom_ops/attention_interface.py1371 # set new input_ids and make sure to flatten itCOMMENT
LOW…m/_torch/auto_deploy/custom_ops/attention_interface.py1446 # set new position_ids and make sure to flatten itCOMMENT
LOW…m/_torch/auto_deploy/transform/library/export_to_gm.py79 # make sure to prepend the hook so that it is called before any other hooks so we canCOMMENT
MEDIUMtensorrt_llm/_torch/modules/fused_moe/deep_ep_utils.py157 # Later, you can use our GEMM library to do the computation with this specific formatCOMMENT
MEDIUMtensorrt_llm/commands/utils.py118 "registered LLM/VLM architecture; treating it as a language model."CODE
LOWcpp/kernels/fmha_v2/src/softmax_impl.h615 // Don't forget to put the value in sum_fp32 :)COMMENT
LOWcpp/kernels/fmha_v2/src/softmax_impl.h709 // Don't forget to put the value in sum_fp32 :)COMMENT
LOWcpp/kernels/fmha_v2/src/softmax_impl.h753 // Don't forget to put the value in sum_fp32 :)COMMENT
LOWcpp/kernels/fmha_v2/src/softmax_impl.h792 // Don't forget to put the value in sum_fp32 :)COMMENT
MEDIUMexamples/llm-api/llm_kv_cache_connector.py79**NOTE:** This example connector implementation is designed for demonstration purposesSTRING
MEDIUMexamples/llm-api/llm_mgmn_llm_distributed.sh44# NOTE: This is a template - you can replace quickstart_advanced.py with anyCOMMENT
AI Response Leakage2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHCODING_GUIDELINES.md734# In this example, the return type can be expressed asCOMMENT
HIGH…sts/integration/test_input_files/pg64317_sanitized.txt1The Project Gutenberg eBook of The Great Gatsby\n\nThis ebook is for the use of anyone anywhere in the United States anCODE
Example Usage Blocks8 hits · 12 pts
SeverityFileLineSnippetContext
LOW…kills/trtllm-case-executor/scripts/detect_slurm_env.sh27# Usage:COMMENT
LOWcpp/kernels/fmha_v2/src/fmha/utils.h74// Example usage:COMMENT
LOWexamples/visual_gen/serve/benchmark_visual_gen.sh8# Usage:COMMENT
LOWexamples/trtllm-eval/install_nemo_skills.sh16# Usage:COMMENT
LOWscripts/release_check.py164 # Usage:COMMENT
LOWscripts/bolt/bolt_lib.sh25# Usage:COMMENT
LOWjenkins/scripts/bash_utils.sh9# Usage:COMMENT
LOWjenkins/scripts/perf/local/run_disagg.sh7# Usage:COMMENT
TODO Padding3 hits · 6 pts
SeverityFileLineSnippetContext
LOW…/singlegpu/transformations/library/test_gemm_fusion.py252# TODO: consider adding test cases for classic GQA and MLP layersCOMMENT
LOWtensorrt_llm/_torch/pyexecutor/kv_cache_manager_v2.py3871 # TODO: implement thisCOMMENT
LOWtensorrt_llm/_torch/pyexecutor/kv_cache_manager_v2.py3875 # TODO: implement thisCOMMENT
Overly Generic Function Names4 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/unittest/llmapi/_run_multi_mpi_comm_tasks.py12def run_task(task_type: Literal["submit", "submit_sync"]):CODE
LOWtensorrt_llm/scaffolding/worker.py58 async def run_task(self, task: Task) -> TaskStatus:CODE
LOWtensorrt_llm/llmapi/utils.py843 def my_method(self, *args, **kwargs):STRING
LOWtensorrt_llm/llmapi/utils.py848 def my_method(self, *args, **kwargs):STRING
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…ts/unittest/_torch/executor/test_hang_detector_kill.py708CODE