AI Slop Code RIsk Monitor

sgl-project/sglang

SGLang is a high-performance serving framework for large language models and multimodal models.

18.2 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for sgl-project/sglang, a Python project with 36,969 GitHub stars. SynthScan examined 3,045,694 lines of code across 9529 source files, recording 44924 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 18.2 (Elevated pattern signal); it is not an authorship estimate.

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

18.2
Adjusted Signal
18.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
37.0K
Stars
Python
Language
3.0M
Lines of Code
9.5K
Files
44.9K
Pattern Hits
2026-10-12
Scan Date
0.10
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 42.2/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 6.5/100 · LOW

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

Agent Over-Engineering Ratio 52.1/100 · HIGH

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

PR Review Velocity Impact 60.7/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 18HIGH 957MEDIUM 3507LOW 40442

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers27049 hits · 26310 pts
SeverityFileLineSnippetContext
LOWbenchmark/kernels/attention/sm90_config_search.py183def find_feasible_bwd_configs(CODE
LOWbenchmark/kernels/attention/sm90_config_search.py327def find_feasible_fwd_configs(CODE
LOW…ing_window_attention_triton/bench_triton_swa_kernel.py11def extend_attention_fwd_torch(CODE
LOWbenchmark/kernels/all_gather/benchmark_aiter.py175def expected_logical_all_gather(CODE
LOWbenchmark/kernels/all_gather/benchmark_aiter.py230def install_aiter_aot_import_shims() -> None:CODE
LOWbenchmark/kernels/all_gather/benchmark_mscclpp.py81def _validate_cuda_graph_updates(CODE
LOW⚡…shinfer_allreduce_fusion/benchmark_fused_collective.py124def cleanup_flashinfer_workspace(ipc_handles):CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py87def setup_flashinfer_workspace(CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py155 def get_trtllm_fused_allreduce_kwargs(self):CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py165def flashinfer_fused_allreduce_rmsnorm(CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py290def standard_allreduce_rmsnorm(CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py400def standard_allreduce_rmsnorm_native(CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py481def standard_allreduce_rmsnorm_native_compiled(CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py897def prepare_results_with_speedups(results_dict):CODE
LOW…uler_batch/benchmark_write_req_to_token_pool_triton.py12def write_req_to_token_pool_triton(CODE
LOW…uler_batch/benchmark_write_req_to_token_pool_triton.py49def write_req_to_token_pool_triton_optimize(CODE
LOW…uler_batch/benchmark_write_req_to_token_pool_triton.py91def write_req_to_token_pool_reference(CODE
LOW…uler_batch/benchmark_write_req_to_token_pool_triton.py114def test_write_req_to_token_pool():CODE
LOWbenchmark/kernels/fused_moe_triton/common_utils.py24def calculate_shard_intermediate_size(CODE
LOWbenchmark/kernels/fused_moe_triton/common_utils.py228def get_rocm_configs_compute_bound() -> List[Dict[str, int]]:CODE
LOWbenchmark/kernels/fused_moe_triton/common_utils.py251def get_configs_compute_bound() -> List[Dict[str, int]]:CODE
LOWbenchmark/kernels/deepseek/benchmark_q8kv8_kv_gather.py92def build_page_table_flattened(CODE
LOW…nels/deepseek/benchmark_deepgemm_fp8_gemm_blackwell.py182def get_benchmark_plot_friendly(tp_size):CODE
LOW…hmark/kernels/quantization/tuning_block_wise_kernel.py149def get_rocm_configs_compute_bound():CODE
LOW…hmark/kernels/quantization/tuning_block_wise_kernel.py172def get_configs_compute_bound():CODE
LOW…s/decoding_attention_triton/triton_flashinfer_cudnn.py98def decode_attention_flashinfer(dtype, head_num_q, head_num_kv):CODE
LOWbenchmark/agentic-rollout/tests/test_simulate.py154 async def test_all_modes_and_stream_formats_preserve_history(self):CODE
LOWbenchmark/agentic-rollout/tests/test_simulate.py214 async def test_omitted_rank_requires_verified_single_worker(self):CODE
LOWbenchmark/agentic-rollout/tests/test_simulate.py238 async def test_disable_dp_sticky_routing(self):CODE
LOWbenchmark/agentic-rollout/tests/test_simulate.py247 async def test_invalid_stream_fails_and_closes_owned_sessions(self):CODE
LOWbenchmark/agentic-rollout/tests/test_simulate.py264 async def test_server_rejection_is_preserved(self):CODE
LOW⚡benchmark/agentic-rollout/tests/test_simulate.py289 def test_inputs_are_repeatable_and_distinct(self):CODE
LOW⚡benchmark/agentic-rollout/tests/test_simulate.py295 def test_token_weighted_cache_and_missing_data(self):CODE
LOW⚡benchmark/agentic-rollout/tests/test_simulate.py304 def test_throughput_uses_arrivals_and_partial_window_duration(self):CODE
LOWbenchmark/agentic-rollout/tests/test_simulate.py332 def test_counter_labels_resets_and_missing_series(self):CODE
LOWbenchmark/agentic-rollout/tests/test_explore.py27 def test_occupancy_includes_evictable_and_matches_labels(self):CODE
LOWbenchmark/agentic-rollout/tests/test_explore.py46 def test_hits_include_storage_and_uncached_denominator(self):STRING
LOWbenchmark/agentic-rollout/tests/test_explore.py58 def test_per_label_reset_cannot_be_hidden_by_another_worker(self):STRING
LOW⚡benchmark/agentic-rollout/tests/test_explore.py69 def test_scrape_error_breaks_rates(self):STRING
LOW⚡benchmark/agentic-rollout/tests/test_explore.py79 def test_nonfinite_missing_and_zero_capacity(self):STRING
LOW⚡benchmark/agentic-rollout/tests/test_explore.py88 def test_old_failed_recording_and_offline_assets(self):STRING
LOWbenchmark/agentic-rollout/tests/test_explore.py160 def test_interrupted_empty_recording(self):STRING
LOWbenchmark/mmmu/bench_sglang.py127async def process_sample_with_semaphore(CODE
LOWbenchmark/mmmu/eval_utils.py292def _parse_explicit_multi_choice_answer(response, all_choices):CODE
LOWbenchmark/mmmu/eval_utils.py303def parse_multi_choice_response(response, all_choices, index2ans):CODE
LOW…hmark/bench_pynccl_allocator/bench_segment_tracking.py56def bench_register_segments_with_comm(CODE
LOW…hmark/bench_pynccl_allocator/bench_segment_tracking.py114def bench_with_various_segment_counts(CODE
LOWbenchmark/ocr/eval_utils.py440def eval_math_formula_accuracy(test: dict, ocr_output: str) -> bool:CODE
LOWbenchmark/scheduler/bench_token_storage.py84def _batch_tensor_from_pyarrays(parts: list[array]) -> torch.Tensor:CODE
LOWbenchmark/scheduler/bench_token_storage.py256def microbench_torch_tensor_paths(CODE
LOWbenchmark/hicache/bench_mix.py299async def async_request_sglang_generate(CODE
LOWbenchmark/hicache/bench_warm_cache.py90def _create_bench_client_session() -> aiohttp.ClientSession:CODE
LOWbenchmark/hicache/bench_warm_cache.py97async def async_request_sglang_generate(CODE
LOWbenchmark/hicache/bench_warm_cache.py413def maybe_write_summary_jsonl(CODE
LOWbenchmark/hicache/bench_warm_cache.py472async def benchmark_shared_prefix_pct(CODE
LOWbenchmark/hicache/bench_serving.py71async def async_request_openai_completions(CODE
LOWbenchmark/hicache/data_processing.py150def sample_ultrachat_requests(CODE
LOWbenchmark/hicache/data_processing.py434def sample_generated_shared_prefix_requests(CODE
LOWbenchmark/hicache/bench_hicache_write_back.py69def _validate_mha_correctness(CODE
LOWbenchmark/hicache/bench_hicache_write_back.py88def _validate_mla_correctness(CODE
26989 more matches not shown…
Decorative Section Separators2914 hits · 9462 pts
SeverityFileLineSnippetContext
MEDIUMbenchmark/kernels/attention/sm90_config_search.py62# ============================================================================COMMENT
MEDIUMbenchmark/kernels/attention/sm90_config_search.py64# ============================================================================COMMENT
MEDIUMbenchmark/kernels/attention/sm90_config_search.py267# ============================================================================COMMENT
MEDIUMbenchmark/kernels/attention/sm90_config_search.py269# ============================================================================COMMENT
MEDIUMbenchmark/kernels/attention/sm90_config_search.py377# ============================================================================COMMENT
MEDIUMbenchmark/kernels/attention/sm90_config_search.py379# ============================================================================COMMENT
MEDIUMbenchmark/kernels/deepseek/benchmark_q8kv8_kv_gather.py170 # ------------------------------------------------------------------COMMENT
MEDIUMbenchmark/kernels/deepseek/benchmark_q8kv8_kv_gather.py172 # ------------------------------------------------------------------COMMENT
MEDIUMbenchmark/kernels/deepseek/benchmark_q8kv8_kv_gather.py201 # ------------------------------------------------------------------COMMENT
MEDIUMbenchmark/kernels/deepseek/benchmark_q8kv8_kv_gather.py203 # ------------------------------------------------------------------COMMENT
MEDIUM…hmark/kernels/quantization/tuning_block_wise_kernel.py13# ==============================================================================COMMENT
MEDIUMbenchmark/kernels/lora_csgmv/tune_lora_csgmv.py132# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/kernels/lora_csgmv/tune_lora_csgmv.py134# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/kernels/lora_csgmv/tune_lora_csgmv.py185# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/kernels/lora_csgmv/tune_lora_csgmv.py187# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/kernels/lora_csgmv/tune_lora_csgmv.py337# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/kernels/lora_csgmv/tune_lora_csgmv.py339# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/kernels/lora_csgmv/tune_lora_csgmv.py395# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/kernels/lora_csgmv/tune_lora_csgmv.py397# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡benchmark/ocr/bench_sglang.py367# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡benchmark/ocr/bench_sglang.py369# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡benchmark/ocr/bench_sglang.py372# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡benchmark/ocr/bench_sglang.py374# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py54# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py56# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py67# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py69# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py88# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py214# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py216# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py263# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py265# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py310# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py312# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py565# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py567# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py625# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/bench_sglang.py627# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/generate_report.py30# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/generate_report.py32# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/generate_report.py75# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/generate_report.py77# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/generate_report.py273# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/generate_report.py275# ---------------------------------------------------------------------------COMMENT
MEDIUMbenchmark/ocr/generate_report.py322# ---------------------------------------------------------------------------STRING
MEDIUMbenchmark/ocr/generate_report.py324# ---------------------------------------------------------------------------STRING
MEDIUMbenchmark/ocr/eval_utils.py22# ── Unicode normalization ─────────────────────────────────────────────────────COMMENT
MEDIUMbenchmark/ocr/eval_utils.py50# ── Matching helpers ──────────────────────────────────────────────────────────COMMENT
MEDIUMbenchmark/ocr/eval_utils.py96# ── olmOCR-bench test evaluators ─────────────────────────────────────────────COMMENT
MEDIUMbenchmark/ocr/eval_utils.py190# ── Table parsing helpers ─────────────────────────────────────────────────────COMMENT
MEDIUMbenchmark/ocr/eval_utils.py291 # ── 1. Structured tables (HTML <tr>/<td> or Markdown) ────────────────────COMMENT
MEDIUMbenchmark/ocr/eval_utils.py342 # ── 2. Flat <table>…</table> fallback (DeepSeek-OCR-2 format) ────────────COMMENT
MEDIUMbenchmark/ocr/eval_utils.py429# Math formula evaluation ─────────────────────────────────────────────────────COMMENT
MEDIUMbenchmark/ocr/eval_utils.py467# ── Main dispatcher ───────────────────────────────────────────────────────────COMMENT
MEDIUMbenchmark/ocr/eval_utils.py510# ── Aggregation & reporting ───────────────────────────────────────────────────COMMENT
MEDIUMbenchmark/ocr/eval_utils.py602# ── Normalized Edit Distance (OmniDocBench-style text quality metric) ─────────COMMENT
MEDIUMbenchmark/lora/lora_bench.py13# ==============================================================================COMMENT
MEDIUM⚡…ark/bench_linear_attention/bench_kda_flashinfer_mtp.py50# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ark/bench_linear_attention/bench_kda_flashinfer_mtp.py52# ---------------------------------------------------------------------------COMMENT
2854 more matches not shown…
Unused Imports3847 hits · 3556 pts
SeverityFileLineSnippetContext
LOW…nchmark/kernels/attention/bench_flash_attention_fp8.py13CODE
LOW…ernels/attention/bench_flash_attention_tmem_red_max.py10CODE
LOW…chmark/kernels/attention/bench_gdn_replayssm_decode.py30CODE
LOWbenchmark/kernels/all_gather/benchmark_aiter.py16CODE
LOW…ls/deepseek/benchmark_cute_dsl_fp8_paged_mqa_logits.py3CODE
LOWbenchmark/scheduler/bench_token_storage.py25CODE
LOWbenchmark/hicache/perf.py1CODE
LOWbenchmark/hicache/bench_hicache_write_back.py1CODE
LOWbenchmark/unified_memory/bench_peer_aware_eviction.py22CODE
LOWbenchmark/uno/math_data.py3CODE
LOWbenchmark/uno/run_math_eval.py3CODE
LOWbenchmark/uno/math_grader.py3CODE
LOWbenchmark/bench_linear_attention/bench_gdn_qkv_split.py1CODE
LOW…router/tests/scripts/generate_kv_events_hash_parity.py48CODE
LOW…perimental/sgl-router/tests/e2e/test_tokenize_smoke.py5CODE
LOWexperimental/sgl-router/tests/e2e/test_gpu_allotment.py13CODE
LOWexperimental/sgl-router/tests/e2e/conftest.py22CODE
LOWexperimental/sgl-router/tests/e2e/test_chat_smoke.py5CODE
LOWexperimental/sgl-router/tests/e2e/test_chat_smoke.py8CODE
LOWexperimental/sgl-router/tests/e2e/infra/gateway.py25CODE
LOWexperimental/sgl-router/tests/e2e/infra/model_specs.py16CODE
LOWexperimental/sgl-router/tests/e2e/infra/model_pool.py24CODE
LOW…al/sgl-router/tests/e2e/k8s_integration/fake_worker.py22CODE
LOW…sgl-router/tests/e2e/k8s_integration/test_lifecycle.py14CODE
LOW…ental/sgl-router/tests/e2e/k8s_integration/conftest.py13CODE
LOW…er/tests/e2e/k8s_integration/test_kv_peer_bootstrap.py40CODE
LOW…outer/tests/e2e/k8s_integration/test_h2c_forwarding.py20CODE
LOW…sgl-router/tests/e2e/k8s_integration/test_discovery.py8CODE
LOW…sgl-router/tests/e2e/k8s_integration/test_discovery.py11CODE
LOW…sgl-router/tests/e2e/k8s_integration/test_discovery.py12CODE
LOW…outer/tests/e2e/k8s_integration/test_shutdown_drain.py22CODE
LOW…sgl-router/tests/e2e/k8s_integration/fake_kv_worker.py21CODE
LOW…uter/tests/e2e/k8s_integration/test_cross_namespace.py15CODE
LOW…uter/tests/e2e/k8s_integration/test_cross_namespace.py18CODE
LOW…outer/tests/e2e/k8s_integration/test_reconciliation.py16CODE
LOW…outer/tests/e2e/k8s_integration/test_reconciliation.py18CODE
LOW…l-router/tests/e2e/chat_completions/test_validation.py14CODE
LOW…r/tests/e2e/chat_completions/test_load_based_policy.py6CODE
LOW…sts/e2e/chat_completions/test_hicache_storage_tiers.py58CODE
LOW…ang-simulator/src/sglang_simulator/dataset/__init__.py1CODE
LOW…ang-simulator/src/sglang_simulator/dataset/__init__.py1CODE
LOW…sglang-simulator/src/sglang_simulator/spec/__init__.py1CODE
LOW…sglang-simulator/src/sglang_simulator/spec/__init__.py2CODE
LOW…sglang-simulator/src/sglang_simulator/spec/__init__.py3CODE
LOW…ator/src/sglang_simulator/spec/accelerator/__init__.py1CODE
LOW…ator/src/sglang_simulator/spec/accelerator/__init__.py2CODE
LOW…-simulator/src/sglang_simulator/spec/model/__init__.py1CODE
LOW…/src/sglang_simulator/simulation/benchmark/__init__.py1CODE
LOW…/src/sglang_simulator/simulation/benchmark/__init__.py2CODE
LOW…or/src/sglang_simulator/simulation/manager/__init__.py1CODE
LOW…or/src/sglang_simulator/simulation/manager/__init__.py2CODE
LOW…or/src/sglang_simulator/simulation/manager/__init__.py3CODE
LOW…ulator/src/sglang_simulator/simulation/sglang/utils.py7CODE
LOW…ulator/src/sglang_simulator/simulation/sglang/utils.py8CODE
LOW…glang-simulator/src/sglang_simulator/utils/__init__.py1CODE
LOWtest/manual/test_ray_engine.py25CODE
LOWtest/manual/quant/test_block_fp8.py692CODE
LOWtest/manual/kernels/test_hisparse_prefetch.py36CODE
LOW…ernels/benchmark/attention/bench_gdn_replayssm_fold.py9CODE
LOWtest/manual/layers/moe/bench_mxfp4_sm90_kernels.py21CODE
3787 more matches not shown…
Empty Error Handlers542 hits · 2710 pts
SeverityFileLineSnippetContext
HIGHbenchmark/kernels/all_reduce/benchmark_aiter.py305except Exception:CODE
HIGHbenchmark/kernels/all_reduce/benchmark_all_reduce.py326except Exception:CODE
HIGHbenchmark/agentic-rollout/simulate.py144except asyncio.TimeoutError:CODE
HIGHbenchmark/ocr/bench_sglang.py288except ImportError:CODE
HIGHbenchmark/hicache/bench_buffer_mode.py242except Exception:CODE
HIGHbenchmark/asr/bench_sglang.py114except json.JSONDecodeError:CODE
HIGHbenchmark/uno/math_grader.py100except Exception:CODE
HIGHbenchmark/uno/math_grader.py117except Exception:CODE
HIGHbenchmark/uno/math_grader.py210except ValueError:CODE
HIGH…rk/bench_linear_attention/bench_gdn_prefill_cutedsl.py212except Exception:CODE
HIGHbenchmark/bench_linear_attention/bench_gdn_prefill.py316except Exception:CODE
HIGH…/bench_linear_attention/bench_int8_checkpoint_reuse.py115except Exception:CODE
HIGHexperimental/sgl-router/tests/e2e/conftest.py210except Exception: # noqa: BLE001CODE
HIGHexperimental/sgl-router/tests/e2e/infra/gateway.py247except ProcessLookupError:CODE
HIGHexperimental/sgl-router/tests/e2e/infra/gateway.py261except ProcessLookupError:CODE
HIGHexperimental/sgl-router/tests/e2e/infra/model_pool.py194except subprocess.TimeoutExpired:CODE
HIGHexperimental/sgl-router/tests/e2e/infra/model_pool.py339except (httpx.RequestError, httpx.TimeoutException):CODE
HIGH…glang-simulator/test/test_simulation_sglang_serving.py66except requests.RequestException:CODE
HIGH…rc/sglang_simulator/simulation/sglang/mem_pool_host.py86except ImportError:CODE
HIGH…rc/sglang_simulator/simulation/sglang/mem_pool_host.py92except ImportError:CODE
HIGH…rc/sglang_simulator/simulation/sglang/mem_pool_host.py331except AssertionError:CODE
HIGHtest/manual/test_weight_cache_e2e.py142except Exception:CODE
HIGHtest/manual/test_dsa_alias_cli_registry_env.py113except Exception:CODE
HIGHtest/manual/test_ray_engine.py138except Exception:CODE
HIGHtest/manual/test_ray_engine.py142except Exception:CODE
HIGHtest/manual/test_ray_engine.py464except Exception:CODE
HIGHtest/manual/test_ray_engine.py468except Exception:CODE
HIGHtest/manual/test_ray_engine.py452except req_lib.exceptions.RequestException:CODE
HIGHtest/manual/test_cross_node_scheduler_info_sync.py145except Exception:CODE
HIGHtest/manual/test_weight_loader_v2_equiv.py50except AssertionError:CODE
HIGHtest/manual/ascend/disaggregation_utils.py80except Exception:CODE
HIGHtest/manual/ep/test_elastic_scale.py290except Exception:CODE
HIGHtest/manual/ep/test_elastic_scale.py297except Exception:CODE
HIGHtest/manual/ep/test_elastic_scale.py302except Exception:CODE
HIGHtest/manual/ep/test_elastic_scale.py385except Exception:CODE
HIGHtest/manual/ep/test_flashinfer_dispatcher.py60except ImportError:CODE
HIGHtest/manual/ep/test_mooncake_expert_backup.py105except requests.RequestException:CODE
HIGHtest/manual/dsv4/test_dsv4_flash_mtp_dp4.py121except requests.exceptions.Timeout:CODE
HIGHtest/manual/dsv4/test_dsv4_pd_disagg_fp8_nixl.py272except Exception:CODE
HIGHtest/manual/dsv4/test_dsv4_pd_disagg_fp8_nixl.py294except Exception:CODE
HIGHtest/manual/vlm/test_anthropic_vision.py83except json.JSONDecodeError:CODE
HIGHtest/manual/lora/check_spec_baseline_divergence.py88except Exception:CODE
HIGHtest/manual/lora/test_lora_cuda_graph.py103except RuntimeError:CODE
HIGHtest/manual/lora/test_lora_spec_decoding.py49except RuntimeError:CODE
HIGHtest/manual/lora/test_lora_backend.py71except RuntimeError:CODE
HIGHtest/manual/lora/test_lora_xpu_basics.py41except RuntimeError:CODE
HIGH…red/attention/test_gemma4_swa_triton_oob_regression.py99except Exception:CODE
HIGHtest/registered/attention/test_fused_fp8_kv_write.py268except _StopForward:CODE
HIGHtest/registered/attention/test_fused_fp8_kv_write.py322except _StopForward:CODE
HIGHtest/registered/attention/test_fused_fp8_kv_write.py378except _StopForward:CODE
HIGHtest/registered/unit/test_runtime_context.py2375except Exception:CODE
HIGHtest/registered/unit/test_runtime_context.py2413except Exception:CODE
HIGH…t/registered/unit/platforms/test_platform_interface.py274except Exception:CODE
HIGH…d/unit/disaggregation/test_mori_deferred_kv_release.py21except (ImportError, OSError):CODE
HIGH…hardware_backend/mlx/test_mlx_reference_correctness.py159except Exception:CODE
HIGHtest/registered/unit/distributed/test_gated_launch.py45except requests.exceptions.RequestException:CODE
HIGH…registered/unit/models/test_deepseek_nextn_mm_embed.py117except Exception:CODE
HIGH…registered/unit/models/test_deepseek_nextn_mm_embed.py174except Exception:CODE
HIGH…tered/unit/multimodal/rust/shared/test_wrap_encoded.py181except FileNotFoundError:CODE
HIGH…registered/unit/entrypoints/test_ssl_cert_refresher.py34except OSError:CODE
482 more matches not shown…
Excessive Try-Catch Wrapping2193 hits · 2432 pts
SeverityFileLineSnippetContext
LOWbenchmark/bench_adaptive_speculative.py70 except Exception as e:CODE
LOW…nchmark/kernels/attention/bench_flash_attention_fp8.py363 except Exception as e:CODE
LOW…nchmark/kernels/attention/bench_flash_attention_fp8.py445 except Exception as e:CODE
LOWbenchmark/kernels/all_gather/benchmark_aiter.py365 except Exception:CODE
LOW⚡…shinfer_allreduce_fusion/benchmark_fused_collective.py119 except Exception as e:CODE
LOW⚡…shinfer_allreduce_fusion/benchmark_fused_collective.py132 except Exception as e:CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py49except Exception: # pragma: no cover - fallback on non-supported platformsCODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py653 except Exception as e:CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py667 except Exception as e:CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py686 except Exception as e:CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py703 except Exception as e:CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py723 except Exception as e:CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py740 except Exception as e:CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py765 except Exception as e:CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py790 except Exception as e:CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py814 except Exception as e:CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py831 except Exception as e:CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py857 except Exception as e:CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py885 except Exception as e:CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py1086 except Exception as e:CODE
LOWbenchmark/kernels/all_reduce/benchmark_aiter.py227 except Exception as e:CODE
LOWbenchmark/kernels/all_reduce/benchmark_aiter.py237 except Exception as e:CODE
LOWbenchmark/kernels/all_reduce/benchmark_aiter.py253 except Exception as e:CODE
LOWbenchmark/kernels/all_reduce/benchmark_aiter.py265 except Exception as e:CODE
LOWbenchmark/kernels/all_reduce/benchmark_aiter.py305 except Exception:CODE
LOWbenchmark/kernels/all_reduce/benchmark_all_reduce.py247 except Exception as e:CODE
LOWbenchmark/kernels/all_reduce/benchmark_all_reduce.py257 except Exception as e:CODE
LOWbenchmark/kernels/all_reduce/benchmark_all_reduce.py276 except Exception as e:CODE
LOWbenchmark/kernels/all_reduce/benchmark_all_reduce.py286 except Exception as e:CODE
LOWbenchmark/kernels/all_reduce/benchmark_all_reduce.py326 except Exception:CODE
LOWbenchmark/kernels/deepseek/benchmark_q8kv8_q_prep.py335 except Exception as e:CODE
LOWbenchmark/kernels/deepseek/benchmark_q8kv8_q_prep.py383 except Exception as e:CODE
LOWbenchmark/kernels/lora_csgmv/tune_lora_csgmv.py232 except Exception:CODE
LOWbenchmark/kernels/lora_csgmv/tune_lora_csgmv.py309 except Exception:CODE
LOWbenchmark/mmmu/bench_sglang.py64 except Exception:CODE
LOWbenchmark/mmmu/bench_hf.py35 except Exception as first_exception:CODE
LOWbenchmark/mmmu/bench_hf.py60 except Exception as second_exception:CODE
LOWbenchmark/mmmu/eval_utils.py195 except Exception as exc:CODE
MEDIUMbenchmark/mmmu/eval_utils.py514 print(f"Error to extract answer from: {pred_i}")CODE
MEDIUM…hmark/bench_pynccl_allocator/bench_segment_tracking.py195 print("Error: CUDA is not available. This benchmark requires a GPU.")CODE
LOW⚡benchmark/ocr/bench_sglang.py363 except Exception:CODE
LOWbenchmark/ocr/bench_sglang.py449 except Exception as exc:CODE
LOWbenchmark/ocr/bench_sglang.py460 except Exception as exc:CODE
LOWbenchmark/ocr/bench_sglang.py686 except Exception as exc:CODE
LOWbenchmark/ocr/eval_utils.py503 except Exception as exc:CODE
LOWbenchmark/hicache/bench_mix.py362 except Exception as e:CODE
LOWbenchmark/hicache/bench_mix.py423 except Exception as e:CODE
MEDIUMbenchmark/hicache/bench_mix.py479 print(f"Error processing response for client {user_data}: {e}")CODE
MEDIUMbenchmark/hicache/bench_mix.py417def handle_request(self, user_data):CODE
LOWbenchmark/hicache/bench_warm_cache.py169 except Exception as exc:CODE
LOWbenchmark/hicache/bench_serving.py194 except Exception:CODE
LOWbenchmark/hicache/bench_serving.py214 except Exception:CODE
LOWbenchmark/hicache/bench_serving.py273 except Exception as e:CODE
MEDIUMbenchmark/hicache/bench_serving.py624 print(f"Error running benchmark for request rate: {request_rate}")CODE
LOWbenchmark/hicache/bench_serving.py731 except Exception as e:CODE
LOWbenchmark/hicache/bench_buffer_mode.py136 except Exception:CODE
LOWbenchmark/hicache/bench_buffer_mode.py242 except Exception:CODE
MEDIUMbenchmark/hicache/bench_buffer_mode.py133def scrape_metrics(base_url):CODE
MEDIUMbenchmark/hicache/bench_multiturn.py181 print(f"Error writing to JSONL file: {e}")CODE
LOWbenchmark/hicache/bench_multiturn.py397 except Exception as e:CODE
2133 more matches not shown…
Deep Nesting2678 hits · 2287 pts
SeverityFileLineSnippetContext
LOWbenchmark/lean_kernel_sweep.py124CODE
LOWbenchmark/kernels/bench_block_verification.py18CODE
LOWbenchmark/kernels/attention/sm90_config_search.py183CODE
LOWbenchmark/kernels/attention/sm90_config_search.py327CODE
LOW…nchmark/kernels/attention/bench_flash_attention_fp8.py244CODE
LOWbenchmark/kernels/all_gather/benchmark_aiter.py290CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py608CODE
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py897CODE
LOW…kernels/all_reduce/benchmark_fused_ar_rms_quant_amd.py224CODE
LOW…hmark/kernels/all_reduce/benchmark_fused_ar_rms_amd.py368CODE
LOW…/fused_moe_triton/benchmark_torch_compile_fused_moe.py16CODE
LOW…ernels/fused_moe_triton/tuning_fused_moe_triton_sep.py649CODE
LOWbenchmark/kernels/fused_moe_triton/common_utils.py33CODE
LOWbenchmark/kernels/fused_moe_triton/common_utils.py228CODE
LOWbenchmark/kernels/fused_moe_triton/common_utils.py251CODE
LOWbenchmark/kernels/deepseek/benchmark_q8kv8_q_prep.py272CODE
LOW…ls/deepseek/benchmark_cute_dsl_fp8_paged_mqa_logits.py89CODE
LOW…hmark/kernels/quantization/tuning_block_wise_kernel.py149CODE
LOW…hmark/kernels/quantization/tuning_block_wise_kernel.py172CODE
LOWbenchmark/kernels/lora_csgmv/tune_lora_csgmv.py137CODE
LOWbenchmark/kernels/lora_csgmv/tune_lora_csgmv.py155CODE
LOWbenchmark/kernels/deepep/tuning_deepep.py54CODE
LOW…s/decoding_attention_triton/triton_flashinfer_cudnn.py159CODE
LOWbenchmark/agentic-rollout/plot.py113CODE
LOWbenchmark/agentic-rollout/simulate.py259CODE
LOWbenchmark/agentic-rollout/tests/test_simulate.py154CODE
LOWbenchmark/agentic-rollout/tests/test_simulate.py214CODE
LOWbenchmark/dllm/bench_diffusion_gemma.py28CODE
LOWbenchmark/mmmu/eval_utils.py154CODE
LOWbenchmark/mmmu/eval_utils.py303CODE
LOWbenchmark/mmmu/eval_utils.py423CODE
LOWbenchmark/mmmu/eval_utils.py528CODE
LOWbenchmark/mmmu/eval_utils.py430CODE
LOWbenchmark/ocr/bench_sglang.py430CODE
LOWbenchmark/ocr/generate_report.py148CODE
LOWbenchmark/ocr/eval_utils.py263CODE
LOWbenchmark/ocr/eval_utils.py390CODE
LOWbenchmark/hicache/bench_mix.py299CODE
LOWbenchmark/hicache/nextqa.py9CODE
LOWbenchmark/hicache/bench_warm_cache.py97CODE
LOWbenchmark/hicache/bench_serving.py71CODE
LOWbenchmark/hicache/bench_serving.py286CODE
LOWbenchmark/hicache/data_processing.py37CODE
LOWbenchmark/hicache/data_processing.py198CODE
LOWbenchmark/hicache/data_processing.py267CODE
LOWbenchmark/hicache/data_processing.py520CODE
LOWbenchmark/hicache/bench_buffer_mode.py369CODE
LOWbenchmark/hicache/bench_multiturn.py437CODE
LOWbenchmark/hicache/bench_multiturn.py559CODE
LOWbenchmark/prefill_only/util.py106CODE
LOWbenchmark/prefill_only/util.py284CODE
LOWbenchmark/asr/bench_sglang.py75CODE
LOWbenchmark/lora/lora_bench.py48CODE
LOW…ark/bench_linear_attention/bench_kda_flashinfer_mtp.py203CODE
LOWbenchmark/bench_linear_attention/bench_gdn_decode.py359CODE
LOWbenchmark/bench_linear_attention/bench_gdn_prefill.py520CODE
LOW…l/sgl-router/tests/scripts/generate_deepseek_parity.py49CODE
LOWexperimental/sgl-router/tests/e2e/infra/gateway.py237CODE
LOWexperimental/sgl-router/tests/e2e/infra/gateway.py354CODE
LOW…ental/sgl-router/tests/e2e/k8s_integration/conftest.py102CODE
2618 more matches not shown…
Over-Commented Block1713 hits · 1608 pts
SeverityFileLineSnippetContext
LOW…nchmark/kernels/attention/bench_flash_attention_fp8.py1# Benchmark FP8 attention for FA4 (CuTe-DSL) on SM100.COMMENT
LOW…hmark/kernels/quantization/tuning_block_wise_kernel.py1# Copyright 2025 SGLang TeamCOMMENT
LOWbenchmark/lora/lora_bench.py1# Copyright 2023-2024 SGLang TeamCOMMENT
LOWexperimental/sgl-router/Cargo.toml41# axum's `http2` looks redundant and is not — please don't drop it. `axum::serve`COMMENT
LOW…rimental/sgl-router/tests/proxy/pd_protocol_binding.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOW…ental/sgl-router/tests/proxy/pd_bootstrap_injection.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOWexperimental/sgl-router/tests/proxy/h2c_forward.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOW…perimental/sgl-router/tests/proxy/graceful_shutdown.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOW…mental/sgl-router/tests/proxy/cache_aware_input_ids.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOW…perimental/sgl-router/tests/proxy/pd_pool_isolation.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOWexperimental/sgl-router/tests/proxy/chat_routing.rs1081 "body drop must trip the breaker (threshold=1)"COMMENT
LOWexperimental/sgl-router/tests/proxy/chat_routing.rs1641}COMMENT
LOWexperimental/sgl-router/tests/proxy/sticky_input_ids.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOWexperimental/sgl-router/tests/proxy/inbound_h2c.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOWexperimental/sgl-router/tests/proxy/common/streaming.rs21 use http_body_util::BodyExt;COMMENT
LOW…imental/sgl-router/tests/component/tokenizer/parity.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOW…tal/sgl-router/tests/component/policies/fused_score.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOW…r/tests/component/policies/kv_events_peer_bootstrap.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOW…r/tests/component/policies/kv_events_peer_bootstrap.rs381 for (w, seq) in &cursors {COMMENT
LOW…/tests/component/policies/kv_events_two_subscribers.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOW…/tests/component/policies/kv_events_two_subscribers.rs141 assert!(r.is_ok(), "router_b shutdown hung");COMMENT
LOW…/tests/component/policies/kv_events_tree_concurrent.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOW…/tests/component/policies/kv_events_tree_concurrent.rs161 );COMMENT
LOW…uter/tests/component/policies/kv_events_hash_parity.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOW…sgl-router/tests/component/workers/concurrent_state.rs81 let snapshot = r.workers_for(&model);COMMENT
LOWexperimental/sgl-router/tests/e2e/requirements.txt1httpx==0.27.2COMMENT
LOW…outer/tests/e2e/k8s_integration/test_shutdown_drain.py101# Budget for observing the /readyz flip, deliberately a fraction of the drain:COMMENT
LOW…outer/tests/e2e/k8s_integration/test_shutdown_drain.py201COMMENT
LOW…sts/e2e/chat_completions/test_hicache_storage_tiers.py281COMMENT
LOWexperimental/sgl-router/sgl-kv-indexer/src/bridge.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOWexperimental/sgl-router/sgl-kv-indexer/src/bridge.rs741 ))),COMMENT
LOWexperimental/sgl-router/sgl-kv-indexer/src/service.rs21/// prefix query is exempt from the hash bound; see [`validate_hashes`].COMMENT
LOWexperimental/sgl-router/sgl-kv-indexer/src/service.rs481COMMENT
LOWexperimental/sgl-router/benches/tree_lookup.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOWexperimental/sgl-router/benches/tree_lookup.rs141/// exactly one shard; a `Continuation` writer first resolves its parentCOMMENT
LOWexperimental/sgl-router/src/main.rs41const DRAIN_HEARTBEAT_INTERVAL: Duration = Duration::from_secs(5);COMMENT
LOWexperimental/sgl-router/src/buckets_reorg.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOWexperimental/sgl-router/src/proxy/sse.rs121 pub abort: Option<CancellationToken>,COMMENT
LOWexperimental/sgl-router/src/proxy/mod.rs41enum BreakerOutcome {COMMENT
LOWexperimental/sgl-router/src/proxy/mod.rs61/// A backpressure status — `503 Service Unavailable` or `429 Too ManyCOMMENT
LOWexperimental/sgl-router/src/proxy/mod.rs101COMMENT
LOWexperimental/sgl-router/src/proxy/mod.rs201 /// Breaker-gated JSON POST: acquires a cancellation-safe permit first, classifies theCOMMENT
LOWexperimental/sgl-router/src/proxy/mod.rs281 *out.status_mut() = status;COMMENT
LOWexperimental/sgl-router/src/proxy/mod.rs361 // SGLang's `text/event-stream; charset=utf-8`: clients that decode by theCOMMENT
LOWexperimental/sgl-router/src/config/types.rs121 #[value(name = "random")]COMMENT
LOWexperimental/sgl-router/src/config/types.rs361 pub id: String,COMMENT
LOWexperimental/sgl-router/src/config/types.rs461 #[value(name = "indexer")]COMMENT
LOWexperimental/sgl-router/src/config/types.rs501}COMMENT
LOWexperimental/sgl-router/src/config/types.rs541/// Affinity preference; legacy routing uses Strict/Soft, reorg uses Prefer/Balanced.COMMENT
LOWexperimental/sgl-router/src/config/types.rs621 /// while depth proxies it badly (an engine can queue far below its running cap onCOMMENT
LOWexperimental/sgl-router/src/config/types.rs741pub struct StaticUrlsDiscoveryConfig {COMMENT
LOWexperimental/sgl-router/src/config/types.rs761 /// unambiguous choice.COMMENT
LOWexperimental/sgl-router/src/config/sampling.rs1// SPDX-FileCopyrightText: Copyright (c) 2026 The SGLang AuthorsCOMMENT
LOWexperimental/sgl-router/src/config/sampling.rs41 #[default]COMMENT
LOWexperimental/sgl-router/src/config/cli.rs81 #[arg(long)]COMMENT
LOWexperimental/sgl-router/src/config/cli.rs121 /// Address to bind the HTTP server to.COMMENT
LOWexperimental/sgl-router/src/config/cli.rs141 /// `/model_info`). Set it to the engines' `--api-key`.COMMENT
LOWexperimental/sgl-router/src/config/cli.rs161 /// jitter. 0 retries immediately.COMMENT
LOWexperimental/sgl-router/src/config/cli.rs181}COMMENT
LOWexperimental/sgl-router/src/config/cli.rs201 pub selector: Vec<String>,COMMENT
1653 more matches not shown…
Cross-File Repetition321 hits · 1605 pts
SeverityFileLineSnippetContext
HIGH…hmark/kernels/quantization/tuning_block_wise_kernel.py0this function performs matrix multiplication with block-wise quantization. it takes two input tensors `a` and `b` with sSTRING
HIGHpython/sglang/kernels/ops/gemm/int8_kernel.py0this function performs matrix multiplication with block-wise quantization. it takes two input tensors `a` and `b` with sSTRING
HIGHpython/sglang/kernels/ops/gemm/fp8_kernel.py0this function performs matrix multiplication with block-wise quantization. it takes two input tensors `a` and `b` with sSTRING
HIGHtest/manual/quant/test_nvfp4_gemm_archived.py0archived test classes split out of test/registered/4-gpu-models/test_qwen35_models.py. originally registered with `regisSTRING
HIGHtest/manual/distributed/test_dp_attention_archived.py0archived test classes split out of test/registered/4-gpu-models/test_qwen35_models.py. originally registered with `regisSTRING
HIGHtest/manual/mla/test_mla_flashinfer_archived.py0archived test classes split out of test/registered/4-gpu-models/test_qwen35_models.py. originally registered with `regisSTRING
HIGHtest/manual/mla/test_flashmla_archived.py0archived test classes split out of test/registered/4-gpu-models/test_qwen35_models.py. originally registered with `regisSTRING
HIGHtest/manual/mla/test_mla_int8_deepseek_v3_archived.py0archived test classes split out of test/registered/4-gpu-models/test_qwen35_models.py. originally registered with `regisSTRING
HIGH…al/4-gpu-models/test_qwen3_next_models_mtp_archived.py0archived test classes split out of test/registered/4-gpu-models/test_qwen35_models.py. originally registered with `regisSTRING
HIGHtest/manual/4-gpu-models/test_qwen35_models_archived.py0archived test classes split out of test/registered/4-gpu-models/test_qwen35_models.py. originally registered with `regisSTRING
HIGHtest/manual/quant/test_block_fp8.py0this function performs matrix multiplication with block-wise quantization using native torch. it takes two input tensorsSTRING
HIGHtest/manual/quant/test_block_fp8_deep_gemm_blackwell.py0this function performs matrix multiplication with block-wise quantization using native torch. it takes two input tensorsSTRING
HIGHtest/registered/kernels/ops/moe/test_block_int8.py0this function performs matrix multiplication with block-wise quantization using native torch. it takes two input tensorsSTRING
HIGHtest/manual/nightly/test_vlms_vit_cuda_graph.py0evaluate a vlm on the mmmu validation set with lmms-eval. only `model_version` (checkpoint) and `chat_template` vary; weSTRING
HIGHtest/manual/nightly/test_vlms_vit_flashinfer_cudnn.py0evaluate a vlm on the mmmu validation set with lmms-eval. only `model_version` (checkpoint) and `chat_template` vary; weSTRING
HIGHtest/manual/nightly/test_vlms_piecewise_cuda_graph.py0evaluate a vlm on the mmmu validation set with lmms-eval. only `model_version` (checkpoint) and `chat_template` vary; weSTRING
HIGHpython/sglang/test/kits/mmmu_vlm_kit.py0evaluate a vlm on the mmmu validation set with lmms-eval. only `model_version` (checkpoint) and `chat_template` vary; weSTRING
HIGHtest/manual/nightly/test_vlms_vit_cuda_graph.py0common method to run vlm mmmu benchmark test. args: model: model to test output_path: path for output logs test_name: opSTRING
HIGHtest/manual/nightly/test_vlms_vit_flashinfer_cudnn.py0common method to run vlm mmmu benchmark test. args: model: model to test output_path: path for output logs test_name: opSTRING
HIGHtest/manual/nightly/test_vlms_piecewise_cuda_graph.py0common method to run vlm mmmu benchmark test. args: model: model to test output_path: path for output logs test_name: opSTRING
HIGHpython/sglang/test/kits/mmmu_vlm_kit.py0common method to run vlm mmmu benchmark test. args: model: model to test output_path: path for output logs test_name: opSTRING
HIGH…stered/kernels/ops/attention/test_flash_attention_4.py0arguments: hidden_states: (total_nnz, ...), where total_nnz = number of tokens in selected in attention_mask. indices: (STRING
HIGHpython/sglang/kernels/aot/tests/test_flash_attention.py0arguments: hidden_states: (total_nnz, ...), where total_nnz = number of tokens in selected in attention_mask. indices: (STRING
HIGH…timodal_gen/runtime/layers/attention/backends/vmoba.py0arguments: hidden_states: (total_nnz, ...), where total_nnz = number of tokens in selected in attention_mask. indices: (STRING
HIGHtest/registered/kernels/ops/attention/test_pos_enc.py0args: x: [num_tokens, num_heads, head_size] or [num_tokens, head_size] cos: [num_tokens, head_size // 2] sin: [num_tokenSTRING
HIGH…nels/aot/python/sgl_kernel/testing/rotary_embedding.py0args: x: [num_tokens, num_heads, head_size] or [num_tokens, head_size] cos: [num_tokens, head_size // 2] sin: [num_tokenSTRING
HIGHpython/sglang/srt/layers/rotary_embedding/utils.py0args: x: [num_tokens, num_heads, head_size] or [num_tokens, head_size] cos: [num_tokens, head_size // 2] sin: [num_tokenSTRING
HIGH…ultimodal_gen/runtime/layers/rotary_embedding/utils.py0args: x: [num_tokens, num_heads, head_size] or [num_tokens, head_size] cos: [num_tokens, head_size // 2] sin: [num_tokenSTRING
HIGH…t/registered/kernels/ops/layernorm/test_mhc_kernels.py0provide a tp-group placeholder for kernels with mocked symmetric memory.STRING
HIGH…gistered/kernels/ops/moe/test_minimax_quant_scatter.py0provide a tp-group placeholder for kernels with mocked symmetric memory.STRING
HIGH…ed/unit/layers/quantization/test_mxfp4_sm90_cutlass.py0provide a tp-group placeholder for kernels with mocked symmetric memory.STRING
HIGH…d/unit/layers/quantization/test_mxfp4_sm120_cutlass.py0provide a tp-group placeholder for kernels with mocked symmetric memory.STRING
HIGH…nit/layers/quantization/test_mxfp4_sm100_trtllm_gen.py0provide a tp-group placeholder for kernels with mocked symmetric memory.STRING
HIGHtest/registered/kernels/ops/moe/test_int8_kernel.py0matrix multiplication function that supports per-token input quantization and per-column weight quantizationSTRING
HIGH…t/registered/moe/test_triton_moe_channel_fp8_kernel.py0matrix multiplication function that supports per-token input quantization and per-column weight quantizationSTRING
HIGHpython/sglang/test/cpu_test_utils.py0matrix multiplication function that supports per-token input quantization and per-column weight quantizationSTRING
HIGHtest/registered/kernels/ops/moe/test_int8_kernel.py0this function performs fused moe with per-column int8 quantization using native torch.STRING
HIGH…t/registered/moe/test_triton_moe_channel_fp8_kernel.py0this function performs fused moe with per-column int8 quantization using native torch.STRING
HIGHpython/sglang/test/cpu_test_utils.py0this function performs fused moe with per-column int8 quantization using native torch.STRING
HIGH…/unit/disaggregation/test_specv2_kvcache_offloading.py0single-pool double. subclassing the base routes free_full / free_segment / free_segments into free(), so a new free api STRING
HIGH…st/registered/unit/layers/test_minicpm_sparse_cache.py0single-pool double. subclassing the base routes free_full / free_segment / free_segments into free(), so a new free api STRING
HIGH…gistered/unit/mem_cache/test_streaming_session_unit.py0single-pool double. subclassing the base routes free_full / free_segment / free_segments into free(), so a new free api STRING
HIGH…it/mem_cache/unified_tree_core_inspection_interface.py0delete childless tombstone ancestors until a live or locked node is reached.STRING
HIGH…gistered/unit/mem_cache/unified_tree_core_inspector.py0delete childless tombstone ancestors until a live or locked node is reached.STRING
HIGH…glang/srt/mem_cache/unified_cache/unified_tree_core.py0delete childless tombstone ancestors until a live or locked node is reached.STRING
HIGHtest/registered/cpu/test_qwen3.py0derives `query`, `key` and `value` tensors from `mixed_qkvzba`.STRING
HIGHpython/sglang/srt/models/qwen3_5.py0derives `query`, `key` and `value` tensors from `mixed_qkvzba`.STRING
HIGHpython/sglang/srt/models/qwen3_next.py0derives `query`, `key` and `value` tensors from `mixed_qkvzba`.STRING
HIGH…t/registered/openai_server/basic/test_openai_server.py0extract the name, size, price, and color from this product description as a json object: <description> the smarthome minSTRING
HIGH…ateway/e2e_test/chat_completions/test_openai_server.py0extract the name, size, price, and color from this product description as a json object: <description> the smarthome minSTRING
HIGHexamples/runtime/openai_chat_with_response_prefill.py0extract the name, size, price, and color from this product description as a json object: <description> the smarthome minSTRING
HIGH…st/registered/npu/vlm_models/test_npu_gemma_3_4b_it.py0testcase: verify that the inference accuracy of the qwen/qwen2.5-vl-3b-instruct model on the mmmu dataset is no less thaSTRING
HIGH…stered/npu/vlm_models/test_npu_qwen3_vl_8b_instruct.py0testcase: verify that the inference accuracy of the qwen/qwen2.5-vl-3b-instruct model on the mmmu dataset is no less thaSTRING
HIGH…npu/vlm_models/test_npu_qwen3_vl_235b_a22b_instruct.py0testcase: verify that the inference accuracy of the qwen/qwen2.5-vl-3b-instruct model on the mmmu dataset is no less thaSTRING
HIGH…stered/npu/vlm_models/test_npu_qwen3_vl_4b_instruct.py0testcase: verify that the inference accuracy of the qwen/qwen2.5-vl-3b-instruct model on the mmmu dataset is no less thaSTRING
HIGH…st/registered/npu/vlm_models/test_npu_mimo_vl_7b_rl.py0testcase: verify that the inference accuracy of the qwen/qwen2.5-vl-3b-instruct model on the mmmu dataset is no less thaSTRING
HIGH…red/npu/vlm_models/test_npu_qwen2_5_vl_72b_instruct.py0testcase: verify that the inference accuracy of the qwen/qwen2.5-vl-3b-instruct model on the mmmu dataset is no less thaSTRING
HIGH…ed/npu/vlm_models/test_npu_phi4_multimodal_instruct.py0testcase: verify that the inference accuracy of the qwen/qwen2.5-vl-3b-instruct model on the mmmu dataset is no less thaSTRING
HIGH…st/registered/npu/vlm_models/test_npu_minicpm_o_2_6.py0testcase: verify that the inference accuracy of the qwen/qwen2.5-vl-3b-instruct model on the mmmu dataset is no less thaSTRING
HIGH…d/npu/vlm_models/test_npu_qwen3_vl_30b_a3b_instruct.py0testcase: verify that the inference accuracy of the qwen/qwen2.5-vl-3b-instruct model on the mmmu dataset is no less thaSTRING
261 more matches not shown…
Modern Structural Boilerplate1534 hits · 1570 pts
SeverityFileLineSnippetContext
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py56logger = logging.getLogger(__name__)CODE
LOWbenchmark/hicache/bench_mix.py20logger = logging.getLogger(__name__)CODE
LOWbenchmark/prefill_only/bench_embeddings.py35logger = logging.getLogger(__name__)CODE
LOWexperimental/sgl-router/tests/e2e/conftest.py38logger = logging.getLogger(__name__)CODE
LOWexperimental/sgl-router/tests/e2e/infra/gateway.py39logger = logging.getLogger(__name__)CODE
LOWexperimental/sgl-router/tests/e2e/infra/model_pool.py41logger = logging.getLogger(__name__)CODE
LOW…ental/sgl-router/tests/e2e/k8s_integration/conftest.py24logger = logging.getLogger(__name__)CODE
LOW…er/tests/e2e/k8s_integration/test_kv_peer_bootstrap.py62logger = logging.getLogger(__name__)CODE
LOW…outer/tests/e2e/k8s_integration/test_shutdown_drain.py42logger = logging.getLogger(__name__)CODE
LOW…sglang-simulator/src/sglang_simulator/spec/__init__.py5__all__ = ["AcceleratorInfo", "ModelInfo", "DataType"]CODE
LOW…ator/src/sglang_simulator/spec/accelerator/__init__.py4__all__ = ["AcceleratorInfo", "NVIDIA"]CODE
LOW…-simulator/src/sglang_simulator/spec/model/__init__.py3__all__ = ["ModelInfo"]CODE
LOW…/src/sglang_simulator/simulation/benchmark/__init__.py4__all__ = ["BaseBenchmarkRunner", "BenchmarkConfig"]CODE
LOW…or/src/sglang_simulator/simulation/manager/__init__.py5__all__ = ["StateManager", "Envs", "ConfigManager"]CODE
LOW⚡…lator/src/sglang_simulator/simulation/manager/state.py93 def set_global_clock(cls, clock: float) -> None:CODE
LOW⚡…lator/src/sglang_simulator/simulation/manager/state.py97 def set_current_inference_dur(cls, dur: float) -> None:CODE
LOW…glang-simulator/src/sglang_simulator/utils/__init__.py3__all__ = ["get_logger"]CODE
LOWtest/manual/ascend/disaggregation_utils.py18logger = logging.getLogger(__name__)CODE
LOW⚡…d/unit/hardware_backend/mlx/test_attention_patching.py84def _set_runner_decode_context_defaults(runner) -> None:CODE
LOW⚡…d/unit/hardware_backend/mlx/test_attention_patching.py91def _set_dummy_server_args_for_auxiliary_state_tests() -> None:CODE
LOW…st/registered/unit/spec/test_adaptive_runtime_state.py53 def set_cuda_graph_bs(self, cuda_graph_bs: list[int] | None) -> None:CODE
LOW⚡…it/mem_cache/unified_tree_core_inspection_interface.py214 def update_duplicate_tracking(self, node_id: NodeId) -> None:CODE
LOW⚡…gistered/unit/mem_cache/unified_tree_core_inspector.py205 def update_duplicate_tracking(self, node_id: NodeId) -> None:CODE
LOW⚡…red/unit/mem_cache/rust_unified_tree_core_inspector.py182 def update_duplicate_tracking(self, node_id: NodeId) -> None:CODE
LOW…nit/lora/test_experimental_sgl_marlin_multi_prefill.py22def _set_mapping(mapping: torch.Tensor, num_slots: int, offset: int) -> None:CODE
LOWtest/registered/xpu/test_xpu_flux2_dev.py33logger = logging.getLogger(__name__)CODE
LOWtest/registered/xpu/test_xpu_zimage_turbo.py33logger = logging.getLogger(__name__)CODE
LOWtest/registered/npu/interface/test_npu_api_encode.py21logger = logging.getLogger(__name__)CODE
LOW…gistered/npu/basic_function/quant/test_npu_gguf_moe.py21logger = logging.getLogger(__name__)CODE
LOW…gistered/npu/basic_function/quant/test_npu_gptq_moe.py23logger = logging.getLogger(__name__)CODE
LOW…red/npu/basic_function/quant/test_npu_autoround_moe.py22logger = logging.getLogger(__name__)CODE
LOW…t/registered/npu/basic_function/quant/test_npu_gguf.py19logger = logging.getLogger(__name__)CODE
LOW…d/npu/basic_function/quant/test_npu_autoround_dense.py21logger = logging.getLogger(__name__)CODE
LOW…istered/npu/reward_models/test_npu_gemma_2_27b_v0_2.py12logger = logging.getLogger(__name__)CODE
LOW⚡test/registered/observability/test_tracing.py46logger = logging.getLogger(__name__)CODE
LOW…egistered/observability/test_tracing_disaggregation.py34logger = logging.getLogger(__name__)CODE
LOWtest/registered/vlm/test_vision_chunked_prefill.py37logger = logging.getLogger(__name__)CODE
LOWtest/registered/amd/test_zimage_turbo.py24logger = logging.getLogger(__name__)CODE
LOWtest/registered/amd/test_wan22_fp8_mla.py26logger = logging.getLogger(__name__)CODE
LOWtest/registered/rl/test_return_routed_experts.py36logger = logging.getLogger(__name__)CODE
LOWtest/registered/rl/test_weight_version_spans.py121 def _update_weights_from_disk(self, **fields) -> None:CODE
LOWtest/registered/rl/test_return_indexer_topk.py32logger = logging.getLogger(__name__)CODE
LOWpython/sglang/__init__.py70__all__ = [CODE
LOWpython/sglang/utils.py31logger = logging.getLogger(__name__)CODE
LOWpython/sglang/_platform_stubs.py241def set_device(device: Any) -> None: # noqa: ARG001CODE
LOWpython/sglang/benchmark/dspark_sps_profiler.py23logger = logging.getLogger(__name__)CODE
LOWpython/sglang/benchmark/dspark_sps_profiler.py835def set_forced_budget_frac(*, base_url: str, frac: Optional[float]) -> None:CODE
LOWpython/sglang/benchmark/dspark_sts_fit.py16logger = logging.getLogger(__name__)CODE
LOWpython/sglang/benchmark/datasets/__init__.py49__all__ = [CODE
LOWpython/sglang/kernels/kernel_api_logging.py66def _setup_logger() -> None:CODE
LOWpython/sglang/kernels/__init__.py54__all__ = [CODE
LOWpython/sglang/kernels/fused_op.py98logger = logging.getLogger(__name__)CODE
LOWpython/sglang/kernels/fused_op.py237def set_fused_op_backend(backend: Optional[KernelBackend]) -> None:CODE
LOWpython/sglang/kernels/numerics.py66__all__ = [CODE
LOWpython/sglang/kernels/jit/cute_aot_cache.py24logger = logging.getLogger(__name__)CODE
LOWpython/sglang/kernels/jit/benchmark/marker.py37__all__ = [CODE
LOWpython/sglang/kernels/jit/utils/occupancy.py13__all__ = ["NoSchedulableClustersError", "get_max_active_clusters"]CODE
LOWpython/sglang/kernels/jit/utils/arch.py22logger = logging.getLogger(__name__)CODE
LOWpython/sglang/kernels/jit/utils/__init__.py26__all__ = [CODE
LOWpython/sglang/kernels/jit/utils/compile/ninja.py33logger = logging.getLogger(__name__)CODE
1474 more matches not shown…
AI Structural Patterns753 hits · 694 pts
SeverityFileLineSnippetContext
LOW…chmark/kernels/deepseek/benchmark_deepgemm_fp8_gemm.py129CODE
LOW…nels/deepseek/benchmark_deepgemm_fp8_gemm_blackwell.py46CODE
LOW…nels/deepseek/benchmark_deepgemm_fp8_gemm_blackwell.py60CODE
LOWbenchmark/hicache/bench_serving.py676CODE
LOWbenchmark/fla/benchmark_layernorm_gated.py15CODE
LOWbenchmark/lora/lora_bench.py350CODE
LOWtest/manual/openai_server/features/test_cache_report.py68CODE
LOWtest/manual/openai_server/features/test_cache_report.py80CODE
LOWtest/manual/openai_server/features/test_cache_report.py91CODE
LOW…t/manual/entrypoints/http_server/test_abort_request.py78CODE
LOW…/kernels/ops/attention/test_flash_attention_4_sm103.py50CODE
LOW…stered/kernels/ops/attention/test_flash_attention_4.py462CODE
LOW…/kernels/ops/attention/test_flash_attention_4_sm120.py187CODE
LOW…tered/kernels/ops/attention/test_flash_mla_backends.py247CODE
LOW…st/registered/kernels/ops/kv_canary/test_write_hand.py73CODE
LOW…/registered/kernels/ops/kv_canary/test_pipeline_e2e.py183CODE
LOWtest/registered/kernels/ops/diffusion/test_norm.py388CODE
LOW…istered/kernels/ops/moe/test_round_robin_ep_balance.py195CODE
LOWtest/registered/attention/test_verify_shared_kv.py62CODE
LOWtest/registered/attention/test_verify_splitkv.py85CODE
LOWtest/registered/unit/test_model_overrides.py591CODE
LOW…ered/unit/layers/test_llama_inkling_parallel_groups.py21CODE
LOW…gistered/unit/model_executor/test_pool_configurator.py59CODE
LOW…t/registered/unit/sampling/test_sampling_batch_info.py685CODE
LOWtest/registered/unit/mem_cache/test_registry.py35CODE
LOW…stered/unit/mem_cache/test_mooncake_group_semantics.py201CODE
LOW…stered/unit/mem_cache/test_mooncake_group_semantics.py238CODE
LOW…egistered/unit/mem_cache/test_hicache_file_lru_unit.py43CODE
LOW…egistered/unit/mem_cache/test_hicache_file_lru_unit.py76CODE
LOW…egistered/unit/mem_cache/test_fused_draft_placement.py128CODE
LOW…egistered/unit/mem_cache/test_page_interleave_shard.py89CODE
LOW…ed/unit/mem_cache/test_unified_radix_cache_unittest.py6294CODE
LOW…egistered/unit/layer_boundary/test_reduction_fusion.py402CODE
LOWtest/registered/kv_canary/test_self_unit_violation.py25CODE
LOWtest/registered/cpu/test_moe.py40CODE
LOWtest/registered/cpu/test_extend.py184CODE
LOW…t/registered/openai_server/basic/test_openai_server.py619CODE
LOW…t/registered/openai_server/basic/test_openai_server.py655CODE
LOW…/openai_server/validation/test_large_max_new_tokens.py82CODE
LOW…t/registered/debug_utils/comparator/test_entrypoint.py2705CODE
LOW…g_utils/comparator/tensor_comparator/test_formatter.py301CODE
LOWtest/registered/basic_perf/test_lora_latency.py130CODE
LOWtest/registered/bench_fn/test_benchmark_datasets_api.py1036CODE
LOWtest/registered/rl/test_update_weights_from_tensor.py234CODE
LOWtest/registered/rl/test_update_weights_from_tensor.py242CODE
LOWtest/registered/rl/test_update_weights_from_tensor.py257CODE
LOWpython/sglang/benchmark/serving.py1377CODE
LOWpython/sglang/benchmark/one_batch_server.py599CODE
LOWpython/sglang/kernels/jit/benchmark/marker.py487CODE
LOWpython/sglang/kernels/jit/utils/compile/loader.py48CODE
LOW…hon/sglang/kernels/ops/attention/flash_attention_v4.py48CODE
LOW…hon/sglang/kernels/ops/attention/flash_attention_v4.py196CODE
LOW…hon/sglang/kernels/ops/attention/flash_attention_v4.py339CODE
LOWpython/sglang/kernels/ops/attention/decode_attention.py512CODE
LOWpython/sglang/kernels/ops/attention/decode_attention.py770CODE
LOWpython/sglang/kernels/ops/attention/decode_attention.py1098CODE
LOWpython/sglang/kernels/ops/attention/decode_attention.py1158CODE
LOW…/kernels/ops/attention/cutedsl_fp8_paged_mqa_logits.py201CODE
LOWpython/sglang/kernels/ops/attention/verify_mla.py725CODE
LOWpython/sglang/kernels/ops/attention/deep_select.py190CODE
693 more matches not shown…
Structural Annotation Overuse348 hits · 604 pts
SeverityFileLineSnippetContext
LOW⚡benchmark/bench_linear_attention/bench_gdn_decode.py104 # Step 1: split (same as forward_decode)COMMENT
LOW⚡benchmark/bench_linear_attention/bench_gdn_decode.py107 # Step 2: view + reshape (same as forward_decode)COMMENT
LOW⚡benchmark/bench_linear_attention/bench_gdn_decode.py112 # Step 3: fused gating + recurrent updateCOMMENT
LOW⚡…mark/bench_linear_attention/bench_fused_gate_cumsum.py79 # Step 1: gate activation using torch opsCOMMENT
LOW⚡…mark/bench_linear_attention/bench_fused_gate_cumsum.py87 # Step 2: chunk-local cumsumCOMMENT
LOW⚡…rimental/sgl-router/tests/e2e/k8s_integration/setup.sh38# Step 1: Create kind cluster (idempotent)COMMENT
LOW⚡…rimental/sgl-router/tests/e2e/k8s_integration/setup.sh50# Step 2: Build Docker images (unless SKIP_DOCKER_BUILD=1)COMMENT
LOW⚡…rimental/sgl-router/tests/e2e/k8s_integration/setup.sh84# Step 3: Load images into kindCOMMENT
LOW⚡…rimental/sgl-router/tests/e2e/k8s_integration/setup.sh92# Step 4: Apply namespace and RBACCOMMENT
LOW⚡…rimental/sgl-router/tests/e2e/k8s_integration/setup.sh99# Step 5: Deploy 3 fake-worker replicas behind a ServiceCOMMENT
LOW⚡…rimental/sgl-router/tests/e2e/k8s_integration/setup.sh154# Step 6: Deploy sgl-router. It is configured entirely via CLI flags inCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py341 # Step 1: Detect formatCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py347 # Step 2: Prepare inputCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py353 # Step 3: Extract results (simulated tokenizer output)COMMENT
LOW⚡test/manual/test_tokenizer_manager.py372 # Step 1: Detect formatCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py378 # Step 2: Prepare inputCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py384 # Step 3: Extract results (simulated tokenizer output for cross-encoder)COMMENT
LOW⚡test/manual/test_tokenizer_manager.py401 # Step 1: Detect formatCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py407 # Step 2: Prepare inputCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py413 # Step 3: Extract results (simulated tokenizer output)COMMENT
LOWtest/manual/dsv4/test_fused_compress_attn_hip.py311 # Step 1: write current tokens to state (same for both paths)COMMENT
LOW⚡…st/registered/kernels/ops/kv_canary/test_write_hand.py234 # Step 1: write a chain from seed slot=7 → newly written slot=2. Then run verify with prev=7 andCOMMENT
LOW⚡…st/registered/kernels/ops/kv_canary/test_write_hand.py903 # Step 1: build one RealKvSource with read_bytes=16 and a fixed byte pattern at slot 0.COMMENT
LOW⚡…st/registered/kernels/ops/kv_canary/test_write_hand.py943 # Step 3: run write kernel on slot 0 with the given mode.COMMENT
LOW⚡…st/registered/kernels/ops/kv_canary/test_write_hand.py953 # Step 4: assert stored real_kv_hash equals the hand-computed hex literal.COMMENT
LOW…st/registered/kernels/ops/kv_canary/test_write_hand.py256 # Step 2: verify slot[2] with prev=7 — expects no violation.COMMENT
LOW…st/registered/kernels/ops/kv_canary/test_write_hand.py390 # Step 1: compute the expected stored prev_hash sequence in pure Python via splitmix64.COMMENT
LOW…st/registered/kernels/ops/kv_canary/test_write_hand.py407 # Step 2: verify every slot's stored 4 fields match the hardcoded expected sequence.COMMENT
LOW…st/registered/kernels/ops/kv_canary/test_write_hand.py925 # Step 2: verify hand-computed fold matches the hex literal.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py236 # Step 1: stamp slot 5 such that stored.prev_hash already equals splitmix64(consts.CANARY_CHAIN_ANCHOR).COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py240 # Step 2: a single-entry plan with prev_slot_idx = -1 should record no violation.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py274 # Step 1: compute the expected stored prev_hash sequence in pure Python via splitmix64.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py284 # Step 2: stamp each slot manually with the hardcoded expected prev_hash.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py309 # Step 4: also independently confirm the *stored* prev_hash at each slot matches the hardcoded sequence.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py827 # Step 1: build one RealKvSource with read_bytes=16 and a fixed byte pattern at slot 1.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py865 # Step 2: verify hand-computed fold matches the hex literal.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py868 # Step 3: stamp slot 1 with a chain-head entry whose real_kv_hash equals the expected value.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py876 # Step 4: 1-entry verify plan; no violation because stored matches recomputed.COMMENT
LOW…t/registered/kernels/ops/kv_canary/test_verify_hand.py298 # Step 3: verify the 5-step chain — no violation expected and the ref vs CUDA state byte-equal.COMMENT
LOW…t/registered/kernels/ops/kv_canary/test_verify_hand.py888 # Step 5: mutate one byte in the source so the recomputed hash diverges from stored.COMMENT
LOW⚡test/registered/kernels/ops/kv_canary/test_plan_hand.py117 # Step 1: build a one-req batch with no prefix and 5 extend tokens.COMMENT
LOW⚡test/registered/kernels/ops/kv_canary/test_plan_hand.py957 # Step 1: pin (prefix, extend) per req.COMMENT
LOWtest/registered/kernels/ops/kv_canary/test_plan_hand.py132 # Step 2: prefix=0 → no verify entries; seed = -1 because prefix==0.COMMENT
LOWtest/registered/kernels/ops/kv_canary/test_plan_hand.py976 # Step 2: hand-compute expected write_offsets (exclusive cumsum of extends) and verify_num_valid.COMMENT
LOW…/registered/kernels/ops/kv_canary/test_pipeline_e2e.py598 # Step 1: pre-pollute canary_buf slots [0..n_slots) with wrong prev_hash so verify fires n_slots violations.COMMENT
LOW…/registered/kernels/ops/kv_canary/test_pipeline_e2e.py613 # Step 2: run real pipeline (plan + no write + verify); overflow ring capacity=4 with all n_slots violations.COMMENT
LOW⚡…/registered/kernels/ops/kv_canary/test_pipeline_e2e.py684 # Step 3: write_index byte-equal; ring contents relaxed (atomic order not guaranteed under overflow).COMMENT
LOW⚡test/registered/kernels/ops/kvcache/test_hisparse.py453 # Step 1: touch tokens [4, 2], so LRU becomes [0, 3, 1, 2].COMMENT
LOW⚡test/registered/kernels/ops/kvcache/test_hisparse.py454 # Step 2: query token 6, which is a miss.COMMENT
LOW⚡…gistered/kernels/ops/quantization/test_hadamard_jit.py210 # Step 1: apply H_N (standard power-of-2 Hadamard) along the N dimensionCOMMENT
LOW⚡…gistered/kernels/ops/quantization/test_hadamard_jit.py214 # Step 2: apply H_M (special ±1 matrix) along the M dimensionCOMMENT
LOW⚡test/registered/unit/managers/test_hisparse_unit.py473 # Step 1: load the first TOP_K positions from host (no newest token —COMMENT
LOW⚡test/registered/unit/managers/test_hisparse_unit.py482 # Step 2: half overlap (hit) + half new (miss).COMMENT
LOW⚡test/registered/unit/parser/test_reasoning_parser.py1029 # Step 1: Send partial end tag when not in reasoning modeCOMMENT
LOW⚡test/registered/unit/parser/test_reasoning_parser.py1035 # Step 2: Send normal text that doesn't complete the end tagCOMMENT
LOW⚡…egistered/unit/mem_cache/test_decode_radix_lock_ref.py265 # Step 2: checkpoint (dec old lock, inc new lock)COMMENT
LOW⚡…egistered/unit/mem_cache/test_decode_radix_lock_ref.py268 # Step 3: release_kv_cache (insert, free the rest, dec lock)COMMENT
LOW⚡…egistered/unit/mem_cache/test_decode_radix_lock_ref.py316 # Step 2: checkpoint (dec root=no-op, inc new leaf)COMMENT
LOW⚡…egistered/unit/mem_cache/test_decode_radix_lock_ref.py319 # Step 3: cache_finished_req (dec leaf)COMMENT
LOW…egistered/unit/mem_cache/test_decode_radix_lock_ref.py248 # Step 1: lock (pop_preallocated locks the matched node)COMMENT
288 more matches not shown…
Verbosity Indicators290 hits · 516 pts
SeverityFileLineSnippetContext
LOW⚡benchmark/bench_linear_attention/bench_gdn_decode.py104 # Step 1: split (same as forward_decode)COMMENT
LOW⚡benchmark/bench_linear_attention/bench_gdn_decode.py107 # Step 2: view + reshape (same as forward_decode)COMMENT
LOW⚡benchmark/bench_linear_attention/bench_gdn_decode.py112 # Step 3: fused gating + recurrent updateCOMMENT
LOW⚡…mark/bench_linear_attention/bench_fused_gate_cumsum.py79 # Step 1: gate activation using torch opsCOMMENT
LOW⚡…mark/bench_linear_attention/bench_fused_gate_cumsum.py87 # Step 2: chunk-local cumsumCOMMENT
LOW⚡…rimental/sgl-router/tests/e2e/k8s_integration/setup.sh38# Step 1: Create kind cluster (idempotent)COMMENT
LOW⚡…rimental/sgl-router/tests/e2e/k8s_integration/setup.sh50# Step 2: Build Docker images (unless SKIP_DOCKER_BUILD=1)COMMENT
LOW⚡…rimental/sgl-router/tests/e2e/k8s_integration/setup.sh84# Step 3: Load images into kindCOMMENT
LOW⚡…rimental/sgl-router/tests/e2e/k8s_integration/setup.sh92# Step 4: Apply namespace and RBACCOMMENT
LOW⚡…rimental/sgl-router/tests/e2e/k8s_integration/setup.sh99# Step 5: Deploy 3 fake-worker replicas behind a ServiceCOMMENT
LOW⚡…rimental/sgl-router/tests/e2e/k8s_integration/setup.sh154# Step 6: Deploy sgl-router. It is configured entirely via CLI flags inCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py341 # Step 1: Detect formatCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py347 # Step 2: Prepare inputCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py353 # Step 3: Extract results (simulated tokenizer output)COMMENT
LOW⚡test/manual/test_tokenizer_manager.py372 # Step 1: Detect formatCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py378 # Step 2: Prepare inputCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py384 # Step 3: Extract results (simulated tokenizer output for cross-encoder)COMMENT
LOW⚡test/manual/test_tokenizer_manager.py401 # Step 1: Detect formatCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py407 # Step 2: Prepare inputCOMMENT
LOW⚡test/manual/test_tokenizer_manager.py413 # Step 3: Extract results (simulated tokenizer output)COMMENT
LOWtest/manual/dsv4/test_fused_compress_attn_hip.py311 # Step 1: write current tokens to state (same for both paths)COMMENT
LOW⚡…st/registered/kernels/ops/kv_canary/test_write_hand.py234 # Step 1: write a chain from seed slot=7 → newly written slot=2. Then run verify with prev=7 andCOMMENT
LOW⚡…st/registered/kernels/ops/kv_canary/test_write_hand.py903 # Step 1: build one RealKvSource with read_bytes=16 and a fixed byte pattern at slot 0.COMMENT
LOW⚡…st/registered/kernels/ops/kv_canary/test_write_hand.py943 # Step 3: run write kernel on slot 0 with the given mode.COMMENT
LOW⚡…st/registered/kernels/ops/kv_canary/test_write_hand.py953 # Step 4: assert stored real_kv_hash equals the hand-computed hex literal.COMMENT
LOW…st/registered/kernels/ops/kv_canary/test_write_hand.py256 # Step 2: verify slot[2] with prev=7 — expects no violation.COMMENT
LOW…st/registered/kernels/ops/kv_canary/test_write_hand.py390 # Step 1: compute the expected stored prev_hash sequence in pure Python via splitmix64.COMMENT
LOW…st/registered/kernels/ops/kv_canary/test_write_hand.py407 # Step 2: verify every slot's stored 4 fields match the hardcoded expected sequence.COMMENT
LOW…st/registered/kernels/ops/kv_canary/test_write_hand.py925 # Step 2: verify hand-computed fold matches the hex literal.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py236 # Step 1: stamp slot 5 such that stored.prev_hash already equals splitmix64(consts.CANARY_CHAIN_ANCHOR).COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py240 # Step 2: a single-entry plan with prev_slot_idx = -1 should record no violation.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py274 # Step 1: compute the expected stored prev_hash sequence in pure Python via splitmix64.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py284 # Step 2: stamp each slot manually with the hardcoded expected prev_hash.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py309 # Step 4: also independently confirm the *stored* prev_hash at each slot matches the hardcoded sequence.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py827 # Step 1: build one RealKvSource with read_bytes=16 and a fixed byte pattern at slot 1.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py865 # Step 2: verify hand-computed fold matches the hex literal.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py868 # Step 3: stamp slot 1 with a chain-head entry whose real_kv_hash equals the expected value.COMMENT
LOW⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py876 # Step 4: 1-entry verify plan; no violation because stored matches recomputed.COMMENT
LOW…t/registered/kernels/ops/kv_canary/test_verify_hand.py298 # Step 3: verify the 5-step chain — no violation expected and the ref vs CUDA state byte-equal.COMMENT
LOW…t/registered/kernels/ops/kv_canary/test_verify_hand.py888 # Step 5: mutate one byte in the source so the recomputed hash diverges from stored.COMMENT
LOW⚡test/registered/kernels/ops/kv_canary/test_plan_hand.py117 # Step 1: build a one-req batch with no prefix and 5 extend tokens.COMMENT
LOW⚡test/registered/kernels/ops/kv_canary/test_plan_hand.py957 # Step 1: pin (prefix, extend) per req.COMMENT
LOWtest/registered/kernels/ops/kv_canary/test_plan_hand.py132 # Step 2: prefix=0 → no verify entries; seed = -1 because prefix==0.COMMENT
LOWtest/registered/kernels/ops/kv_canary/test_plan_hand.py976 # Step 2: hand-compute expected write_offsets (exclusive cumsum of extends) and verify_num_valid.COMMENT
LOW…/registered/kernels/ops/kv_canary/test_pipeline_e2e.py598 # Step 1: pre-pollute canary_buf slots [0..n_slots) with wrong prev_hash so verify fires n_slots violations.COMMENT
LOW…/registered/kernels/ops/kv_canary/test_pipeline_e2e.py613 # Step 2: run real pipeline (plan + no write + verify); overflow ring capacity=4 with all n_slots violations.COMMENT
LOW⚡…/registered/kernels/ops/kv_canary/test_pipeline_e2e.py684 # Step 3: write_index byte-equal; ring contents relaxed (atomic order not guaranteed under overflow).COMMENT
LOW⚡test/registered/kernels/ops/kvcache/test_hisparse.py453 # Step 1: touch tokens [4, 2], so LRU becomes [0, 3, 1, 2].COMMENT
LOW⚡test/registered/kernels/ops/kvcache/test_hisparse.py454 # Step 2: query token 6, which is a miss.COMMENT
LOW⚡…gistered/kernels/ops/quantization/test_hadamard_jit.py210 # Step 1: apply H_N (standard power-of-2 Hadamard) along the N dimensionCOMMENT
LOW⚡…gistered/kernels/ops/quantization/test_hadamard_jit.py214 # Step 2: apply H_M (special ±1 matrix) along the M dimensionCOMMENT
LOW⚡test/registered/unit/managers/test_hisparse_unit.py473 # Step 1: load the first TOP_K positions from host (no newest token —COMMENT
LOW⚡test/registered/unit/managers/test_hisparse_unit.py482 # Step 2: half overlap (hit) + half new (miss).COMMENT
LOW⚡test/registered/unit/parser/test_reasoning_parser.py1029 # Step 1: Send partial end tag when not in reasoning modeCOMMENT
LOW⚡test/registered/unit/parser/test_reasoning_parser.py1035 # Step 2: Send normal text that doesn't complete the end tagCOMMENT
LOW⚡…egistered/unit/mem_cache/test_decode_radix_lock_ref.py265 # Step 2: checkpoint (dec old lock, inc new lock)COMMENT
LOW⚡…egistered/unit/mem_cache/test_decode_radix_lock_ref.py268 # Step 3: release_kv_cache (insert, free the rest, dec lock)COMMENT
LOW⚡…egistered/unit/mem_cache/test_decode_radix_lock_ref.py316 # Step 2: checkpoint (dec root=no-op, inc new leaf)COMMENT
LOW⚡…egistered/unit/mem_cache/test_decode_radix_lock_ref.py319 # Step 3: cache_finished_req (dec leaf)COMMENT
LOW…egistered/unit/mem_cache/test_decode_radix_lock_ref.py248 # Step 1: lock (pop_preallocated locks the matched node)COMMENT
230 more matches not shown…
Self-Referential Comments122 hits · 372 pts
SeverityFileLineSnippetContext
MEDIUMbenchmark/hicache/bench_mix.py24# Create a lock for thread-safe debug log writingCOMMENT
MEDIUMbenchmark/prefill_only/bench_score.py157 # Create the request builder function with shared tokenizerCOMMENT
MEDIUM⚡benchmark/prefill_only/util.py173 # Create the full request list by cycling through unique requestsCOMMENT
MEDIUMexperimental/sgl-router/tests/e2e/infra/gateway.py43# This file is at `experimental/sgl-router/tests/e2e/infra/gateway.py`,COMMENT
MEDIUMtest/manual/test_weight_validation.py75 # Create a minimal valid safetensors fileCOMMENT
MEDIUMtest/manual/test_weight_validation.py186 # Create a broken symlink for the index fileCOMMENT
MEDIUMtest/manual/test_modelopt_fp8kvcache.py15 # Create a ModelOptFp8Config objectCOMMENT
MEDIUMtest/manual/test_config_integration.py27 # Create a temporary config fileCOMMENT
MEDIUMtest/manual/test_config_integration.py82 # Create a temporary config fileCOMMENT
MEDIUMtest/manual/test_config_integration.py113 # Create a temporary config fileCOMMENT
MEDIUMtest/manual/test_async_dynamic_batch_tokenizer.py54 # Create a proper BatchEncoding-like object that supports dict operationsCOMMENT
MEDIUMtest/manual/test_async_dynamic_batch_tokenizer.py193 # Create a new async tokenizer with a failing tokenizerCOMMENT
MEDIUMtest/manual/attention/test_flashattn_backend.py65 # Create a large enough req_to_token_pool to fit the test usage.COMMENT
MEDIUMtest/manual/attention/test_flashattn_mla_backend.py55 # Create a proper req_to_token_pool with the req_to_token attributeCOMMENT
MEDIUM⚡…ual/lang_frontend/test_separate_reasoning_execution.py72 # Create a mock backend to avoid AttributeError in __del__COMMENT
MEDIUM⚡…ual/lang_frontend/test_separate_reasoning_execution.py75 # Create a StreamExecutor with necessary setupCOMMENT
MEDIUM…ual/lang_frontend/test_separate_reasoning_execution.py106 # Create a gen expression and a separate_reasoning expressionCOMMENT
MEDIUMtest/manual/debug_utils/run_with_retry.py37 # Create a TestFile with a reasonable estimated timeCOMMENT
MEDIUM…t/registered/kernels/ops/attention/test_dsa_indexer.py80 # Create a simple page table for testingCOMMENT
MEDIUM…t/registered/kernels/ops/attention/test_dsa_indexer.py96 # Create a simple page table for testing with page size 1COMMENT
MEDIUM…st/registered/attention/test_wave_attention_kernels.py189 # Define the varying parameter valuesCOMMENT
MEDIUM…/registered/attention/test_triton_attention_kernels.py316 # Define the varying parameter valuesCOMMENT
MEDIUM…egistered/attention/test_normal_decode_set_metadata.py149 # Create a simple SWA KV pool for testingCOMMENT
MEDIUM…egistered/attention/test_normal_decode_set_metadata.py170 # Create a minimal mock that inherits from SWAKVPool to pass isinstance checkCOMMENT
MEDIUMtest/registered/unit/distributed/test_parallel_state.py326 # Create a mock group objectCOMMENT
MEDIUM…stered/unit/function_call/test_function_call_parser.py946 # Create a concrete implementation of BaseFormatDetector for testingCOMMENT
MEDIUM…tered/unit/mem_cache/test_radix_cache_slru_accuracy.py49 # Create a cache with the memory poolsCOMMENT
MEDIUM…ed/unit/mem_cache/test_unified_radix_cache_unittest.py3288 # Create a chain: root -> A -> B -> C (3 levels)COMMENT
MEDIUM…t/registered/unit/configs/test_quant_config_parsing.py23 # Create a raw instanceCOMMENT
MEDIUM…egistered/unit/entrypoints/openai/test_serving_chat.py1764 # Create a mock conversation object that will be returned by generate_chat_convCOMMENT
MEDIUM…egistered/unit/entrypoints/openai/test_serving_chat.py2943 # Create a mock conversation objectCOMMENT
MEDIUMtest/registered/cpu/test_mamba.py24 """This function is intended to align with the l2norm implementation in the FLA library."""STRING
MEDIUM…t/registered/openai_server/basic/test_openai_server.py595 # This class is a Chat gate; Completion already has its own Rust matrix.COMMENT
MEDIUM…registered/hicache/test_hicache_storage_3fs_backend.py26 # Create a temporary JSON config file for HF3FSCOMMENT
MEDIUMtest/registered/rl/test_update_weights_from_tensor.py140 # Create a small set of parameters for testingCOMMENT
MEDIUM⚡test/registered/rl/test_update_weights_from_tensor.py154 # Create a flattened bucketCOMMENT
MEDIUM⚡test/registered/rl/test_update_weights_from_tensor.py161 # Create the dict format expected by _update_weights_from_flattened_bucketCOMMENT
MEDIUM⚡test/registered/rl/test_update_weights_from_tensor.py171 # Create a list where each rank contains the same serialized dataCOMMENT
MEDIUMpython/sglang/benchmark/serving.py1453 # Create a temporary DatasetRow object for warmupCOMMENT
MEDIUMpython/sglang/benchmark/serving.py1469 # Create the test input onceCOMMENT
MEDIUMpython/sglang/benchmark/serving.py2619 # Create a mutually exclusive group for profiling URLsCOMMENT
MEDIUMpython/sglang/kernels/ops/attention/deepseek_v4_rope.py12# This module is imported during model-registry discovery. Keep it free ofCOMMENT
MEDIUM…sglang/kernels/ops/attention/dsa/index_buf_accessor.py664 # Define the token range within the block and the K dimension range handled by the thread.COMMENT
MEDIUMpython/sglang/kernels/ops/attention/fla/kda.py4# This file contains code copied from the flash-linear-attention project.COMMENT
MEDIUM⚡python/sglang/kernels/ops/layernorm/mhc.py120# This module is imported during model-registry discovery. Do not import the realCOMMENT
MEDIUM…nels/ops/quantization/nvfp4_gemm_swiglu_nvfp4_quant.py115 """This class implements batched matrix multiplication (C = A x SFA x B x SFB) with support for various data typesSTRING
MEDIUMpython/sglang/kernels/ops/quantization/awq_triton.py152 # Create the necessary shifts to use to unpack.COMMENT
MEDIUM…thon/sglang/kernels/ops/speculative/ngram_embedding.py135 # Create an empty tensor for ignore_tokensCOMMENT
MEDIUM…/sglang/kernels/kda_kernels/qwen3x_nvfp4_gemm_sm120.py34# This file is ported from the CUTLASS dense block-scaled GEMM example andCOMMENT
MEDIUM…els/aot/benchmark/bench_amd_deterministic_allreduce.py127 # Create a gloo group for custom AR (it requires non-NCCL backend)COMMENT
MEDIUMpython/sglang/test/cpu_test_utils.py478 # Create a new tensor with alternating valuesCOMMENT
MEDIUMpython/sglang/test/cpu_test_utils.py501 # Create a tensor with the E2M1 valuesCOMMENT
MEDIUMpython/sglang/srt/layers/rocm_linear_utils.py18# This module is imported wherever AITER is on, gfx942 included, but the fusedCOMMENT
MEDIUMpython/sglang/srt/layers/attention/local_attention.py331 # Create a block_table for the local attention blocksCOMMENT
MEDIUMpython/sglang/srt/layers/quantization/fp8.py642 # Create the weightCOMMENT
MEDIUMpython/sglang/srt/layers/quantization/mxfp4_tensor.py90 # Create a new tensor with alternating valuesCOMMENT
MEDIUMpython/sglang/srt/layers/quantization/mxfp4_tensor.py113 # Create a tensor with the E2M1 valuesCOMMENT
MEDIUMpython/sglang/srt/layers/quantization/mxfp4.py804 # Create a new shape with pairs swapped along specified axisCOMMENT
MEDIUMpython/sglang/srt/eplb/eplb_algorithms/deepseek.py1# This file is copied from https://github.com/deepseek-ai/EPLB/blob/main/eplb.py since that one is not a pypi packageCOMMENT
MEDIUMpython/sglang/srt/eplb/eplb_algorithms/deepseek_vec.py1# This file is copied from https://github.com/deepseek-ai/EPLB/blob/main/eplb.py since that one is not a pypi packageCOMMENT
62 more matches not shown…
Redundant / Tautological Comments242 hits · 369 pts
SeverityFileLineSnippetContext
LOW…shinfer_allreduce_fusion/benchmark_fused_collective.py1162 # Check if running with torchrun (required for collective operations)STRING
LOW⚡benchmark/prefill_only/util.py163 # Check if we have any valid requestsCOMMENT
LOWbenchmark/boolq/bench_sglang.py89 # Print resultsCOMMENT
LOWtest/manual/test_schedule_policy.py93 # Check if FCFS keeps the original orderCOMMENT
LOWtest/manual/test_schedule_policy.py118 # Check if priority enabled fcfs ordering is applied.COMMENT
LOWtest/manual/test_schedule_policy.py144 # Check if priority enabled fcfs ordering is applied.COMMENT
LOWtest/manual/test_schedule_policy.py166 # Check if priority enabled fcfs ordering is applied.COMMENT
LOWtest/manual/test_schedule_policy.py190 # Check if priority enabled fcfs ordering is applied.COMMENT
LOWtest/manual/test_schedule_policy.py216 # Check if priority enabled fcfs ordering is applied.COMMENT
LOW…nual/kv_transfer/test_mooncake_transfer_engine_init.py204 # Check if mooncake should be usedCOMMENT
LOWtest/registered/kernels/ops/attention/test_pos_enc.py479 # Print resultsCOMMENT
LOW…mmunication/test_amd_deterministic_custom_allreduce.py93 # Check if inputs fit in bufferCOMMENT
LOW…tered/unit/mem_cache/test_radix_cache_slru_accuracy.py101 # Check if the frequently accessed key-value is still presentCOMMENT
LOW…tered/unit/mem_cache/test_radix_cache_slru_accuracy.py107 # Check if the first low-frequency key-value has been evictedCOMMENT
LOW…tered/unit/mem_cache/test_radix_cache_slru_accuracy.py119 # Check if the tensor is empty, which indicates the key was not found (evicted)COMMENT
LOW…registered/unit/model_loader/test_presharded_loader.py283 # Write the file with stored_keys mapped to tensor content.COMMENT
LOW…d/unit/batch_invariant_ops/test_batch_invariant_ops.py53 # Check if results are identicalCOMMENT
LOW…d/unit/batch_invariant_ops/test_batch_invariant_ops.py208 # Check if results are identicalCOMMENT
LOW⚡…registered/disaggregation/test_disaggregation_basic.py213 # Check if servers are still healthyCOMMENT
LOW…t/registered/openai_server/basic/test_openai_server.py92 # Check if ignore_eos resulted in more tokens or exactly max_tokensCOMMENT
LOW…red/npu/interface/test_npu_openai_server_ignore_eos.py84 # Check if ignore_eos resulted in more tokens or exactly max_tokensCOMMENT
LOW…pu/basic_function/offloading/test_npu_offload_modes.py69 # Check if server is running (basic functionality test)COMMENT
LOWtest/registered/observability/test_tracing.py80 # Check if it's a RequestStageConfig (has stage_name and level attributes)COMMENT
LOW⚡…stered/amd/disaggregation/test_disaggregation_basic.py324 # Check if servers are still healthyCOMMENT
LOW…t/registered/amd/accuracy/mi30x/test_gsm8k_eval_amd.py281 # Print resultsCOMMENT
LOW…gistered/amd/accuracy/mi30x/test_vlms_mmmu_eval_amd.py258 # Print resultsCOMMENT
LOW…/registered/rl/test_update_weights_from_distributed.py651 # Check if the weights of lm_head are tied with embed_tokens.COMMENT
LOWpython/sglang/utils.py392 # Check if the cache file already existsCOMMENT
LOWpython/sglang/benchmark/serving.py1499 # Check if at least one warmup request succeededCOMMENT
LOWpython/sglang/benchmark/one_batch.py739 # Print output textsCOMMENT
LOWpython/sglang/benchmark/utils.py100 # Check if the cache file already existsCOMMENT
LOWpython/sglang/benchmark/one_batch_server.py967 # Print resultsCOMMENT
LOWpython/sglang/kernels/ops/attention/metadata.py651 # Check if we should use the specialized fast path for page_size=1, no SWACOMMENT
LOWpython/sglang/kernels/ops/attention/extend_attention.py1382 # Check if we can skip this tileCOMMENT
LOWpython/sglang/kernels/ops/attention/pad.py295 # Check if we're in CUDA graph mode (buffers are pre-allocated)COMMENT
LOW…n/nsa_triton_decode/triton_mla_kernels_decode_fused.py2888 # Check if buffer ops should be disabledCOMMENT
LOW…ang/kernels/ops/attention/flash_attn/cute/flash_fwd.py171 # Check if block size setting is out of shared memory capacityCOMMENT
LOW…ang/kernels/ops/attention/flash_attn/cute/flash_fwd.py186 # Check if twice the block size is divisible by the number of threadsCOMMENT
LOW…nels/ops/quantization/nvfp4_gemm_swiglu_nvfp4_quant.py490 # Check if input data types are compatible with MMA instructionCOMMENT
LOW…thon/sglang/kernels/ops/lora/dense/embedding_lora_a.py56 # Check if this token is within the segmentCOMMENT
LOW…thon/sglang/kernels/ops/lora/dense/embedding_lora_a.py70 # Check if this is an extra tokenCOMMENT
LOWpython/sglang/kernels/ops/speculative/spec_tree.py223 # Check if we've reached end of sibling listCOMMENT
LOWpython/sglang/kernels/ops/moe/inkling_moe.py988 # Set grid_m to the max number of M blocks and skip padding-only blocksCOMMENT
LOW…els/aot/benchmark/bench_amd_deterministic_allreduce.py243 # Check if input size fits in bufferCOMMENT
LOW…hon/sglang/kernels/aot/python/sgl_kernel/load_utils.py36 # Check if it's a compiled extension (including complex names like .abi3.so, .cpython-312.so)COMMENT
LOWpython/sglang/test/send_one.py238 # Print resultsCOMMENT
LOWpython/sglang/test/runners.py513 # Check if the text is empty or only whitespace.COMMENT
LOWpython/sglang/test/runners.py813 # Check if the text is empty or only whitespace.COMMENT
LOWpython/sglang/test/few_shot_gsm8k.py138 # Print resultsCOMMENT
LOWpython/sglang/test/ascend/e2e/run_npu_e2e_test.py389 # Check if current line matches expected patternCOMMENT
LOWpython/sglang/test/ascend/e2e/run_npu_e2e_test.py476 # Check if pattern was successfully matchedCOMMENT
LOWpython/sglang/test/ci/ci_utils.py363 # Check if we should retryCOMMENT
LOW…/sglang/test/server_fixtures/disaggregation_fixture.py336 # Check if port is activeCOMMENT
LOW⚡python/sglang/srt/environ.py1573 # Set True to dequantize the FP4 experts to FP8 at runtimeCOMMENT
LOWpython/sglang/srt/dllm/mixin/scheduler.py377 # Check if batch is fullCOMMENT
LOWpython/sglang/srt/disaggregation/decode.py2837 # Check if request was aborted due to corruptionCOMMENT
LOWpython/sglang/srt/layers/logprob_processor.py967 # Check if any requests actually need logprobs computationCOMMENT
LOWpython/sglang/srt/layers/attention/xpu_backend.py569 # Check if we should use local attentionCOMMENT
LOWpython/sglang/srt/layers/attention/dsa_backend.py1162 # Check if MHA FP8 dequantization is neededCOMMENT
LOWpython/sglang/srt/layers/attention/dsa_backend.py3772 # Check if sequence meets criteria for MHA_ONE_SHOTCOMMENT
182 more matches not shown…
Cross-Language Confusion63 hits · 344 pts
SeverityFileLineSnippetContext
HIGHbenchmark/hicache/bench_mix.py465 self.user_generator.push(CODE
HIGHexperimental/sgl-router/tests/e2e/infra/gateway.py335 "Build it first: `cd experimental/sgl-router && cargo build --release` "CODE
HIGHtest/manual/models/test_qwen3_asr.py630 f"first commit's previous_item_id must be JSON null, got {committed_1!r}",CODE
HIGHtest/manual/debug_utils/test_log_parser.py16 """[{"line":"(SGLangEngine pid=35555) [2025-10-31 03:45:20 TP0] Decode batch [51341], #running-req: 317, #toSTRING
HIGH…stered/unit/function_call/test_deepseekv41_detector.py328 "[true, null, 2]", "invalid"CODE
HIGH…stered/unit/function_call/test_function_call_parser.py2739[true, null, {"enabled": false}]CODE
HIGH…stered/unit/function_call/test_function_call_parser.py3763 ({"enum": [{"x": 1}, [True, None]]}, ['{"x": 1}', "[true, null]"], ["{}"]),CODE
HIGH…gistered/unit/function_call/test_iquest_q1_detector.py43 "<arg_key>items</arg_key><arg_value>[1, null]</arg_value>"CODE
HIGH…gistered/unit/function_call/test_iquest_q1_detector.py167 wire = '{ "code": "你好", "items": [1, null] }'CODE
HIGH…registered/unit/models/test_inkling_per_expert_sync.py10 - w13 row layout: Inkling-interleaved vs contiguous [gate || up]STRING
HIGHtest/registered/unit/parser/test_chat_parsing.py477 'null_value:null,number_value:1,string_value:<|"|>foo<|"|>,'CODE
HIGH⚡test/registered/unit/api/v1/test_json_contract.py74 p = sp('{"temperature": null, "top_k": null, "ignore_eos": null}')CODE
HIGH⚡test/registered/unit/api/v1/test_json_contract.py82 self.assertIsNone(sp('{"max_new_tokens": null}').max_new_tokens)CODE
HIGH⚡test/registered/unit/api/v1/test_json_contract.py220 self.assertEqual(compact(encode_OptionalStringOrList(v)), '[null,"h"]')CODE
HIGH⚡test/registered/unit/api/v1/test_json_contract.py269 self.assertEqual(compact(e.to_json_value()), "[-0.25,7,null]")CODE
HIGH⚡test/registered/unit/api/v1/test_json_contract.py275 self.assertEqual(compact(first_prefill.to_json_value()), "[null,10,null]")CODE
HIGHtest/registered/unit/api/v1/test_json_contract.py298 '{"text":"ok","meta_info":{"id":"client-rid","prompt_tokens":5,"completion_tokens":2,"finish_reason":null},"CODE
HIGH⚡test/registered/unit/api/v1/test_json_contract.py217 """PD bootstrap columns: [null, "h"] keeps per-item presence."""STRING
HIGH⚡test/registered/unit/api/v1/test_json_contract.py267 """[logprob, token_id, text|null]; the logprob slot is nullable."""STRING
HIGH…xer_replay/test_npu_return_indexer_topk_deepseek_v4.py101 "source /usr/local/Ascend/ascend-toolkit/latest/opp/vendors/customize/bin/set_env.bash || true; "CODE
HIGH…xer_replay/test_npu_return_indexer_topk_deepseek_v4.py102 "source /usr/local/Ascend/ascend-toolkit/latest/opp/vendors/custom_transformer/bin/set_env.bash || true; "CODE
HIGH…nels/ops/quantization/nvfp4_gemm_swiglu_nvfp4_quant.py2552 :param c_sf_ptr: Pointer to scale factor tensor for C (can be null)STRING
HIGH…nels/ops/quantization/nvfp4_gemm_swiglu_nvfp4_quant.py2556 :param norm_const_ptr: Pointer to normalization constant for SFC generation (can be null)STRING
HIGH…tion_unittest/runner_modes/cuda_graph_decode_runner.py401 # capture, which makes the capture-time output undefined; onlyCOMMENT
HIGHpython/sglang/srt/layers/attention/dsa/dsa_indexer.py428 # builds wk_weights_proj and leaves wk/weights_proj undefined, and aCOMMENT
HIGHpython/sglang/srt/layers/quantization/humming.py460 # explicit null) instead of silently quantizing with the defaults.COMMENT
HIGH⚡…ng/srt/managers/scheduler_components/internal_state.py219 raise UpdateRejected(f"{key} must be in (0, 1] or null, got {value}.")CODE
HIGHpython/sglang/srt/function_call/utils.py357 return "string" # If only null, default to stringCODE
HIGHpython/sglang/srt/function_call/mimo_detector.py147 <parameter=command>pwd && ls</parameter>STRING
HIGHpython/sglang/srt/utils/field_validators.py66 raise ValueError(f"must be list or null; got {type(v).__name__}")CODE
HIGHpython/sglang/srt/utils/hf_transformers/tokenizer.py376 # When the config omits the key or has null, use the v4 default so thatCOMMENT
HIGHpython/sglang/srt/models/inkling.py1370 when the config stores w13 interleaved, contiguous [gate || up] underSTRING
HIGH⚡python/sglang/srt/models/inkling_common/util.py16 """Use the contiguous ``[gate || up]`` layout required by LoRA slicing."""STRING
HIGHpython/sglang/srt/models/inkling_common/util.py59 """Return whether BF16 weights require TRT-LLM's ``[up || gate]`` layout."""STRING
HIGHpython/sglang/srt/entrypoints/http_server.py564 {"error": {"message": "...", "type": "...", "param": null, "code": <status>}}STRING
HIGH…timodal_gen/test/unit/kandinsky6_sr_release_configs.py26 r"""{"_class_name":"FlowMatchEulerDiscreteScheduler","_diffusers_version":"0.39.0","base_image_seq_len":256,"base_shCODE
HIGH…timodal_gen/test/unit/kandinsky6_sr_release_configs.py45 r"""{"models":[{"model":{"architecture":"multi_scale","bare_stem":true,"bottleneck_channels":null,"depthwise":false,CODE
HIGH⚡…en/test/unit/realtime/test_realtime_control_signals.py16 queue.push("camera_actions", [["w"], ["d"]])CODE
HIGH⚡…en/test/unit/realtime/test_realtime_control_signals.py28 queue.push(CODE
HIGH⚡…en/test/unit/realtime/test_realtime_control_signals.py205 queue.push("camera_actions", [])CODE
HIGH⚡…en/test/unit/realtime/test_realtime_control_signals.py265 queue.push(ControlStateTransition(payload=["w"], seq_id=7))CODE
HIGH⚡…en/test/unit/realtime/test_realtime_control_signals.py266 queue.push(ControlStateTransition(payload=[], seq_id=8))CODE
HIGH⚡…en/test/unit/realtime/test_realtime_control_signals.py277 queue.push(ControlStateTransition(payload=["w"], seq_id=7))CODE
HIGH⚡…en/test/unit/realtime/test_realtime_control_signals.py287 queue.push(ControlStateTransition(payload=["w"], seq_id=7))CODE
HIGH⚡…en/test/unit/realtime/test_realtime_control_signals.py288 queue.push(ControlStateTransition(payload=["w", "d"], seq_id=8))CODE
HIGH⚡…en/test/unit/realtime/test_realtime_control_signals.py289 queue.push(ControlStateTransition(payload=["d"], seq_id=9))CODE
HIGH…en/test/unit/realtime/test_realtime_control_signals.py46 queue.push(CODE
HIGH…en/test/unit/realtime/test_realtime_control_signals.py70 queue.push("camera_actions", [["w"], ["a"], ["s"]])CODE
HIGH…en/test/unit/realtime/test_realtime_control_signals.py87 queue.push("camera_actions", [["w"]])CODE
HIGH…en/test/unit/realtime/test_realtime_control_signals.py104 queue.push("camera_actions", [["w"]])CODE
HIGH…en/test/unit/realtime/test_realtime_control_signals.py122 queue.push("camera_actions", [[]])CODE
HIGH…en/test/unit/realtime/test_realtime_control_signals.py139 queue.push(CODE
HIGH…en/test/unit/realtime/test_realtime_control_signals.py174 queue.push("camera_actions", [["w"], ["w"], ["w"], ["w"]])CODE
HIGH…ultimodal_gen/runtime/pipelines/minimax_h3_pipeline.py49 # scheduler intentionally absent: model_index carries scheduler=null;COMMENT
HIGH…ang/multimodal_gen/runtime/pipelines/ltx_2_pipeline.py416 # model_index.json records absent optional components as [null, null].COMMENT
HIGH…ang/multimodal_gen/runtime/realtime/control_signals.py190 self.push(CODE
HIGH…ang/multimodal_gen/runtime/realtime/control_signals.py351 self._signals.push(self.kind, script, event_id=event_id)CODE
HIGH…ang/multimodal_gen/runtime/realtime/control_signals.py422 self.push(transition)CODE
HIGH…ai/realtime/adapters/lingbot_world_realtime_adapter.py57 self.prompt_queue.push("prompt", prompt, event_id=event_id)CODE
HIGH…rify/scripts/mechanical_refactor_reproduction_utils.py48 exec_command(f"git add -A && git commit -m {shlex.quote(message)}", cwd=cwd)CODE
3 more matches not shown…
AI Slop Vocabulary91 hits · 237 pts
SeverityFileLineSnippetContext
MEDIUMbenchmark/prefill_only/bench_setwise_score.py153 # this harness sends exactly one item, so the per-candidate row count isCOMMENT
MEDIUMdocker/k8s-sglang-distributed-sts.yaml58 privileged: true # to leverage RDMA/InfiniBand device, co-work with HostNetwork=trueCODE
MEDIUM…t/manual/layers/attention/dsa/test_act_quant_triton.py269 # Run comprehensive benchmarkCOMMENT
MEDIUM⚡test/manual/layers/moe/bench_mxfp4_sm90_kernels.py328# Timing harnessCOMMENT
MEDIUMtest/manual/4-gpu-models/test_qwen35_models_archived.py17# This eval harness applies the chat_template, which is critical for qwen3.5COMMENT
MEDIUMtest/manual/4-gpu-models/test_qwen35_fp4_triton.py5# This eval harness applies the chat_template, which is critical for qwen3.5COMMENT
MEDIUM…ered/kernels/ops/attention/test_minimax_decode_topk.py41 """Per-row sorted-desc multiset of the scores the kernel selected (tie-robust)."""STRING
MEDIUM…ered/kernels/ops/attention/test_minimax_decode_topk.py114 # tie-robust: the multiset of selected scores must match torch.topk'sCOMMENT
MEDIUM…ered/kernels/ops/attention/test_minimax_decode_topk.py151 # Tie-robust: compare the selected scores, not the indices.COMMENT
MEDIUM…t/registered/kernels/ops/kv_canary/test_verify_fuzz.py110 # harness exercises the chain-check-skip branch (added for SWA-evicted ancestor handling).COMMENT
MEDIUM…st/registered/kernels/ops/moe/test_moe_topk_softmax.py124 # Tie-robust index check: the probability at each returned index must equalCOMMENT
MEDIUM…tered/attention/unittests/dense/test_flex_attention.py60 # from logical positions, so it's robust to all non-tidy layouts.COMMENT
MEDIUMtest/registered/attention/unittests/dense/test_fa3.py42 # FlashAttention kernels are most stable in this harness with FA-friendly dims.COMMENT
MEDIUMtest/registered/attention/unittests/dense/test_fa4.py38 # FlashAttention kernels are most stable in this harness with FA-friendly dims.COMMENT
MEDIUM⚡…egistered/attention/unittests/swa/test_torch_native.py100 # arithmetic, so it's robust to all non-tidy layouts.COMMENT
MEDIUM⚡…unit/lora/test_experimental_sgl_marlin_runtime_unit.py135# Runtime-flow harnessCOMMENT
MEDIUM…/registered/chunked_prefill/test_scripted_core_1gpu.py82 # output_ids are no longer observable through the harness. That case'sCOMMENT
MEDIUMtest/registered/hicache/test_qwen35_hicache.py14# This eval harness applies the chat_template, which is critical for qwen3.5COMMENT
MEDIUMtest/registered/observability/test_tracing.py585 # Only run trace_level_3 — the most comprehensive check.COMMENT
MEDIUMtest/registered/vlm/test_vision_openai_server_a.py42# coordinate, so the check is robust to normalized-vs-pixel conventions.COMMENT
MEDIUM…ered/amd/accuracy/mi35x/test_glm53_flash_eval_mi35x.py34defaults are not costing accuracy relative to #36607's harness.STRING
LOWtest/registered/debug_utils/test_dumper.py3339 # code can simply call `from sglang.srt.debug_utils.dumper import dumper`COMMENT
MEDIUMtest/registered/e2e/models/test_inkling.py212 # Sized to the 20480-token pool the harness pins: large enough toCOMMENT
MEDIUM⚡test/registered/e2e/models/test_inkling_small_nvfp4.py236# The multi-turn branching harness, unlike the single-turn helpers above, replaysCOMMENT
MEDIUM…istered/e2e/models_large/test_inkling_nvfp4_nightly.py101 # The harness pins a tight pool; this checkpoint needs room forCOMMENT
MEDIUMtest/registered/e2e/scoring/test_setwise_scoring.py208 """Ranking (argsort over label 0) agrees with HF — robust to fp noise."""STRING
MEDIUM…on/sglang/kernels/ops/attention/dsa/tilelang_kernel.py1101 # to better utilize FP8 dynamic range, then apply the inverse scale after GEMM.COMMENT
MEDIUM…on/sglang/kernels/ops/attention/fa4_sm120/flash_fwd.py342 # N128 is robust before the compact-SM steady state. N256'sCOMMENT
MEDIUM…rnels/ops/attention/flash_attn/cute/flash_fwd_sm100.py1452 # CLC buffers placed here to utilize padding before sO's 1024-byte alignment.COMMENT
LOW…ernels/ops/attention/flash_attn/cute/flash_fwd_sm90.py1975 # 2 elements. So we just call ptx directly.COMMENT
LOW…ernels/ops/attention/flash_attn/cute/flash_fwd_sm90.py2082 # 2 elements. So we just call ptx directly.COMMENT
LOWpython/sglang/kernels/ops/mamba/causal_conv1d_triton.py177 # first chunk and does not have prior-token, so just set to 0COMMENT
MEDIUMpython/sglang/kernels/aot/csrc/cpu/decode.cpp1657 // use smaller BLOCK_H when batches is small to utilize all coresCOMMENT
MEDIUMpython/sglang/test/simple_eval_common.py278 # The harness passes the OpenAI base (`.../v1`); `/generate` lives at root.COMMENT
MEDIUMpython/sglang/test/kernels/utils.py47 # single test exceeds half the harness budget, so a hung collectiveCOMMENT
MEDIUM…tion_unittest/runner_modes/speculative_draft_runner.py181 # in EagleDraftWorker.__init__, which the harness skips), so build themCOMMENT
MEDIUM…tion_unittest/runner_modes/speculative_draft_runner.py199 # canary_manager); for the harness that's the fixture runner.COMMENT
MEDIUM…attention_unittest/attention_methods/dsv4_attention.py1307 # In runner-harness flows the reference is called BEFORECOMMENT
LOWpython/sglang/srt/disaggregation/nixl/conn.py194 ) # hacky just add it into the message that will be sentCODE
MEDIUMpython/sglang/srt/disaggregation/common/conn.py2175 # Enable higher PP ranks to be bootstrapped earlier to make PP PD requests bootstrap more robustCOMMENT
LOWpython/sglang/srt/layers/attention/local_attention.py266 # then we can simply use a cdiv for the rest.COMMENT
MEDIUMpython/sglang/srt/layers/quantization/fp8.py352 # Keep both "model." and non-"model." variants for robust prefix matching.COMMENT
MEDIUMpython/sglang/srt/layers/quantization/fp8.py506 # For GPUs that lack FP8 hardware support, we can leverage the MarlinCOMMENT
MEDIUMpython/sglang/srt/layers/quantization/fp8_utils.py1237 # TODO: add more robust shape check hereCOMMENT
MEDIUM…hon/sglang/srt/layers/quantization/marlin_utils_fp8.py68 # For GPUs that lack FP8 hardware support, we can leverage theCOMMENT
LOW…srt/layers/quantization/mxfp4_flashinfer_trtllm_moe.py490 # in-place. Otherwise `routed` is already scale-final and we just addCOMMENT
MEDIUMpython/sglang/srt/layers/moe/moe_runner/humming.py227 # Neighboring nodes are required to utilize distinct workspaces.COMMENT
LOWpython/sglang/srt/managers/io_struct.py1083 lora_id: Optional[str] = None # None means just use the base modelCODE
LOWpython/sglang/srt/managers/io_struct.py1498 lora_id: Optional[str] = None # None means just use the base modelCODE
LOWpython/sglang/srt/managers/scheduler_pp_mixin.py462 # otherwise, just pass along previous consensusCOMMENT
LOWpython/sglang/srt/managers/scheduler.py5512 # In-place pause: just set the flag and return immediately.COMMENT
MEDIUM…thon/sglang/srt/model_executor/runner_backend/utils.py89 # with a disabled config (e.g. the draft-runner test harness) historicallyCOMMENT
LOWpython/sglang/srt/function_call/qwen3_coder_detector.py45 # Base class already initializes _buffer, we just use it directlyCOMMENT
MEDIUMpython/sglang/srt/function_call/inkling_detector.py310 # the harness sees a structured tool_call, returns a tool error, andCOMMENT
MEDIUMpython/sglang/srt/models/inkling_common/kernels/comm.py800 # JIT module / bench harness as alternatives.COMMENT
LOWpython/sglang/srt/parser/harmony_parser.py492 # If no emit, just return the held contentCOMMENT
MEDIUMpython/sglang/multimodal_gen/test/test_utils.py1518 """Probe whether a remote GT file exists, robust to transient failures."""STRING
MEDIUM…dal_gen/test/unit/test_diffusion_nightly_comparison.py30 # An outside benchmark launches the published recipe as-is, so the harnessCOMMENT
MEDIUM…l_gen/test/unit/test_kandinsky6_sr_reference_parity.py85# Reference harness (test-only): stubs, tiny resolutions, tiny random componentsCOMMENT
MEDIUM…ultimodal_gen/test/unit/sana_wm/test_realtime_chain.py167 # Tick 2: horizon exhausted -> seamless continuation, uniform chunk fromCOMMENT
31 more matches not shown…
Hallucination Indicators18 hits · 190 pts
SeverityFileLineSnippetContext
CRITICAL…/attention/unittests/dsv4/test_dsv41_fused_compress.py232 latent[live].float(), t.layer.indexer.wk.weight.float()CODE
CRITICAL…it/disaggregation/test_prefill_abort_result_cleanup.py226 scheduler.tree_cache.req_to_token_pool.mamba_allocator.free.assert_called_once()CODE
CRITICALtest/registered/unit/mem_cache/test_registry.py338 ctx.params.token_to_kv_pool_allocator.get_kvcache.return_value.register_layer_transfer_counter.assert_called_oncCODE
CRITICAL⚡…/unit/layer_boundary/test_declared_decoder_boundary.py411 max_len, communicator.ffn.plan.output.plan.path_for(max_len)CODE
CRITICAL⚡…/unit/layer_boundary/test_declared_decoder_boundary.py415 communicator.ffn.plan.output.plan.path_for(max_len), stepCODE
CRITICAL…/unit/layer_boundary/test_declared_decoder_boundary.py392 communicator.ffn.plan.output.plan.path_for(CODE
CRITICAL…/unit/layer_boundary/test_declared_decoder_boundary.py1170 communicator.ffn.plan.output.plan.path_for(CODE
CRITICAL…red/unit/layer_boundary/test_dp_attention_cp_gather.py298 r.communicator.ffn.plan.paths.get(BatchVariant.CONTEXT_PARALLEL),CODE
CRITICAL…/sglang/kernels/ops/attention/dsa/triton_sparse_mla.py145 properties = triton.runtime.driver.active.utils.get_device_properties(device)CODE
CRITICALpython/sglang/kernels/ops/attention/fla/utils.py231 return triton.runtime.driver.active.utils.get_device_properties(tensor_idx)[CODE
CRITICALpython/sglang/kernels/ops/attention/fla/utils.py286 triton.runtime.driver.active.utils.get_device_properties(i)[CODE
CRITICAL…tention_unittest/attention_methods/mamba2_attention.py553 self.mixer.norm.weight.data = self.mixer.norm.weight.data.float()CODE
CRITICALpython/sglang/srt/models/glm4_moe.py494 and self.shared_experts.gate_up_proj.quant_method.quant_config.get_name()CODE
CRITICALpython/sglang/srt/models/deepseek_v2.py866 and self.shared_experts.gate_up_proj.quant_method.quant_config.get_name()CODE
CRITICALpython/sglang/srt/mem_cache/buffer_mode/pipeline.py341 entry = self._cache.cache_controller.mem_pool_host.entry_map.get(transfer.name)CODE
CRITICALpython/sglang/srt/mem_cache/buffer_mode/pipeline.py500 entry = self._cache.cache_controller.mem_pool_host.entry_map.get(transfer.name)CODE
CRITICAL…ng/multimodal_gen/test/unit/test_prompt_enhancement.py317 assert server.args.pipeline_config.task_type.name.lower() == taskCODE
CRITICAL…l_gen/runtime/pipelines_core/composed_pipeline_base.py146 task_name = self.server_args.pipeline_config.task_type.name.lower()CODE
Docstring Block Structure30 hits · 150 pts
SeverityFileLineSnippetContext
HIGHpython/sglang/kernels/ops/attention/fla/chunk.py150 Args: q (torch.Tensor): queries of shape `[B, T, H, K]` if `head_first=False` else `[B, H, T, KSTRING
HIGH…on/sglang/kernels/ops/attention/fla/fused_recurrent.py775 Args: q (torch.Tensor): queries of shape `[B, T, H, K]`. k (torch.Tensor): STRING
HIGHpython/sglang/kernels/ops/quantization/fp8_kernel.py1167 Quantize input tensor to FP8 (8-bit floating point) format. Args: input (torch.Tensor): Input tensor to be quantizSTRING
HIGHpython/sglang/kernels/ops/quantization/fp8_cvt.py27Cast fp32 to fp8 e4m3 through the same ``pack_fp8`` the fp8 stores use. Nothing in the serving path calls this -- iSTRING
HIGHpython/sglang/srt/layers/model_parallel.py32 Locally shards a full tensor based on indicated sharding arrangement, and returns a DTensor containing the locaSTRING
HIGH…thon/sglang/srt/layers/attention/flashinfer_backend.py586Process multi-item scoring tensors for FlashInfer attention. This method handles sequences containing multiple STRING
HIGHpython/sglang/srt/layers/moe/cutlass_moe.py55Performs Fused MoE computation using CUTLASS-like kernels with FP8 weights and activations. This function implementSTRING
HIGHpython/sglang/srt/function_call/utils.py264 Get consolidated $defs from all tools, validating for conflicts. Args: tools: List of tools to processSTRING
HIGHpython/sglang/srt/utils/network.py140Bind a TCP socket on the first available address family (IPv4/IPv6). Iterates over address families returned by _geSTRING
HIGHpython/sglang/srt/utils/network.py358 Automatically detect the local IP address using multiple fallback strategies. This function attempts to obtainSTRING
HIGHpython/sglang/srt/utils/server_args_config_parser.py53 Merge configuration file arguments with command-line arguments. Configuration arguments are inserted aSTRING
HIGHpython/sglang/srt/utils/server_args_config_parser.py102 Parse YAML configuration file and convert to argument list. Args: file_path: Path to the YSTRING
HIGHpython/sglang/srt/utils/nvtx_pytorch_hooks.py46Descends iterators that contains Tensors and prints the Tensor Recursive function that descends iterator type aSTRING
HIGHpython/sglang/srt/utils/nvtx_pytorch_hooks.py74Extract the static parameters from LLM and VLM relevant layer types Args: module_obj(class): ModuleSTRING
HIGHpython/sglang/srt/utils/nvtx_pytorch_hooks.py198Callback function that ends the NVTX marker Records the module name and tensor information Called afterSTRING
HIGHpython/sglang/srt/utils/nvtx_pytorch_hooks.py218Creates an NVTX marker with the module name in it. This function is called before the module executes STRING
HIGHpython/sglang/srt/utils/nvtx_pytorch_hooks.py256User level function that activates all the hooks The user needs to call this method from the network source codSTRING
HIGHpython/sglang/srt/models/minicpmo.py138 In streaming audio generation, determine which `text` positions the TTS model can attend to when generating each chSTRING
HIGHpython/sglang/srt/models/minicpmo.py617Merge `input_ids` and `lm_spk_emb_last_hidden_states` to `inputs_embeds`. Args: input_ids (torch.TeSTRING
HIGHpython/sglang/srt/multimodal/processors/qwen_vl.py204calculate the number of frames for video used for model inputs. Args: ele (dict): a dict contains the confiSTRING
HIGHpython/sglang/srt/multimodal/processors/ernie45_vl.py130calculate the number of frames for video used for model inputs. Args: ele (dict): a dict contains the confiSTRING
HIGHpython/sglang/srt/mem_cache/storage/backend_factory.py73Create a storage backend instance. Args: backend_name: Name of the backend to create stoSTRING
HIGHpython/sglang/srt/speculative/dflash_utils.py367Select target layer indices used to build DFlash context features. Args: num_target_layers: Number of transSTRING
HIGHpython/sglang/srt/speculative/dflash_utils.py897Compute DFlash accept lengths and bonus tokens (greedy verify rule). Args: candidates: Token ids proposed bSTRING
HIGH…/runtime/managers/memory_managers/layerwise_offload.py2488Update consolidated CPU buffers with new weights. When layerwise offload (--dit-layerwise-offload) is enabled, STRING
HIGH…ang/multimodal_gen/runtime/utils/nvtx_pytorch_hooks.py97Walk ``model`` and attach forward pre/post hooks to every module. Args: model: Root module to instrSTRING
HIGH…ng/multimodal_gen/runtime/models/encoders/qwen2_5vl.py653 Calculate the 3D rope index based on image and video's temporal, height and width in LLM. Explanation:STRING
HIGH…imodal_gen/runtime/pipelines_core/stages/validators.py345 Add a validation check for a field. Args: field_name: Name of the field being checked STRING
HIGHsgl-model-gateway/e2e_test/infra/model_pool.py727Get a model instance by model_id, mode, and worker_type. If the model is not running, it will be launched on-deSTRING
HIGHsgl-model-gateway/e2e_test/responses/test_basic_crud.py24Wait for background task to complete. Args: client: OpenAI client response_id: Response ID to poll STRING
Modern AI Meta-Vocabulary47 hits · 144 pts
SeverityFileLineSnippetContext
MEDIUM…t/manual/prefill_only/test_encoder_embedding_models.py12# Encoder embedding model tests (CUDA only)COMMENT
MEDIUM…rnels/ops/attention/test_inkling_checkpoint_indices.py727 # Only model/distributed capture scaffolding is replaced. __init__ andCOMMENT
MEDIUM⚡…t/registered/kernels/ops/kv_canary/test_verify_hand.py65# Shared per-test scaffolding helpers.COMMENT
MEDIUM⚡…t/registered/unit/managers/test_setwise_score_mixin.py230 # A base embedding model likewise does not route through score_and_pool.COMMENT
MEDIUM⚡…tered/unit/layer_boundary/test_moe_output_reduction.py169 # Execute the real orchestration methods without constructing weights.COMMENT
MEDIUMtest/registered/pp/test_pp_gemma4.py57 # Gemma4 is instruction-tuned and doesn't follow few-shot completionCOMMENT
MEDIUM…red/disaggregation/test_disaggregation_different_tp.py450 # Small enough that the shared gsm8k few-shot prefix (~900 tokens) spansCOMMENT
MEDIUM…istered/accuracy/models/test_text_models_gsm8k_eval.py28 # sgl-eval (zero-shot chat, \boxed{}, math_verify grading). Thresholds areCOMMENT
MEDIUM…registered/e2e/models/test_deepseek_v41_flash_gb300.py28 # Use the zero-shot chat evaluator, not the legacy five-shot completion path.COMMENT
MEDIUMpython/sglang/benchmark/datasets/agentic_trace.py13# ~220-token average assistant reply of OpenHands-style agentic traces.COMMENT
MEDIUMpython/sglang/kernels/ops/attention/flash_attention.py31 window_size=(-1, -1), # -1 means infinite context windowCODE
MEDIUM…hon/sglang/kernels/ops/attention/flash_attention_v3.py124 window_size=(-1, -1), # -1 means infinite context windowCODE
MEDIUM…hon/sglang/kernels/aot/python/sgl_kernel/flash_attn.py58 window_size=(-1, -1), # -1 means infinite context windowCODE
MEDIUMpython/sglang/test/simple_eval_mixed_prefix_gsm8k.py64 # The evaluation data should not include the few-shot examples to prevent data leakage.COMMENT
MEDIUMpython/sglang/test/accuracy_test_runner.py35 num_shots: Optional[int] = None # few-shot count; None = run_eval's defaultCODE
MEDIUM…/srt/layers/attention/deepseek_v4_backend_hip_radix.py852 # the ratio-1/2 compressor and indexer orchestration is the CUDA backend's, takenCOMMENT
MEDIUM…ang/srt/layers/attention/deepseek_v4_trtllm_backend.py344 # DSpark attends noncausally to its context window plus the wholeCOMMENT
MEDIUMpython/sglang/srt/managers/multi_tokenizer_mixin.py573 # read SHM only. Drain it event-driven via the socket's fd instead ofCOMMENT
MEDIUMpython/sglang/srt/managers/detokenizer_manager.py223 # If it is embedding model, no detokenization is needed.COMMENT
MEDIUMpython/sglang/srt/models/locate_anything.py365 # <box>: a closed <box>...</box> in a few-shot / multi-turn prompt isCOMMENT
MEDIUMpython/sglang/srt/parser/reasoning_parser.py1406 # detect_and_parse; without it the trailing reasoning trace is dropped.COMMENT
MEDIUMpython/sglang/srt/parser/conversation.py92 # The number of few shot examplesCOMMENT
MEDIUM…l_gen/test/unit/test_kandinsky6_sr_reference_parity.py539# End to end: pure orchestration vs kandinsky_sr.pipeline.stages.run_tiled_sr*COMMENT
MEDIUM…/runtime/models/sensenova_u1/neo_unify/conversation.py54 # The number of few shot examplesCOMMENT
MEDIUM.agents/skills/large-class-style/SKILL.md29### 1.3 Allowed: orchestrationCOMMENT
MEDIUM.agents/skills/large-class-style/SKILL.md41# model_runner.py — orchestration only.COMMENT
MEDIUM…-verify/scripts/mechanical_refactor_proof_generator.py803 # are exactly the relocated symbols (the prep commit inlined them, scaffolding included, asCOMMENT
MEDIUM…-verify/scripts/mechanical_refactor_proof_generator.py1157 # A move source the commit deletes (its defs all relocated, leaving only scaffolding) isCOMMENT
MEDIUMdocs/src/snippets/_deployment.jsx104// agenticLink optional — heading id of the page's agentic long-contextCOMMENT
MEDIUMdocs/src/snippets/autoregressive/qwen35-deployment.jsx18 // 397B-A17B: H100 tp=8, H200 tp=8 ep=8, B200 tp=4, B300 tp=4, GB200 tp=4, GB300 tp=4, MI300X tp=4, MI325X tp=2, MI3COMMENT
MEDIUMdocs/src/snippets/autoregressive/qwen35-deployment.jsx122 // separately for the 397B FP8 long-context agentic recipe.COMMENT
MEDIUMdocs/src/snippets/autoregressive/qwen35-deployment.jsx370 // 397B MI355X FP8 with HiCache: the long-context agentic recipe runs tp=4.COMMENT
MEDIUMdocs/src/snippets/autoregressive/qwen35-deployment.jsx372 // to feed a host-DRAM tier at agentic context lengths.COMMENT
MEDIUMdocs/src/snippets/autoregressive/qwen35-deployment.jsx574 // MI355X FP8 long-context agentic recipe: a host-DRAM KV tier plus an FP8 KVCOMMENT
MEDIUMdocs/src/snippets/autoregressive/qwen35-deployment.jsx575 // cache, which together keep enough prefix resident to reach agenticCOMMENT
MEDIUMdocs/src/snippets/configs/poolside/laguna-m1.jsx157 // agentic coding, repeated long contexts. "Enable" emits --enable-hierarchical-cache (+host L2);COMMENT
MEDIUMdocs/src/snippets/configs/deepseek-ai/deepseek-v4.jsx553 // The AMD role flags are the MI355X 1P x 1D agentic recipe. Both rolesCOMMENT
MEDIUMdocs/src/snippets/configs/deepseek-ai/deepseek-v4.jsx771 // High-throughput on Pro Official is the DP-attention arm of the agenticCOMMENT
MEDIUMdocs/src/snippets/configs/deepseek-ai/deepseek-v4.jsx876 // MI355X fronts the 1P x 1D agentic pair with a cache-aware router ratherCOMMENT
MEDIUMdocs/src/snippets/configs/deepseek-ai/deepseek-v4.jsx883 // agentic run should notice a wedged worker, but it is slack enough thatCOMMENT
MEDIUMdocs/src/snippets/configs/deepseek-ai/deepseek-v4.jsx2368 // The DP + DSpark agentic path is documented in cookbook §3.7.COMMENT
MEDIUMdocs/src/snippets/configs/Qwen/qwen3.8-flash-next.jsx815 warn: "Long-context recipe: reserve 224 GiB of host RAM for HiCache, approximately 48 GiB for pinned PLE offload, CODE
MEDIUM…les/frontend_language/usage/openai_chat_speculative.py150 # expect answer with same format as in the few shotCOMMENT
MEDIUM⚡examples/runtime/chain_of_verification.py98 # `content` and the chain-of-thought in `reasoning_content`. In someCOMMENT
MEDIUM⚡scripts/ci_monitor/ci_auto_bisect.py1060# Main orchestrationCOMMENT
MEDIUMscripts/ci/utils/ci_coverage_report.py360 # adding scaffolding for an unused backend would widen every row with aCOMMENT
MEDIUM…-model-gateway/e2e_test/embeddings/test_correctness.py151 # Get model path from MODEL_SPECS for the embedding modelCOMMENT
Dead Code61 hits · 106 pts
SeverityFileLineSnippetContext
MEDIUMexperimental/sgl-router/tests/e2e/test_gpu_allotment.py138CODE
MEDIUM…ed/unit/managers/test_tokenizer_manager_rid_cleanup.py940CODE
MEDIUM…ed/unit/managers/test_tokenizer_manager_rid_cleanup.py861CODE
MEDIUM…ed/unit/managers/test_tokenizer_manager_rid_cleanup.py889CODE
MEDIUM…/registered/unit/entrypoints/anthropic/test_serving.py1274CODE
MEDIUM…egistered/unit/entrypoints/openai/test_serving_chat.py3287CODE
MEDIUMpython/sglang/srt/entrypoints/http_server.py2165CODE
MEDIUMpython/sglang/srt/entrypoints/openai/serving_base.py145CODE
MEDIUMpython/sglang/srt/entrypoints/openai/serving_base.py148CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py370CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py374CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py375CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py377CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py378CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py380CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py381CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py386CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py387CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py388CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py403CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py405CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py415CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py417CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py418CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py430CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py434CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py478CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py482CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py488CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py489CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py491CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py495CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py496CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py510CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py511CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py512CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py513CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py514CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py515CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py516CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py522CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py523CODE
MEDIUM…ime/models/sensenova_u1/neo_unify/modeling_neo_chat.py526CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py960CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py961CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py962CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py965CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py966CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py968CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py970CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py973CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py974CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py976CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py986CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py1001CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py1009CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py1010CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py1011CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py1039CODE
MEDIUM…ang/multimodal_gen/runtime/models/dits/hunyuanvideo.py1040CODE
1 more matches not shown…
Slop Phrases18 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUM…manual/openai_server/function_call/test_tool_choice.py844# # Start the local OpenAI Server. If necessary, you can add other parameters such as --enable-tools.COMMENT
MEDIUM…i_server/function_call/test_openai_function_calling.py69 # Start the local OpenAI Server. If necessary, you can add other parameters such as --enable-tools.COMMENT
MEDIUM…i_server/function_call/test_openai_function_calling.py1002# # Start the local OpenAI Server. If necessary, you can add other parameters such as --enable-tools.COMMENT
MEDIUM…hon/sglang/kernels/ops/attention/flash_attention_v3.py92 # That means if you use A100/A*0/L20/L40/L40s/4090 you can use fa3.COMMENT
MEDIUM…hon/sglang/kernels/aot/python/sgl_kernel/flash_attn.py24 # That means if you use A100/A*0/L20/L40/L40s/4090 you can use fa3.COMMENT
MEDIUMpython/sglang/kernels/aot/tests/test_flash_attention.py28 # That means if you use A100/A*0/L20/L40/L40s/4090 you can use fa3.COMMENT
LOWpython/sglang/test/runners.py504 # make sure to disable compileCOMMENT
LOWpython/sglang/srt/models/hunyuan.py772 # make sure to leave KV cache scale factors in a known good (dummy) stateCOMMENT
LOWpython/sglang/srt/models/apertus.py389 # make sure to leave KV cache scale factors in a known good (dummy) stateCOMMENT
LOWpython/sglang/srt/models/mimo_v2.py1097 # make sure to leave KV cache scale factors in a known good (dummy) stateCOMMENT
MEDIUMpython/sglang/srt/models/inkling.py1053 # (BCG) setup treats Inkling as a language model: model_runner'sCOMMENT
LOWpython/sglang/srt/models/llama.py502 # make sure to leave KV cache scale factors in a known good (dummy) stateCOMMENT
LOWpython/sglang/srt/models/glm4.py417 # make sure to leave KV cache scale factors in a known good (dummy) stateCOMMENT
LOWpython/sglang/srt/models/qwen2.py472 # make sure to leave KV cache scale factors in a known good (dummy) stateCOMMENT
LOW…glang/multimodal_gen/runtime/models/vaes/hunyuanvae.py295 # If you are encountering an error here, make sure to try running encoding/decoding withCOMMENT
MEDIUM…ntend_language/quick_start/local_example_llava_next.py55 # Or you can use the 72B modelCOMMENT
MEDIUM…ntend_language/quick_start/local_example_llava_next.py62 # Or you can use API modelsCOMMENT
MEDIUM…-gateway/examples/wasm/wasm-guest-ratelimit/src/lib.rs37// This is a simplified example for demonstration purposesCOMMENT
Fake / Example Data21 hits · 24 pts
SeverityFileLineSnippetContext
LOW…l/sgl-router/tests/scripts/generate_parity_fixtures.py41 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "CODE
LOW…l/sgl-router/tests/scripts/generate_parity_fixtures.py41 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "CODE
LOW⚡test/registered/unit/models/test_kimi_k25.py201 with pytest.raises(ValueError, match="placeholder"):CODE
LOW⚡…st/registered/unit/multimodal/rust/qwen/test_driver.py80 self.assert_rejected(ids, images, "placeholder")CODE
LOW⚡…registered/unit/model_loader/test_presharded_loader.py748 fake_key = ("_test_meta_rope_cleanup_sentinel",)CODE
LOW⚡…registered/unit/model_loader/test_presharded_loader.py751 _ROPE_DICT[fake_key] = fake_moduleCODE
LOW…registered/unit/model_loader/test_presharded_loader.py777 self.assertNotIn(fake_key, _ROPE_DICT)CODE
LOWpython/sglang/test/kits/ebnf_constrained_kit.py61 self.__class__.ebnf_grammar = 'root ::= "user@example.com"'CODE
LOW⚡python/sglang/srt/batch_overlap/two_batch_overlap.py880 # (MAX_LEN) count and would undo the idle-rank dummy-token mask.COMMENT
LOWpython/sglang/srt/compilation/backend.py238 if node.op in ("output", "placeholder"):CODE
LOWrust/sglang-mm/src/driver.rs254 assert!(err.contains("placeholder"));CODE
LOW…-model-gateway/tests/security/auth_integration_test.rs174 let claims = create_claims("admin@example.com", vec!["admin"]);CODE
LOW…-model-gateway/tests/security/auth_integration_test.rs187 assert_eq!(validated.subject, "admin@example.com");CODE
LOW…-model-gateway/tests/security/auth_integration_test.rs213 let claims = create_claims("user@example.com", vec!["user", "viewer"]);CODE
LOW…-model-gateway/tests/security/auth_integration_test.rs221 assert_eq!(validated.subject, "user@example.com");CODE
LOW…-model-gateway/tests/security/auth_integration_test.rs252 sub: "user@example.com".to_string(),CODE
LOW…-model-gateway/tests/security/auth_integration_test.rs301 sub: "user@example.com".to_string(),CODE
LOW…-model-gateway/tests/security/auth_integration_test.rs338 let claims = create_claims("user@example.com", vec!["admin"]);CODE
LOW…-model-gateway/tests/security/auth_integration_test.rs590 let claims = create_claims("user@example.com", vec!["admin"]);CODE
LOW…-model-gateway/tests/security/auth_integration_test.rs713 let claims = create_claims("user@example.com", vec!["admin"]);CODE
LOWsgl-model-gateway/e2e_test/benchmarks/conftest.py38 "dummy-token",CODE
Overly Generic Function Names17 hits · 20 pts
SeverityFileLineSnippetContext
LOWbenchmark/hicache/bench_mix.py417 async def handle_request(self, user_data):CODE
LOWbenchmark/hicache/bench_multiturn.py390 async def handle_request(self, item):CODE
LOWpython/sglang/srt/debug_utils/dumper.py1376 def handle_request(self, *, method: str, body: dict[str, Any]) -> list[dict]:CODE
LOWpython/sglang/srt/entrypoints/openai/serving_base.py72 async def handle_request(CODE
LOW…/scripts/tests/proof_generator/test_script_and_diff.py137 "def keep():\n return 0\n\n\ndef helper(x):\n return x + 1\n"CODE
LOW…/scripts/tests/proof_generator/test_script_and_diff.py160 "def helper(x):\n"CODE
LOW…rify/scripts/tests/proof_generator/test_infer_moves.py49 "def keep():\n return 0\n\n\ndef helper(x):\n return x + 1\n"CODE
LOW…rify/scripts/tests/proof_generator/test_infer_moves.py72 "def helper(x):\n"CODE
LOW…ipts/tests/reproduction_utils/test_extract_function.py180 signature=" def helper(self):",CODE
LOW…ipts/tests/reproduction_utils/test_extract_function.py190 assert " def helper(self):\n val = compute_thing()\n" in outCODE
LOW⚡…y/scripts/tests/reproduction_utils/test_move_symbol.py84 "class Old:\n @staticmethod\n def helper(x):\n return x * 2\n"CODE
LOW⚡…y/scripts/tests/reproduction_utils/test_move_symbol.py91 assert "def helper(x):\n return x * 2\n" in (tmp_path / "dst.py").read_text()CODE
LOW⚡…y/scripts/tests/reproduction_utils/test_move_symbol.py286 " def helper(y):\n"CODE
LOW⚡…y/scripts/tests/reproduction_utils/test_move_symbol.py296 assert " @staticmethod\n def helper(y):\n" in dst_outCODE
LOW⚡…y/scripts/tests/reproduction_utils/test_move_symbol.py415 (tmp_path / "src.py").write_text("def helper(x):\n return x\n")CODE
LOW⚡…y/scripts/tests/reproduction_utils/test_move_symbol.py421 assert " def helper(x):\n return x\n" in (tmp_path / "dst.py").read_text()CODE
LOW…y/scripts/tests/reproduction_utils/test_move_symbol.py341 (tmp_path / "src.py").write_text("def helper(x):\n return x + 1\n")CODE
Example Usage Blocks7 hits · 9 pts
SeverityFileLineSnippetContext
LOW…rimental/sgl-router/tests/e2e/k8s_integration/setup.sh6# Usage:COMMENT
LOWscripts/build_sgl_deepep.sh4# Usage:COMMENT
LOWscripts/killall_sglang.sh8# Usage:COMMENT
LOWscripts/playground/launch_pr_babysitters.sh4# Usage:COMMENT
LOWscripts/ci/musa/rename_wheels_musa.sh10# Usage:COMMENT
LOWsgl-model-gateway/e2e_test/k8s_integration/setup.sh8# Usage:COMMENT
LOW…ngs/golang/examples/oai_server/scripts/analyze_tpot.sh6# Usage:COMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHtest/manual/attention/test_trtllm_mla_backend.py1235 # Reshape as requestedCOMMENT
TODO Padding4 hits · 6 pts
SeverityFileLineSnippetContext
LOWtest/manual/test_expert_distribution.py20 # TODO: Add tests for DeepEP gatherer (currently our CI cannot run that)COMMENT
LOWpython/sglang/kernels/aot/csrc/cpu/common.h369 // TODO: implement reverse order of [MB / cache_blocks_mb, NB, cache_blocks_mb]COMMENT
LOWpython/sglang/kernels/aot/python/sgl_kernel/top_k.py12 # TODO: implement faster cuda kernels for large vocab sizesCOMMENT
LOWpython/sglang/srt/layers/moe/fused_moe_triton/layer.py1631 # TODO: consider using symmetric memoryCOMMENT