TokenSpeed is a speed-of-light LLM inference engine.
This report presents the forensic synthetic code analysis of lightseekorg/tokenspeed, a Python project with 1,836 GitHub stars. SynthScan v2.0 examined 488,894 lines of code across 1349 source files, recording 7460 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 19.8 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 7460 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test_bench_timeout.py | 39 | def test_aiohttp_timeout_has_sock_subtimeouts(): | CODE |
| LOW | test/test_bench_timeout.py | 61 | def test_per_request_timeout_constant_is_positive(): | CODE |
| LOW | test/test_bench_timeout.py | 66 | async def test_await_with_per_request_timeout_returns_failed_output_on_hang( | CODE |
| LOW | test/test_bench_timeout.py | 87 | async def test_await_with_per_request_timeout_passes_through_success(monkeypatch): | CODE |
| LOW | test/test_bench_timeout.py | 105 | async def test_concurrent_stuck_request_does_not_block_gather(monkeypatch): | CODE |
| LOW | test/test_utils.py | 377 | def write_github_step_summary(content): | CODE |
| LOW | test/runners.py | 560 | def batch_forward_generation_raw( | CODE |
| LOW | test/runners.py | 594 | def check_close_model_outputs( | CODE |
| LOW⚡ | test/runtime/test_dspark_proposal.py | 42 | def test_bias_matches_the_heads_own_step_bias() -> None: | CODE |
| LOW⚡ | test/runtime/test_dspark_proposal.py | 52 | def test_bias_slices_match_the_full_bias() -> None: | CODE |
| LOW⚡ | test/runtime/test_dspark_proposal.py | 118 | def _install_recording_argmax(drafter: DSpark, lm_head_weight: torch.Tensor) -> list: | CODE |
| LOW⚡ | test/runtime/test_dspark_proposal.py | 231 | def update_mamba_state_after_mtp_verify(self, accept_lengths, model): | CODE |
| LOW⚡ | test/runtime/test_dspark_proposal.py | 239 | def test_kda_commit_fires_for_a_dspark_drafter() -> None: | CODE |
| LOW⚡ | test/runtime/test_dspark_proposal.py | 253 | def test_kda_commit_is_skipped_without_a_drafter() -> None: | CODE |
| LOW⚡ | test/runtime/test_dspark_proposal.py | 261 | def test_kda_commit_is_skipped_on_a_stateless_backend() -> None: | CODE |
| LOW⚡ | test/runtime/test_dspark_proposal.py | 269 | def test_kda_commit_is_skipped_outside_decode() -> None: | CODE |
| LOW | test/runtime/test_dspark_proposal.py | 65 | def test_out_of_range_previous_tokens_do_not_index_past_the_embedding() -> None: | CODE |
| LOW | test/runtime/test_dspark_proposal.py | 81 | def test_clamping_maps_to_the_boundary_rows() -> None: | CODE |
| LOW | test/runtime/test_dspark_proposal.py | 88 | def test_bias_is_zero_beyond_the_markov_vocabulary() -> None: | CODE |
| LOW | test/runtime/test_dspark_proposal.py | 102 | def test_bias_straddling_the_vocab_edge_is_partly_real_partly_zero() -> None: | CODE |
| LOW | test/runtime/test_dspark_proposal.py | 137 | def test_anchor_is_copied_and_drafts_fill_the_rest_of_the_block() -> None: | CODE |
| LOW | test/runtime/test_dspark_proposal.py | 157 | def test_each_step_reads_the_hidden_one_position_back() -> None: | CODE |
| LOW | test/runtime/test_dspark_proposal.py | 184 | def test_the_chain_conditions_on_the_previous_proposal() -> None: | CODE |
| LOW | test/runtime/test_dspark_proposal.py | 212 | def test_proposals_are_valid_token_ids() -> None: | CODE |
| LOW | test/runtime/test_kimi_k3_eagle3.py | 24 | def _post_layer_attnres_reference( | CODE |
| LOW | test/runtime/test_kimi_k3_eagle3.py | 31 | def test_capture_tensor_matches_post_layer_attnres_reference(): | CODE |
| LOW⚡ | test/runtime/test_weight_loader_prefetch.py | 49 | def test_prefetch_enabled_by_default(self): | CODE |
| LOW⚡ | test/runtime/test_weight_loader_prefetch.py | 56 | def test_disable_flag_turns_prefetch_off(self): | CODE |
| LOW⚡ | test/runtime/test_weight_loader_prefetch.py | 62 | def test_load_config_defaults_enable_prefetch(self): | CODE |
| LOW | test/runtime/test_weight_loader_prefetch.py | 77 | def test_window_clamps_to_available_memory(self): | CODE |
| LOW | test/runtime/test_weight_loader_prefetch.py | 89 | def test_window_bounds_read_ahead_and_advances_on_consumption(self): | CODE |
| LOW | test/runtime/test_weight_loader_prefetch.py | 125 | def test_oversized_shard_still_prefetched_alone(self): | CODE |
| LOW | test/runtime/test_weight_loader_prefetch.py | 146 | def test_read_failure_unblocks_consumer(self): | CODE |
| LOW | test/runtime/test_block_tables_bridge.py | 52 | def test_two_groups_shape_and_null_hole_preserved(self): | CODE |
| LOW⚡ | test/runtime/test_block_tables_bridge.py | 71 | def test_array_export_is_consumed(self): | CODE |
| LOW⚡ | test/runtime/test_block_tables_bridge.py | 76 | def test_row_count_mismatch_raises(self): | CODE |
| LOW⚡ | test/runtime/test_block_tables_bridge.py | 81 | def test_empty_rows_group_on_live_batch_raises(self): | CODE |
| LOW⚡ | test/runtime/test_block_tables_bridge.py | 88 | def test_empty_rows_group_on_zero_req_op_dropped(self): | CODE |
| LOW⚡ | test/runtime/test_block_tables_bridge.py | 94 | def test_strict_contract_rejects_missing_extra_and_duplicate_normalized_ids(self): | CODE |
| LOW | test/runtime/test_block_tables_bridge.py | 124 | def test_strict_contract_rejects_malformed_and_out_of_range_tables(self): | CODE |
| LOW | test/runtime/test_block_tables_bridge.py | 156 | def test_default_backend_does_not_use_cache_groups(self): | CODE |
| LOW | test/runtime/test_inkling_reference_parity.py | 204 | def test_logprobs_match_reference(self): | CODE |
| LOW | test/runtime/test_host_executor.py | 62 | def test_bytes_per_host_page_matches_mirror(self): | CODE |
| LOW | test/runtime/test_host_executor.py | 69 | def test_num_host_pages_formula(self): | CODE |
| LOW | test/runtime/test_host_executor.py | 136 | def test_payload_shape_and_roundtrip(self): | CODE |
| LOW | test/runtime/test_host_executor.py | 154 | def test_pop_common_requires_all_ranks(self): | CODE |
| LOW | test/runtime/test_host_executor.py | 260 | def test_roundtrip_with_acks_and_fencing(self): | CODE |
| LOW | test/runtime/test_host_executor.py | 392 | def test_state_layer_event_mapping(self): | CODE |
| LOW | test/runtime/test_host_executor.py | 433 | def test_state_pool_roundtrip_with_fencing(self): | CODE |
| LOW | test/runtime/test_host_executor.py | 473 | def test_empty_op_acks_immediately(self): | CODE |
| LOW | test/runtime/test_inkling_mtp_conv_state.py | 24 | def test_wrapper_consumes_history_and_checkpoint_state(self): | CODE |
| LOW | test/runtime/test_inkling_mtp_conv_state.py | 76 | def test_checkpoint_stream_registration(self): | CODE |
| LOW | test/runtime/test_inkling_mtp_conv_state.py | 105 | def test_ring_holds_window_for_every_accept(self): | CODE |
| LOW | test/runtime/test_inkling_mtp_conv_state.py | 146 | def test_verify_padded_batch_writes_nothing_for_pad_rows(self): | CODE |
| LOW | test/runtime/test_inkling_mtp_conv_state.py | 182 | def test_channel_slice_ring_write(self): | CODE |
| LOW | test/runtime/test_inkling_mtp_conv_state.py | 225 | def test_restore_into_ring_rows(self): | CODE |
| LOW | test/runtime/test_inkling_mtp_conv_state.py | 357 | def test_publish_verify_boundaries(self): | CODE |
| LOW | test/runtime/test_inkling_mtp_conv_state.py | 407 | def test_publish_prefill_interior_boundaries(self): | CODE |
| LOW | test/runtime/test_inkling_mtp_conv_state.py | 481 | def test_publish_overwrites_rejected_round(self): | CODE |
| LOW | test/runtime/test_inkling_mtp_conv_state.py | 606 | def test_checkpoint_metadata_keeps_only_chunk_endpoint(self): | CODE |
| 3395 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | test/runtime/test_dspark_proposal.py | 37 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_proposal.py | 39 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_proposal.py | 113 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_proposal.py | 115 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_proposal.py | 225 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_proposal.py | 227 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_detokenizer_parity.py | 72 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_detokenizer_parity.py | 74 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_detokenizer_parity.py | 1133 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_detokenizer_parity.py | 1135 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_detokenizer_parity.py | 1314 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_detokenizer_parity.py | 1316 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/runtime/test_detokenizer_parity.py | 298 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/runtime/test_detokenizer_parity.py | 300 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/runtime/test_detokenizer_parity.py | 946 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/runtime/test_detokenizer_parity.py | 948 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/runtime/test_detokenizer_parity.py | 1013 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/runtime/test_detokenizer_parity.py | 1015 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/runtime/test_detokenizer_parity.py | 1095 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/runtime/test_detokenizer_parity.py | 1097 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_kimi_k3_dspark_model.py | 107 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_kimi_k3_dspark_model.py | 109 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_kimi_k3_dspark_model.py | 146 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_kimi_k3_dspark_model.py | 148 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_kimi_k3_dspark_model.py | 203 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_kimi_k3_dspark_model.py | 205 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_kimi_k3_dspark_model.py | 241 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_kimi_k3_dspark_model.py | 243 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_config.py | 35 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_config.py | 37 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_config.py | 121 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_config.py | 123 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_config.py | 144 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_config.py | 146 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_config.py | 207 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_config.py | 209 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_config.py | 254 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_dspark_config.py | 256 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/runtime/test_kimi_k3_dspark_capture.py | 19 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/runtime/test_kimi_k3_dspark_capture.py | 21 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_kimi_k3_dspark_capture.py | 72 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_kimi_k3_dspark_capture.py | 74 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/runtime/test_sleep_wakeup_gpu.py | 98 | # ==================================================================== | COMMENT |
| MEDIUM | test/runtime/test_sleep_wakeup_gpu.py | 101 | # ==================================================================== | COMMENT |
| MEDIUM | test/runtime/test_sleep_wakeup_gpu.py | 183 | # ==================================================================== | COMMENT |
| MEDIUM | test/runtime/test_sleep_wakeup_gpu.py | 186 | # ==================================================================== | COMMENT |
| MEDIUM | test/runtime/test_sleep_wakeup_gpu.py | 214 | # ==================================================================== | COMMENT |
| MEDIUM | test/runtime/test_sleep_wakeup_gpu.py | 221 | # ==================================================================== | COMMENT |
| MEDIUM⚡ | test/runtime/test_inline_detokenizer_receiver.py | 278 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_inline_detokenizer_receiver.py | 280 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_inline_detokenizer_receiver.py | 364 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_inline_detokenizer_receiver.py | 366 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_inline_detokenizer_receiver.py | 428 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_inline_detokenizer_receiver.py | 430 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_inline_detokenizer_receiver.py | 510 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_inline_detokenizer_receiver.py | 512 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_inline_detokenizer_receiver.py | 777 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/runtime/test_inline_detokenizer_receiver.py | 779 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/runtime/test_inline_detokenizer_receiver.py | 80 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/runtime/test_inline_detokenizer_receiver.py | 82 | # --------------------------------------------------------------------------- | COMMENT |
| 702 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test_bench_timeout.py | 29 | CODE | |
| LOW | test/runtime/test_dspark_proposal.py | 11 | CODE | |
| LOW | test/runtime/test_kimi_k3_eagle3.py | 3 | CODE | |
| LOW | test/runtime/test_block_tables_bridge.py | 1 | CODE | |
| LOW | test/runtime/test_inkling_reference_parity.py | 23 | CODE | |
| LOW | test/runtime/test_host_executor.py | 10 | CODE | |
| LOW | test/runtime/test_kimi_mxfp4_dense_linear.py | 3 | CODE | |
| LOW | test/runtime/test_multimodal_warmup.py | 21 | CODE | |
| LOW | test/runtime/test_retract_readmit.py | 32 | CODE | |
| LOW | test/runtime/test_trtllm_spec_seqlen_clamp.py | 26 | CODE | |
| LOW | test/runtime/conftest.py | 3 | CODE | |
| LOW | test/runtime/test_cache_memory_plan.py | 1 | CODE | |
| LOW | test/runtime/test_fp8_linear_blockscale_flashinfer.py | 3 | CODE | |
| LOW | test/runtime/cache_pool_test_utils.py | 1 | CODE | |
| LOW | test/runtime/test_generation_output_processor.py | 21 | CODE | |
| LOW | test/runtime/test_scheduler_config_guard.py | 3 | CODE | |
| LOW | test/runtime/test_kimi_k3_cache_pool.py | 1 | CODE | |
| LOW | test/runtime/test_unified_kv_slab_pool.py | 3 | CODE | |
| LOW | test/runtime/test_unified_kv_slab_pool.py | 466 | CODE | |
| LOW | test/runtime/test_trtllm_mla_block_decode.py | 1 | CODE | |
| LOW | test/runtime/test_trtllm_mla_block_decode.py | 6 | CODE | |
| LOW | test/runtime/test_group_aware_mha.py | 1 | CODE | |
| LOW | test/runtime/test_page_table_conversion.py | 1 | CODE | |
| LOW | test/runtime/test_kimi_k3_dspark_model.py | 10 | CODE | |
| LOW | test/runtime/test_dspark_config.py | 8 | CODE | |
| LOW | test/runtime/test_max_new_tokens_context_cap.py | 26 | CODE | |
| LOW | test/runtime/test_kimi_k3_dspark_capture.py | 3 | CODE | |
| LOW | test/runtime/test_draft_page_table_scrub.py | 1 | CODE | |
| LOW | test/runtime/test_host_mirror.py | 8 | CODE | |
| LOW | test/runtime/test_sliding_cache_loc.py | 10 | CODE | |
| LOW | test/runtime/test_gdn_state_paging.py | 10 | CODE | |
| LOW | test/runtime/test_grammar_cache_timeout.py | 44 | CODE | |
| LOW | test/runtime/test_multi_window_page_counts.py | 25 | CODE | |
| LOW | test/runtime/test_multi_window_page_counts.py | 52 | CODE | |
| LOW | test/runtime/test_v4_sliding_window_groups_smoke.py | 14 | CODE | |
| LOW | test/runtime/test_group_specs_from_layer_types.py | 1 | CODE | |
| LOW | test/runtime/test_inline_detokenizer_receiver.py | 46 | CODE | |
| LOW | test/runtime/test_kimi_k3_mla.py | 17 | CODE | |
| LOW | test/runtime/test_slab_capacity_prefix_hits.py | 223 | CODE | |
| LOW | test/runtime/test_page_zeroing_contract.py | 9 | CODE | |
| LOW | test/runtime/test_reasoning_structural_tag.py | 21 | CODE | |
| LOW | test/runtime/test_cache_pool.py | 1 | CODE | |
| LOW | test/runtime/test_flashmla_cache_groups.py | 29 | CODE | |
| LOW | test/runtime/test_draft_advance_seqlens.py | 11 | CODE | |
| LOW | test/runtime/test_kimi_k3_cache_spec.py | 1 | CODE | |
| LOW | test/runtime/test_trtllm_cache_groups.py | 1 | CODE | |
| LOW | test/runtime/test_dp_sampling_routing_metadata.py | 1 | CODE | |
| LOW | test/runtime/test_prefill_graph.py | 11 | CODE | |
| LOW | test/runtime/kda_paged_prefill_nan_demo.py | 17 | CODE | |
| LOW | test/runtime/test_hybrid_mla_kv_nan_sanitize.py | 34 | CODE | |
| LOW | test/runtime/test_mla_block_decode.py | 12 | CODE | |
| LOW | test/runtime/test_mla_block_decode.py | 28 | CODE | |
| LOW | test/runtime/test_kimi_k3_integration.py | 1 | CODE | |
| LOW | test/runtime/test_zmq_msgpack.py | 29 | CODE | |
| LOW | test/runtime/test_weight_version.py | 23 | CODE | |
| LOW | test/runtime/test_hybrid_cudagraph_kwargs.py | 10 | CODE | |
| LOW | test/runtime/test_mxfp8_kv_pool.py | 25 | CODE | |
| LOW | test/runtime/test_mha_pool_spec_decode_groups.py | 3 | CODE | |
| LOW | test/runtime/test_fp8_linear_mxfp8_flashinfer.py | 3 | CODE | |
| LOW | test/runtime/test_modelopt_mixed_config.py | 3 | CODE | |
| 1077 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test_bench_timeout.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runners.py | 1 | # SPDX-License-Identifier: MIT AND Apache-2.0 | COMMENT |
| LOW | …/kimi-k3-dspark-mxfp4-tp8ep8-evalscope-aime26-amd.yaml | 81 | # problems at temperature 1.0) and cuts TPOT by 2.27x, consistent with the | COMMENT |
| LOW | …-dspark-mxfp4-tp8ep8-evalscope-random-4k-1k-mi35x.yaml | 101 | # | COMMENT |
| LOW | test/runtime/test_multimodal_warmup.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_retract_readmit.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_logging.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_generation_output_processor.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_model_executor_cache_state.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_launcher_topology.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_grammar_cache_timeout.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_multi_window_page_counts.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_sleep_wakeup_gpu.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_v4_sliding_window_groups_smoke.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_inline_detokenizer_receiver.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_reasoning_structural_tag.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_inline_detokenizer_e2e.py | 81 | # Two short ASCII prompts keep the generate budget small and keep | COMMENT |
| LOW | test/runtime/test_flashmla_cache_groups.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_hybrid_mla_kv_nan_sanitize.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_zmq_msgpack.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_weight_version.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_mxfp8_kv_pool.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_sleep_wakeup_v4_gpu.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_io_struct_codec.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_physical_context_len.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_deepseek_v4_attention_ops.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_deepseek_v4_mega_moe.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_pause_controller.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/test_deepseek_v4_mtp_prefix_cache.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/layers/test_situ_activation.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/layers/test_mla_decode_dcp.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/layers/test_gdn_qkv_split_fused.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/layers/test_gdn_flashinfer_fastpath.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/cache/test_embedding_cache.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/cache/test_mla_kv_buffer.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/distributed/test_qwen35_epd_1e1p2d.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/distributed/test_epd_transfer.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/distributed/test_pd_decode_dp_metadata.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | …untime/distributed/test_draft_moe_capture_global_bs.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/distributed/test_epd_encode.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/sampling/test_flashinfer_verify_dp.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/sampling/test_dp_sampling_logits_verify.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/runtime/sampling/test_nan_guard.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/ci_system/serve_qwen35_122b_nvfp4_epd_1e1p2d.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | test/ci_system/install_deps.sh | 181 | --extra-index-url https://download.pytorch.org/whl/cu${CUINDEX} | COMMENT |
| LOW | test/cli/test_logprefix.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/cli/test_smg_parser_availability.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/cli/test_proc.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/cli/test_cli_dispatch.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/cli/test_trace_merge.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/cli/test_serve_smg_unit.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/cli/test_argsplit.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/cli/test_serve_smg_integration.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/cli/test_logo.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/cli/test_serve_headless.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | test/cli/_fixtures/fake_engine.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | python/pyproject.toml | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | python/tokenspeed/_logging.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | python/tokenspeed/version.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| LOW | python/tokenspeed/env.py | 1 | # Copyright (c) 2026 LightSeek Foundation | COMMENT |
| 896 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/ci_system/ci_utils.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/ci_system/ci_register.py | 23 | __all__ = [ | CODE |
| LOW | python/tokenspeed/bench.py | 267 | def set_ulimit(target_soft_limit: int = 65535) -> None: | CODE |
| LOW | python/tokenspeed/bench.py | 106 | logger = logging.getLogger(__name__) | STRING |
| LOW | python/tokenspeed/runtime/pd/kv_events.py | 43 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/pd/mooncake/prefill.py | 1361 | __all__ = ["MooncakeKVManagerPrefill", "MooncakeKVSender"] | CODE |
| LOW | python/tokenspeed/runtime/pd/base/mooncake_engine.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/epd/encode_executor.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/epd/prefill_admission.py | 57 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/layers/rotary_embedding.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/layers/parameter.py | 35 | __all__ = [ | CODE |
| LOW | …speed/runtime/layers/attention/mm_encoder_attention.py | 55 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/layers/attention/registry.py | 56 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/layers/attention/registry.py | 268 | def _set_cache_group_page_sizes(config: BaseAttnConfig, spec: CachePoolSpec) -> None: | CODE |
| LOW | …on/tokenspeed/runtime/layers/attention/backends/msa.py | 66 | logger = logging.getLogger(__name__) | CODE |
| LOW | …on/tokenspeed/runtime/layers/attention/backends/msa.py | 825 | def set_cache_pool(self, cache_pool) -> None: | CODE |
| LOW | …untime/layers/attention/backends/hybrid_linear_attn.py | 69 | logger = logging.getLogger(__name__) | CODE |
| LOW | …untime/layers/attention/backends/hybrid_linear_attn.py | 356 | def set_kv_pool(self, kv_pool) -> None: | CODE |
| LOW | …untime/layers/attention/backends/hybrid_linear_attn.py | 1823 | def set_cache_pool(self, cache_pool) -> None: | CODE |
| LOW | …kenspeed/runtime/layers/attention/backends/__init__.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ed/runtime/layers/attention/backends/tokenspeed_mla.py | 66 | logger = logging.getLogger(__name__) | CODE |
| LOW | …nspeed/runtime/layers/attention/backends/trtllm_mla.py | 60 | logger = logging.getLogger(__name__) | CODE |
| LOW | …n/tokenspeed/runtime/layers/attention/backends/base.py | 96 | def set_cache_pool(self, cache_pool: CachePool) -> None: | CODE |
| LOW | …untime/layers/attention/kv_cache/hybrid_deepseek_v4.py | 664 | def set_kv_buffer(self, *args, **kwargs) -> None: | CODE |
| LOW | …peed/runtime/layers/attention/kv_cache/recipes/spec.py | 644 | __all__ = [ | CODE |
| LOW | …s/attention/kv_cache/recipes/deepseek_v4_cache_spec.py | 503 | __all__ = [ | CODE |
| LOW | python/tokenspeed/runtime/layers/dense/fp8.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/layers/dense/__init__.py | 26 | __all__ = [ | CODE |
| LOW | python/tokenspeed/runtime/layers/dense/nvfp4.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/layers/dense/mxfp4.py | 150 | __all__ = [ | CODE |
| LOW | …kenspeed/runtime/layers/quantization/modelopt_mixed.py | 45 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/layers/quantization/fp8.py | 34 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/layers/quantization/nvfp4.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/layers/quantization/utils.py | 319 | def update_tensor_inplace(old: torch.Tensor, new: torch.Tensor) -> None: | CODE |
| LOW | …/quantization/compressed_tensors/compressed_tensors.py | 62 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/quantization/compressed_tensors/compressed_tensors.py | 64 | __all__ = ["CompressedTensorsLinearMethod"] | CODE |
| LOW | …rs/quantization/compressed_tensors/schemes/__init__.py | 29 | __all__ = [ | CODE |
| LOW | …ompressed_tensors/schemes/compressed_tensors_scheme.py | 30 | __all__ = ["CompressedTensorsScheme"] | CODE |
| LOW | …compressed_tensors/schemes/compressed_tensors_wNa16.py | 53 | logger = logging.getLogger(__name__) | CODE |
| LOW | …compressed_tensors/schemes/compressed_tensors_wNa16.py | 55 | __all__ = ["CompressedTensorsWNA16"] | CODE |
| LOW | python/tokenspeed/runtime/layers/moe/latent.py | 555 | __all__ = [ | CODE |
| LOW | python/tokenspeed/runtime/layers/moe/__init__.py | 30 | __all__ = [ | CODE |
| LOW | python/tokenspeed/runtime/layers/moe/utils.py | 31 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/layers/moe/weights/fp8.py | 66 | __all__ = ["create_fp8_block_scale_inverses"] | CODE |
| LOW | python/tokenspeed/runtime/layers/moe/weights/mxint4.py | 124 | __all__ = ["create_mxint4_weight_pair"] | CODE |
| LOW | python/tokenspeed/runtime/layers/moe/weights/unquant.py | 82 | __all__ = ["create_dense_weight_pair"] | CODE |
| LOW | python/tokenspeed/runtime/layers/moe/weights/loaders.py | 276 | __all__ = [ | CODE |
| LOW | …thon/tokenspeed/runtime/layers/moe/weights/__init__.py | 92 | __all__ = [ | CODE |
| LOW | python/tokenspeed/runtime/layers/moe/weights/nvfp4.py | 118 | __all__ = ["create_nvfp4_weight_pair"] | CODE |
| LOW | python/tokenspeed/runtime/layers/moe/weights/mxfp4.py | 140 | __all__ = ["create_mxfp4_fp8_input_scales", "create_mxfp4_weight_pair"] | CODE |
| LOW | python/tokenspeed/runtime/cache/transfer/__init__.py | 28 | __all__ = [ | CODE |
| LOW | python/tokenspeed/runtime/distributed/__init__.py | 26 | __all__ = ["CommManager", "Mapping"] | CODE |
| LOW | …okenspeed/runtime/distributed/comm_backend/__init__.py | 27 | __all__ = [ | CODE |
| LOW | …thon/tokenspeed/runtime/sampling/dp_sampling_config.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/utils/common.py | 75 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/utils/common.py | 212 | def set_random_seed(seed: int) -> None: | CODE |
| LOW | python/tokenspeed/runtime/utils/network.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/utils/process.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | python/tokenspeed/runtime/utils/nvtx.py | 62 | def set_nvtx_enabled(enabled: bool) -> None: | CODE |
| LOW | python/tokenspeed/runtime/models/deepseek_v4_mtp.py | 59 | logger = logging.getLogger(__name__) | CODE |
| 244 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test_utils.py | 102 | CODE | |
| LOW | test/test_utils.py | 199 | CODE | |
| LOW | test/test_utils.py | 299 | CODE | |
| LOW | test/runtime/test_inkling_real_checkpoint_load.py | 60 | CODE | |
| LOW | test/runtime/test_kimi_k3_dspark_model.py | 298 | CODE | |
| LOW | test/runtime/test_v4_sliding_window_groups_smoke.py | 78 | CODE | |
| LOW | test/runtime/test_v4_sliding_window_groups_smoke.py | 132 | CODE | |
| LOW | test/runtime/test_v4_sliding_window_groups_smoke.py | 187 | CODE | |
| LOW | test/runtime/test_inkling_load_weights.py | 84 | CODE | |
| LOW | test/runtime/test_control_server.py | 155 | CODE | |
| LOW | test/runtime/models/test_moe_routing_config.py | 17 | CODE | |
| LOW | test/runtime/models/test_kimi_k3_eagle3_e2e.py | 55 | CODE | |
| LOW | test/runtime/models/test_mm25_perf.py | 276 | CODE | |
| LOW | test/ci_system/pipeline.py | 120 | CODE | |
| LOW | test/ci_system/pipeline.py | 743 | CODE | |
| LOW | test/ci_system/pipeline.py | 775 | CODE | |
| LOW | test/ci_system/pipeline.py | 1385 | CODE | |
| LOW | test/ci_system/pipeline.py | 1539 | CODE | |
| LOW | test/ci_system/ci_utils.py | 117 | CODE | |
| LOW | test/cli/test_serve_smg_integration.py | 46 | CODE | |
| LOW | python/tokenspeed/env.py | 240 | CODE | |
| LOW | python/tokenspeed/bench.py | 329 | CODE | |
| LOW | python/tokenspeed/bench.py | 457 | CODE | |
| LOW | python/tokenspeed/bench.py | 699 | CODE | |
| LOW | python/tokenspeed/bench.py | 1205 | CODE | |
| LOW | python/tokenspeed/bench.py | 1239 | CODE | |
| LOW | python/tokenspeed/bench.py | 131 | CODE | |
| LOW | python/tokenspeed/runtime/pd/transfer_plan.py | 387 | CODE | |
| LOW | python/tokenspeed/runtime/pd/decode_executor.py | 183 | CODE | |
| LOW | python/tokenspeed/runtime/pd/prefill_executor.py | 368 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/sender.py | 161 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/receiver.py | 754 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/async_conn.py | 265 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/async_conn.py | 266 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/async_conn.py | 325 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/async_conn.py | 374 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/async_conn.py | 458 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/prefill.py | 501 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/prefill.py | 608 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/prefill.py | 670 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/prefill.py | 804 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/prefill.py | 950 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/decode.py | 112 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/decode.py | 128 | CODE | |
| LOW | python/tokenspeed/runtime/pd/base/bootstrap.py | 227 | CODE | |
| LOW | …hon/tokenspeed/runtime/grammar/base_grammar_backend.py | 140 | CODE | |
| LOW | …hon/tokenspeed/runtime/grammar/base_grammar_backend.py | 370 | CODE | |
| LOW | …tokenspeed/runtime/grammar/reasoning_structural_tag.py | 103 | CODE | |
| LOW | python/tokenspeed/runtime/grammar/xgrammar_backend.py | 153 | CODE | |
| LOW | python/tokenspeed/runtime/grammar/capturable_grammar.py | 524 | CODE | |
| LOW | python/tokenspeed/runtime/grammar/capturable_grammar.py | 274 | CODE | |
| LOW | python/tokenspeed/runtime/epd/encode_loop.py | 210 | CODE | |
| LOW | python/tokenspeed/runtime/epd/prefill_admission.py | 533 | CODE | |
| LOW | python/tokenspeed/runtime/epd/prefill_admission.py | 663 | CODE | |
| LOW | python/tokenspeed/runtime/epd/mooncake/encode.py | 182 | CODE | |
| LOW | python/tokenspeed/runtime/epd/mooncake/encode.py | 262 | CODE | |
| LOW | python/tokenspeed/runtime/epd/mooncake/encode.py | 186 | CODE | |
| LOW | python/tokenspeed/runtime/layers/logits_processor.py | 366 | CODE | |
| LOW | python/tokenspeed/runtime/layers/logits_processor.py | 558 | CODE | |
| LOW | python/tokenspeed/runtime/layers/layernorm.py | 155 | CODE | |
| 236 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test_utils.py | 191 | except Exception as e: | CODE |
| MEDIUM | test/test_utils.py | 192 | print(f"Error killing process after launch failure: {e}") | CODE |
| MEDIUM | test/runtime/test_deepseek_v4_config.py | 1354 | def test_deepseek_v4_flashmla_wrapper_exposes_required_api(self): | CODE |
| LOW | test/runtime/test_deepseek_v4_config.py | 1362 | except Exception as exc: # noqa: BLE001 - optional kernel import | CODE |
| LOW | test/runtime/test_multi_window_page_counts.py | 53 | except Exception: | CODE |
| LOW | test/runtime/test_inkling_load_weights.py | 586 | except Exception as e: # pragma: no cover - environment specific | CODE |
| MEDIUM | test/runtime/test_zmq_msgpack.py | 573 | def _engine(): | CODE |
| LOW | test/runtime/test_zmq_msgpack.py | 586 | except Exception as exc: # surface into the test thread | CODE |
| LOW | test/runtime/test_control_server.py | 82 | except Exception: | CODE |
| LOW | test/runtime/distributed/test_qwen35_epd_1e1p2d.py | 77 | except Exception: | CODE |
| LOW | test/runtime/distributed/test_qwen35_epd_1e1p2d.py | 142 | except Exception: | CODE |
| LOW | test/runtime/distributed/test_dp_sampling_swap.py | 41 | except Exception: | CODE |
| MEDIUM | test/runtime/distributed/test_dp_sampling_swap.py | 23 | def _worker_main(rank, world_size, port, test_fn, error_dict, args): | CODE |
| MEDIUM | test/runtime/distributed/test_dp_sampling_comm.py | 29 | def _worker_main(rank, world_size, port, test_fn, error_dict, args): | CODE |
| MEDIUM | test/runtime/distributed/test_dp_sampling_comm.py | 66 | def _onesided_available_for_test(group) -> bool: | CODE |
| LOW⚡ | test/runtime/distributed/test_dp_sampling_comm.py | 69 | except Exception: | CODE |
| LOW | test/runtime/distributed/test_dp_sampling_comm.py | 47 | except Exception: | CODE |
| LOW⚡ | test/runtime/distributed/test_comm_manager.py | 70 | except Exception as e: | CODE |
| MEDIUM | test/runtime/distributed/test_comm_manager.py | 65 | def worker_fn( | CODE |
| LOW | test/runtime/distributed/test_qwen35_pd_1p1d.py | 77 | except Exception: | CODE |
| MEDIUM | test/runtime/distributed/test_comm_ops.py | 124 | def worker_fn(rank, world_size, port, test_fn, error_dict): | CODE |
| LOW⚡ | test/runtime/distributed/test_comm_ops.py | 127 | except Exception: | CODE |
| LOW | test/runtime/sampling/test_flashinfer_verify_dp.py | 67 | except Exception: | CODE |
| MEDIUM | test/runtime/sampling/test_flashinfer_verify_dp.py | 49 | def _worker_main(rank, world_size, port, test_fn, error_dict, args): | CODE |
| LOW | test/runtime/sampling/test_dp_sampling_logits_verify.py | 80 | except Exception: | CODE |
| MEDIUM | test/runtime/sampling/test_dp_sampling_logits_verify.py | 62 | def _worker_main(rank, world_size, port, test_fn, error_dict, args): | CODE |
| LOW | test/runtime/models/test_kimi_models.py | 102 | except Exception: | CODE |
| LOW | test/runtime/models/test_qwen35_vlm_e2e.py | 115 | except Exception: | CODE |
| LOW | test/runtime/models/test_qwen35_vlm_e2e.py | 126 | except Exception as exc: # noqa: BLE001 | CODE |
| MEDIUM | test/runtime/models/test_qwen35_vlm_e2e.py | 123 | def setUpClass(cls): | CODE |
| LOW | test/runtime/models/test_llama_models.py | 96 | except Exception: | CODE |
| LOW | test/runtime/models/test_mm25_perf.py | 230 | except Exception: | CODE |
| LOW | test/runtime/models/test_gpt_oss.py | 81 | except Exception: | CODE |
| LOW | test/ci_system/pipeline.py | 1718 | except Exception as exc: | CODE |
| LOW | test/ci_system/pipeline.py | 1742 | except Exception as exc: | CODE |
| LOW | python/tokenspeed/_logging.py | 77 | except Exception: | CODE |
| LOW | python/tokenspeed/_logging.py | 109 | except Exception: | CODE |
| MEDIUM | python/tokenspeed/bench.py | 1317 | print(f"Error {i}: {err.error}") | CODE |
| LOW | python/tokenspeed/bench.py | 423 | except Exception: | CODE |
| LOW | python/tokenspeed/bench.py | 538 | except Exception: | CODE |
| LOW | python/tokenspeed/runtime/pd/kv_events.py | 314 | except Exception as exc: | CODE |
| LOW | python/tokenspeed/runtime/pd/kv_events.py | 335 | except Exception as exc: | CODE |
| LOW | python/tokenspeed/runtime/pd/mooncake/receiver.py | 105 | except Exception as exc: | CODE |
| LOW | python/tokenspeed/runtime/pd/mooncake/receiver.py | 125 | except Exception as exc: | CODE |
| LOW | python/tokenspeed/runtime/pd/mooncake/async_conn.py | 562 | except Exception as exc: | CODE |
| LOW | python/tokenspeed/runtime/pd/mooncake/prefill.py | 940 | except Exception: | CODE |
| LOW | python/tokenspeed/runtime/pd/mooncake/prefill.py | 1161 | except Exception as exc: | CODE |
| LOW | python/tokenspeed/runtime/pd/mooncake/prefill.py | 1353 | except Exception as exc: | CODE |
| LOW | python/tokenspeed/runtime/pd/mooncake/decode.py | 167 | except Exception: | CODE |
| LOW | python/tokenspeed/runtime/pd/base/mooncake_engine.py | 51 | except Exception: | CODE |
| LOW | python/tokenspeed/runtime/pd/base/mooncake_engine.py | 61 | except Exception: | CODE |
| LOW | python/tokenspeed/runtime/pd/base/mooncake_engine.py | 94 | except Exception: | CODE |
| LOW | python/tokenspeed/runtime/pd/base/mooncake_engine.py | 121 | except Exception: | CODE |
| MEDIUM | python/tokenspeed/runtime/pd/base/mooncake_engine.py | 48 | def register(self, ptr, length): | CODE |
| MEDIUM | python/tokenspeed/runtime/pd/base/mooncake_engine.py | 58 | def deregister(self, ptr): | CODE |
| LOW | python/tokenspeed/runtime/grammar/grammar_manager.py | 291 | except Exception as exc: | CODE |
| LOW | python/tokenspeed/runtime/grammar/capturable_grammar.py | 312 | except Exception: | CODE |
| LOW | python/tokenspeed/runtime/epd/encode_worker.py | 158 | except Exception as e: | CODE |
| LOW | python/tokenspeed/runtime/epd/encode_executor.py | 240 | except Exception as e: | CODE |
| LOW | python/tokenspeed/runtime/epd/prefill_admission.py | 109 | except Exception: # noqa: BLE001 -- best-effort; worst case the MR leaks | CODE |
| 139 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/runners.py | 361 | CODE | |
| LOW | test/runtime/test_deepseek_v4_config.py | 192 | CODE | |
| LOW | test/runtime/test_dp_sampling_routing_metadata.py | 48 | CODE | |
| LOW | python/tokenspeed/bench.py | 812 | CODE | |
| LOW | python/tokenspeed/runtime/pd/mooncake/prefill.py | 1237 | CODE | |
| LOW | python/tokenspeed/runtime/layers/linear.py | 333 | CODE | |
| LOW | python/tokenspeed/runtime/layers/linear.py | 506 | CODE | |
| LOW | python/tokenspeed/runtime/layers/linear.py | 757 | CODE | |
| LOW | python/tokenspeed/runtime/layers/linear.py | 1110 | CODE | |
| LOW | …/tokenspeed/runtime/layers/vocab_parallel_embedding.py | 230 | CODE | |
| LOW | …/tokenspeed/runtime/layers/vocab_parallel_embedding.py | 551 | CODE | |
| LOW | python/tokenspeed/runtime/layers/utils.py | 111 | CODE | |
| LOW | …speed/runtime/layers/attention/mm_encoder_attention.py | 352 | CODE | |
| LOW | …ed/runtime/layers/attention/backends/tokenspeed_mla.py | 591 | CODE | |
| LOW | …speed/runtime/layers/attention/linear/causal_conv1d.py | 942 | CODE | |
| LOW | …on/tokenspeed/runtime/layers/attention/kv_cache/mha.py | 47 | CODE | |
| LOW | python/tokenspeed/runtime/layers/moe/expert.py | 50 | CODE | |
| LOW | python/tokenspeed/runtime/layers/moe/latent.py | 313 | CODE | |
| LOW | python/tokenspeed/runtime/layers/moe/loader.py | 443 | CODE | |
| LOW | python/tokenspeed/runtime/layers/moe/loader.py | 277 | CODE | |
| LOW | python/tokenspeed/runtime/layers/moe/topk.py | 342 | CODE | |
| LOW | python/tokenspeed/runtime/distributed/mapping.py | 317 | CODE | |
| LOW | python/tokenspeed/runtime/models/deepseek_v4.py | 1443 | CODE | |
| LOW | python/tokenspeed/runtime/models/deepseek_v4.py | 2756 | CODE | |
| LOW | python/tokenspeed/runtime/models/minimax_m2.py | 557 | CODE | |
| LOW | python/tokenspeed/runtime/models/glm5.py | 286 | CODE | |
| LOW | python/tokenspeed/runtime/models/kimi_k3.py | 309 | CODE | |
| LOW | python/tokenspeed/runtime/models/gpt_oss.py | 118 | CODE | |
| LOW | python/tokenspeed/runtime/models/qwen3.py | 105 | CODE | |
| LOW | python/tokenspeed/runtime/models/deepseek_v3.py | 480 | CODE | |
| LOW | python/tokenspeed/runtime/models/moonvit.py | 293 | CODE | |
| LOW | python/tokenspeed/runtime/models/moonvit.py | 502 | CODE | |
| LOW | python/tokenspeed/runtime/models/moonvit.py | 600 | CODE | |
| LOW | python/tokenspeed/runtime/execution/model_runner.py | 186 | CODE | |
| LOW | python/tokenspeed/runtime/execution/model_executor.py | 955 | CODE | |
| LOW | …hon/tokenspeed/runtime/execution/cuda_graph_wrapper.py | 1160 | CODE | |
| LOW | python/tokenspeed/runtime/execution/drafter/base.py | 46 | CODE | |
| LOW | python/tokenspeed/runtime/configs/inkling_config.py | 184 | CODE | |
| LOW | python/tokenspeed/runtime/configs/inkling_config.py | 419 | CODE | |
| LOW | python/tokenspeed/runtime/configs/inkling_config.py | 486 | CODE | |
| LOW | python/tokenspeed/runtime/configs/model_config.py | 315 | CODE | |
| LOW | …thon/tokenspeed/runtime/configs/qwen3_vision_config.py | 28 | CODE | |
| LOW | …on/tokenspeed/runtime/configs/kimi_k3_dspark_config.py | 51 | CODE | |
| LOW | …tokenspeed/runtime/configs/qwen3_5_text_base_config.py | 191 | CODE | |
| LOW | python/tokenspeed/runtime/configs/qwen3_asr_config.py | 50 | CODE | |
| LOW | python/tokenspeed/runtime/configs/qwen2_config.py | 57 | CODE | |
| LOW | python/tokenspeed/runtime/configs/kimi_k3_config.py | 64 | CODE | |
| LOW | python/tokenspeed/runtime/configs/kimi_k3_config.py | 144 | CODE | |
| LOW | python/tokenspeed/runtime/configs/qwen3_moe_config.py | 31 | CODE | |
| LOW | python/tokenspeed/runtime/configs/minimax_m2_config.py | 54 | CODE | |
| LOW | python/tokenspeed/runtime/configs/qwen3_config.py | 173 | CODE | |
| LOW | python/tokenspeed/runtime/configs/kimi_k25_config.py | 60 | CODE | |
| LOW | python/tokenspeed/runtime/configs/minimax_m3_config.py | 62 | CODE | |
| LOW | python/tokenspeed/runtime/configs/minimax_m3_config.py | 165 | CODE | |
| LOW | python/tokenspeed/runtime/entrypoints/engine.py | 147 | CODE | |
| LOW | python/tokenspeed/runtime/entrypoints/engine.py | 207 | CODE | |
| LOW | python/tokenspeed/runtime/entrypoints/engine_base.py | 42 | CODE | |
| LOW | python/tokenspeed/runtime/engine/request.py | 50 | CODE | |
| LOW | …/tokenspeed/runtime/engine/scheduler_control_client.py | 325 | CODE | |
| LOW | tokenspeed-kernel/test/ops/test_attention_gdn.py | 424 | CODE | |
| 97 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/runtime/test_inkling_mtp_conv_state.py | 108 | over [committed history || accepted chunk prefix].""" | STRING |
| HIGH | test/runtime/test_inkling_mtp_conv_state.py | 278 | """Per-request reference: causal conv over [prefix || x].""" | STRING |
| HIGH | test/runtime/test_inkling_mtp_conv_state.py | 290 | the chunk): rows of [prefix || x[:upto]].""" | STRING |
| HIGH | test/runtime/test_inkling_mtp_conv_state.py | 309 | conv over [ring history || x_t]; the kernel persists the token's own | STRING |
| HIGH⚡ | test/runtime/test_cli_config_compat.py | 393 | ["--model", "test/model", "--hf-overrides", '{"rope_scaling": null}'] | CODE |
| HIGH⚡ | test/runtime/test_cli_config_compat.py | 395 | self.assertEqual(args.hf_overrides, '{"rope_scaling": null}') | CODE |
| HIGH | test/runtime/test_gdn_state_paging.py | 510 | # Page 0 is null; pages 1..N fill as the sequence grows. | COMMENT |
| HIGH | test/runtime/test_kimi_k3_kda.py | 122 | conv/recurrent component slabs indexed by page id (page 0 = null).""" | STRING |
| HIGH | test/ci_system/slurm_submit.py | 349 | nvidia_smi="$(command -v nvidia-smi 2>/dev/null || true)" | CODE |
| HIGH | test/ci_system/test_package_cache.py | 46 | 'configure_b200v2_package_cache >/dev/null; printf "%s|%s" "${PIP_CACHE_DIR}" "${CI_WHEEL_CACHE_DIR}"', | CODE |
| HIGH⚡ | test/ci_system/pipeline.py | 499 | "sudo apt-get update -q && sudo apt-get install -y lsof; " | CODE |
| HIGH⚡ | test/ci_system/pipeline.py | 501 | f"pids=$(lsof -tiTCP:{port} -sTCP:LISTEN 2>/dev/null || true); " | CODE |
| HIGH⚡ | test/ci_system/pipeline.py | 504 | "kill -TERM $pids 2>/dev/null || true; " | CODE |
| HIGH⚡ | test/ci_system/pipeline.py | 506 | f"pids=$(lsof -tiTCP:{port} -sTCP:LISTEN 2>/dev/null || true); " | CODE |
| HIGH⚡ | test/ci_system/pipeline.py | 507 | 'if [ -n "$pids" ]; then kill -KILL $pids 2>/dev/null || true; fi; ' | CODE |
| HIGH | test/ci_system/pipeline.py | 457 | f'pkill -{signal_name} -f "{pattern}" 2>/dev/null || true', | CODE |
| HIGH | test/ci_system/test_worker_cleanup.py | 14 | if kill -0 "$worker" 2>/dev/null; then | CODE |
| HIGH | python/tokenspeed/runtime/utils/server_args.py | 1929 | help="Specify tp size for MoE part, default equals nprocs-per-node, if non dp_attn && combine_dense mode, th | CODE |
| HIGH⚡ | python/tokenspeed/runtime/models/llama_eagle3.py | 76 | the [embed || hidden] concat) and ``forward`` (= qkv_proj + o_proj | STRING |
| HIGH | python/tokenspeed/runtime/models/deepseek_v3.py | 2227 | concatenated [embeds || hidden_states] as input. | STRING |
| HIGH | python/tokenspeed/runtime/execution/drafter/mtp.py | 221 | """Roll a committed-tail stash: last ``lookback`` of [stash || fresh[:valid]]. | STRING |
| HIGH | python/tokenspeed/runtime/execution/drafter/mtp.py | 470 | ``[prefill_part || decode_part]`` under MIXED, full prefill chunks | STRING |
| HIGH | python/tokenspeed/runtime/execution/drafter/eagle.py | 225 | ``[prefill_part || decode_part]`` under MIXED, full prefill chunks | STRING |
| HIGH | …nspeed_kernel/ops/attention/triton/gated_delta_rule.py | 163 | float32 legacy decode path; output for that batch entry is undefined). | STRING |
| HIGH | …l/thirdparty/cute_dsl/nvfp4_gemm_swiglu_nvfp4_quant.py | 2558 | :param c_sf_ptr: Pointer to scale factor tensor for C (can be null) | STRING |
| HIGH | …l/thirdparty/cute_dsl/nvfp4_gemm_swiglu_nvfp4_quant.py | 2562 | :param norm_const_ptr: Pointer to normalization constant for SFC generation (can be null) | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …tic_benchmark/minimax_m3/tokenspeed/collect_outputs.py | 0 | collect a sweep's per-config benchmark_summary.json files into one csv. | STRING |
| HIGH | …st/agentic_benchmark/kimi_k2.5/vllm/collect_outputs.py | 0 | collect a sweep's per-config benchmark_summary.json files into one csv. | STRING |
| HIGH | …ntic_benchmark/kimi_k2.5/tokenspeed/collect_outputs.py | 0 | collect a sweep's per-config benchmark_summary.json files into one csv. | STRING |
| HIGH | …/agentic_benchmark/kimi_k2.5/sglang/collect_outputs.py | 0 | collect a sweep's per-config benchmark_summary.json files into one csv. | STRING |
| HIGH | …/agentic_benchmark/kimi_k2.5/trtllm/collect_outputs.py | 0 | collect a sweep's per-config benchmark_summary.json files into one csv. | STRING |
| HIGH | …agentic_benchmark/glm5.2/tokenspeed/collect_outputs.py | 0 | collect a sweep's per-config benchmark_summary.json files into one csv. | STRING |
| HIGH | test/agentic_benchmark/glm5.2/trtllm/collect_outputs.py | 0 | collect a sweep's per-config benchmark_summary.json files into one csv. | STRING |
| HIGH | python/tokenspeed/runtime/models/qwen3_5_nextn.py | 0 | trim decode rows' cache_seqlens by ``spec_num_tokens - accept_lengths``. | STRING |
| HIGH | python/tokenspeed/runtime/models/llama_eagle3.py | 0 | trim decode rows' cache_seqlens by ``spec_num_tokens - accept_lengths``. | STRING |
| HIGH | python/tokenspeed/runtime/models/deepseek_v3.py | 0 | trim decode rows' cache_seqlens by ``spec_num_tokens - accept_lengths``. | STRING |
| HIGH | …kenspeed-kernel/test/thirdparty/bench_mnnvl_vs_nccl.py | 0 | true when the world spans hosts. cross-node cuda-ipc workspace creation fails and poisons the cuda context ('invalid res | STRING |
| HIGH | …speed-kernel/test/thirdparty/test_trtllm_mnnvl_comm.py | 0 | true when the world spans hosts. cross-node cuda-ipc workspace creation fails and poisons the cuda context ('invalid res | STRING |
| HIGH | …ed-kernel/test/thirdparty/test_trtllm_mnnvl_twoshot.py | 0 | true when the world spans hosts. cross-node cuda-ipc workspace creation fails and poisons the cuda context ('invalid res | STRING |
| HIGH | …ops/attention/cute_dsl/rel_mha/flash_fwd_sm100_bias.py | 0 | set up configurations and parameters for the mla kernel operation. this method initializes and configures various attrib | STRING |
| HIGH | tokenspeed-mla/python/tokenspeed_mla/fmha.py | 0 | set up configurations and parameters for the mla kernel operation. this method initializes and configures various attrib | STRING |
| HIGH | tokenspeed-mla/python/tokenspeed_mla/mla_decode_fp8.py | 0 | set up configurations and parameters for the mla kernel operation. this method initializes and configures various attrib | STRING |
| HIGH | tokenspeed-mla/python/tokenspeed_mla/mla_decode_fp16.py | 0 | set up configurations and parameters for the mla kernel operation. this method initializes and configures various attrib | STRING |
| HIGH | …/tokenspeed_kernel_amd/ops/gfx950/attention/_common.py | 0 | pick num_kv_splits to balance occupancy against reduce overhead. the launch grid is (batch * num_kv_heads * num_groups) | STRING |
| HIGH | …tokenspeed_kernel_amd/ops/gfx1250/attention/_common.py | 0 | pick num_kv_splits to balance occupancy against reduce overhead. the launch grid is (batch * num_kv_heads * num_groups) | STRING |
| HIGH | …enspeed_kernel_amd/ops/gfx950/attention/rmha/decode.py | 0 | pick num_kv_splits to balance occupancy against reduce overhead. the launch grid is (batch * num_kv_heads * num_groups) | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/runtime/test_draft_advance_seqlens.py | 222 | # Step 0: `_apply_correction` trims the rejected tail (vc + N -> vc + a). | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 94 | # Step 1: Determine CUDA index and FlashInfer architecture | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 122 | # Step 2: Upgrade base tools | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 136 | # Step 3: Sync FlashInfer JIT cache on GB200/B200 | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 142 | # Step 4: Install tokenspeed-kernel | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 167 | # Step 5: Install TokenSpeed Scheduler (C++) | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 174 | # Step 6: Install TokenSpeed | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 184 | # Step 7: Optionally override tokenspeed-mla with in-tree source | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 199 | # Step 8: Pin critical kernel deps to exact versions | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 257 | # Step 9: Fix Triton ptxas (CUDA 13+ only) | COMMENT |
| LOW | …hon/tokenspeed/runtime/moe/eplb_algorithms/deepseek.py | 163 | # Step 1: pack groups to nodes | COMMENT |
| LOW⚡ | …hon/tokenspeed/runtime/moe/eplb_algorithms/deepseek.py | 174 | # Step 2: construct redundant experts within nodes | COMMENT |
| LOW⚡ | …hon/tokenspeed/runtime/moe/eplb_algorithms/deepseek.py | 183 | # Step 3: pack physical_experts to GPUs | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 436 | # Step 1: Load LSE_partial from gmem to shared memory | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 477 | # Step 2: Load O_partial for pipeline stages | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 534 | # Step 3: Load and transpose LSE from smem to registers | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 552 | # Step 4: Compute final LSE along split dimension | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 619 | # Step 5: Store final LSE to gmem | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 645 | # Step 6: Read O_partial and accumulate final O | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 698 | # Step 7: Write final O to gmem | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 597 | # Step 1: Load LSE_partial from gmem to shared memory | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 736 | # Step 2: Load O_partial for pipeline stages | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 805 | # Step 3: Load and transpose LSE from smem to registers | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 831 | # Step 4: Compute final LSE along split dimension | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 953 | # Step 5: Store final LSE to gmem | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 990 | # Step 6: Read O_partial and accumulate final O | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 1048 | # Step 7: Write final O to gmem (fake→real via SMEM) | COMMENT |
| LOW⚡ | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 277 | # Step 1: Load chunk → smem (convert to ordered) | COMMENT |
| LOW⚡ | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 836 | # Step 3: Collect output indices and values | COMMENT |
| LOW⚡ | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 1215 | # Step 1: Load chunk to smem as ordered | COMMENT |
| LOW⚡ | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 1220 | # Step 2: Multi-round radix select | COMMENT |
| LOW | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 491 | # Step 1: Inclusive prefix sum directly on the histogram | COMMENT |
| LOW | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 510 | # Step 2: Find threshold bucket | COMMENT |
| LOW | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 1367 | # Step 3: Collect output | COMMENT |
| LOW⚡ | …topk/top_k/single_pass_multi_cta_radix_topk_cluster.py | 284 | # Step 3: Collect output indices and values (cluster variant) | COMMENT |
| LOW⚡ | …topk/top_k/single_pass_multi_cta_radix_topk_cluster.py | 491 | # Step 1: Load chunk to smem as ordered | COMMENT |
| LOW⚡ | …topk/top_k/single_pass_multi_cta_radix_topk_cluster.py | 496 | # Step 2: Multi-round radix select | COMMENT |
| LOW | …topk/top_k/single_pass_multi_cta_radix_topk_cluster.py | 548 | # Step 3: Collect output (cluster barriers) | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/cute_dsl/topk/top_k/block_scan.py | 87 | # Step 1: Warp-level prefix sum using shuffle | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/cute_dsl/topk/top_k/block_scan.py | 90 | # Step 2: Store warp prefix sums | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/cute_dsl/topk/top_k/block_scan.py | 95 | # Step 3: Prefix sum across warps | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/cute_dsl/topk/top_k/block_scan.py | 106 | # Step 4: Add warp-level prefix | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/cute_dsl/topk/top_k/block_scan.py | 110 | # Step 5: Get total sum if need_total_sum is True | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage1.py | 1497 | # Step 1: validate inputs and reject unsupported modes. | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage1.py | 1521 | # Step 2: shuffle w1 to the MFMA-tile layout the kernel expects. | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage1.py | 1592 | # Step 3: materialise scalar / None args as device tensors so the | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage1.py | 1629 | # Step 4: launch the GEMM. One CTA per (M-tile, N-tile); the per-CTA | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage2.py | 1499 | # Step 1: validate inputs and reject unsupported modes. | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage2.py | 1511 | # Step 2: shuffle w2 to MFMA-tile layout if the caller didn't. | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage2.py | 1523 | # Step 3: flatten the (token, slot) axes so each row is one routed | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage2.py | 1666 | # Step 5: GEMM. Writes either to `partials` (reduce mode) or directly | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage2.py | 1722 | # Step 6: reduce. Sum partials[token, :, n] over the topk dim | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/ci_system/install_deps.sh | 94 | # Step 1: Determine CUDA index and FlashInfer architecture | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 122 | # Step 2: Upgrade base tools | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 136 | # Step 3: Sync FlashInfer JIT cache on GB200/B200 | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 142 | # Step 4: Install tokenspeed-kernel | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 167 | # Step 5: Install TokenSpeed Scheduler (C++) | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 174 | # Step 6: Install TokenSpeed | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 184 | # Step 7: Optionally override tokenspeed-mla with in-tree source | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 199 | # Step 8: Pin critical kernel deps to exact versions | COMMENT |
| LOW⚡ | test/ci_system/install_deps.sh | 257 | # Step 9: Fix Triton ptxas (CUDA 13+ only) | COMMENT |
| LOW | …hon/tokenspeed/runtime/moe/eplb_algorithms/deepseek.py | 163 | # Step 1: pack groups to nodes | COMMENT |
| LOW⚡ | …hon/tokenspeed/runtime/moe/eplb_algorithms/deepseek.py | 174 | # Step 2: construct redundant experts within nodes | COMMENT |
| LOW⚡ | …hon/tokenspeed/runtime/moe/eplb_algorithms/deepseek.py | 183 | # Step 3: pack physical_experts to GPUs | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 436 | # Step 1: Load LSE_partial from gmem to shared memory | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 477 | # Step 2: Load O_partial for pipeline stages | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 534 | # Step 3: Load and transpose LSE from smem to registers | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 552 | # Step 4: Compute final LSE along split dimension | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 619 | # Step 5: Store final LSE to gmem | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 645 | # Step 6: Read O_partial and accumulate final O | COMMENT |
| LOW⚡ | …el/ops/attention/cute_dsl/rel_mha/flash_fwd_combine.py | 698 | # Step 7: Write final O to gmem | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 597 | # Step 1: Load LSE_partial from gmem to shared memory | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 736 | # Step 2: Load O_partial for pipeline stages | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 805 | # Step 3: Load and transpose LSE from smem to registers | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 831 | # Step 4: Compute final LSE along split dimension | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 953 | # Step 5: Store final LSE to gmem | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 990 | # Step 6: Read O_partial and accumulate final O | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/msa/cute/src/sm100/fwd/combine.py | 1048 | # Step 7: Write final O to gmem (fake→real via SMEM) | COMMENT |
| LOW⚡ | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 277 | # Step 1: Load chunk → smem (convert to ordered) | COMMENT |
| LOW⚡ | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 836 | # Step 3: Collect output indices and values | COMMENT |
| LOW⚡ | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 1215 | # Step 1: Load chunk to smem as ordered | COMMENT |
| LOW⚡ | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 1220 | # Step 2: Multi-round radix select | COMMENT |
| LOW | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 491 | # Step 1: Inclusive prefix sum directly on the histogram | COMMENT |
| LOW | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 510 | # Step 2: Find threshold bucket | COMMENT |
| LOW | …ute_dsl/topk/top_k/single_pass_multi_cta_radix_topk.py | 1367 | # Step 3: Collect output | COMMENT |
| LOW⚡ | …topk/top_k/single_pass_multi_cta_radix_topk_cluster.py | 284 | # Step 3: Collect output indices and values (cluster variant) | COMMENT |
| LOW⚡ | …topk/top_k/single_pass_multi_cta_radix_topk_cluster.py | 491 | # Step 1: Load chunk to smem as ordered | COMMENT |
| LOW⚡ | …topk/top_k/single_pass_multi_cta_radix_topk_cluster.py | 496 | # Step 2: Multi-round radix select | COMMENT |
| LOW | …topk/top_k/single_pass_multi_cta_radix_topk_cluster.py | 548 | # Step 3: Collect output (cluster barriers) | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/cute_dsl/topk/top_k/block_scan.py | 87 | # Step 1: Warp-level prefix sum using shuffle | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/cute_dsl/topk/top_k/block_scan.py | 90 | # Step 2: Store warp prefix sums | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/cute_dsl/topk/top_k/block_scan.py | 95 | # Step 3: Prefix sum across warps | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/cute_dsl/topk/top_k/block_scan.py | 106 | # Step 4: Add warp-level prefix | COMMENT |
| LOW⚡ | …ed_kernel/thirdparty/cute_dsl/topk/top_k/block_scan.py | 110 | # Step 5: Get total sum if need_total_sum is True | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage1.py | 1497 | # Step 1: validate inputs and reject unsupported modes. | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage1.py | 1521 | # Step 2: shuffle w1 to the MFMA-tile layout the kernel expects. | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage1.py | 1592 | # Step 3: materialise scalar / None args as device tensors so the | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage1.py | 1629 | # Step 4: launch the GEMM. One CTA per (M-tile, N-tile); the per-CTA | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage2.py | 1499 | # Step 1: validate inputs and reject unsupported modes. | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage2.py | 1511 | # Step 2: shuffle w2 to MFMA-tile layout if the caller didn't. | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage2.py | 1523 | # Step 3: flatten the (token, slot) axes so each row is one routed | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage2.py | 1666 | # Step 5: GEMM. Writes either to `partials` (reduce mode) or directly | COMMENT |
| LOW | …peed_kernel_amd/ops/gfx950/moe/mxfp4/prefill_stage2.py | 1722 | # Step 6: reduce. Sum partials[token, :, n] over the topk dim | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ed/runtime/layers/attention/backends/cache_metadata.py | 197 | Return the unique full-history history-group table. Args: active_forward_op: The scheduler forward | STRING |
| HIGH | …ed/runtime/layers/attention/kv_cache/recipes/qwen35.py | 14 | Allow the structural K/V planes added by a Qwen MTP draft. Args: layer_types: Target-only attention labels, | STRING |
| HIGH | …ime/layers/attention/kv_cache/recipes/cache_runtime.py | 39 | Validate that ``value`` is a positive, non-boolean integer. Args: name: Field name used in the error messag | STRING |
| HIGH | python/tokenspeed/runtime/utils/launcher.py | 67 | Return the first hostname of a Slurm-compressed hostlist. Args: hostlist: A hostlist such as ``cn10``, ``cn | STRING |
| HIGH | python/tokenspeed/runtime/utils/launcher.py | 244 | Derive the multi-node topology from the launcher environment. Args: env: Environment mapping to read; defau | STRING |
| HIGH | python/tokenspeed/runtime/engine/scheduler_utils.py | 143 | Floor ``max_scheduled_tokens`` to the state-snapshot grain, if any. Recurrent-state groups (family=State, retention | STRING |
| HIGH | python/tokenspeed/runtime/engine/scheduler_utils.py | 413 | Bridge the per-group block tables to GPU int32 tensors: absolute page indices, null hole = 0 preserved, ragged-row p | STRING |
| HIGH | python/tokenspeed/cli/trace_merge.py | 247 | Merge a Proton chrome trace into a VizTracer report. Shifts every Proton event by the difference between the two fi | STRING |
| HIGH | python/tokenspeed/cli/trace_merge.py | 283 | Merge and align Proton/VizTracer trace pairs from several TP ranks. Every input pair is first aligned using its own | STRING |
| HIGH | …l/python/tokenspeed_kernel/ops/attention/score_mods.py | 54 | Build a memoized FA4 score_mod adding a learned relative-position bias. The returned closure adds ``rel_logits[glob | STRING |
| HIGH | …tokenspeed_kernel/ops/attention/triton/linear/chunk.py | 145 | Args: q (torch.Tensor): queries of shape `[B, T, H, K]` if `head_first=False` else `[B, H, T, K | STRING |
| HIGH | …n/tokenspeed_kernel/ops/attention/cute_dsl/dsa_topk.py | 95 | Length-aware per-row top-k over a dense indexer-logits matrix. Args: logits: 2-D row-major contiguous CUDA | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | test/runtime/test_dspark_proposal.py | 169 | drafter.markov_head.markov_w2.weight.data.zero_() | CODE |
| CRITICAL | test/runtime/test_dspark_proposal.py | 199 | drafter.markov_head.markov_w1.weight.data.normal_(0.0, 3.0) | CODE |
| CRITICAL | test/runtime/test_dspark_proposal.py | 200 | drafter.markov_head.markov_w2.weight.data.normal_(0.0, 3.0) | CODE |
| CRITICAL | …tokenspeed_kernel/ops/attention/triton/linear/utils.py | 146 | triton.runtime.driver.active.utils.get_device_properties(i)[ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | python/tokenspeed/runtime/layers/attention/registry.py | 394 | # Create the full attention backend for standard MHA layers. | COMMENT |
| MEDIUM | …/tokenspeed/runtime/engine/data_parallel_controller.py | 261 | # Create a thread for each worker | COMMENT |
| MEDIUM | …nel/python/tokenspeed_kernel/ops/communication/nccl.py | 22 | # This file is a pure Python wrapper for the NCCL library. | COMMENT |
| MEDIUM | …l/thirdparty/cute_dsl/nvfp4_gemm_swiglu_nvfp4_quant.py | 115 | """This class implements batched matrix multiplication (C = A x SFA x B x SFB) with support for various data types | STRING |
| MEDIUM | …python/tokenspeed_kernel/thirdparty/cute_dsl/argmax.py | 18 | # This file contains code derived from the Quack library: | COMMENT |
| MEDIUM | …on/tokenspeed_kernel/thirdparty/cute_dsl/topk/utils.py | 48 | # This file is copied and modified from cutlass https://github.com/NVIDIA/cutlass/blob/main/python/CuTeDSL/cutlass/cute/ | COMMENT |
| MEDIUM | …on/tokenspeed_kernel/thirdparty/cute_dsl/topk/utils.py | 180 | # Create a numpy array | STRING |
| MEDIUM | tokenspeed-mla/python/tokenspeed_mla/utils.py | 243 | # Create a numpy array | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 27 | - [2026/05] 🚀 TokenSpeed hits 580 TPS on Qwen3.5-397B-A17B for agentic workloads. [[blog](https://pytorch.org/blog/up-to | CODE |
| MEDIUM | README.md | 40 | <img src="https://raw.githubusercontent.com/lightseekorg/tokenspeed/main/assets/perf/tokenspeed-kimi-k2.5-performance.pn | CODE |
| MEDIUM | …en3.5-397b-a17b-nvfp4-evalscope-agentic-b200-8gpu.yaml | 48 | https://huggingface.co/datasets/lightseekorg/agentic-dataset/resolve/main/agentic_dataset.json | CODE |
| MEDIUM | test/ci/perf/kimi-k2.5-nvfp4-evalscope-agentic.yaml | 53 | https://huggingface.co/datasets/lightseekorg/agentic-dataset/resolve/main/agentic_dataset.json | CODE |
| MEDIUM | …ci/perf/qwen3.5-397b-a17b-nvfp4-evalscope-agentic.yaml | 49 | https://huggingface.co/datasets/lightseekorg/agentic-dataset/resolve/main/agentic_dataset.json | CODE |
| MEDIUM | test/cli/test_serve_smg_integration.py | 90 | # test exercises orchestration/teardown, not tokenizer loading. | COMMENT |
| MEDIUM | python/tokenspeed/runtime/models/kimi_k3_nextn.py | 397 | # NextN scaffolding around the decoder layer. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | test/runtime/test_detokenizer_parity.py | 73 | # Shared harness | COMMENT |
| LOW | …speed/runtime/layers/attention/linear/causal_conv1d.py | 171 | # first chunk and does not have prior-token, so just set to 0 | COMMENT |
| MEDIUM | tokenspeed-kernel/python/tokenspeed_kernel/selection.py | 756 | # comprehensive warmup should pass explicit op signatures. | COMMENT |
| MEDIUM | …ops/attention/cute_dsl/rel_mha/flash_fwd_sm100_bias.py | 1574 | # CLC buffers placed here to utilize padding before sO's 1024-byte alignment. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/runners.py | 328 | # Check if the text is empty or only whitespace. | COMMENT |
| LOW | test/runners.py | 536 | # Check if the text is empty or only whitespace. | COMMENT |
| LOW | test/ci_system/ci_utils.py | 225 | # Check if we should retry | COMMENT |
| LOW | python/tokenspeed/runtime/engine/async_llm.py | 408 | # Check if this was an abort/error created by scheduler | COMMENT |
| LOW | …l/thirdparty/cute_dsl/nvfp4_gemm_swiglu_nvfp4_quant.py | 490 | # Check if input data types are compatible with MMA instruction | COMMENT |
| LOW | …arty/cute_dsl/topk/top_k/filtered_top_k_varlen_util.py | 1236 | # Check if the number of valid indices matches | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …thon/tokenspeed/runtime/utils/hf_transformers_utils.py | 657 | # Special handling for stop token <|eom_id|> generated by llama 3 tool use. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/runners.py | 319 | # make sure to disable compile | COMMENT |
| LOW | …/python/tokenspeed_kernel/ops/communication/deep_ep.py | 640 | # Please make sure to change DeepEP code in internode_ll.cu dispatch / combine as below first and then reinstall | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/ci_system/pipeline.py | 1539 | def execute_task( | CODE |