Repository Analysis

THUDM/slime

slime is an LLM post-training framework for RL Scaling.

24.0 Moderate AI signal View on GitHub

Analysis Overview

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).

24.0
Adjusted Score
24.0
Raw Score
100%
Time Factor
2026-08-28
Last Push
8.3K
Stars
Python
Language
99.1K
Lines of Code
540
Files
1.5K
Pattern Hits
2026-08-29
Scan Date
0.20
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 108MEDIUM 193LOW 1206

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 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.

Hyper-Verbose Identifiers660 hits · 692 pts
SeverityFileLineSnippetContext
LOWtools/convert_torch_dist_to_hf_parallel.py60 def collect_from_storage_metadata(storage_item, base_path=""):CODE
LOWtools/trace_timeline_viewer.py55def _make_dummy_pickle_global(module_name: str, name: str) -> type[_MissingPickleObject]:CODE
LOWtools/trace_timeline_viewer.py330 def nearest_closed_ancestor_end(span: dict[str, Any]) -> float | None:CODE
LOWtools/convert_hf_to_int4_direct.py78def round_to_quantized_type_dtype(CODE
LOWslime/backends/megatron_utils/checkpoint.py29 def _init_from_local_shards_and_global_metadata( # type: ignore[override]CODE
LOWslime/backends/megatron_utils/arguments.py24def _is_allgather_cp_dsa_model(hf_config):CODE
LOWslime/backends/megatron_utils/arguments.py32def _validate_allgather_cp_supported(args, hf_config=None):CODE
LOWslime/backends/megatron_utils/arguments.py151def _set_default_megatron_args(args):CODE
LOWslime/backends/megatron_utils/model.py43def _disable_tqdm_for_non_main_rank() -> bool:CODE
LOWslime/backends/megatron_utils/model.py51def _should_update_microbatch_pbar(model) -> bool:CODE
LOWslime/backends/megatron_utils/model.py63def _wrap_forward_step_with_microbatch_pbar(forward_step_func, pbar):CODE
LOWslime/backends/megatron_utils/model.py77def _with_rollout_top_p_token_keys(args: Namespace, keys: Sequence[str]) -> list[str]:CODE
LOWslime/backends/megatron_utils/model.py83def _iter_critic_output_layers(model: Sequence[DDP]):CODE
LOWslime/backends/megatron_utils/model.py94 def get_load_checkpoint_path_by_args(args, load_arg="load"):CODE
LOWslime/backends/megatron_utils/model.py124def _critic_output_layer_needs_reinit(args: Namespace, model: Sequence[DDP], role: str) -> bool:CODE
LOWslime/backends/megatron_utils/model.py171def _reinitialize_critic_output_layer(args: Namespace, model: Sequence[DDP]) -> None:CODE
LOWslime/backends/megatron_utils/model.py181def get_optimizer_param_scheduler(args: Namespace, optimizer: MegatronOptimizer) -> OptimizerParamScheduler:CODE
LOWslime/backends/megatron_utils/model.py241def _disable_distributed_optimizer_state_initialization(optimizer: MegatronOptimizer) -> None:CODE
LOWslime/backends/megatron_utils/model.py269def setup_model_and_optimizer(CODE
LOWslime/backends/megatron_utils/model.py705def should_disable_forward_pre_hook(args: Namespace) -> bool:CODE
LOWslime/backends/megatron_utils/model.py977def initialize_model_and_optimizer(CODE
LOWslime/backends/megatron_utils/loss.py83def get_rollout_top_p_logprob_kwargs(args: Namespace, batch: dict[str, Any]) -> dict[str, Any]:CODE
LOWslime/backends/megatron_utils/loss.py194def _allgather_cp_redistribute(CODE
LOWslime/backends/megatron_utils/loss.py513def get_log_probs_and_entropy(CODE
LOWslime/backends/megatron_utils/loss.py663def apply_opd_kl_to_advantages(CODE
LOWslime/backends/megatron_utils/loss.py704def compute_advantages_and_returns(args: Namespace, rollout_data: RolloutBatch) -> None:CODE
LOWslime/backends/megatron_utils/model_provider.py242def wrap_model_provider_with_freeze(original_provider, args):CODE
LOWslime/backends/megatron_utils/hf_checkpoint_saver.py216def _finalize_distributed_shards(path: Path, local_state: dict[str, Any]) -> None:CODE
LOWslime/backends/megatron_utils/hf_checkpoint_saver.py313def _clear_existing_hf_weights(path: Path) -> None:CODE
LOWslime/backends/megatron_utils/hf_checkpoint_saver.py360def _raise_if_rank_zero_failed(context: str, error: str | None) -> None:CODE
LOWslime/backends/megatron_utils/cp_utils.py9def get_logits_and_tokens_offset_with_cp(CODE
LOWslime/backends/megatron_utils/cp_utils.py254def prepare_routed_experts_for_routing_replay(CODE
LOWslime/backends/megatron_utils/server/megatron_server.py49def _normalize_label_token_ids(label_token_ids: Any, expected_length: int) -> list[list[int]] | None:CODE
LOWslime/backends/megatron_utils/server/megatron_server.py99 def set_train_parallel_config(self, config: dict):CODE
LOWslime/backends/megatron_utils/server/megatron_server.py626def _run_warmup_via_private_http(sample_manager, args):CODE
LOWslime/backends/megatron_utils/server/megatron_server.py672def run_megatron_dp_models_loop_worker(dp_rank, pp_size, sample_manager, actor_models):CODE
LOWslime/backends/megatron_utils/server/megatron_server.py708def _build_update_from_disk_fn(actor_model):CODE
LOWslime/backends/megatron_utils/server/arguments.py34def add_megatron_server_arguments(parser):CODE
LOWslime/backends/megatron_utils/server/arguments.py87def configure_megatron_server_args(args):CODE
LOWslime/backends/megatron_utils/server/arguments.py104def validate_megatron_server_args(args):CODE
LOWslime/backends/megatron_utils/server/logprob_utils.py21def sample_from_vocab_parallel_logits_without_full_gather(CODE
LOWslime/backends/megatron_utils/server/logprob_utils.py158def get_label_token_log_probs_from_vocab_parallel_logits(CODE
LOWslime/backends/megatron_utils/server/logprob_utils.py268def _slice_response_rows_for_current_cp_rank(CODE
LOWslime/backends/megatron_utils/server/logprob_utils.py303def _merge_allgather_cp_tensors(CODE
LOWslime/backends/megatron_utils/server/logprob_utils.py352def _get_log_probs_and_optional_samples(CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py153def _compact_valid_rows_inplace(CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py289def _padded_expert_hidden_bytes(CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py1090def _configure_batch_invariant(deep_gemm: Any, deep_gemm_wrapper: Any) -> bool:CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py1352def _quantize_grouped_weights(CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py1511def _experts_per_forward_group(num_local_experts: int) -> int:CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py1617def _wrap_preallocated_combine_preprocess(dispatcher: torch.nn.Module) -> bool:CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py1651def _wrap_preallocated_dispatch_postprocess(dispatcher: torch.nn.Module) -> bool:CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py1736def _wrap_preallocated_token_combine(dispatcher: torch.nn.Module) -> bool:CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py1817def _moe_recompute_scratch_view(CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py1886def _deepgemm_grouped_moe_forward(CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py2291def _scatter_deepep_routes_with_padding(CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py2498def _compact_route_preserving_metadata_inputs(CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py2578def _deepep_route_handle_received_rows(handle: tuple) -> int:CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py2595def _dispatch_route_preserving_deepep_metadata(CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py2668def _validate_and_order_route_preserving_outputs(CODE
600 more matches not shown…
Decorative Section Separators140 hits · 512 pts
SeverityFileLineSnippetContext
MEDIUMtools/analyze_profile.py189 # ─── Device Properties ──────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py197 # ─── CUDA/NCCL Info ─────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py207 # ─── Kernel Analysis ────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py320 # ─── Communication ──────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py329 # ─── CPU overhead ───────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py337# ─── Pretty print ──────────────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py341 # ── Config ──────────────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py23# ─── Color helpers ──────────────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py65# ─── Data structures ───────────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py235 # ─── GPU Utilization ────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py278 # ─── Per-stream analysis ────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py295 # ─── CUDA Graph analysis ───────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py352 # ── Timeline ────────────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py363 # ── Kernel Breakdown ────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py382 # ── Top Kernels ─────────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py390 # ── CUDA Graph ──────────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py431 # ── CUDA Graph Location in Timeline ─────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py456 # ── GPU Idle Gaps ───────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py466 # ── Per-Stream ──────────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py484 # ── Communication ───────────────────────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py492 # ── Performance Bottleneck Summary ──────────────────────────────────COMMENT
MEDIUMtools/analyze_profile.py575 # ── Optimization Recommendations ────────────────────────────────────COMMENT
MEDIUMslime/agent/trajectory.py23# ===========================================================================COMMENT
MEDIUMslime/agent/trajectory.py25# ===========================================================================COMMENT
MEDIUMslime/agent/trajectory.py41# ===========================================================================COMMENT
MEDIUMslime/agent/trajectory.py43# ===========================================================================COMMENT
MEDIUMslime/agent/trajectory.py111# ===========================================================================COMMENT
MEDIUMslime/agent/trajectory.py113# ===========================================================================COMMENT
MEDIUMslime/agent/trajectory.py136# ===========================================================================COMMENT
MEDIUMslime/agent/trajectory.py138# ===========================================================================COMMENT
MEDIUMslime/agent/trajectory.py264# ===========================================================================COMMENT
MEDIUMslime/agent/trajectory.py266# ===========================================================================COMMENT
MEDIUMtests/test_rm_gpqa.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_gpqa.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_gpqa.py88# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_gpqa.py90# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_sample.py30# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_sample.py32# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_sample.py175# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_sample.py177# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_cp_dist_helpers.py139# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/_cp_dist_helpers.py157# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math_dapo.py34# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math_dapo.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math_dapo.py63# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math_dapo.py65# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math_dapo.py82# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math_dapo.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math_dapo.py121# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math_dapo.py123# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math_dapo.py149# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math_dapo.py151# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math_dapo.py186# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math_dapo.py188# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_metric_report.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_metric_report.py65# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math.py76# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_rm_math.py78# ---------------------------------------------------------------------------COMMENT
80 more matches not shown…
Cross-Language Confusion100 hits · 438 pts
SeverityFileLineSnippetContext
HIGHtools/trace_timeline_viewer.py950 cursorTime: null,CODE
HIGHtools/trace_timeline_viewer.py951 hoveredItem: null,CODE
HIGHtools/trace_timeline_viewer.py952 selectedItem: null,CODE
HIGHtools/trace_timeline_viewer.py1156 const lane = rowExpanded(row) ? (item.lane || 0) : 0;CODE
HIGHtools/trace_timeline_viewer.py1165 let current = null;CODE
HIGHtools/trace_timeline_viewer.py1171 clusters.push(current);CODE
HIGHtools/trace_timeline_viewer.py1174 current.items.push(item);CODE
HIGHtools/trace_timeline_viewer.py1344 const row = rowIdx >= 0 ? state.rows[rowIdx] : null;CODE
HIGHtools/trace_timeline_viewer.py1345 if (row && rowExpanded(row)) {CODE
HIGHtools/trace_timeline_viewer.py1347 y: laneTop(layout, item.lane || 0, scrollTop) + 2,CODE
HIGHtools/trace_timeline_viewer.py1446 if (raw.start_attrs || raw.end_attrs) {CODE
HIGHtools/trace_timeline_viewer.py1455 if (!attrs) return null;CODE
HIGHtools/trace_timeline_viewer.py1459 if (v != null && v > 0) segs.push({ phase, duration: v });CODE
HIGHtools/trace_timeline_viewer.py1459 if (v != null && v > 0) segs.push({ phase, duration: v });CODE
HIGHtools/trace_timeline_viewer.py1501 const pdVirtualRole = attrs.timeline_pd_virtual_role || null;CODE
HIGHtools/trace_timeline_viewer.py1501 const pdVirtualRole = attrs.timeline_pd_virtual_role || null;CODE
HIGHtools/trace_timeline_viewer.py1503 if (!phases || (expanded && !pdVirtualRole)) return null;CODE
HIGHtools/trace_timeline_viewer.py1547 const colorKey = attrs.timeline_pd_parent_name || item.name;CODE
HIGHtools/trace_timeline_viewer.py1552 const pdVirtualRole = attrs.timeline_pd_virtual_role || null;CODE
HIGHtools/trace_timeline_viewer.py1552 const pdVirtualRole = attrs.timeline_pd_virtual_role || null;CODE
HIGHtools/trace_timeline_viewer.py1781 if (showText && labelWidthAvailable > 40) {CODE
HIGHtools/trace_timeline_viewer.py1786 if (a.prompt_tokens != null) pdParts.push(`P:${a.prompt_tokens}`);CODE
HIGHtools/trace_timeline_viewer.py1786 if (a.prompt_tokens != null) pdParts.push(`P:${a.prompt_tokens}`);CODE
HIGHtools/trace_timeline_viewer.py1787 if (a.completion_tokens != null) pdParts.push(`D:${a.completion_tokens}`);CODE
HIGHtools/trace_timeline_viewer.py1787 if (a.completion_tokens != null) pdParts.push(`D:${a.completion_tokens}`);CODE
HIGHtools/trace_timeline_viewer.py1788 if (a.cached_tokens != null && a.cached_tokens > 0) pdParts.push(`cache:${a.cached_tokens}`);CODE
HIGHtools/trace_timeline_viewer.py1788 if (a.cached_tokens != null && a.cached_tokens > 0) pdParts.push(`cache:${a.cached_tokens}`);CODE
HIGHtools/trace_timeline_viewer.py1789 if (a.pd_prefill_forward_duration != null) pdParts.push(`pf:${(a.pd_prefill_forward_duration*1000).toFixCODE
HIGHtools/trace_timeline_viewer.py1789 if (a.pd_prefill_forward_duration != null) pdParts.push(`pf:${(a.pd_prefill_forward_duration*1000).toFixCODE
HIGHtools/trace_timeline_viewer.py1790 if (a.pd_decode_forward_duration != null) pdParts.push(`df:${(a.pd_decode_forward_duration*1000).toFixedCODE
HIGHtools/trace_timeline_viewer.py1790 if (a.pd_decode_forward_duration != null) pdParts.push(`df:${(a.pd_decode_forward_duration*1000).toFixedCODE
HIGHtools/trace_timeline_viewer.py1791 if (a.pd_transfer_speed_gb_s != null) pdParts.push(`${a.pd_transfer_speed_gb_s.toFixed(1)}GB/s`);CODE
HIGHtools/trace_timeline_viewer.py1791 if (a.pd_transfer_speed_gb_s != null) pdParts.push(`${a.pd_transfer_speed_gb_s.toFixed(1)}GB/s`);CODE
HIGHtools/trace_timeline_viewer.py1857 lines.push(`${key}: ${value}`);CODE
HIGHtools/trace_timeline_viewer.py1862 lines.push(`events: ${item.attrs?.total ?? 0}`);CODE
HIGHtools/trace_timeline_viewer.py1864 lines.push(`${name}: ${count}`);CODE
HIGHtools/trace_timeline_viewer.py1868 if (item.parent_span_name) lines.push(`parent: ${item.parent_span_name}`);CODE
HIGHtools/trace_timeline_viewer.py1870 lines.push(`start: ${niceDuration(item.start_ts - state.globalStart)}`);CODE
HIGHtools/trace_timeline_viewer.py1871 lines.push(`end: ${item.end_ts == null ? 'open' : niceDuration(item.end_ts - state.globalStart)}`);CODE
HIGHtools/trace_timeline_viewer.py1872 if (item.end_ts == null) {CODE
HIGHtools/trace_timeline_viewer.py1873 lines.push(`display_end: ${niceDuration(item.display_end_ts - state.globalStart)}`);CODE
HIGHtools/trace_timeline_viewer.py1875 lines.push(`duration: ${item.end_ts == null ? 'open' : niceDuration(item.end_ts - item.start_ts)}`);CODE
HIGHtools/trace_timeline_viewer.py1877 lines.push(`time: ${niceDuration((item.ts ?? 0) - state.globalStart)}`);CODE
HIGHtools/trace_timeline_viewer.py1879 if (item.state === 'orphan_end') lines.push('warning: unmatched end event');CODE
HIGHtools/trace_timeline_viewer.py1886 lines.push(`${key}: ${typeof value === 'object' ? JSON.stringify(value) : value}`);CODE
HIGHtools/trace_timeline_viewer.py1900 lines.push('── PD disaggregation ──');CODE
HIGHtools/trace_timeline_viewer.py1902 lines.push(' [P] prefill instance');CODE
HIGHtools/trace_timeline_viewer.py1903 pPhases.forEach(p => lines.push(fmtPhase(p)));CODE
HIGHtools/trace_timeline_viewer.py1906 lines.push(' [D] decode instance');CODE
HIGHtools/trace_timeline_viewer.py1907 dPhases.forEach(p => lines.push(fmtPhase(p)));CODE
HIGHtools/trace_timeline_viewer.py1909 lines.push(` total phases: ${(totalDur * 1000).toFixed(1)}ms`);CODE
HIGHtools/trace_timeline_viewer.py1917 lines.push(` ${label}: ${value.toFixed(2)} GB/s`);CODE
HIGHtools/trace_timeline_viewer.py1919 lines.push(` ${label}: ${value.toFixed(1)} MB`);CODE
HIGHtools/trace_timeline_viewer.py1921 lines.push(` ${label}: ${typeof value === 'object' ? JSON.stringify(value) : value}`);CODE
HIGHtools/trace_timeline_viewer.py1929 const activeItem = state.hoveredItem || state.selectedItem;CODE
HIGHtools/trace_timeline_viewer.py2090 if (absoluteY >= layout.top && absoluteY <= layout.top + layout.height) return idx;CODE
HIGHtools/trace_timeline_viewer.py2096 if (!layout) return null;CODE
HIGHtools/trace_timeline_viewer.py2102 let closestPoint = null;CODE
HIGHtools/trace_timeline_viewer.py2111 if (distance <= radius && distance < closestPointDistance) {CODE
HIGHtools/trace_timeline_viewer.py2124 if (localY < itemTop || localY > itemBottom) continue;CODE
40 more matches not shown…
Excessive Try-Catch Wrapping139 hits · 155 pts
SeverityFileLineSnippetContext
LOWtools/convert_torch_dist_to_hf_parallel.py142 except Exception as e:CODE
MEDIUMtools/convert_torch_dist_to_hf_parallel.py143 print(f"Error reading {rel_path}: {e}")CODE
LOWtools/convert_torch_dist_to_hf_parallel.py291 except Exception as e:CODE
MEDIUMtools/convert_torch_dist_to_hf_parallel.py292 print(f"Error processing {name}: {e}")CODE
MEDIUMtools/convert_torch_dist_to_hf_parallel.py132def read_file(rel_path, full_path, ops):CODE
LOWtools/profile_rollout.py12 except Exception as e:CODE
MEDIUMtools/profile_rollout.py13 print(f"Error fetching workers from router: {e}")CODE
LOWtools/profile_rollout.py31 except Exception as e:CODE
LOWtools/profile_rollout.py41 except Exception as e:CODE
MEDIUMtools/profile_rollout.py7def get_workers(router_url):CODE
MEDIUMtools/profile_rollout.py35def stop_profile(worker_url):CODE
LOWtools/convert_hf_to_torch_dist.py33 except Exception:CODE
LOWtools/convert_hf_to_int4.py37 except Exception as e:CODE
LOWslime/backends/megatron_utils/model_provider.py195 except Exception as e:CODE
LOWslime/backends/megatron_utils/hf_checkpoint_saver.py59 except Exception as e:CODE
LOWslime/backends/megatron_utils/hf_checkpoint_saver.py78 except Exception as e:CODE
LOWslime/backends/megatron_utils/server/megatron_server.py351 except Exception as e:CODE
LOWslime/backends/megatron_utils/server/megatron_server.py487 except Exception as e:CODE
LOWslime/backends/megatron_utils/server/megatron_server.py560 except Exception as e:CODE
LOWslime/backends/megatron_utils/server/megatron_server.py590 except Exception as e:CODE
LOWslime/backends/sglang_utils/server_control.py35 except Exception as e:CODE
LOWslime/backends/sglang_utils/server_control.py51 except Exception as e:CODE
LOWslime/backends/sglang_utils/sglang_engine.py284 except Exception as e:CODE
LOWslime/backends/sglang_utils/sglang_engine.py313 except Exception as e:CODE
LOWslime/backends/sglang_utils/external.py81 except Exception as exc:CODE
LOWslime/utils/reloadable_process_group.py491 except Exception as e:CODE
MEDIUMslime/utils/reloadable_process_group.py484def _wrap_low_level_call(check_memory=True):CODE
LOWslime/utils/processing_utils.py127 except Exception:CODE
LOWslime/utils/processing_utils.py147 except Exception:CODE
LOWslime/utils/health_monitor.py143 except Exception as e:CODE
LOWslime/utils/health_monitor.py164 except Exception as e:CODE
LOWslime/utils/http_utils.py65 except Exception:CODE
LOWslime/utils/http_utils.py80 except Exception:CODE
LOWslime/utils/http_utils.py124 except Exception as e:CODE
LOWslime/utils/http_utils.py159 except Exception as e:CODE
LOWslime/utils/http_utils.py287 except Exception as e:CODE
MEDIUMslime/utils/http_utils.py116def run_router(args):CODE
LOWslime/utils/accelerator/__init__.py79 except Exception as exc:CODE
LOWslime/agent/parsing.py77 except Exception:CODE
LOWslime/agent/sandbox.py250 except Exception as e:CODE
LOWslime/agent/sandbox.py278 except Exception as e:CODE
LOWslime/agent/sandbox.py306 except Exception as e:CODE
LOWslime/agent/sandbox.py386 except Exception:CODE
MEDIUMslime/agent/sandbox.py302def __aexit__(self, exc_type, exc, tb) -> None:CODE
LOWslime/agent/aiohttp_threaded.py40 except Exception:CODE
LOWslime/agent/adapters/common.py242 except Exception:CODE
LOWslime/agent/adapters/common.py315 except Exception:CODE
LOWslime/agent/adapters/common.py509 except Exception:CODE
LOWslime/observability/trace_utils.py399 except Exception as exc:CODE
LOWslime/observability/trace_utils.py409 except Exception as trace_exc:CODE
LOWslime/observability/trace_utils.py415 except Exception as exc:CODE
LOWslime/observability/trace_utils.py420 except Exception as exc:CODE
LOWslime/observability/trace_utils.py424 except Exception as exc:CODE
LOWslime/observability/trace_utils.py93 except Exception as exc:CODE
LOWslime/observability/trace_utils.py156 except Exception as exc:CODE
LOWslime/observability/trace_utils.py252 except Exception as exc:CODE
LOWslime/observability/trace_utils.py282 except Exception as exc:CODE
LOWslime/observability/trace_utils.py299 except Exception as exc:CODE
LOWslime/observability/trace_utils.py321 except Exception as exc:CODE
LOWslime/observability/trace_utils.py340 except Exception as exc:CODE
79 more matches not shown…
Deep Nesting117 hits · 112 pts
SeverityFileLineSnippetContext
LOWtools/convert_torch_dist_to_hf_parallel.py57CODE
LOWtools/convert_torch_dist_to_hf_parallel.py84CODE
LOWtools/convert_torch_dist_to_hf_parallel.py165CODE
LOWtools/convert_torch_dist_to_hf_parallel.py60CODE
LOWtools/convert_torch_dist_to_hf_parallel.py170CODE
LOWtools/analyze_profile.py184CODE
LOWtools/analyze_profile.py338CODE
LOWtools/trace_timeline_viewer.py168CODE
LOWtools/convert_k2_thinking_int4_to_bf16.py99CODE
LOWtools/fp8_cast_bf16.py44CODE
LOWtools/convert_torch_dist_to_hf.py106CODE
LOWtools/convert_to_hf.py28CODE
LOWslime/backends/megatron_utils/stateless_adam.py68CODE
LOWslime/backends/megatron_utils/model.py348CODE
LOWslime/backends/megatron_utils/model.py710CODE
LOWslime/backends/megatron_utils/model.py94CODE
LOWslime/backends/megatron_utils/loss.py97CODE
LOWslime/backends/megatron_utils/loss.py432CODE
LOWslime/backends/megatron_utils/loss.py704CODE
LOWslime/backends/megatron_utils/model_provider.py92CODE
LOWslime/backends/megatron_utils/model_provider.py269CODE
LOWslime/backends/megatron_utils/model_provider.py118CODE
LOWslime/backends/megatron_utils/ci_utils.py11CODE
LOWslime/backends/megatron_utils/actor.py275CODE
LOWslime/backends/megatron_utils/actor.py391CODE
LOWslime/backends/megatron_utils/data.py14CODE
LOWslime/backends/megatron_utils/server/megatron_server.py672CODE
LOWslime/backends/megatron_utils/server/logprob_utils.py303CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py470CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py642CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py3100CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py910CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py2253CODE
LOW…/backends/megatron_utils/alignment/deepgemm_forward.py1057CODE
LOW…atron_utils/update_weight/update_weight_from_tensor.py360CODE
LOW…atron_utils/update_weight/update_weight_from_tensor.py194CODE
LOWslime/backends/megatron_utils/update_weight/common.py59CODE
LOWslime/backends/megatron_utils/update_weight/common.py129CODE
LOW…atron_utils/update_weight/hf_weight_iterator_direct.py174CODE
LOW…ime/backends/megatron_utils/megatron_to_hf/qwen3_vl.py5CODE
LOW…e/backends/megatron_utils/megatron_to_hf/minimax_m2.py6CODE
LOW…ime/backends/megatron_utils/megatron_to_hf/__init__.py34CODE
LOW…ime/backends/megatron_utils/megatron_to_hf/qwen3moe.py6CODE
LOWslime/backends/megatron_utils/megatron_to_hf/llama.py5CODE
LOWslime/backends/megatron_utils/megatron_to_hf/qwen3_5.py34CODE
LOWslime/backends/megatron_utils/megatron_to_hf/glm4.py5CODE
LOW…e/backends/megatron_utils/megatron_to_hf/deepseekv3.py6CODE
LOWslime/backends/megatron_utils/megatron_to_hf/glm4moe.py6CODE
LOW…e/backends/megatron_utils/megatron_to_hf/qwen3_next.py44CODE
LOWslime/backends/megatron_utils/megatron_to_hf/qwen2.py5CODE
LOW…atron_utils/megatron_to_hf/processors/quantizer_fp8.py10CODE
LOWslime/backends/sglang_utils/deployment.py79CODE
LOWslime/backends/sglang_utils/sglang_engine.py67CODE
LOWslime/backends/sglang_utils/sglang_engine.py296CODE
LOWslime/backends/sglang_utils/engine_group.py390CODE
LOWslime/backends/sglang_utils/engine_group.py263CODE
LOWslime/utils/arguments.py1650CODE
LOWslime/utils/arguments.py1771CODE
LOWslime/utils/processing_utils.py100CODE
LOWslime/utils/routing_replay.py171CODE
57 more matches not shown…
Modern Structural Boilerplate105 hits · 108 pts
SeverityFileLineSnippetContext
LOWslime/backends/megatron_utils/checkpoint.py90logger = logging.getLogger(__name__)CODE
LOWslime/backends/megatron_utils/checkpoint.py92__all__ = ["save_checkpoint"]CODE
LOWslime/backends/megatron_utils/initialize.py11logger = logging.getLogger(__name__)CODE
LOWslime/backends/megatron_utils/arguments.py13__all__ = ["validate_args", "megatron_parse_args", "set_default_megatron_args"]CODE
LOWslime/backends/megatron_utils/arguments.py15logger = logging.getLogger(__name__)CODE
LOWslime/backends/megatron_utils/model.py40logger = logging.getLogger(__name__)CODE
LOWslime/backends/megatron_utils/ci_utils.py8logger = logging.getLogger(__name__)CODE
LOWslime/backends/megatron_utils/hf_checkpoint_saver.py13logger = logging.getLogger(__name__)CODE
LOWslime/backends/megatron_utils/actor.py53logger = logging.getLogger(__name__)CODE
LOWslime/backends/megatron_utils/actor.py563 def update_weights(self) -> None:CODE
LOWslime/backends/megatron_utils/sglang.py24__all__ = [CODE
LOWslime/backends/megatron_utils/server/__init__.py9__all__ = [CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py38logger = logging.getLogger(__name__)CODE
LOW…ckends/megatron_utils/alignment/layerwise_alignment.py14logger = logging.getLogger(__name__)CODE
LOW…/backends/megatron_utils/alignment/deepgemm_forward.py26logger = logging.getLogger(__name__)CODE
LOW…egatron_utils/update_weight/update_weight_from_disk.py66 def update_weights(self) -> None:CODE
LOW…ackends/megatron_utils/update_weight/expert_routing.py14__all__ = ["configure_expert_routing"]CODE
LOW…ackends/megatron_utils/update_weight/expert_routing.py17logger = logging.getLogger(__name__)CODE
LOW…atron_utils/update_weight/update_weight_from_tensor.py278 def update_weights(self) -> None:CODE
LOW…n_utils/update_weight/update_weight_from_disk_delta.py28logger = logging.getLogger(__name__)CODE
LOW…n_utils/update_weight/update_weight_from_disk_delta.py84 def update_weights(self) -> None:CODE
LOW…_utils/update_weight/update_weight_from_distributed.py102 def update_weights(self) -> None:CODE
LOW…atron_to_hf/processors/quantizer_compressed_tensors.py15logger = logging.getLogger(__name__)CODE
LOW…atron_to_hf/processors/quantizer_compressed_tensors.py18__all__ = ["quantize_params_compressed_tensors"]CODE
LOW…s/megatron_utils/megatron_to_hf/processors/__init__.py3__all__ = ["quantize_params", "remove_padding"]CODE
LOWslime/backends/sglang_utils/server_control.py7logger = logging.getLogger(__name__)CODE
LOWslime/backends/sglang_utils/deployment.py15logger = logging.getLogger(__name__)CODE
LOWslime/backends/sglang_utils/sglang_engine.py18logger = logging.getLogger(__name__)CODE
LOWslime/backends/sglang_utils/arguments.py8logger = logging.getLogger(__name__)CODE
LOWslime/backends/sglang_utils/engine_group.py16logger = logging.getLogger(__name__)CODE
LOWslime/backends/sglang_utils/external.py11logger = logging.getLogger(__name__)CODE
LOWslime/backends/sglang_utils/disaggregation.py11logger = logging.getLogger(__name__)CODE
LOWslime/backends/sglang_utils/sglang_config.py8logger = logging.getLogger(__name__)CODE
LOWslime/utils/reloadable_process_group.py16logger = logging.getLogger(__name__)CODE
LOWslime/utils/async_utils.py4__all__ = ["get_async_loop", "run"]CODE
LOWslime/utils/dp_schedule.py48logger = logging.getLogger(__name__)CODE
LOWslime/utils/arguments.py16logger = logging.getLogger(__name__)CODE
LOWslime/utils/processing_utils.py10logger = logging.getLogger(__name__)CODE
LOWslime/utils/health_monitor.py6logger = logging.getLogger(__name__)CODE
LOWslime/utils/http_utils.py11logger = logging.getLogger(__name__)CODE
LOWslime/utils/data.py19__all__ = ["Dataset", "get_source"]CODE
LOWslime/utils/data.py21logger = logging.getLogger(__name__)CODE
LOWslime/utils/memory_utils.py10logger = logging.getLogger(__name__)CODE
LOWslime/utils/accelerator/__init__.py26logger = logging.getLogger(__name__)CODE
LOWslime/utils/accelerator/__init__.py221def set_accelerator(accelerator: Accelerator) -> None:CODE
LOWslime/utils/accelerator/__init__.py258def set_device(index: int | str | torch.device) -> None:CODE
LOWslime/utils/accelerator/__init__.py356def set_rng_state(state: torch.Tensor, device_arg: int | str | torch.device | None = None) -> None:CODE
LOWslime/utils/accelerator/base.py37 def set_device(self, index: int | str | torch.device) -> None:CODE
LOWslime/utils/accelerator/base.py127 def set_rng_state(self, state: torch.Tensor, device: int | str | torch.device | None = None) -> None:CODE
LOWslime/utils/accelerator/torch_accelerator.py13logger = logging.getLogger(__name__)CODE
LOWslime/utils/accelerator/torch_accelerator.py42 def set_device(self, index: int | str | torch.device) -> None:CODE
LOWslime/utils/accelerator/torch_accelerator.py144 def set_rng_state(self, state: torch.Tensor, device: int | str | torch.device | None = None) -> None:CODE
LOWslime/agent/parsing.py12logger = logging.getLogger(__name__)CODE
LOWslime/agent/trajectory.py20logger = logging.getLogger(__name__)CODE
LOWslime/agent/trajectory.py505__all__ = [CODE
LOWslime/agent/sandbox.py20logger = logging.getLogger(__name__)CODE
LOWslime/agent/adapters/__init__.py7__all__ = ["AnthropicAdapter", "BaseAdapter", "OpenAIAdapter"]CODE
LOWslime/agent/adapters/openai.py35logger = logging.getLogger(__name__)CODE
LOWslime/agent/adapters/common.py30__all__ = ["TurnRecord"]CODE
LOWslime/agent/adapters/anthropic.py36logger = logging.getLogger(__name__)CODE
45 more matches not shown…
Unused Imports108 hits · 104 pts
SeverityFileLineSnippetContext
LOWtools/trace_timeline_viewer.py9CODE
LOWslime/backends/megatron_utils/checkpoint.py8CODE
LOWslime/backends/megatron_utils/sglang.py16CODE
LOWslime/backends/megatron_utils/sglang.py11CODE
LOWslime/backends/megatron_utils/sglang.py20CODE
LOWslime/backends/megatron_utils/sglang.py13CODE
LOWslime/backends/megatron_utils/sglang.py22CODE
LOWslime/backends/megatron_utils/server/__init__.py3CODE
LOWslime/backends/megatron_utils/server/__init__.py3CODE
LOWslime/backends/megatron_utils/server/__init__.py3CODE
LOWslime/backends/megatron_utils/alignment/env.py10CODE
LOW…kends/megatron_utils/alignment/deepgemm_moe_forward.py14CODE
LOW…ckends/megatron_utils/alignment/layerwise_alignment.py3CODE
LOW…/backends/megatron_utils/alignment/deepgemm_forward.py15CODE
LOW…egatron_utils/alignment/deterministic_route_kernels.py8CODE
LOW…egatron_utils/update_weight/update_weight_from_disk.py1CODE
LOWslime/backends/megatron_utils/update_weight/__init__.py1CODE
LOW…n_utils/update_weight/update_weight_from_disk_delta.py1CODE
LOW…_utils/update_weight/update_weight_from_distributed.py1CODE
LOW…s/megatron_utils/megatron_to_hf/processors/__init__.py1CODE
LOWslime/backends/megatron_utils/hf_to_megatron/glm.py1CODE
LOWslime/backends/megatron_utils/hf_to_megatron/qwen3_5.py1CODE
LOWslime/backends/megatron_utils/hf_to_megatron/common.py1CODE
LOWslime/backends/megatron_utils/hf_to_megatron/qwen.py1CODE
LOW…ime/backends/megatron_utils/hf_to_megatron/deepseek.py1CODE
LOW…e/backends/megatron_utils/hf_to_megatron/qwen3_next.py1CODE
LOWslime/backends/sglang_utils/external.py3CODE
LOWslime/utils/dp_schedule.py40CODE
LOWslime/utils/eval_config.py1CODE
LOWslime/utils/disk_delta.py1CODE
LOWslime/utils/accelerator/__init__.py8CODE
LOWslime/utils/accelerator/musa.py7CODE
LOWslime/utils/accelerator/cuda.py3CODE
LOWslime/utils/accelerator/base.py8CODE
LOWslime/utils/accelerator/torch_accelerator.py3CODE
LOWslime/agent/parsing.py3CODE
LOWslime/agent/trajectory.py10CODE
LOWslime/agent/sandbox.py9CODE
LOWslime/agent/aiohttp_threaded.py3CODE
LOWslime/agent/adapters/__init__.py3CODE
LOWslime/agent/adapters/__init__.py4CODE
LOWslime/agent/adapters/__init__.py5CODE
LOWslime/agent/adapters/openai.py15CODE
LOWslime/agent/adapters/common.py13CODE
LOWslime/agent/adapters/anthropic.py17CODE
LOWslime/agent/harness/codex.py8CODE
LOWslime/agent/harness/__init__.py3CODE
LOWslime/agent/harness/__init__.py5CODE
LOWslime/agent/harness/__init__.py6CODE
LOWslime/agent/harness/__init__.py7CODE
LOWslime/agent/harness/__init__.py7CODE
LOWslime/agent/harness/common.py16CODE
LOWslime/agent/harness/claude_code.py3CODE
LOWslime/observability/trace_utils.py1CODE
LOWslime/rollout/sample_hooks.py1CODE
LOWslime/rollout/fully_async_rollout.py26CODE
LOWslime/rollout/rm_hub/ifbench.py1CODE
LOWtests/test_filter_long_prompt.py14CODE
LOWtests/test_block_fp8_zero_block.py12CODE
LOWtests/test_rm_gpqa.py23CODE
48 more matches not shown…
Structural Annotation Overuse37 hits · 58 pts
SeverityFileLineSnippetContext
LOWslime/utils/ppo_utils.py413 # Step 3: Compute returns on full response kl tensor.COMMENT
LOWtests/ci/README.md11### Step 1: EnvCOMMENT
LOWtests/ci/README.md18### Step 2: Prepare `/home/runner/externals`COMMENT
LOWtests/ci/README.md28### Step 3: RunCOMMENT
LOW.claude/skills/add-rollout-function/SKILL.md20### Step 1: Choose the Right Starting PointCOMMENT
LOW.claude/skills/add-rollout-function/SKILL.md30### Step 2: Create the New Rollout ModuleCOMMENT
LOW.claude/skills/add-rollout-function/SKILL.md43### Step 3: Implement Train and Eval Branches ExplicitlyCOMMENT
LOW.claude/skills/add-rollout-function/SKILL.md70### Step 4: Keep Data Contract CompatibleCOMMENT
LOW.claude/skills/add-rollout-function/SKILL.md81### Step 5: Wire Through ArgumentsCOMMENT
LOW.claude/skills/add-reward-function/SKILL.md20### Step 1: Choose Reward ModeCOMMENT
LOW.claude/skills/add-reward-function/SKILL.md29### Step 2: Create Reward ModuleCOMMENT
LOW.claude/skills/add-reward-function/SKILL.md47### Step 3: Keep Reward Type ConsistentCOMMENT
LOW.claude/skills/add-reward-function/SKILL.md53### Step 4: Optional Reward Post-ProcessingCOMMENT
LOW.claude/skills/add-reward-function/SKILL.md71### Step 5: Wire and ValidateCOMMENT
LOW.claude/skills/add-eval-dataset-config/SKILL.md20### Step 1: Choose Config Entry MethodCOMMENT
LOW.claude/skills/add-eval-dataset-config/SKILL.md29### Step 2: Build YAML with Required FieldsCOMMENT
LOW.claude/skills/add-eval-dataset-config/SKILL.md54### Step 3: Understand Override PriorityCOMMENT
LOW.claude/skills/add-eval-dataset-config/SKILL.md68### Step 4: Wire Eval Function if NeededCOMMENT
LOW.claude/skills/add-eval-dataset-config/SKILL.md73### Step 5: Validate Parsing and RuntimeCOMMENT
LOW.claude/skills/add-tests-and-ci/SKILL.md21### Step 1: Pick the Right Test PatternCOMMENT
LOW.claude/skills/add-tests-and-ci/SKILL.md27### Step 2: Keep CI CompatibilityCOMMENT
LOW.claude/skills/add-tests-and-ci/SKILL.md43### Step 3: Register Tests in GitHub CICOMMENT
LOW.claude/skills/add-tests-and-ci/SKILL.md60### Step 4: Run Local ValidationCOMMENT
LOW.claude/skills/add-tests-and-ci/SKILL.md67### Step 5: Keep Workflow Template as Source of TruthCOMMENT
LOW.claude/skills/add-tests-and-ci/SKILL.md80### Step 6: Provide Verifiable PR NotesCOMMENT
LOW.claude/skills/add-dynamic-filter/SKILL.md21### Step 1: Pick the Correct HookCOMMENT
LOW.claude/skills/add-dynamic-filter/SKILL.md28### Step 2: Implement the Function SignatureCOMMENT
LOW.claude/skills/add-dynamic-filter/SKILL.md66### Step 3: Preserve Group StructureCOMMENT
LOW.claude/skills/add-dynamic-filter/SKILL.md72### Step 4: Wire and ValidateCOMMENT
LOW.claude/skills/add-dynamic-filter/SKILL.md83### Step 5: Measure Side EffectsCOMMENT
LOWdocs/en/advanced/sglang-config.md267# Step 1: Launch SGLang engines externallyCOMMENT
LOWdocs/en/advanced/sglang-config.md271# Step 2: Connect slime to external enginesCOMMENT
LOWexamples/search-r1/README.md187### Step 1: Install CondaCOMMENT
LOWexamples/search-r1/README.md204### Step 2: Create Retriever EnvironmentCOMMENT
LOWexamples/search-r1/README.md222### Step 3: Download Index and CorpusCOMMENT
LOWexamples/search-r1/README.md240### Step 4: Start Local Retrieval ServerCOMMENT
LOWexamples/search-r1/README.md275### Step 5: Start TrainingCOMMENT
Self-Referential Comments15 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMslime/backends/megatron_utils/model_provider.py157 # Define the decoder block specCOMMENT
MEDIUMslime/backends/megatron_utils/model_provider.py165 # Define the decoder layer specCOMMENT
MEDIUMslime/utils/async_utils.py7# Create a background event loop threadCOMMENT
MEDIUMslime/utils/http_utils.py236 # Define the async actorCOMMENT
MEDIUMslime/rollout/rm_hub/__init__.py73 # This function is intended for remote or time-consuming reward model evaluation.COMMENT
MEDIUMdocs/build_all.sh11# Create a lightweight root index with auto redirect based on localStorage (done client side)COMMENT
MEDIUMexamples/tau-bench/trainable_agents.py213 # Initialize tracking variablesCOMMENT
MEDIUMexamples/strands_sglang/subprocess_interpreter.py186 # Create a temporary file with the modified sourceSTRING
MEDIUMexamples/strands_sglang/subprocess_interpreter.py352 # Create a temporary directory first to ensure we have writeSTRING
MEDIUM.github/workflows/pr-test.yml2# 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.py27 + "\n# This file is auto-generated from the .j2 file via generate_github_workflows.py. Do not edit manuaCODE
MEDIUMslime_plugins/models/qwen3_5.py203 # Define the decoder block specCOMMENT
MEDIUMslime_plugins/models/qwen3_next.py215 # Define the decoder block specCOMMENT
MEDIUMslime_plugins/models/glm5/glm5.py1015 # Define the decoder block specCOMMENT
MEDIUM…ime_plugins/rollout_buffer/generator/base_generator.py53 # Create a fresh payload for each attemptCOMMENT
AI Slop Vocabulary9 hits · 28 pts
SeverityFileLineSnippetContext
LOW…atron_utils/megatron_to_hf/processors/quantizer_fp8.py115 # for other parameters, we just return the original converted_named_paramsCOMMENT
LOWslime/backends/sglang_utils/engine_group.py162 # this group's engines may land on (conservative: just use global max).COMMENT
MEDIUMslime/rollout/rm_hub/math_dapo_utils.py14# Adapted from https://github.com/EleutherAI/lm-evaluation-harness/blob/main/lm_eval/tasks/hendrycks_math/utils.pyCOMMENT
MEDIUMtests/test_agent/test_harness.py207# §5 harness.run wires the steps in orderCOMMENT
MEDIUMexamples/coding_agent_rl/swe.py175# Workspace prep (agent sandbox, before harness.run)COMMENT
MEDIUMexamples/coding_agent_rl/swe.py228# Diff capture (agent sandbox, after harness.run)COMMENT
MEDIUMexamples/coding_agent_rl/swe.py355# Mirror of swebench.harness.run_evaluation.GIT_APPLY_CMDS: try each in order,COMMENT
MEDIUMexamples/retool/generate_with_retool.py100 # Use a more robust regex that handles nested bracesCOMMENT
MEDIUMexamples/retool/generate_with_retool.py370 # collapse), but reward_func's regex is whitespace-robust andCOMMENT
Modern AI Meta-Vocabulary12 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md118[**Dressage**](https://github.com/Accio-Lab/Dressage) is an agentic RL training framework built on slime by [Alibaba AccCODE
MEDIUMREADME.md130[**Relax**](https://github.com/redai-infra/Relax) (Reinforcement Engine Leveraging Agentic X-modality) is an omni-modal CODE
MEDIUMREADME_zh.md120[**Dressage**](https://github.com/Accio-Lab/Dressage) 是 [Alibaba Accio](https://www.accio.com/work?im_ref=1O8wgT3poxyZWCCODE
MEDIUMREADME_zh.md132[**Relax**](https://github.com/redai-infra/Relax) (Reinforcement Engine Leveraging Agentic X-modality) 是 RedAI Infra 团队开CODE
MEDIUMtests/test_qwen3_4B_streaming_partial_rollout.py36 # loop is still the stock sglang one (semaphore, abort orchestration).COMMENT
MEDIUMdocs/zh/get_started/customization.md12| [`--custom-generate-function-path`](#custom-generate-function-path) | 仅覆盖生成步骤(例如用于 RAG 或工具调用)。 |CODE
MEDIUMdocs/zh/get_started/customization.md32## 通过 customization 接口实现 agentic workflowCOMMENT
MEDIUMdocs/en/get_started/customization.md12| [`--custom-generate-function-path`](#custom-generate-function-path) | Override only the generation step (e.g., for RAGCODE
MEDIUMexamples/multi_agent/run-qwen3-30B-A3B-multi-agent.sh57# multi-agent do not support eval for nowCOMMENT
MEDIUMexamples/tau-bench/README.md50 "agent_strategy": "tool-calling", # Select between ["tool-calling", "act", "react", "few-shot"], only tool-calling CODE
MEDIUMexamples/tau-bench/generate_with_tau.py25 "agent_strategy": "tool-calling", # Select between ["tool-calling", "act", "react", "few-shot"]CODE
MEDIUMexamples/strands_sglang/README.md3This example connects `slime` with [`strands-sglang`](https://github.com/horizon-rl/strands-sglang) (SGLang extension foCODE
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHslime/backends/sglang_utils/sglang_engine.py224Run /health_generate on the underlying SGLang HTTP server. Args: timeout: Timeout for the health reSTRING
HIGHexamples/tau-bench/openai_tool_adapter.py52 Parse sglang response to OpenAI compatible format Args: response: Raw response text from sSTRING
HIGHexamples/tau-bench/generate_with_tau.py101 Generate a complete agent-environment interaction trajectory for tau-bench. This is the main entry point for sSTRING
HIGHexamples/strands_sglang/subprocess_interpreter.py286Generates a temporary file with the given code, executes it, and deletes the file afterward. Args: STRING
HIGHexamples/strands_sglang/subprocess_interpreter.py440Executes a shell command in a subprocess and captures its output. Args: command (str): The shell coSTRING
Redundant / Tautological Comments14 hits · 19 pts
SeverityFileLineSnippetContext
LOWtools/convert_torch_dist_to_hf_parallel.py475 # Check if this is a linear_q_down_proj or linear_kv_down_proj keyCOMMENT
LOWslime/backends/megatron_utils/model.py552 # Set grad to zero.COMMENT
LOWslime/backends/megatron_utils/model_provider.py103 # Check if the custom provider supports vp_stage parameterCOMMENT
LOWslime/backends/megatron_utils/model_provider.py192 # Check if fp8_model_init supports preserve_high_precision_init_valCOMMENT
LOWexamples/tau-bench/trainable_agents.py326 # Check if doneCOMMENT
LOWexamples/strands_sglang/subprocess_interpreter.py195 # Check if command is availableSTRING
LOWexamples/strands_sglang/subprocess_interpreter.py208 # Check if command is availableSTRING
LOWexamples/search-r1/qa_em_format.py86 # Check if this is a tagCOMMENT
LOWexamples/retool/tool_sandbox.py242 # Return resultCOMMENT
LOWexamples/retool/generate_with_retool.py250 # Check if total length exceeds max context lengthCOMMENT
LOWexamples/retool/generate_with_retool.py352 # Check if maximum tool call count reachedCOMMENT
LOWslime_plugins/rollout_buffer/buffer.py77 # Check if module has TASK_TYPE constantCOMMENT
LOWslime_plugins/rollout_buffer/buffer.py82 # Check if module has run_rollout functionCOMMENT
LOW…ime_plugins/rollout_buffer/generator/base_generator.py216 # Check if instance_id should be skippedCOMMENT
Over-Commented Block16 hits · 16 pts
SeverityFileLineSnippetContext
LOWbuild_conda.sh161# --no-build-isolation: setup.py builds a C++ extension (megatron.core.datasets.helpers_cpp)COMMENT
LOWslime/utils/seqlen_balancing.py1# Copied from https://github.com/volcengine/verl/blob/468adf22c43b744348051fccd7a5d830c6c3c36a/verl/utils/seqlen_balanciCOMMENT
LOWslime/rollout/rm_hub/math_dapo_utils.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/test_loss_cp_invariance.py161COMMENT
LOWtests/_cp_dist_helpers.py41import sysCOMMENT
LOWtests/_cp_dist_helpers.py141# tests and the backward-grad-norm test. Keeping the data in one place soCOMMENT
LOWexamples/delta_weight_sync/run-glm4.7-30B-A3B-delta.sh1#!/bin/bashCOMMENT
LOWexamples/train_infer_mismatch_helper/mis.yaml1# Enable importance sampling, details refer to the comments of compute_mis_weights in mis.pyCOMMENT
LOWexamples/strands_sglang/subprocess_interpreter.py1# Copyright 2025-2026 Strands RL ContributorsCOMMENT
LOWexamples/search-r1/qa_em_format.py1# Adapt from https://github.com/PeterGriffinJin/Search-R1/blob/ceee7b89655ed52f205b9beb98e1190c3eedcfb0/verl/utils/rewarCOMMENT
LOW…es/search-r1/local_dense_retriever/retrieval_server.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWexamples/search-r1/local_dense_retriever/download.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWexamples/retool/generate_with_retool.py361 # Tool output is appended verbatim and can push total_length pastCOMMENT
LOWscripts/run-qwen2.5-0.5B-gb10-smoke.sh1#!/bin/bashCOMMENT
LOWscripts/low_precision/run-qwen3-30b-a3b-fp8.sh1#!/bin/bashCOMMENT
LOWslime_plugins/models/glm5/glm5.py121 with torch.no_grad():COMMENT
AI Structural Patterns16 hits · 16 pts
SeverityFileLineSnippetContext
LOWtools/convert_hf_to_int4_direct.py120CODE
LOWslime/backends/megatron_utils/stateless_adam.py16CODE
LOW…atron_to_hf/processors/quantizer_compressed_tensors.py225CODE
LOWslime/utils/http_utils.py299CODE
LOWslime/utils/distributed_utils.py55CODE
LOWslime/utils/data.py215CODE
LOWexamples/tau-bench/openai_tool_adapter.py109CODE
LOW…es/search-r1/local_dense_retriever/retrieval_server.py290CODE
LOWexamples/retool/tool_sandbox.py356CODE
LOWslime_plugins/models/qwen3_5_vl.py205CODE
LOWslime_plugins/models/qwen3_5.py153CODE
LOWslime_plugins/models/hf_attention.py88CODE
LOWslime_plugins/models/qwen3_next.py175CODE
LOWslime_plugins/models/glm5/glm5.py413CODE
LOW…ime_plugins/models/glm5/ops/tilelang_sparse_mla_bwd.py84CODE
LOWslime_plugins/rollout_buffer/buffer.py116CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/test_qwen3_4B_ppo_train_critic_only.py0megatron: - name: default role: critic overrides: lr: 1e-5 - name: default role: actor overrides: lr: 1e-6STRING
HIGHtests/test_qwen3_4B_ppo.py0megatron: - name: default role: critic overrides: lr: 1e-5 - name: default role: actor overrides: lr: 1e-6STRING
HIGHtests/test_qwen3_4B_ppo_disaggregate.py0megatron: - name: default role: critic overrides: lr: 1e-5 - name: default role: actor overrides: lr: 1e-6STRING
Fake / Example Data8 hits · 7 pts
SeverityFileLineSnippetContext
LOWslime/backends/sglang_utils/engine_group.py33 worker_type: str = "regular" # "regular", "prefill", "decode", or "placeholder"CODE
LOWslime/backends/sglang_utils/engine_group.py72 Placeholder groups (worker_type="placeholder") skip engine creation entirely.STRING
LOWslime/backends/sglang_utils/engine_group.py76 if self.args.debug_train_only or self.worker_type == "placeholder":CODE
LOWslime/backends/sglang_utils/engine_group.py258 values = {g.nodes_per_engine for g in self.server_groups if g.worker_type != "placeholder"}CODE
LOWslime/backends/sglang_utils/engine_group.py373 all_engines=[None] * num_engines if group_config.worker_type != "placeholder" else [],CODE
LOWslime/backends/sglang_utils/sglang_config.py16 worker_type: One of "regular", "prefill", "decode", "placeholder",STRING
LOWslime/backends/sglang_utils/sglang_config.py18 "placeholder" reserves GPU slots without creating engines.STRING
LOWslime/backends/sglang_utils/sglang_config.py37 valid_types = {"regular", "prefill", "decode", "placeholder", "encoder"}CODE
Slop Phrases2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMslime/rollout/on_policy_distillation.py64 # If you have task rewards, you can add them here.COMMENT
MEDIUMexamples/on_policy_distillation/run-qwen3-8B-opd.sh9TEACHER_IP="127.0.0.1" # Use localhost here, you can change it to your IPCODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWslime/utils/ppo_utils.py413 # Step 3: Compute returns on full response kl tensor.COMMENT