slime is an LLM post-training framework for RL Scaling.
This report presents the forensic synthetic code analysis of THUDM/slime, a Python project with 8,294 GitHub stars. SynthScan v2.0 examined 99,100 lines of code across 540 source files, recording 1507 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 24.0 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).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
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 1507 distinct pattern matches across 19 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 | tools/convert_torch_dist_to_hf_parallel.py | 60 | def collect_from_storage_metadata(storage_item, base_path=""): | CODE |
| LOW | tools/trace_timeline_viewer.py | 55 | def _make_dummy_pickle_global(module_name: str, name: str) -> type[_MissingPickleObject]: | CODE |
| LOW | tools/trace_timeline_viewer.py | 330 | def nearest_closed_ancestor_end(span: dict[str, Any]) -> float | None: | CODE |
| LOW | tools/convert_hf_to_int4_direct.py | 78 | def round_to_quantized_type_dtype( | CODE |
| LOW | slime/backends/megatron_utils/checkpoint.py | 29 | def _init_from_local_shards_and_global_metadata( # type: ignore[override] | CODE |
| LOW⚡ | slime/backends/megatron_utils/arguments.py | 24 | def _is_allgather_cp_dsa_model(hf_config): | CODE |
| LOW⚡ | slime/backends/megatron_utils/arguments.py | 32 | def _validate_allgather_cp_supported(args, hf_config=None): | CODE |
| LOW | slime/backends/megatron_utils/arguments.py | 151 | def _set_default_megatron_args(args): | CODE |
| LOW⚡ | slime/backends/megatron_utils/model.py | 43 | def _disable_tqdm_for_non_main_rank() -> bool: | CODE |
| LOW⚡ | slime/backends/megatron_utils/model.py | 51 | def _should_update_microbatch_pbar(model) -> bool: | CODE |
| LOW | slime/backends/megatron_utils/model.py | 63 | def _wrap_forward_step_with_microbatch_pbar(forward_step_func, pbar): | CODE |
| LOW | slime/backends/megatron_utils/model.py | 77 | def _with_rollout_top_p_token_keys(args: Namespace, keys: Sequence[str]) -> list[str]: | CODE |
| LOW | slime/backends/megatron_utils/model.py | 83 | def _iter_critic_output_layers(model: Sequence[DDP]): | CODE |
| LOW | slime/backends/megatron_utils/model.py | 94 | def get_load_checkpoint_path_by_args(args, load_arg="load"): | CODE |
| LOW | slime/backends/megatron_utils/model.py | 124 | def _critic_output_layer_needs_reinit(args: Namespace, model: Sequence[DDP], role: str) -> bool: | CODE |
| LOW | slime/backends/megatron_utils/model.py | 171 | def _reinitialize_critic_output_layer(args: Namespace, model: Sequence[DDP]) -> None: | CODE |
| LOW | slime/backends/megatron_utils/model.py | 181 | def get_optimizer_param_scheduler(args: Namespace, optimizer: MegatronOptimizer) -> OptimizerParamScheduler: | CODE |
| LOW | slime/backends/megatron_utils/model.py | 241 | def _disable_distributed_optimizer_state_initialization(optimizer: MegatronOptimizer) -> None: | CODE |
| LOW | slime/backends/megatron_utils/model.py | 269 | def setup_model_and_optimizer( | CODE |
| LOW | slime/backends/megatron_utils/model.py | 705 | def should_disable_forward_pre_hook(args: Namespace) -> bool: | CODE |
| LOW | slime/backends/megatron_utils/model.py | 977 | def initialize_model_and_optimizer( | CODE |
| LOW | slime/backends/megatron_utils/loss.py | 83 | def get_rollout_top_p_logprob_kwargs(args: Namespace, batch: dict[str, Any]) -> dict[str, Any]: | CODE |
| LOW | slime/backends/megatron_utils/loss.py | 194 | def _allgather_cp_redistribute( | CODE |
| LOW | slime/backends/megatron_utils/loss.py | 513 | def get_log_probs_and_entropy( | CODE |
| LOW | slime/backends/megatron_utils/loss.py | 663 | def apply_opd_kl_to_advantages( | CODE |
| LOW | slime/backends/megatron_utils/loss.py | 704 | def compute_advantages_and_returns(args: Namespace, rollout_data: RolloutBatch) -> None: | CODE |
| LOW | slime/backends/megatron_utils/model_provider.py | 242 | def wrap_model_provider_with_freeze(original_provider, args): | CODE |
| LOW | slime/backends/megatron_utils/hf_checkpoint_saver.py | 216 | def _finalize_distributed_shards(path: Path, local_state: dict[str, Any]) -> None: | CODE |
| LOW | slime/backends/megatron_utils/hf_checkpoint_saver.py | 313 | def _clear_existing_hf_weights(path: Path) -> None: | CODE |
| LOW | slime/backends/megatron_utils/hf_checkpoint_saver.py | 360 | def _raise_if_rank_zero_failed(context: str, error: str | None) -> None: | CODE |
| LOW | slime/backends/megatron_utils/cp_utils.py | 9 | def get_logits_and_tokens_offset_with_cp( | CODE |
| LOW | slime/backends/megatron_utils/cp_utils.py | 254 | def prepare_routed_experts_for_routing_replay( | CODE |
| LOW | slime/backends/megatron_utils/server/megatron_server.py | 49 | def _normalize_label_token_ids(label_token_ids: Any, expected_length: int) -> list[list[int]] | None: | CODE |
| LOW | slime/backends/megatron_utils/server/megatron_server.py | 99 | def set_train_parallel_config(self, config: dict): | CODE |
| LOW | slime/backends/megatron_utils/server/megatron_server.py | 626 | def _run_warmup_via_private_http(sample_manager, args): | CODE |
| LOW | slime/backends/megatron_utils/server/megatron_server.py | 672 | def run_megatron_dp_models_loop_worker(dp_rank, pp_size, sample_manager, actor_models): | CODE |
| LOW | slime/backends/megatron_utils/server/megatron_server.py | 708 | def _build_update_from_disk_fn(actor_model): | CODE |
| LOW | slime/backends/megatron_utils/server/arguments.py | 34 | def add_megatron_server_arguments(parser): | CODE |
| LOW | slime/backends/megatron_utils/server/arguments.py | 87 | def configure_megatron_server_args(args): | CODE |
| LOW | slime/backends/megatron_utils/server/arguments.py | 104 | def validate_megatron_server_args(args): | CODE |
| LOW | slime/backends/megatron_utils/server/logprob_utils.py | 21 | def sample_from_vocab_parallel_logits_without_full_gather( | CODE |
| LOW | slime/backends/megatron_utils/server/logprob_utils.py | 158 | def get_label_token_log_probs_from_vocab_parallel_logits( | CODE |
| LOW | slime/backends/megatron_utils/server/logprob_utils.py | 268 | def _slice_response_rows_for_current_cp_rank( | CODE |
| LOW | slime/backends/megatron_utils/server/logprob_utils.py | 303 | def _merge_allgather_cp_tensors( | CODE |
| LOW | slime/backends/megatron_utils/server/logprob_utils.py | 352 | def _get_log_probs_and_optional_samples( | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 153 | def _compact_valid_rows_inplace( | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 289 | def _padded_expert_hidden_bytes( | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 1090 | def _configure_batch_invariant(deep_gemm: Any, deep_gemm_wrapper: Any) -> bool: | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 1352 | def _quantize_grouped_weights( | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 1511 | def _experts_per_forward_group(num_local_experts: int) -> int: | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 1617 | def _wrap_preallocated_combine_preprocess(dispatcher: torch.nn.Module) -> bool: | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 1651 | def _wrap_preallocated_dispatch_postprocess(dispatcher: torch.nn.Module) -> bool: | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 1736 | def _wrap_preallocated_token_combine(dispatcher: torch.nn.Module) -> bool: | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 1817 | def _moe_recompute_scratch_view( | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 1886 | def _deepgemm_grouped_moe_forward( | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 2291 | def _scatter_deepep_routes_with_padding( | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 2498 | def _compact_route_preserving_metadata_inputs( | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 2578 | def _deepep_route_handle_received_rows(handle: tuple) -> int: | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 2595 | def _dispatch_route_preserving_deepep_metadata( | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 2668 | def _validate_and_order_route_preserving_outputs( | CODE |
| 600 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tools/analyze_profile.py | 189 | # ─── Device Properties ────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tools/analyze_profile.py | 197 | # ─── CUDA/NCCL Info ───────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tools/analyze_profile.py | 207 | # ─── Kernel Analysis ──────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tools/analyze_profile.py | 320 | # ─── Communication ────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tools/analyze_profile.py | 329 | # ─── CPU overhead ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tools/analyze_profile.py | 337 | # ─── Pretty print ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tools/analyze_profile.py | 341 | # ── Config ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 23 | # ─── Color helpers ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 65 | # ─── Data structures ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 235 | # ─── GPU Utilization ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 278 | # ─── Per-stream analysis ──────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 295 | # ─── CUDA Graph analysis ─────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 352 | # ── Timeline ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 363 | # ── Kernel Breakdown ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 382 | # ── Top Kernels ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 390 | # ── CUDA Graph ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 431 | # ── CUDA Graph Location in Timeline ───────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 456 | # ── GPU Idle Gaps ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 466 | # ── Per-Stream ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 484 | # ── Communication ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 492 | # ── Performance Bottleneck Summary ────────────────────────────────── | COMMENT |
| MEDIUM | tools/analyze_profile.py | 575 | # ── Optimization Recommendations ──────────────────────────────────── | COMMENT |
| MEDIUM⚡ | slime/agent/trajectory.py | 23 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | slime/agent/trajectory.py | 25 | # =========================================================================== | COMMENT |
| MEDIUM | slime/agent/trajectory.py | 41 | # =========================================================================== | COMMENT |
| MEDIUM | slime/agent/trajectory.py | 43 | # =========================================================================== | COMMENT |
| MEDIUM | slime/agent/trajectory.py | 111 | # =========================================================================== | COMMENT |
| MEDIUM | slime/agent/trajectory.py | 113 | # =========================================================================== | COMMENT |
| MEDIUM | slime/agent/trajectory.py | 136 | # =========================================================================== | COMMENT |
| MEDIUM | slime/agent/trajectory.py | 138 | # =========================================================================== | COMMENT |
| MEDIUM | slime/agent/trajectory.py | 264 | # =========================================================================== | COMMENT |
| MEDIUM | slime/agent/trajectory.py | 266 | # =========================================================================== | COMMENT |
| MEDIUM | tests/test_rm_gpqa.py | 31 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_rm_gpqa.py | 33 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_gpqa.py | 88 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_gpqa.py | 90 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_sample.py | 30 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_sample.py | 32 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_sample.py | 175 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_sample.py | 177 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/_cp_dist_helpers.py | 139 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/_cp_dist_helpers.py | 157 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math_dapo.py | 34 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math_dapo.py | 37 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math_dapo.py | 63 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math_dapo.py | 65 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math_dapo.py | 82 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math_dapo.py | 84 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math_dapo.py | 121 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math_dapo.py | 123 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math_dapo.py | 149 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math_dapo.py | 151 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math_dapo.py | 186 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math_dapo.py | 188 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_metric_report.py | 55 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_metric_report.py | 65 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math.py | 37 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math.py | 39 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math.py | 76 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_rm_math.py | 78 | # --------------------------------------------------------------------------- | COMMENT |
| 80 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | tools/trace_timeline_viewer.py | 950 | cursorTime: null, | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 951 | hoveredItem: null, | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 952 | selectedItem: null, | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1156 | const lane = rowExpanded(row) ? (item.lane || 0) : 0; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1165 | let current = null; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1171 | clusters.push(current); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1174 | current.items.push(item); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1344 | const row = rowIdx >= 0 ? state.rows[rowIdx] : null; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1345 | if (row && rowExpanded(row)) { | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1347 | y: laneTop(layout, item.lane || 0, scrollTop) + 2, | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1446 | if (raw.start_attrs || raw.end_attrs) { | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1455 | if (!attrs) return null; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1459 | if (v != null && v > 0) segs.push({ phase, duration: v }); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1459 | if (v != null && v > 0) segs.push({ phase, duration: v }); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1501 | const pdVirtualRole = attrs.timeline_pd_virtual_role || null; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1501 | const pdVirtualRole = attrs.timeline_pd_virtual_role || null; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1503 | if (!phases || (expanded && !pdVirtualRole)) return null; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1547 | const colorKey = attrs.timeline_pd_parent_name || item.name; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1552 | const pdVirtualRole = attrs.timeline_pd_virtual_role || null; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1552 | const pdVirtualRole = attrs.timeline_pd_virtual_role || null; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1781 | if (showText && labelWidthAvailable > 40) { | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1786 | if (a.prompt_tokens != null) pdParts.push(`P:${a.prompt_tokens}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1786 | if (a.prompt_tokens != null) pdParts.push(`P:${a.prompt_tokens}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1787 | if (a.completion_tokens != null) pdParts.push(`D:${a.completion_tokens}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1787 | if (a.completion_tokens != null) pdParts.push(`D:${a.completion_tokens}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1788 | if (a.cached_tokens != null && a.cached_tokens > 0) pdParts.push(`cache:${a.cached_tokens}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1788 | if (a.cached_tokens != null && a.cached_tokens > 0) pdParts.push(`cache:${a.cached_tokens}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1789 | if (a.pd_prefill_forward_duration != null) pdParts.push(`pf:${(a.pd_prefill_forward_duration*1000).toFix | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1789 | if (a.pd_prefill_forward_duration != null) pdParts.push(`pf:${(a.pd_prefill_forward_duration*1000).toFix | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1790 | if (a.pd_decode_forward_duration != null) pdParts.push(`df:${(a.pd_decode_forward_duration*1000).toFixed | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1790 | if (a.pd_decode_forward_duration != null) pdParts.push(`df:${(a.pd_decode_forward_duration*1000).toFixed | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1791 | if (a.pd_transfer_speed_gb_s != null) pdParts.push(`${a.pd_transfer_speed_gb_s.toFixed(1)}GB/s`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1791 | if (a.pd_transfer_speed_gb_s != null) pdParts.push(`${a.pd_transfer_speed_gb_s.toFixed(1)}GB/s`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1857 | lines.push(`${key}: ${value}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1862 | lines.push(`events: ${item.attrs?.total ?? 0}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1864 | lines.push(`${name}: ${count}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1868 | if (item.parent_span_name) lines.push(`parent: ${item.parent_span_name}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1870 | lines.push(`start: ${niceDuration(item.start_ts - state.globalStart)}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1871 | lines.push(`end: ${item.end_ts == null ? 'open' : niceDuration(item.end_ts - state.globalStart)}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1872 | if (item.end_ts == null) { | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1873 | lines.push(`display_end: ${niceDuration(item.display_end_ts - state.globalStart)}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1875 | lines.push(`duration: ${item.end_ts == null ? 'open' : niceDuration(item.end_ts - item.start_ts)}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1877 | lines.push(`time: ${niceDuration((item.ts ?? 0) - state.globalStart)}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1879 | if (item.state === 'orphan_end') lines.push('warning: unmatched end event'); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1886 | lines.push(`${key}: ${typeof value === 'object' ? JSON.stringify(value) : value}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1900 | lines.push('── PD disaggregation ──'); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1902 | lines.push(' [P] prefill instance'); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1903 | pPhases.forEach(p => lines.push(fmtPhase(p))); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1906 | lines.push(' [D] decode instance'); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1907 | dPhases.forEach(p => lines.push(fmtPhase(p))); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1909 | lines.push(` total phases: ${(totalDur * 1000).toFixed(1)}ms`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1917 | lines.push(` ${label}: ${value.toFixed(2)} GB/s`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1919 | lines.push(` ${label}: ${value.toFixed(1)} MB`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1921 | lines.push(` ${label}: ${typeof value === 'object' ? JSON.stringify(value) : value}`); | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 1929 | const activeItem = state.hoveredItem || state.selectedItem; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 2090 | if (absoluteY >= layout.top && absoluteY <= layout.top + layout.height) return idx; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 2096 | if (!layout) return null; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 2102 | let closestPoint = null; | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 2111 | if (distance <= radius && distance < closestPointDistance) { | CODE |
| HIGH⚡ | tools/trace_timeline_viewer.py | 2124 | if (localY < itemTop || localY > itemBottom) continue; | CODE |
| 40 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/convert_torch_dist_to_hf_parallel.py | 142 | except Exception as e: | CODE |
| MEDIUM | tools/convert_torch_dist_to_hf_parallel.py | 143 | print(f"Error reading {rel_path}: {e}") | CODE |
| LOW | tools/convert_torch_dist_to_hf_parallel.py | 291 | except Exception as e: | CODE |
| MEDIUM | tools/convert_torch_dist_to_hf_parallel.py | 292 | print(f"Error processing {name}: {e}") | CODE |
| MEDIUM | tools/convert_torch_dist_to_hf_parallel.py | 132 | def read_file(rel_path, full_path, ops): | CODE |
| LOW | tools/profile_rollout.py | 12 | except Exception as e: | CODE |
| MEDIUM | tools/profile_rollout.py | 13 | print(f"Error fetching workers from router: {e}") | CODE |
| LOW | tools/profile_rollout.py | 31 | except Exception as e: | CODE |
| LOW | tools/profile_rollout.py | 41 | except Exception as e: | CODE |
| MEDIUM | tools/profile_rollout.py | 7 | def get_workers(router_url): | CODE |
| MEDIUM | tools/profile_rollout.py | 35 | def stop_profile(worker_url): | CODE |
| LOW | tools/convert_hf_to_torch_dist.py | 33 | except Exception: | CODE |
| LOW | tools/convert_hf_to_int4.py | 37 | except Exception as e: | CODE |
| LOW | slime/backends/megatron_utils/model_provider.py | 195 | except Exception as e: | CODE |
| LOW | slime/backends/megatron_utils/hf_checkpoint_saver.py | 59 | except Exception as e: | CODE |
| LOW | slime/backends/megatron_utils/hf_checkpoint_saver.py | 78 | except Exception as e: | CODE |
| LOW | slime/backends/megatron_utils/server/megatron_server.py | 351 | except Exception as e: | CODE |
| LOW | slime/backends/megatron_utils/server/megatron_server.py | 487 | except Exception as e: | CODE |
| LOW | slime/backends/megatron_utils/server/megatron_server.py | 560 | except Exception as e: | CODE |
| LOW | slime/backends/megatron_utils/server/megatron_server.py | 590 | except Exception as e: | CODE |
| LOW | slime/backends/sglang_utils/server_control.py | 35 | except Exception as e: | CODE |
| LOW | slime/backends/sglang_utils/server_control.py | 51 | except Exception as e: | CODE |
| LOW | slime/backends/sglang_utils/sglang_engine.py | 284 | except Exception as e: | CODE |
| LOW | slime/backends/sglang_utils/sglang_engine.py | 313 | except Exception as e: | CODE |
| LOW | slime/backends/sglang_utils/external.py | 81 | except Exception as exc: | CODE |
| LOW | slime/utils/reloadable_process_group.py | 491 | except Exception as e: | CODE |
| MEDIUM | slime/utils/reloadable_process_group.py | 484 | def _wrap_low_level_call(check_memory=True): | CODE |
| LOW | slime/utils/processing_utils.py | 127 | except Exception: | CODE |
| LOW | slime/utils/processing_utils.py | 147 | except Exception: | CODE |
| LOW | slime/utils/health_monitor.py | 143 | except Exception as e: | CODE |
| LOW | slime/utils/health_monitor.py | 164 | except Exception as e: | CODE |
| LOW | slime/utils/http_utils.py | 65 | except Exception: | CODE |
| LOW | slime/utils/http_utils.py | 80 | except Exception: | CODE |
| LOW | slime/utils/http_utils.py | 124 | except Exception as e: | CODE |
| LOW | slime/utils/http_utils.py | 159 | except Exception as e: | CODE |
| LOW | slime/utils/http_utils.py | 287 | except Exception as e: | CODE |
| MEDIUM | slime/utils/http_utils.py | 116 | def run_router(args): | CODE |
| LOW | slime/utils/accelerator/__init__.py | 79 | except Exception as exc: | CODE |
| LOW | slime/agent/parsing.py | 77 | except Exception: | CODE |
| LOW | slime/agent/sandbox.py | 250 | except Exception as e: | CODE |
| LOW | slime/agent/sandbox.py | 278 | except Exception as e: | CODE |
| LOW | slime/agent/sandbox.py | 306 | except Exception as e: | CODE |
| LOW | slime/agent/sandbox.py | 386 | except Exception: | CODE |
| MEDIUM | slime/agent/sandbox.py | 302 | def __aexit__(self, exc_type, exc, tb) -> None: | CODE |
| LOW | slime/agent/aiohttp_threaded.py | 40 | except Exception: | CODE |
| LOW | slime/agent/adapters/common.py | 242 | except Exception: | CODE |
| LOW | slime/agent/adapters/common.py | 315 | except Exception: | CODE |
| LOW | slime/agent/adapters/common.py | 509 | except Exception: | CODE |
| LOW⚡ | slime/observability/trace_utils.py | 399 | except Exception as exc: | CODE |
| LOW⚡ | slime/observability/trace_utils.py | 409 | except Exception as trace_exc: | CODE |
| LOW⚡ | slime/observability/trace_utils.py | 415 | except Exception as exc: | CODE |
| LOW⚡ | slime/observability/trace_utils.py | 420 | except Exception as exc: | CODE |
| LOW⚡ | slime/observability/trace_utils.py | 424 | except Exception as exc: | CODE |
| LOW | slime/observability/trace_utils.py | 93 | except Exception as exc: | CODE |
| LOW | slime/observability/trace_utils.py | 156 | except Exception as exc: | CODE |
| LOW | slime/observability/trace_utils.py | 252 | except Exception as exc: | CODE |
| LOW | slime/observability/trace_utils.py | 282 | except Exception as exc: | CODE |
| LOW | slime/observability/trace_utils.py | 299 | except Exception as exc: | CODE |
| LOW | slime/observability/trace_utils.py | 321 | except Exception as exc: | CODE |
| LOW | slime/observability/trace_utils.py | 340 | except Exception as exc: | CODE |
| 79 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/convert_torch_dist_to_hf_parallel.py | 57 | CODE | |
| LOW | tools/convert_torch_dist_to_hf_parallel.py | 84 | CODE | |
| LOW | tools/convert_torch_dist_to_hf_parallel.py | 165 | CODE | |
| LOW | tools/convert_torch_dist_to_hf_parallel.py | 60 | CODE | |
| LOW | tools/convert_torch_dist_to_hf_parallel.py | 170 | CODE | |
| LOW | tools/analyze_profile.py | 184 | CODE | |
| LOW | tools/analyze_profile.py | 338 | CODE | |
| LOW | tools/trace_timeline_viewer.py | 168 | CODE | |
| LOW | tools/convert_k2_thinking_int4_to_bf16.py | 99 | CODE | |
| LOW | tools/fp8_cast_bf16.py | 44 | CODE | |
| LOW | tools/convert_torch_dist_to_hf.py | 106 | CODE | |
| LOW | tools/convert_to_hf.py | 28 | CODE | |
| LOW | slime/backends/megatron_utils/stateless_adam.py | 68 | CODE | |
| LOW | slime/backends/megatron_utils/model.py | 348 | CODE | |
| LOW | slime/backends/megatron_utils/model.py | 710 | CODE | |
| LOW | slime/backends/megatron_utils/model.py | 94 | CODE | |
| LOW | slime/backends/megatron_utils/loss.py | 97 | CODE | |
| LOW | slime/backends/megatron_utils/loss.py | 432 | CODE | |
| LOW | slime/backends/megatron_utils/loss.py | 704 | CODE | |
| LOW | slime/backends/megatron_utils/model_provider.py | 92 | CODE | |
| LOW | slime/backends/megatron_utils/model_provider.py | 269 | CODE | |
| LOW | slime/backends/megatron_utils/model_provider.py | 118 | CODE | |
| LOW | slime/backends/megatron_utils/ci_utils.py | 11 | CODE | |
| LOW | slime/backends/megatron_utils/actor.py | 275 | CODE | |
| LOW | slime/backends/megatron_utils/actor.py | 391 | CODE | |
| LOW | slime/backends/megatron_utils/data.py | 14 | CODE | |
| LOW | slime/backends/megatron_utils/server/megatron_server.py | 672 | CODE | |
| LOW | slime/backends/megatron_utils/server/logprob_utils.py | 303 | CODE | |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 470 | CODE | |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 642 | CODE | |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 3100 | CODE | |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 910 | CODE | |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 2253 | CODE | |
| LOW | …/backends/megatron_utils/alignment/deepgemm_forward.py | 1057 | CODE | |
| LOW | …atron_utils/update_weight/update_weight_from_tensor.py | 360 | CODE | |
| LOW | …atron_utils/update_weight/update_weight_from_tensor.py | 194 | CODE | |
| LOW | slime/backends/megatron_utils/update_weight/common.py | 59 | CODE | |
| LOW | slime/backends/megatron_utils/update_weight/common.py | 129 | CODE | |
| LOW | …atron_utils/update_weight/hf_weight_iterator_direct.py | 174 | CODE | |
| LOW | …ime/backends/megatron_utils/megatron_to_hf/qwen3_vl.py | 5 | CODE | |
| LOW | …e/backends/megatron_utils/megatron_to_hf/minimax_m2.py | 6 | CODE | |
| LOW | …ime/backends/megatron_utils/megatron_to_hf/__init__.py | 34 | CODE | |
| LOW | …ime/backends/megatron_utils/megatron_to_hf/qwen3moe.py | 6 | CODE | |
| LOW | slime/backends/megatron_utils/megatron_to_hf/llama.py | 5 | CODE | |
| LOW | slime/backends/megatron_utils/megatron_to_hf/qwen3_5.py | 34 | CODE | |
| LOW | slime/backends/megatron_utils/megatron_to_hf/glm4.py | 5 | CODE | |
| LOW | …e/backends/megatron_utils/megatron_to_hf/deepseekv3.py | 6 | CODE | |
| LOW | slime/backends/megatron_utils/megatron_to_hf/glm4moe.py | 6 | CODE | |
| LOW | …e/backends/megatron_utils/megatron_to_hf/qwen3_next.py | 44 | CODE | |
| LOW | slime/backends/megatron_utils/megatron_to_hf/qwen2.py | 5 | CODE | |
| LOW | …atron_utils/megatron_to_hf/processors/quantizer_fp8.py | 10 | CODE | |
| LOW | slime/backends/sglang_utils/deployment.py | 79 | CODE | |
| LOW | slime/backends/sglang_utils/sglang_engine.py | 67 | CODE | |
| LOW | slime/backends/sglang_utils/sglang_engine.py | 296 | CODE | |
| LOW | slime/backends/sglang_utils/engine_group.py | 390 | CODE | |
| LOW | slime/backends/sglang_utils/engine_group.py | 263 | CODE | |
| LOW | slime/utils/arguments.py | 1650 | CODE | |
| LOW | slime/utils/arguments.py | 1771 | CODE | |
| LOW | slime/utils/processing_utils.py | 100 | CODE | |
| LOW | slime/utils/routing_replay.py | 171 | CODE | |
| 57 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | slime/backends/megatron_utils/checkpoint.py | 90 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/backends/megatron_utils/checkpoint.py | 92 | __all__ = ["save_checkpoint"] | CODE |
| LOW | slime/backends/megatron_utils/initialize.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | slime/backends/megatron_utils/arguments.py | 13 | __all__ = ["validate_args", "megatron_parse_args", "set_default_megatron_args"] | CODE |
| LOW⚡ | slime/backends/megatron_utils/arguments.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | slime/backends/megatron_utils/model.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/backends/megatron_utils/ci_utils.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/backends/megatron_utils/hf_checkpoint_saver.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/backends/megatron_utils/actor.py | 53 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/backends/megatron_utils/actor.py | 563 | def update_weights(self) -> None: | CODE |
| LOW | slime/backends/megatron_utils/sglang.py | 24 | __all__ = [ | CODE |
| LOW | slime/backends/megatron_utils/server/__init__.py | 9 | __all__ = [ | CODE |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ckends/megatron_utils/alignment/layerwise_alignment.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/backends/megatron_utils/alignment/deepgemm_forward.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | …egatron_utils/update_weight/update_weight_from_disk.py | 66 | def update_weights(self) -> None: | CODE |
| LOW | …ackends/megatron_utils/update_weight/expert_routing.py | 14 | __all__ = ["configure_expert_routing"] | CODE |
| LOW | …ackends/megatron_utils/update_weight/expert_routing.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | …atron_utils/update_weight/update_weight_from_tensor.py | 278 | def update_weights(self) -> None: | CODE |
| LOW | …n_utils/update_weight/update_weight_from_disk_delta.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | …n_utils/update_weight/update_weight_from_disk_delta.py | 84 | def update_weights(self) -> None: | CODE |
| LOW | …_utils/update_weight/update_weight_from_distributed.py | 102 | def update_weights(self) -> None: | CODE |
| LOW | …atron_to_hf/processors/quantizer_compressed_tensors.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | …atron_to_hf/processors/quantizer_compressed_tensors.py | 18 | __all__ = ["quantize_params_compressed_tensors"] | CODE |
| LOW | …s/megatron_utils/megatron_to_hf/processors/__init__.py | 3 | __all__ = ["quantize_params", "remove_padding"] | CODE |
| LOW | slime/backends/sglang_utils/server_control.py | 7 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/backends/sglang_utils/deployment.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/backends/sglang_utils/sglang_engine.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/backends/sglang_utils/arguments.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/backends/sglang_utils/engine_group.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/backends/sglang_utils/external.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/backends/sglang_utils/disaggregation.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | slime/backends/sglang_utils/sglang_config.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/utils/reloadable_process_group.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/utils/async_utils.py | 4 | __all__ = ["get_async_loop", "run"] | CODE |
| LOW | slime/utils/dp_schedule.py | 48 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/utils/arguments.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/utils/processing_utils.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/utils/health_monitor.py | 6 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/utils/http_utils.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/utils/data.py | 19 | __all__ = ["Dataset", "get_source"] | CODE |
| LOW | slime/utils/data.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/utils/memory_utils.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/utils/accelerator/__init__.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/utils/accelerator/__init__.py | 221 | def set_accelerator(accelerator: Accelerator) -> None: | CODE |
| LOW | slime/utils/accelerator/__init__.py | 258 | def set_device(index: int | str | torch.device) -> None: | CODE |
| LOW | slime/utils/accelerator/__init__.py | 356 | def set_rng_state(state: torch.Tensor, device_arg: int | str | torch.device | None = None) -> None: | CODE |
| LOW | slime/utils/accelerator/base.py | 37 | def set_device(self, index: int | str | torch.device) -> None: | CODE |
| LOW | slime/utils/accelerator/base.py | 127 | def set_rng_state(self, state: torch.Tensor, device: int | str | torch.device | None = None) -> None: | CODE |
| LOW | slime/utils/accelerator/torch_accelerator.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/utils/accelerator/torch_accelerator.py | 42 | def set_device(self, index: int | str | torch.device) -> None: | CODE |
| LOW | slime/utils/accelerator/torch_accelerator.py | 144 | def set_rng_state(self, state: torch.Tensor, device: int | str | torch.device | None = None) -> None: | CODE |
| LOW | slime/agent/parsing.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | slime/agent/trajectory.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/agent/trajectory.py | 505 | __all__ = [ | CODE |
| LOW | slime/agent/sandbox.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/agent/adapters/__init__.py | 7 | __all__ = ["AnthropicAdapter", "BaseAdapter", "OpenAIAdapter"] | CODE |
| LOW | slime/agent/adapters/openai.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | slime/agent/adapters/common.py | 30 | __all__ = ["TurnRecord"] | CODE |
| LOW | slime/agent/adapters/anthropic.py | 36 | logger = logging.getLogger(__name__) | CODE |
| 45 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/trace_timeline_viewer.py | 9 | CODE | |
| LOW | slime/backends/megatron_utils/checkpoint.py | 8 | CODE | |
| LOW | slime/backends/megatron_utils/sglang.py | 16 | CODE | |
| LOW | slime/backends/megatron_utils/sglang.py | 11 | CODE | |
| LOW | slime/backends/megatron_utils/sglang.py | 20 | CODE | |
| LOW | slime/backends/megatron_utils/sglang.py | 13 | CODE | |
| LOW | slime/backends/megatron_utils/sglang.py | 22 | CODE | |
| LOW | slime/backends/megatron_utils/server/__init__.py | 3 | CODE | |
| LOW | slime/backends/megatron_utils/server/__init__.py | 3 | CODE | |
| LOW | slime/backends/megatron_utils/server/__init__.py | 3 | CODE | |
| LOW | slime/backends/megatron_utils/alignment/env.py | 10 | CODE | |
| LOW | …kends/megatron_utils/alignment/deepgemm_moe_forward.py | 14 | CODE | |
| LOW | …ckends/megatron_utils/alignment/layerwise_alignment.py | 3 | CODE | |
| LOW | …/backends/megatron_utils/alignment/deepgemm_forward.py | 15 | CODE | |
| LOW | …egatron_utils/alignment/deterministic_route_kernels.py | 8 | CODE | |
| LOW | …egatron_utils/update_weight/update_weight_from_disk.py | 1 | CODE | |
| LOW | slime/backends/megatron_utils/update_weight/__init__.py | 1 | CODE | |
| LOW | …n_utils/update_weight/update_weight_from_disk_delta.py | 1 | CODE | |
| LOW | …_utils/update_weight/update_weight_from_distributed.py | 1 | CODE | |
| LOW | …s/megatron_utils/megatron_to_hf/processors/__init__.py | 1 | CODE | |
| LOW | slime/backends/megatron_utils/hf_to_megatron/glm.py | 1 | CODE | |
| LOW | slime/backends/megatron_utils/hf_to_megatron/qwen3_5.py | 1 | CODE | |
| LOW | slime/backends/megatron_utils/hf_to_megatron/common.py | 1 | CODE | |
| LOW | slime/backends/megatron_utils/hf_to_megatron/qwen.py | 1 | CODE | |
| LOW | …ime/backends/megatron_utils/hf_to_megatron/deepseek.py | 1 | CODE | |
| LOW | …e/backends/megatron_utils/hf_to_megatron/qwen3_next.py | 1 | CODE | |
| LOW | slime/backends/sglang_utils/external.py | 3 | CODE | |
| LOW | slime/utils/dp_schedule.py | 40 | CODE | |
| LOW | slime/utils/eval_config.py | 1 | CODE | |
| LOW | slime/utils/disk_delta.py | 1 | CODE | |
| LOW | slime/utils/accelerator/__init__.py | 8 | CODE | |
| LOW | slime/utils/accelerator/musa.py | 7 | CODE | |
| LOW | slime/utils/accelerator/cuda.py | 3 | CODE | |
| LOW | slime/utils/accelerator/base.py | 8 | CODE | |
| LOW | slime/utils/accelerator/torch_accelerator.py | 3 | CODE | |
| LOW | slime/agent/parsing.py | 3 | CODE | |
| LOW | slime/agent/trajectory.py | 10 | CODE | |
| LOW | slime/agent/sandbox.py | 9 | CODE | |
| LOW | slime/agent/aiohttp_threaded.py | 3 | CODE | |
| LOW | slime/agent/adapters/__init__.py | 3 | CODE | |
| LOW | slime/agent/adapters/__init__.py | 4 | CODE | |
| LOW | slime/agent/adapters/__init__.py | 5 | CODE | |
| LOW | slime/agent/adapters/openai.py | 15 | CODE | |
| LOW | slime/agent/adapters/common.py | 13 | CODE | |
| LOW | slime/agent/adapters/anthropic.py | 17 | CODE | |
| LOW | slime/agent/harness/codex.py | 8 | CODE | |
| LOW | slime/agent/harness/__init__.py | 3 | CODE | |
| LOW | slime/agent/harness/__init__.py | 5 | CODE | |
| LOW | slime/agent/harness/__init__.py | 6 | CODE | |
| LOW | slime/agent/harness/__init__.py | 7 | CODE | |
| LOW | slime/agent/harness/__init__.py | 7 | CODE | |
| LOW | slime/agent/harness/common.py | 16 | CODE | |
| LOW | slime/agent/harness/claude_code.py | 3 | CODE | |
| LOW | slime/observability/trace_utils.py | 1 | CODE | |
| LOW | slime/rollout/sample_hooks.py | 1 | CODE | |
| LOW | slime/rollout/fully_async_rollout.py | 26 | CODE | |
| LOW | slime/rollout/rm_hub/ifbench.py | 1 | CODE | |
| LOW | tests/test_filter_long_prompt.py | 14 | CODE | |
| LOW | tests/test_block_fp8_zero_block.py | 12 | CODE | |
| LOW | tests/test_rm_gpqa.py | 23 | CODE | |
| 48 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | slime/utils/ppo_utils.py | 413 | # Step 3: Compute returns on full response kl tensor. | COMMENT |
| LOW⚡ | tests/ci/README.md | 11 | ### Step 1: Env | COMMENT |
| LOW⚡ | tests/ci/README.md | 18 | ### Step 2: Prepare `/home/runner/externals` | COMMENT |
| LOW⚡ | tests/ci/README.md | 28 | ### Step 3: Run | COMMENT |
| LOW | .claude/skills/add-rollout-function/SKILL.md | 20 | ### Step 1: Choose the Right Starting Point | COMMENT |
| LOW | .claude/skills/add-rollout-function/SKILL.md | 30 | ### Step 2: Create the New Rollout Module | COMMENT |
| LOW | .claude/skills/add-rollout-function/SKILL.md | 43 | ### Step 3: Implement Train and Eval Branches Explicitly | COMMENT |
| LOW | .claude/skills/add-rollout-function/SKILL.md | 70 | ### Step 4: Keep Data Contract Compatible | COMMENT |
| LOW | .claude/skills/add-rollout-function/SKILL.md | 81 | ### Step 5: Wire Through Arguments | COMMENT |
| LOW | .claude/skills/add-reward-function/SKILL.md | 20 | ### Step 1: Choose Reward Mode | COMMENT |
| LOW | .claude/skills/add-reward-function/SKILL.md | 29 | ### Step 2: Create Reward Module | COMMENT |
| LOW | .claude/skills/add-reward-function/SKILL.md | 47 | ### Step 3: Keep Reward Type Consistent | COMMENT |
| LOW | .claude/skills/add-reward-function/SKILL.md | 53 | ### Step 4: Optional Reward Post-Processing | COMMENT |
| LOW | .claude/skills/add-reward-function/SKILL.md | 71 | ### Step 5: Wire and Validate | COMMENT |
| LOW | .claude/skills/add-eval-dataset-config/SKILL.md | 20 | ### Step 1: Choose Config Entry Method | COMMENT |
| LOW | .claude/skills/add-eval-dataset-config/SKILL.md | 29 | ### Step 2: Build YAML with Required Fields | COMMENT |
| LOW | .claude/skills/add-eval-dataset-config/SKILL.md | 54 | ### Step 3: Understand Override Priority | COMMENT |
| LOW | .claude/skills/add-eval-dataset-config/SKILL.md | 68 | ### Step 4: Wire Eval Function if Needed | COMMENT |
| LOW | .claude/skills/add-eval-dataset-config/SKILL.md | 73 | ### Step 5: Validate Parsing and Runtime | COMMENT |
| LOW | .claude/skills/add-tests-and-ci/SKILL.md | 21 | ### Step 1: Pick the Right Test Pattern | COMMENT |
| LOW | .claude/skills/add-tests-and-ci/SKILL.md | 27 | ### Step 2: Keep CI Compatibility | COMMENT |
| LOW | .claude/skills/add-tests-and-ci/SKILL.md | 43 | ### Step 3: Register Tests in GitHub CI | COMMENT |
| LOW | .claude/skills/add-tests-and-ci/SKILL.md | 60 | ### Step 4: Run Local Validation | COMMENT |
| LOW | .claude/skills/add-tests-and-ci/SKILL.md | 67 | ### Step 5: Keep Workflow Template as Source of Truth | COMMENT |
| LOW | .claude/skills/add-tests-and-ci/SKILL.md | 80 | ### Step 6: Provide Verifiable PR Notes | COMMENT |
| LOW | .claude/skills/add-dynamic-filter/SKILL.md | 21 | ### Step 1: Pick the Correct Hook | COMMENT |
| LOW | .claude/skills/add-dynamic-filter/SKILL.md | 28 | ### Step 2: Implement the Function Signature | COMMENT |
| LOW | .claude/skills/add-dynamic-filter/SKILL.md | 66 | ### Step 3: Preserve Group Structure | COMMENT |
| LOW | .claude/skills/add-dynamic-filter/SKILL.md | 72 | ### Step 4: Wire and Validate | COMMENT |
| LOW | .claude/skills/add-dynamic-filter/SKILL.md | 83 | ### Step 5: Measure Side Effects | COMMENT |
| LOW | docs/en/advanced/sglang-config.md | 267 | # Step 1: Launch SGLang engines externally | COMMENT |
| LOW | docs/en/advanced/sglang-config.md | 271 | # Step 2: Connect slime to external engines | COMMENT |
| LOW | examples/search-r1/README.md | 187 | ### Step 1: Install Conda | COMMENT |
| LOW | examples/search-r1/README.md | 204 | ### Step 2: Create Retriever Environment | COMMENT |
| LOW | examples/search-r1/README.md | 222 | ### Step 3: Download Index and Corpus | COMMENT |
| LOW | examples/search-r1/README.md | 240 | ### Step 4: Start Local Retrieval Server | COMMENT |
| LOW | examples/search-r1/README.md | 275 | ### Step 5: Start Training | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | slime/backends/megatron_utils/model_provider.py | 157 | # Define the decoder block spec | COMMENT |
| MEDIUM | slime/backends/megatron_utils/model_provider.py | 165 | # Define the decoder layer spec | COMMENT |
| MEDIUM | slime/utils/async_utils.py | 7 | # Create a background event loop thread | COMMENT |
| MEDIUM | slime/utils/http_utils.py | 236 | # Define the async actor | COMMENT |
| MEDIUM | slime/rollout/rm_hub/__init__.py | 73 | # This function is intended for remote or time-consuming reward model evaluation. | COMMENT |
| MEDIUM | docs/build_all.sh | 11 | # Create a lightweight root index with auto redirect based on localStorage (done client side) | COMMENT |
| MEDIUM | examples/tau-bench/trainable_agents.py | 213 | # Initialize tracking variables | COMMENT |
| MEDIUM | examples/strands_sglang/subprocess_interpreter.py | 186 | # Create a temporary file with the modified source | STRING |
| MEDIUM | examples/strands_sglang/subprocess_interpreter.py | 352 | # Create a temporary directory first to ensure we have write | STRING |
| MEDIUM | .github/workflows/pr-test.yml | 2 | # This file is auto-generated from the .j2 file via generate_github_workflows.py. Do not edit manually. | COMMENT |
| MEDIUM | .github/workflows/generate_github_workflows.py | 27 | + "\n# This file is auto-generated from the .j2 file via generate_github_workflows.py. Do not edit manua | CODE |
| MEDIUM | slime_plugins/models/qwen3_5.py | 203 | # Define the decoder block spec | COMMENT |
| MEDIUM | slime_plugins/models/qwen3_next.py | 215 | # Define the decoder block spec | COMMENT |
| MEDIUM | slime_plugins/models/glm5/glm5.py | 1015 | # Define the decoder block spec | COMMENT |
| MEDIUM | …ime_plugins/rollout_buffer/generator/base_generator.py | 53 | # Create a fresh payload for each attempt | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …atron_utils/megatron_to_hf/processors/quantizer_fp8.py | 115 | # for other parameters, we just return the original converted_named_params | COMMENT |
| LOW | slime/backends/sglang_utils/engine_group.py | 162 | # this group's engines may land on (conservative: just use global max). | COMMENT |
| MEDIUM | slime/rollout/rm_hub/math_dapo_utils.py | 14 | # Adapted from https://github.com/EleutherAI/lm-evaluation-harness/blob/main/lm_eval/tasks/hendrycks_math/utils.py | COMMENT |
| MEDIUM⚡ | tests/test_agent/test_harness.py | 207 | # §5 harness.run wires the steps in order | COMMENT |
| MEDIUM⚡ | examples/coding_agent_rl/swe.py | 175 | # Workspace prep (agent sandbox, before harness.run) | COMMENT |
| MEDIUM⚡ | examples/coding_agent_rl/swe.py | 228 | # Diff capture (agent sandbox, after harness.run) | COMMENT |
| MEDIUM | examples/coding_agent_rl/swe.py | 355 | # Mirror of swebench.harness.run_evaluation.GIT_APPLY_CMDS: try each in order, | COMMENT |
| MEDIUM | examples/retool/generate_with_retool.py | 100 | # Use a more robust regex that handles nested braces | COMMENT |
| MEDIUM | examples/retool/generate_with_retool.py | 370 | # collapse), but reward_func's regex is whitespace-robust and | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 118 | [**Dressage**](https://github.com/Accio-Lab/Dressage) is an agentic RL training framework built on slime by [Alibaba Acc | CODE |
| MEDIUM | README.md | 130 | [**Relax**](https://github.com/redai-infra/Relax) (Reinforcement Engine Leveraging Agentic X-modality) is an omni-modal | CODE |
| MEDIUM | README_zh.md | 120 | [**Dressage**](https://github.com/Accio-Lab/Dressage) 是 [Alibaba Accio](https://www.accio.com/work?im_ref=1O8wgT3poxyZWC | CODE |
| MEDIUM | README_zh.md | 132 | [**Relax**](https://github.com/redai-infra/Relax) (Reinforcement Engine Leveraging Agentic X-modality) 是 RedAI Infra 团队开 | CODE |
| MEDIUM | tests/test_qwen3_4B_streaming_partial_rollout.py | 36 | # loop is still the stock sglang one (semaphore, abort orchestration). | COMMENT |
| MEDIUM | docs/zh/get_started/customization.md | 12 | | [`--custom-generate-function-path`](#custom-generate-function-path) | 仅覆盖生成步骤(例如用于 RAG 或工具调用)。 | | CODE |
| MEDIUM | docs/zh/get_started/customization.md | 32 | ## 通过 customization 接口实现 agentic workflow | COMMENT |
| MEDIUM | docs/en/get_started/customization.md | 12 | | [`--custom-generate-function-path`](#custom-generate-function-path) | Override only the generation step (e.g., for RAG | CODE |
| MEDIUM | examples/multi_agent/run-qwen3-30B-A3B-multi-agent.sh | 57 | # multi-agent do not support eval for now | COMMENT |
| MEDIUM | examples/tau-bench/README.md | 50 | "agent_strategy": "tool-calling", # Select between ["tool-calling", "act", "react", "few-shot"], only tool-calling | CODE |
| MEDIUM | examples/tau-bench/generate_with_tau.py | 25 | "agent_strategy": "tool-calling", # Select between ["tool-calling", "act", "react", "few-shot"] | CODE |
| MEDIUM | examples/strands_sglang/README.md | 3 | This example connects `slime` with [`strands-sglang`](https://github.com/horizon-rl/strands-sglang) (SGLang extension fo | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | slime/backends/sglang_utils/sglang_engine.py | 224 | Run /health_generate on the underlying SGLang HTTP server. Args: timeout: Timeout for the health re | STRING |
| HIGH | examples/tau-bench/openai_tool_adapter.py | 52 | Parse sglang response to OpenAI compatible format Args: response: Raw response text from s | STRING |
| HIGH | examples/tau-bench/generate_with_tau.py | 101 | Generate a complete agent-environment interaction trajectory for tau-bench. This is the main entry point for s | STRING |
| HIGH | examples/strands_sglang/subprocess_interpreter.py | 286 | Generates a temporary file with the given code, executes it, and deletes the file afterward. Args: | STRING |
| HIGH | examples/strands_sglang/subprocess_interpreter.py | 440 | Executes a shell command in a subprocess and captures its output. Args: command (str): The shell co | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/convert_torch_dist_to_hf_parallel.py | 475 | # Check if this is a linear_q_down_proj or linear_kv_down_proj key | COMMENT |
| LOW | slime/backends/megatron_utils/model.py | 552 | # Set grad to zero. | COMMENT |
| LOW | slime/backends/megatron_utils/model_provider.py | 103 | # Check if the custom provider supports vp_stage parameter | COMMENT |
| LOW | slime/backends/megatron_utils/model_provider.py | 192 | # Check if fp8_model_init supports preserve_high_precision_init_val | COMMENT |
| LOW | examples/tau-bench/trainable_agents.py | 326 | # Check if done | COMMENT |
| LOW | examples/strands_sglang/subprocess_interpreter.py | 195 | # Check if command is available | STRING |
| LOW | examples/strands_sglang/subprocess_interpreter.py | 208 | # Check if command is available | STRING |
| LOW | examples/search-r1/qa_em_format.py | 86 | # Check if this is a tag | COMMENT |
| LOW | examples/retool/tool_sandbox.py | 242 | # Return result | COMMENT |
| LOW | examples/retool/generate_with_retool.py | 250 | # Check if total length exceeds max context length | COMMENT |
| LOW | examples/retool/generate_with_retool.py | 352 | # Check if maximum tool call count reached | COMMENT |
| LOW | slime_plugins/rollout_buffer/buffer.py | 77 | # Check if module has TASK_TYPE constant | COMMENT |
| LOW | slime_plugins/rollout_buffer/buffer.py | 82 | # Check if module has run_rollout function | COMMENT |
| LOW | …ime_plugins/rollout_buffer/generator/base_generator.py | 216 | # Check if instance_id should be skipped | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | build_conda.sh | 161 | # --no-build-isolation: setup.py builds a C++ extension (megatron.core.datasets.helpers_cpp) | COMMENT |
| LOW | slime/utils/seqlen_balancing.py | 1 | # Copied from https://github.com/volcengine/verl/blob/468adf22c43b744348051fccd7a5d830c6c3c36a/verl/utils/seqlen_balanci | COMMENT |
| LOW | slime/rollout/rm_hub/math_dapo_utils.py | 1 | # Copyright 2024 Bytedance Ltd. and/or its affiliates | COMMENT |
| LOW | tests/test_loss_cp_invariance.py | 161 | COMMENT | |
| LOW | tests/_cp_dist_helpers.py | 41 | import sys | COMMENT |
| LOW | tests/_cp_dist_helpers.py | 141 | # tests and the backward-grad-norm test. Keeping the data in one place so | COMMENT |
| LOW | examples/delta_weight_sync/run-glm4.7-30B-A3B-delta.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/train_infer_mismatch_helper/mis.yaml | 1 | # Enable importance sampling, details refer to the comments of compute_mis_weights in mis.py | COMMENT |
| LOW | examples/strands_sglang/subprocess_interpreter.py | 1 | # Copyright 2025-2026 Strands RL Contributors | COMMENT |
| LOW | examples/search-r1/qa_em_format.py | 1 | # Adapt from https://github.com/PeterGriffinJin/Search-R1/blob/ceee7b89655ed52f205b9beb98e1190c3eedcfb0/verl/utils/rewar | COMMENT |
| LOW | …es/search-r1/local_dense_retriever/retrieval_server.py | 1 | # Copyright 2024 Bytedance Ltd. and/or its affiliates | COMMENT |
| LOW | examples/search-r1/local_dense_retriever/download.py | 1 | # Copyright 2024 Bytedance Ltd. and/or its affiliates | COMMENT |
| LOW | examples/retool/generate_with_retool.py | 361 | # Tool output is appended verbatim and can push total_length past | COMMENT |
| LOW | scripts/run-qwen2.5-0.5B-gb10-smoke.sh | 1 | #!/bin/bash | COMMENT |
| LOW | scripts/low_precision/run-qwen3-30b-a3b-fp8.sh | 1 | #!/bin/bash | COMMENT |
| LOW | slime_plugins/models/glm5/glm5.py | 121 | with torch.no_grad(): | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/convert_hf_to_int4_direct.py | 120 | CODE | |
| LOW | slime/backends/megatron_utils/stateless_adam.py | 16 | CODE | |
| LOW | …atron_to_hf/processors/quantizer_compressed_tensors.py | 225 | CODE | |
| LOW | slime/utils/http_utils.py | 299 | CODE | |
| LOW | slime/utils/distributed_utils.py | 55 | CODE | |
| LOW | slime/utils/data.py | 215 | CODE | |
| LOW | examples/tau-bench/openai_tool_adapter.py | 109 | CODE | |
| LOW | …es/search-r1/local_dense_retriever/retrieval_server.py | 290 | CODE | |
| LOW | examples/retool/tool_sandbox.py | 356 | CODE | |
| LOW | slime_plugins/models/qwen3_5_vl.py | 205 | CODE | |
| LOW | slime_plugins/models/qwen3_5.py | 153 | CODE | |
| LOW | slime_plugins/models/hf_attention.py | 88 | CODE | |
| LOW | slime_plugins/models/qwen3_next.py | 175 | CODE | |
| LOW | slime_plugins/models/glm5/glm5.py | 413 | CODE | |
| LOW | …ime_plugins/models/glm5/ops/tilelang_sparse_mla_bwd.py | 84 | CODE | |
| LOW | slime_plugins/rollout_buffer/buffer.py | 116 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_qwen3_4B_ppo_train_critic_only.py | 0 | megatron: - name: default role: critic overrides: lr: 1e-5 - name: default role: actor overrides: lr: 1e-6 | STRING |
| HIGH | tests/test_qwen3_4B_ppo.py | 0 | megatron: - name: default role: critic overrides: lr: 1e-5 - name: default role: actor overrides: lr: 1e-6 | STRING |
| HIGH | tests/test_qwen3_4B_ppo_disaggregate.py | 0 | megatron: - name: default role: critic overrides: lr: 1e-5 - name: default role: actor overrides: lr: 1e-6 | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | slime/backends/sglang_utils/engine_group.py | 33 | worker_type: str = "regular" # "regular", "prefill", "decode", or "placeholder" | CODE |
| LOW | slime/backends/sglang_utils/engine_group.py | 72 | Placeholder groups (worker_type="placeholder") skip engine creation entirely. | STRING |
| LOW | slime/backends/sglang_utils/engine_group.py | 76 | if self.args.debug_train_only or self.worker_type == "placeholder": | CODE |
| LOW | slime/backends/sglang_utils/engine_group.py | 258 | values = {g.nodes_per_engine for g in self.server_groups if g.worker_type != "placeholder"} | CODE |
| LOW | slime/backends/sglang_utils/engine_group.py | 373 | all_engines=[None] * num_engines if group_config.worker_type != "placeholder" else [], | CODE |
| LOW⚡ | slime/backends/sglang_utils/sglang_config.py | 16 | worker_type: One of "regular", "prefill", "decode", "placeholder", | STRING |
| LOW⚡ | slime/backends/sglang_utils/sglang_config.py | 18 | "placeholder" reserves GPU slots without creating engines. | STRING |
| LOW | slime/backends/sglang_utils/sglang_config.py | 37 | valid_types = {"regular", "prefill", "decode", "placeholder", "encoder"} | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | slime/rollout/on_policy_distillation.py | 64 | # If you have task rewards, you can add them here. | COMMENT |
| MEDIUM | examples/on_policy_distillation/run-qwen3-8B-opd.sh | 9 | TEACHER_IP="127.0.0.1" # Use localhost here, you can change it to your IP | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | slime/utils/ppo_utils.py | 413 | # Step 3: Compute returns on full response kl tensor. | COMMENT |