AI Slop Code Risk Monitor

radixark/miles

SlopCodeMonitor badge for radixark/miles Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Miles is an enterprise-facing reinforcement learning framework for LLM and VLM post-training, forked from and co-evolving with slime.

36.1 High pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for radixark/miles, a Python project with 3,245 GitHub stars. SynthScan examined 579,957 lines of code across 3702 source files, recording 17675 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 36.1 (High pattern signal); it is not an authorship estimate.

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

36.1
Adjusted Signal
36.1
Raw Pattern Score
100%
Time Factor
2026-11-01
Last Push
3.2K
Stars
Python
Language
580.0K
Lines of Code
3.7K
Files
17.7K
Pattern Hits
2026-10-31
Scan Date
0.05
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 75.3/100 · CRITICAL

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

Hallucinated Dependency & Supply Chain Risk 9.5/100 · LOW

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

Agent Over-Engineering Ratio 80.1/100 · CRITICAL

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

PR Review Velocity Impact 82.4/100 · CRITICAL

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 6HIGH 196MEDIUM 714LOW 16759

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers14652 hits · 15105 pts
SeverityFileLineSnippetContext
LOWtools/convert_hf_to_nvfp4.py75def _is_routed_expert_weight_name(name: str) -> bool:CODE
LOWtools/convert_hf_to_nvfp4.py185def _update_quantization_config(cfg: dict, ignore_list: list[str]) -> None:CODE
LOWtools/convert_hf_to_nvfp4.py264def _collect_gated_pair_locations(CODE
LOWtools/convert_hf_to_torch_dist.py84def _compute_conversion_config(args: Namespace) -> _ConversionConfig:CODE
LOWtools/convert_hf_to_torch_dist.py97def _configure_pipeline_parallel(args: Namespace, *, world_size: int) -> None:CODE
LOWtools/convert_torch_dist_to_hf_ray.py380def compute_dcp_load_accounting(storage_data: dict[Any, Any], plan: LoadPlan) -> tuple[int, int, int]:STRING
LOWtools/convert_torch_dist_to_hf_ray.py390def prepare_cached_metadata_for_reader(STRING
LOWtools/convert_torch_dist_to_hf_ray.py480def is_supported_moe_read_item(read_item: Any, source_key: str, tensor_size: torch.Size) -> bool:STRING
LOWtools/convert_torch_dist_to_hf_ray.py506def create_full_tensor_read_items(source_key: str, metadata: dist_cp.metadata.Metadata) -> list[Any]:STRING
LOWtools/convert_torch_dist_to_hf_ray.py513def create_direct_moe_read_items(block: MoeBlockSpec, md: dist_cp.metadata.TensorStorageMetadata) -> list[ReadItem]:STRING
LOWtools/convert_torch_dist_to_hf_ray.py578def converted_moe_tensors_from_chunk(STRING
LOWtools/convert_torch_dist_to_hf_ray.py698def tensor_metadata_from_checkpoint_metadata(STRING
LOWtools/convert_torch_dist_to_hf_ray.py777def collect_moe_blocks_by_file(STRING
LOWtools/convert_torch_dist_to_hf_ray.py963def prepare_moe_block_task_tensors(STRING
LOWtools/convert_torch_dist_to_hf_ray.py981def prepare_whole_source_task_tensors(STRING
LOWtools/convert_torch_dist_to_hf_ray.py1006def write_prepared_tensor_groups(STRING
LOWtools/convert_torch_dist_to_hf_ray.py1057def initialize_worker_cuda_device(actor_id: int, quantization_config: dict[str, Any] | None) -> int | None:STRING
LOWtools/convert_torch_dist_to_hf_ray.py1308def convert_torch_dist_to_hf_ray(args: Args) -> str:STRING
LOWtools/convert_hf_to_int4_direct.py76def round_to_quantized_type_dtype(CODE
LOWmiles_plugins/mbridge/qwen3_8_next.py137 def _weight_name_mapping_vision(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/qwen3_8_next.py167 def _weight_name_mapping_other(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/qwen3_8_next.py186 def _weight_name_mapping_mcore_to_hf(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/deepseek_v4.py87 def _weight_name_mapping_mcore_to_hf(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/deepseek_v32.py74 def _hf_config_with_rope_fields(self):CODE
LOWmiles_plugins/mbridge/deepseek_v32.py81 def _using_hf_config_with_rope_fields(self):CODE
LOWmiles_plugins/mbridge/mimo.py49 def _weight_name_mapping_mcore_to_hf(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/inkling.py82 def _adjust_mapping_for_shared_weights(self):CODE
LOWmiles_plugins/mbridge/inkling.py85 def _get_hf_shared_weight_keys(self):CODE
LOW⚡miles_plugins/mbridge/qwen3_5.py174 def _adjust_mapping_for_shared_weights(self):CODE
LOW⚡miles_plugins/mbridge/qwen3_5.py180 def _get_hf_shared_weight_keys(self) -> list[str]:CODE
LOW⚡miles_plugins/mbridge/qwen3_5.py185 def _supports_transformer_config_kwarg(self, kwarg_name: str) -> bool:CODE
LOWmiles_plugins/mbridge/qwen3_5.py205 def _get_transformer_layer_spec(self, vp_stage=None):CODE
LOWmiles_plugins/mbridge/qwen3_5.py307 def _weight_name_mapping_mtp_mlp(self, name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/qwen3_5.py326 def _weight_name_mapping_mcore_to_hf(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/glm5_next.py102 def _weight_name_mapping_mcore_to_hf(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/glm4.py64 def _get_transformer_layer_spec(self):CODE
LOWmiles_plugins/mbridge/glm4.py83 def _weight_name_mapping_mcore_to_hf(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/deepseek_v4_1.py73 def _weight_name_mapping_mcore_to_hf(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/glm4moe.py64 def _weight_name_mapping_mcore_to_hf(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/kimi_k3.py202 def _get_transformer_layer_spec(self, vp_stage=None):CODE
LOWmiles_plugins/mbridge/kimi_k3.py214 def _weight_name_mapping_mcore_to_hf(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/qwen3_next.py132 def _weight_name_mapping_mcore_to_hf(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/linear_attn.py4 def _weight_name_mapping_mcore_local_to_global(self, model):CODE
LOWmiles_plugins/mbridge/patch/dequant_fp8_device.py9def _safe_open_on_current_device(filename, framework, device="cpu"):CODE
LOWmiles_plugins/megatron_bridge/mimo_v2.py101 def get_query_key_value_tensors(CODE
LOWmiles_plugins/megatron_bridge/mimo_v2.py296 def _split_qkv_linear_out_weight(self, megatron_model, linear_out_weight: torch.Tensor) -> dict[str, torch.Tensor]:CODE
LOWmiles_plugins/megatron_bridge/nemotron_h.py177def _install_nemotronh_hybrid_layer_shims() -> None:CODE
LOWmiles_plugins/megatron_bridge/nemotron_h.py212def _install_mamba_model_loss_mask_shim() -> None:CODE
LOWmiles_plugins/megatron_bridge/__init__.py23def _install_bridge_pp_group_unwrap() -> None:CODE
LOWmiles_plugins/megatron_bridge/__init__.py46 def broadcast_obj_from_pp_rank(self, obj, *args, **kwargs):CODE
LOWmiles_plugins/models/qwen3_vl.py30def _patch_allgather_vision_embeddings_kwarg() -> None:CODE
LOWmiles_plugins/models/qwen3_vl.py82def _patch_model_forward_and_rope_index() -> None:CODE
LOWmiles_plugins/models/qwen3_vl.py148def _patch_preprocess_packed_seqs_identity(model_mod) -> None:CODE
LOWmiles_plugins/models/qwen3_vl.py206def _prepare_cp_local_context(parsed):CODE
LOWmiles_plugins/models/hf_attention.py184def detect_and_setup_hybrid_cp(model: nn.Module, cp_group: dist.ProcessGroup, cp_rank: int, cp_world_size: int) -> int:CODE
LOWmiles_plugins/models/glm5/glm5.py511 def get_absorb_query_key_value_tensors(CODE
LOWmiles_plugins/models/glm5/glm5.py698 def get_query_key_value_tensors(self):CODE
LOWmiles_plugins/models/glm5/glm5.py721 def set_for_recompute_input_layernorm(self):CODE
LOWmiles_plugins/models/inkling/mm_processor.py117def _reasoning_effort_from_env() -> float | None:CODE
LOWmiles_plugins/models/inkling/mm_processor.py126def render_inkling_messages_to_ids(CODE
14592 more matches not shown…
Decorative Section Separators618 hits · 2168 pts
SeverityFileLineSnippetContext
MEDIUMmiles_plugins/models/glm5/glm5.py220 # =====================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py222 # =====================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py316 # =================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py318 # =================COMMENT
MEDIUM⚡miles_plugins/models/glm5/glm5.py529 # =========================================COMMENT
MEDIUM⚡miles_plugins/models/glm5/glm5.py531 # =========================================COMMENT
MEDIUM⚡miles_plugins/models/glm5/glm5.py541 # =========================================COMMENT
MEDIUM⚡miles_plugins/models/glm5/glm5.py543 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py557 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py559 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py624 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py626 # =========================================COMMENT
MEDIUM⚡miles_plugins/models/deepseek_v4/ops/thd_utils.py215# --------------------------------------------------------------------------------------COMMENT
MEDIUM⚡miles_plugins/models/deepseek_v4/ops/thd_utils.py219# --------------------------------------------------------------------------------------COMMENT
MEDIUMmiles_plugins/models/deepseek_v4/ops/thd_utils.py336# --------------------------------------------------------------------------------------COMMENT
MEDIUMmiles_plugins/models/deepseek_v4/ops/thd_utils.py340# --------------------------------------------------------------------------------------COMMENT
MEDIUMmiles_plugins/models/deepseek_v4/ops/v4_indexer.py105 # =========================================COMMENT
MEDIUMmiles_plugins/models/deepseek_v4/ops/v4_indexer.py107 # =========================================COMMENT
MEDIUMtests/test_attention_output_gate_tp.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_attention_output_gate_tp.py19# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_attention_output_gate_tp.py84# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_attention_output_gate_tp.py86# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_attention_output_gate_tp.py121# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_attention_output_gate_tp.py123# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_attention_output_gate_tp.py170# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_attention_output_gate_tp.py172# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py64# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py66# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py107# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py109# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py144# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py146# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py174# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py176# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py212# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py214# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py335# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py337# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py382# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py384# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py30# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py32# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py451# ---------------------------------------------------------------------------STRING
MEDIUM⚡tests/ci/test/test_log_groups.py453# ---------------------------------------------------------------------------STRING
MEDIUM…ts/fast-gpu/kernels/moe/test_fused_experts_backward.py27# ============================================================================COMMENT
MEDIUM…ts/fast-gpu/kernels/moe/test_fused_experts_backward.py29# ============================================================================COMMENT
MEDIUM⚡…ts/fast-gpu/kernels/moe/test_fused_experts_backward.py274# ============================================================================COMMENT
MEDIUM⚡…ts/fast-gpu/kernels/moe/test_fused_experts_backward.py276# ============================================================================COMMENT
MEDIUM⚡…ts/fast-gpu/kernels/moe/test_fused_experts_backward.py281# ============================================================================COMMENT
MEDIUM⚡…ts/fast-gpu/kernels/moe/test_fused_experts_backward.py283# ============================================================================COMMENT
MEDIUM…ts/fast-gpu/kernels/moe/test_fused_experts_backward.py328# ============================================================================COMMENT
MEDIUM…ts/fast-gpu/kernels/moe/test_fused_experts_backward.py330# ============================================================================COMMENT
MEDIUM…ts/fast-gpu/kernels/moe/test_fused_experts_backward.py546# ============================================================================COMMENT
MEDIUM…ts/fast-gpu/kernels/moe/test_fused_experts_backward.py548# ============================================================================COMMENT
MEDIUM⚡tests/fast/backends/megatron_utils/test_lora_utils.py15# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/fast/backends/megatron_utils/test_lora_utils.py17# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/fast/backends/megatron_utils/test_lora_utils.py112# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/fast/backends/megatron_utils/test_lora_utils.py114# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/fast/backends/megatron_utils/test_lora_utils.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/fast/backends/megatron_utils/test_lora_utils.py40# ---------------------------------------------------------------------------COMMENT
558 more matches not shown…
Unused Imports699 hits · 674 pts
SeverityFileLineSnippetContext
LOWtools/convert_hf_to_torch_dist.py140CODE
LOWtools/param_name_remap.py1CODE
LOWtools/convert_torch_dist_to_hf_ray.py75CODE
LOWtools/kubernetes/generate_chart_schema.py1CODE
LOWtools/kubernetes/lint_charts.py1CODE
LOWmiles_plugins/mbridge/__init__.py1CODE
LOWmiles_plugins/mbridge/__init__.py2CODE
LOWmiles_plugins/mbridge/__init__.py3CODE
LOWmiles_plugins/mbridge/__init__.py4CODE
LOWmiles_plugins/mbridge/__init__.py5CODE
LOWmiles_plugins/mbridge/__init__.py6CODE
LOWmiles_plugins/mbridge/__init__.py7CODE
LOWmiles_plugins/mbridge/__init__.py8CODE
LOWmiles_plugins/mbridge/__init__.py9CODE
LOWmiles_plugins/mbridge/__init__.py10CODE
LOWmiles_plugins/mbridge/__init__.py11CODE
LOWmiles_plugins/mbridge/__init__.py12CODE
LOWmiles_plugins/mbridge/__init__.py13CODE
LOWmiles_plugins/mbridge/__init__.py14CODE
LOWmiles_plugins/mbridge/__init__.py15CODE
LOWmiles_plugins/mbridge/__init__.py16CODE
LOWmiles_plugins/mbridge/patch/__init__.py1CODE
LOWmiles_plugins/megatron_bridge/mimo_v2.py24CODE
LOWmiles_plugins/megatron_bridge/nemotron_h.py22CODE
LOWmiles_plugins/megatron_bridge/__init__.py16CODE
LOWmiles_plugins/megatron_bridge/__init__.py78CODE
LOWmiles_plugins/megatron_bridge/__init__.py83CODE
LOWmiles_plugins/models/qwen3_vl.py9CODE
LOWmiles_plugins/models/linear_attn.py14CODE
LOWmiles_plugins/models/linear_attn.py146CODE
LOWmiles_plugins/models/inkling/mm_towers.py1CODE
LOWmiles_plugins/models/inkling/mm_processor.py1CODE
LOWmiles_plugins/models/inkling/audio_processing.py1CODE
LOWmiles_plugins/models/inkling/vision_encoder.py1CODE
LOWmiles_plugins/models/inkling/model.py4CODE
LOWmiles_plugins/models/inkling/layers.py4CODE
LOWmiles_plugins/models/inkling/image_processing.py1CODE
LOWmiles_plugins/models/qwen3_8_next/model_provider.py18CODE
LOWtests/session_parity_utils.py3CODE
LOWtests/ci/test/test_neon_store.py15CODE
LOWtests/ci/test/test_metric_history_store.py9CODE
LOWtests/ci/test/test_gate_integration.py22CODE
LOWtests/ci/test/test_history_gate.py8CODE
LOWtests/ci/test/test_metric_selection.py4CODE
LOWtests/ci/test/test_log_groups.py18CODE
LOWtests/ci/metric_history/register.py34CODE
LOWtests/ci/metric_history/__init__.py15CODE
LOWtests/ci/metric_history/__init__.py15CODE
LOWtests/ci/metric_history/__init__.py16CODE
LOWtests/ci/metric_history/__init__.py16CODE
LOWtests/ci/metric_history/__init__.py17CODE
LOWtests/ci/metric_history/__init__.py18CODE
LOWtests/ci/metric_history/__init__.py18CODE
LOWtests/ci/metric_history/__init__.py18CODE
LOWtests/ci/metric_history/__init__.py18CODE
LOWtests/ci/metric_history/replay.py7CODE
LOWtests/ci/metric_history/gate.py32CODE
LOWtests/ci/metric_history/constraints.py23CODE
LOWtests/ci/metric_history/selection.py27CODE
LOWtests/ci/metric_history/storage/store.py23CODE
639 more matches not shown…
Modern Structural Boilerplate434 hits · 438 pts
SeverityFileLineSnippetContext
LOWserve_tinker.py24logger = logging.getLogger(__name__)CODE
LOWtrain_async.py25logger = logging.getLogger(__name__)CODE
LOWtrain_multi_policy.py36logger = logging.getLogger(__name__)CODE
LOWtrain.py27logger = logging.getLogger(__name__)CODE
LOWtools/cpu_memory_profiler.py23logger = logging.getLogger(__name__)CODE
LOWtools/convert_hf_to_nvfp4.py185def _update_quantization_config(cfg: dict, ignore_list: list[str]) -> None:CODE
LOWtools/param_name_remap.py3__all__ = ["get_param_name_remap"]CODE
LOWtools/convert_torch_dist_to_hf_ray.py279 def _set_postfix(self) -> None:STRING
LOWtools/visualize/cpu_memory_profiler_visualize.py12logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/mbridge/__init__.py18__all__ = [CODE
LOWmiles_plugins/megatron_bridge/mimo_v2.py45logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/megatron_bridge/nemotron_h.py28logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/megatron_bridge/__init__.py20logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/models/qwen3_vl.py18logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/models/hf_attention.py15logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/models/linear_attn.py48logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/models/kimi_k3/__init__.py7__all__ = ["get_kimi_k3_spec"]CODE
LOWmiles_plugins/models/inkling/__init__.py19__all__ = ["get_inkling_spec", "inkling_mm_model_provider", "inkling_model_provider"]CODE
LOWmiles_plugins/models/inkling/model.py30logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/models/qwen3_8_next/model_provider.py20logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/models/qwen3_8_next/ops/ple.py22logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/models/deepseek_v4_1/engram.py19logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/optimizers/nvme_stream.py61logger = logging.getLogger(__name__)CODE
LOWtests/ci/ci_utils.py86logger = logging.getLogger(__name__)CODE
LOWtests/ci/hardware.py16__all__ = [CODE
LOWtests/ci/ci_register.py10__all__ = [CODE
LOWtests/ci/metric_history/__init__.py20__all__ = [CODE
LOWtests/ci/metric_history/storage/__init__.py13__all__ = [CODE
LOWtests/fast/tools/conversion_main_fixtures.py23 def set_args(self, backend: MegatronArgsNamespace) -> None:CODE
LOWtests/fast/tools/test_conversion_main.py12__all__ = ["conversion_runtime"]CODE
LOWtests/fast/miles_plugins/models/test_backend_specs.py11__all__ = ["gdn"]CODE
LOW…les_plugins/models/qwen3_8_next/test_model_provider.py8__all__ = ["qwen_provider_sdk"]CODE
LOW…ckends/megatron_utils/test_empty_checkpoint_backend.py9__all__ = ["model_sdk"]CODE
LOW…ckends/megatron_utils/test_actor_backend_workspaces.py10__all__ = ["actor_module"]CODE
LOW…ackends/megatron_utils/test_lora_constructor_config.py8__all__ = ["bridge_constructors"]CODE
LOWtests/fast/backends/megatron_utils/test_actor.py287 def update_weights(self, *, weight_version: int) -> None:CODE
LOW…/backends/megatron_utils/test_actor_mutation_scopes.py19__all__ = ["actor_module"]CODE
LOW…s/megatron_utils/test_actor_checkpoint_input_guards.py9__all__ = ["actor_module"]CODE
LOW…fast/backends/megatron_utils/test_typed_model_hooks.py22__all__ = ["actor_module", "train_one_step_env"]CODE
LOW…st/backends/megatron_utils/test_training_sdk_config.py9__all__ = ["model_sdk"]CODE
LOW…/backends/megatron_utils/test_explicit_train_config.py7__all__ = ["train_one_step_env"]CODE
LOW…nds/megatron_utils/test_actor_init_checkpoint_scope.py12__all__ = ["actor_module"]CODE
LOW…fast/backends/megatron_utils/test_training_snapshot.py18__all__ = ["actor_module"]CODE
LOW…kends/megatron_utils/test_initialization_sdk_config.py11__all__ = ["initialization_sdk"]CODE
LOW…nds/megatron_utils/test_actor_explicit_train_config.py17__all__ = ["actor_module", "train_one_step_env"]CODE
LOW…t/backends/megatron_utils/test_shared_ppo_lifecycle.py890 def update_weights(self, weight_version: int) -> None:CODE
LOW…/megatron_utils/test_config_normalization_consumers.py6__all__ = ["megatron_defaults"]CODE
LOW…backends/megatron_utils/test_old_actor_weight_queue.py14__all__ = ["actor_module"]CODE
LOW…ckends/megatron_utils/test_iteration_backend_config.py16__all__ = ["model_sdk"]CODE
LOW…t/backends/megatron_utils/test_explicit_peer_config.py19__all__ = ["actor_module", "state_dict", "peer_checkpoint_boundary"]CODE
LOW…ackends/megatron_utils/test_training_snapshot_calls.py25__all__ = ["actor_module"]CODE
LOW…_utils/update_weight/test_backend_partition_options.py14__all__ = ["duplicate_param_model"]CODE
LOWtests/fast/backends/megatron_utils/lora/conftest.py3__all__ = ["bridge_args", "bridge_provider"]CODE
LOW…ron_utils/lora/test_bridge_optional_pipeline_config.py8__all__ = ["bridge_args", "bridge_provider"]CODE
LOW…t/backends/fsdp_utils/test_checkpoint_config_fields.py11__all__ = ["fsdp_checkpoint_sdk"]CODE
LOW…ckends/fsdp_utils/test_checkpoint_backend_ownership.py12__all__ = ["cpu_checkpoint_actor"]CODE
LOW…ast/backends/fsdp_utils/test_init_backend_ownership.py14__all__ = ["init_backend_capture"]CODE
LOWtests/fast/backends/fsdp_utils/init_backend_fixtures.py50 def set_model_state_dict(model: torch.nn.Module, state: dict, **kwargs: Any) -> None:CODE
LOW…/backends/training_utils/test_backend_rollout_sizes.py9__all__ = ["cpu_rollout_store", "native_backend_owner_state"]CODE
LOW…s/training_utils/metrics/test_backend_flops_logging.py9__all__ = ["native_backend_owner_state"]CODE
374 more matches not shown…
Cross-Language Confusion67 hits · 378 pts
SeverityFileLineSnippetContext
HIGHtests/ci/test/test_gpu_job_plan.py178 assert "inputs.plan_already_resolved && inputs.ref" in checkout["with"]["ref"]CODE
HIGHtests/ci/test/test_gpu_job_plan.py212 assert "'stage-c-4-gpu-b200' && 540 || 360" in rerun["with"]["timeout_minutes"]CODE
HIGH⚡tests/ci/test/test_run_suite.py626 assert "github.event.schedule || inputs.ref || github.run_id" in workflowCODE
HIGH⚡tests/ci/test/test_run_suite.py632 "group: pr-test-${{ github.event.number || github.event.schedule || inputs.ref || github.run_id }}"CODE
HIGHtests/ci/test/test_run_suite.py653 "group: pr-test-rocm-${{ github.event.number || github.event.schedule || inputs.ref || github.run_id }}"CODE
HIGHtests/ci/test/test_run_suite.py689 assert "github.event.schedule || inputs.ref || github.run_id" in workflowCODE
HIGHtests/ci/test/test_file_run.py262 "GITHUB_COMMIT_NAME: ${{ inputs.ref || github.sha }}_"CODE
HIGHtests/ci/test/test_file_run.py263 "${{ github.event.pull_request.number || github.event.inputs.pull_number || 'non-pr' }}"CODE
HIGHtests/fast/launch_scripts/test_sh_harness.py30 AVAILABLE_GPUS=$(python3 -c "import ray; print(int(ray.cluster_resources().get('GPU', 0)))" 2>/dev/null || echo 0)CODE
HIGH…st/backends/megatron_utils/test_checkpoint_transfer.py550 # Empty view shares its base's storage (data_ptr is non-null).COMMENT
HIGH⚡tests/fast/charts/miles_run/test_auto_uninstall.py56 f"sleep 120 && helm uninstall {RUN_RELEASE_NAME} --namespace myns --ignore-not-found",CODE
HIGH⚡tests/fast/utils/test_command_utils.py283 assert command_utils.rsync_cmd("/src", "/dst") == "mkdir -p /dst && rsync -a --info=progress2 /src/ /dst"CODE
HIGH…/utils/chat_template_utils/test_message_matcher_hub.py116 pytest.param('{"value":null}', '{"value":"null"}', id="null-string"),CODE
HIGH⚡…sts/fast/utils/external_utils/test_model_args_utils.py200 f'MODEL_ARGS_LINE="$({sys.executable} {_MODEL_ARGS_CLI} no-such-model 2>/dev/null)" || exit 1; 'CODE
HIGH⚡…ommand_utils/helm_backend/test_cluster_backend_flag.py386 - '{"args": {"run_uuid": "aaaabbbbccccdddd", "wandb_run_id": null}, "static_connections": {}}'CODE
HIGH…_utils/helm_backend/launcher/values/test_pool_entry.py56PREPARE_CMD = "mkdir -p /scratch/dataset && rsync -a /cluster-storage/dataset/ /scratch/dataset"CODE
HIGH…mmand_utils/helm_backend/orchestrator/test_observer.py137 path.write_text('{"status": "exited", "exit_code": null, "timestamp": 0.0}')CODE
HIGH…ternal_utils/command_utils/ray_backend/test_command.py104 expected_cleanup = "pkill -f '^mooncake_master --rpc_port 50061 ' >/dev/null 2>&1 || true"CODE
HIGH…tils/audit_utils/config_snapshot/test_serialization.py109 assert "short: {enabled: false, rank: 0, value: null}" in actualCODE
HIGHtests/fast/dashboard/test_dump_reader_views.py569 assert rebuilt.equals(expected)CODE
HIGHtests/fast/dashboard/test_dump_reader_views.py585 assert rebuilt.equals(expected)CODE
HIGHtests/fast/dashboard/test_dump_reader_views.py131 as null, never as numbers a chart would mistake for data."""STRING
HIGH…infra_features/train_infer_mismatch_helper/test_mis.py12 config = MisConfig.model_validate_json('{"rs_veto_threshold": null}')CODE
HIGH⚡tests/fast/router/test_session_samples_op_v2.py1200 response = app_client.post(f"/sessions/{uuid.uuid4().hex}/samples", content=b'{"max_seq_len":null}')CODE
HIGH⚡tests/fast/router/test_session_samples_op_v2.py1210 response = app_client.post(f"/sessions/{sid}/samples", content=b'{"max_seq_len":null}')CODE
HIGH⚡tests/fast/router/test_session_samples_op.py511 response = app_client.post(f"/sessions/{uuid.uuid4().hex}/samples", content=b'{"max_seq_len":null}')CODE
HIGH⚡tests/fast/router/test_session_samples_op.py521 response = app_client.post(f"/sessions/{sid}/samples", content=b'{"max_seq_len":null}')CODE
HIGHtests/fast/router/test_session_evaluation.py141 b'{"evaluation": null}',CODE
HIGHtests/manual/dashboard_simulator/browser.py31new PerformanceObserver(list => list.getEntries().forEach(e => window.__longTasks.push(e.duration)))CODE
HIGHtests/manual/dashboard_simulator/browser.py42 if (n !== count || window.__inflight > 0) { count = n; stableSince = performance.now(); }CODE
HIGHtests/e2e/short/test_qwen2.5_0.5B_external_rollout.py223 f"ok=0; for _ in $(seq 1 120); do {probes} && ok=1 && break; sleep 5; done; "CODE
HIGHtests/e2e/megatron/test_qwen3_5_35b_a3b_lora_ci.py69 "ray stop --force || true; pkill -9 sglang || true; sleep 10"CODE
HIGH…/model_scripts/test_glm5_2_744b_a40b_5layer_lora_ci.py72 "ray stop --force || true; pkill -9 sglang || true; sleep 10"CODE
HIGH…/model_scripts/test_glm5_1_744b_a40b_6layer_lora_ci.py75 "ray stop --force || true; pkill -9 sglang || true; sleep 10"CODE
HIGH…megatron/model_scripts/test_gpt_oss_20b_moe_lora_ci.py139 "ray stop --force || true; pkill -9 sglang || true; sleep 10"CODE
HIGH…rify/scripts/mechanical_refactor_reproduction_utils.py48 exec_command(f"git add -A && git commit -m {shlex.quote(message)}", cwd=cwd)CODE
HIGH…scripts/tests/reproduction_utils/test_infra_helpers.py66 "shell $HOME && rm -rf / ; metacharacters",CODE
HIGHmiles/utils/external_utils/ray_job.py28 "export no_proxy=127.0.0.1 && export PYTHONUNBUFFERED=1 && "CODE
HIGH…ls/external_utils/command_utils/ray_backend/command.py83 kill_master_cmd = f"pkill -f {shlex.quote(f'^mooncake_master --rpc_port {rpc_port} ')} >/dev/null 2>&1 || true"CODE
HIGHmiles/rollout/agentic/credentials.py36 "provision_hint": "mkdir -p ~/.config/daytona && echo dtn_... > ~/.config/daytona/api_key",CODE
HIGHmiles/rollout/agentic/credentials.py48 "provision_hint": "mkdir -p ~/.config/e2b && echo <key> > ~/.config/e2b/api_key"CODE
HIGHmiles/rollout/generate_utils/rollout_topk_logprobs.py43 # base64 [tokens, k] arrays: no per-candidate detokenization, and -inf survives (JSON would send null)COMMENT
HIGHmiles/rollout/session/samples/codec.py255 setattr(sample, field, copy(spec.null))CODE
HIGHmiles/dashboard/store.py1433 # with null, which would otherwise split one logical seriesCOMMENT
HIGH⚡examples/infra_features/p2p_weight_transfer/run.py733 pkill_python = f"pgrep -x 'python|python3' | grep -v -w {my_pid} | grep -v -w {my_ppid} | xargs -r kill -9 || true"CODE
HIGH⚡examples/infra_features/p2p_weight_transfer/run.py734 run_cmd("pkill -9 sglang || true", check=False)CODE
HIGH⚡examples/infra_features/p2p_weight_transfer/run.py736 run_cmd("ray stop --force || true", check=False)CODE
HIGH⚡examples/infra_features/p2p_weight_transfer/run.py737 run_cmd("pkill -9 ray || true", check=False)CODE
HIGH⚡examples/infra_features/p2p_weight_transfer/run.py740 run_cmd("pkill -9 ray || true", check=False)CODE
HIGH⚡examples/infra_features/p2p_weight_transfer/run.py742 run_cmd("pkill -9 redis || true", check=False)CODE
HIGH…/infra_features/random_async/run_random_async_3node.py32 f'test "$(cat {args.model_dir}/{args.model_name}_torch_dist/latest_checkpointed_iteration.txt 2>/dev/null)" = reCODE
HIGHexamples/experimental/nemo-gym/run.py68 f"pgrep -f '{t}' | {exclude} | xargs -r kill 2>/dev/null || true",CODE
HIGHexamples/experimental/harbor/run.py80 subprocess.run(f"pgrep -f '{t}' | {exclude} | xargs -r kill 2>/dev/null || true", shell=True)CODE
HIGHexamples/experimental/openenv/openenv_launch_common.py62 f"pgrep -f '{t}' | {exclude} | xargs -r kill 2>/dev/null || true",CODE
HIGHexamples/experimental/openenv/tb2_sandbox_recipe.py284 f"mkdir -p /opt/tb2-tasks && curl -fsSL {url} | "CODE
HIGHexamples/experimental/openenv/tb2_sandbox_recipe.py349 "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y "CODE
HIGHexamples/experimental/openenv/tb2_sandbox_recipe.py363 f"mkdir -p /opt/src && echo {_env_src_tar_b64()} | base64 -d | tar xz -C /opt/src",CODE
HIGHexamples/experimental/openenv/openenv_agent_function.py220 "! -name repo_cache -exec rm -rf {} + 2>/dev/null || true"CODE
HIGHexamples/experimental/openenv/scan_golden.py63 cmds.append("mkdir -p /solution && base64 -d /tmp/solution.b64 | tar xz -C /solution && rm -f /tmp/solution.b64")CODE
HIGH…xperimental/formal_math/single_round/kimina_wrapper.py105 '[ -n "$ids" ] && docker stop $ids && docker rm $ids; 'CODE
7 more matches not shown…
Empty Error Handlers72 hits · 360 pts
SeverityFileLineSnippetContext
HIGHmiles_plugins/models/linear_attn.py45except ImportError:CODE
HIGHmiles_plugins/models/qwen3_8_next/gdn.py12except ImportError:CODE
HIGHmiles_plugins/models/qwen3_8_next/hyper_connection.py165except AssertionError:CODE
HIGHtests/ci/ci_utils.py155except ProcessLookupError:CODE
HIGHtests/ci/test/test_lark_notify.py360except ValueError:CODE
HIGHtests/fast-gpu/test_dsv4_indexer_cp_balance.py126except ImportError:CODE
HIGH…nds/training_utils/weight_update/protocols/conftest.py522except ImportError:CODE
HIGH…s/fast/backends/training_utils/loss/loss_test_utils.py353except OSError: # another test process finished the same fetch firstCODE
HIGHtests/fast/utils/test_heartbeat_utils.py50except dataclasses.FrozenInstanceError:CODE
HIGHtests/fast/utils/test_file_utils.py45except RuntimeError:CODE
HIGHtests/fast/utils/test_distributed_lock.py95except RuntimeError:CODE
HIGHtests/fast/utils/test_clock.py255except asyncio.CancelledError:CODE
HIGHtests/fast/utils/ft_utils/test_mini_ft_controller.py97except asyncio.CancelledError:CODE
HIGHtests/fast/utils/workers/test_process_supervisor.py867except (ProcessLookupError, PermissionError):CODE
HIGHtests/fast/utils/workers/test_process_supervisor.py874except (ProcessLookupError, PermissionError):CODE
HIGHtests/fast/utils/workers/test_process_utils.py92except ProcessLookupError:CODE
HIGHtests/fast/utils/workers/test_process_utils.py122except ProcessLookupError:CODE
HIGHtests/fast/utils/workers/test_process_utils.py280except ProcessLookupError:CODE
HIGHtests/fast/utils/workers/test_process_utils.py377except ProcessLookupError:CODE
HIGHtests/fast/utils/workers/real_ray/conftest.py139except Exception:CODE
HIGHtests/fast/utils/workers/real_ray/conftest.py245except Exception:CODE
HIGH…fast/utils/workers/real_ray/test_ray_worker_manager.py451except WorkerUnreachableError:CODE
HIGHtests/fast/utils/workers/e2e/harness.py248except (ConnectionResetError, BrokenPipeError, asyncio.IncompleteReadError):CODE
HIGH…/fast/rollout/session/test_session_server_benchmark.py160except psutil.NoSuchProcess:CODE
HIGHtests/fast/ray/rollout/conftest.py411except Exception:CODE
HIGHtests/fast/ray/rollout/real_ray/conftest.py32except Exception:CODE
HIGHtests/fast/ray/rollout/real_ray/conftest.py99except Exception:CODE
HIGHtests/fast/ray/train/test_group.py175except ray.exceptions.RayActorError:CODE
HIGHtests/utils/soak/k8s_utils/pod_processes.py152except ProcessLookupError:CODE
HIGHtests/manual/session/_benchmark_process.py115except ChildProcessError:CODE
HIGHtests/manual/session/_benchmark_process.py72except psutil.NoSuchProcess:CODE
HIGHtests/manual/session/_benchmark_process.py105except ProcessLookupError:CODE
HIGHtests/manual/session/bench_session_server_overhead.py819except (ValueError, ProcessLookupError, AttributeError):CODE
HIGHtests/manual/session/bench_session_server_overhead.py494except (psutil.NoSuchProcess, psutil.AccessDenied):CODE
HIGHtests/manual/session/_bench_load_generator.py153except transport_errors:CODE
HIGHtests/manual/session/_bench_load_generator.py222except Exception:CODE
HIGHtests/e2e/short/test_qwen2.5_0.5B_opd_sglang.py87except Exception:CODE
HIGHtests/e2e/agentic/test_harbor_rollout.py118except urllib.error.HTTPError:CODE
HIGHmiles/backends/megatron_utils/checkpoint.py111except ImportError:CODE
HIGHmiles/backends/sglang_utils/sglang_engine.py31except ValueError:CODE
HIGHmiles/backends/sglang_utils/sglang_api_client.py56except httpx.HTTPError:CODE
HIGHmiles/backends/sglang_utils/sglang_api_client.py68except httpx.HTTPError:CODE
HIGHmiles/backends/sglang_utils/sglang_api_client.py383except httpx.HTTPError:CODE
HIGHmiles/utils/http_utils.py101except ValueError:CODE
HIGH…utils/chat_template_utils/message_matcher_hub/funcs.py92except RecursionError:CODE
HIGHmiles/utils/test_utils/session_verify_runner.py305except OSError:CODE
HIGHmiles/utils/test_utils/agent_function_stubs.py67except asyncio.CancelledError:CODE
HIGHmiles/utils/test_utils/uvicorn_thread_server.py47except Exception:CODE
HIGHmiles/utils/workers/ray_worker_handle.py62except (TimeoutError, asyncio.TimeoutError):CODE
HIGHmiles/utils/workers/process_utils.py46except ProcessLookupError:CODE
HIGHmiles/utils/workers/process_utils.py53except ProcessLookupError:CODE
HIGHmiles/utils/hf_utils/config.py113except ImportError:CODE
HIGHmiles/rollout/fully_async_data_buffer.py237except asyncio.TimeoutError:CODE
HIGHmiles/rollout/agentic/agent_function.py135except (BrokenPipeError, ConnectionResetError):CODE
HIGHmiles/rollout/rm_hub/math_utils.py364except Exception:CODE
HIGHmiles/rollout/rm_hub/math_utils.py302except Exception:CODE
HIGHexamples/experimental/openenv/tb2_sandbox_daytona.py148except Exception:CODE
HIGHexamples/experimental/openenv/tb2_sandbox_modal.py266except Exception:CODE
HIGH…s/experimental/openenv/openenv_modal_agent_function.py81except ImportError: # pragma: no cover - only without the modal SDKCODE
HIGH…les/experimental/openenv/openenv_e2b_agent_function.py79except ImportError: # pragma: no cover - only without the e2b SDKCODE
12 more matches not shown…
Excessive Try-Catch Wrapping301 hits · 329 pts
SeverityFileLineSnippetContext
LOWtools/convert_hf_to_hf_int4.py39 except Exception as e:CODE
LOWtools/convert_hf_to_int4.py39 except Exception as e:CODE
LOWmiles_plugins/mbridge/qwen3_8_next.py163 except Exception:CODE
LOWmiles_plugins/megatron_bridge/nemotron_h.py245 except Exception as e: # best-effort; avoid breaking unrelated modelsCODE
LOW⚡miles_plugins/megatron_bridge/__init__.py62except Exception as _e: # best-effortCODE
LOW⚡miles_plugins/megatron_bridge/__init__.py70except Exception as _e: # best-effort; Qwen3-VL may be unavailable in some envsCODE
LOW⚡miles_plugins/megatron_bridge/__init__.py79except Exception as _e: # pragma: no cover - defensiveCODE
LOW⚡miles_plugins/megatron_bridge/__init__.py84except Exception as _e: # pragma: no cover - defensiveCODE
LOWmiles_plugins/models/qwen3_vl.py224 except Exception:CODE
MEDIUMmiles_plugins/models/qwen3_vl.py82def _patch_model_forward_and_rope_index() -> None:CODE
LOWmiles_plugins/models/inkling/ops.py22except Exception: # pragma: no coverCODE
LOWmiles_plugins/models/inkling/ops.py185except Exception as _import_error:CODE
LOWtests/ci/ci_utils.py157 except Exception as e:CODE
LOWtests/ci/ci_utils.py196 except Exception as e:CODE
LOWtests/ci/ci_utils.py325 except Exception as e:CODE
LOWtests/ci/ci_utils.py391 except Exception as e:CODE
LOWtests/ci/ci_utils.py623 except Exception as e: # noqa: BLE001 -- the hook applies enforcement belowCODE
LOWtests/ci/ci_utils.py688 except Exception:CODE
MEDIUMtests/ci/ci_utils.py193def _target_func():CODE
LOWtests/ci/github_runner/b200_job_lock.py111 except Exception as error:CODE
LOWtests/ci/metric_history/storage/neon_store.py136 except Exception:STRING
LOWtests/ci/metric_history/storage/neon_store.py188 except Exception:STRING
LOW⚡tests/fast/utils/workers/real_ray/conftest.py139 except Exception:STRING
LOWtests/fast/utils/workers/real_ray/conftest.py245 except Exception:CODE
LOWtests/fast/dashboard/test_engine_derived.py84 except Exception as e: # noqa: BLE001CODE
MEDIUMtests/fast/dashboard/test_engine_derived.py81def _collect(store, results, errors):CODE
LOW⚡tests/fast/dashboard/test_gpu_sampler.py398 except Exception:CODE
LOW⚡tests/fast/ray/rollout/conftest.py368 except Exception:CODE
LOWtests/fast/ray/rollout/conftest.py411 except Exception:CODE
MEDIUMtests/fast/ray/rollout/conftest.py365def _count():CODE
LOWtests/fast/ray/rollout/real_ray/conftest.py32 except Exception:CODE
LOWtests/fast/ray/rollout/real_ray/conftest.py99 except Exception:CODE
LOWtests/fast/ray/train/fake_worker_manager.py112 except Exception:CODE
LOWtests/utils/deploy/hot_restart/cluster_observer.py220 except Exception:CODE
LOWtests/utils/deploy/hot_restart/cluster_observer.py278 except Exception:CODE
LOWtests/utils/soak/core/runner.py130 except Exception as error:CODE
LOWtests/utils/soak/core/utils.py33 except Exception as error:CODE
LOWtests/utils/soak/core/sut_events.py42 except Exception as error:CODE
LOWtests/utils/soak/recipes/gsm8k.py172 except Exception:CODE
LOWtests/manual/session/_bench_load_generator.py222 except Exception:CODE
LOWtests/manual/session/bench_samples_ingest.py171 except Exception as e:CODE
LOW⚡…s/e2e/deploy/conftest_deploy/split/split_deployment.py137 except Exception:CODE
LOWtests/e2e/deploy/conftest_deploy/hot_restart/driver.py237 except Exception:CODE
LOWtests/e2e/deploy/conftest_deploy/hot_restart/driver.py283 except Exception:CODE
MEDIUMtests/e2e/deploy/conftest_deploy/hot_restart/driver.py234def _read_progress_and_observe_cluster(self) -> RunProgress | None:CODE
MEDIUMtests/e2e/deploy/conftest_deploy/hot_restart/driver.py278def _reread_saved_iteration(self) -> int | None:CODE
LOWtests/e2e/ckpt/test_fully_async_ckpt.py167 except Exception:CODE
LOWtests/e2e/short/test_qwen2.5_0.5B_opd_sglang.py87 except Exception:CODE
LOW⚡tests/e2e/k8s_apiserver/apiserver.py104 except Exception:CODE
LOWtests/e2e/k8s_apiserver/test_k8s_reflector.py505 except Exception as exception:CODE
LOWtests/e2e/k8s_apiserver/utils.py64 except Exception:CODE
LOWtests/e2e/k8s_apiserver/test_environment.py136 except Exception as exception:CODE
LOW…-verify/scripts/mechanical_refactor_proof_generator.py925 except Exception:CODE
LOW…-verify/scripts/mechanical_refactor_proof_generator.py978 except Exception:CODE
LOW…-verify/scripts/mechanical_refactor_proof_generator.py1247 except Exception as exc:CODE
LOWmiles/backends/megatron_utils/model_provider.py305 except Exception as e:CODE
LOWmiles/backends/megatron_utils/hf_export.py77 except Exception as e:CODE
LOWmiles/backends/megatron_utils/lora/utils.py233 except Exception:CODE
LOWmiles/backends/megatron_utils/megatron_to_hf/inkling.py56 except Exception:CODE
MEDIUMmiles/backends/megatron_utils/megatron_to_hf/inkling.py51def _qkv_tp_size(args):CODE
241 more matches not shown…
Deep Nesting289 hits · 282 pts
SeverityFileLineSnippetContext
LOWtrain_async.py29CODE
LOWtrain.py30CODE
LOWtools/convert_hf_to_nvfp4.py185CODE
LOWtools/convert_hf_to_nvfp4.py241CODE
LOWtools/convert_hf_to_nvfp4.py264CODE
LOWtools/convert_hf_to_nvfp4.py313CODE
LOWtools/convert_hf_to_mxfp8.py123CODE
LOWtools/convert_mxfp4_to_fp8.py52CODE
LOWtools/convert_mimo_v2_to_bf16.py204CODE
LOWtools/convert_kimi_int4_to_bf16.py101CODE
LOWtools/convert_torch_dist_to_hf_ray.py578CODE
LOWtools/convert_torch_dist_to_hf_ray.py330CODE
LOWtools/fp8_cast_bf16.py43CODE
LOWtools/convert_to_hf.py29CODE
LOWdocker/build.py109CODE
LOWdocker/image_inputs.py75CODE
LOWdocker/image_inputs.py82CODE
LOWmiles_plugins/mbridge/deepseek_v32.py97CODE
LOWmiles_plugins/mbridge/deepseek_v32.py133CODE
LOWmiles_plugins/mbridge/glm4.py83CODE
LOWmiles_plugins/mbridge/glm4moe.py35CODE
LOWmiles_plugins/models/inkling/mm_processor.py51CODE
LOWmiles_plugins/models/inkling/mm_processor.py79CODE
LOWmiles_plugins/models/inkling/mm_processor.py211CODE
LOWmiles_plugins/models/inkling/image_processing.py101CODE
LOWmiles_plugins/models/deepseek_v4/deepseek_v4.py60CODE
LOWmiles_plugins/models/deepseek_v4/deepseek_v4.py245CODE
LOWmiles_plugins/models/deepseek_v4_1/engram.py118CODE
LOWmiles_plugins/models/deepseek_v4_1/deepseek_v4_1.py216CODE
LOWmiles_plugins/models/deepseek_v4_1/deepseek_v4_1.py477CODE
LOWtests/ci/stage_selection.py142CODE
LOWtests/ci/ci_utils.py54CODE
LOWtests/ci/ci_utils.py305CODE
LOWtests/ci/ci_utils.py434CODE
LOWtests/ci/ci_policy.py92CODE
LOWtests/ci/ci_policy.py184CODE
LOWtests/ci/hardware.py76CODE
LOWtests/ci/file_run.py31CODE
LOWtests/ci/ci_register.py395CODE
LOWtests/ci/test/test_gate_integration.py807CODE
LOWtests/ci/test/test_history_replay.py422CODE
LOWtests/ci/test/test_snapshot_record_artifacts.py19CODE
LOWtests/ci/test/test_ci_register.py739CODE
LOWtests/ci/github_runner/b200_job_lock.py39CODE
LOWtests/ci/github_runner/b200_job_lock.py81CODE
LOWtests/ci/metric_history/register.py299CODE
LOWtests/ci/metric_history/replay.py84CODE
LOWtests/fast-gpu/test_nvme_optimizer_main_init.py69CODE
LOWtests/fast-gpu/test_dsv4_thd_cp_correctness.py128CODE
LOWtests/fast-gpu/test_dsv4_indexer_cp_balance.py131CODE
LOWtests/fast-gpu/_p2p_weight_update_equivalence_worker.py244CODE
LOWtests/fast-gpu/_p2p_weight_update_equivalence_worker.py384CODE
LOWtests/fast/test_platform_contract.py98CODE
LOWtests/fast/train_args.py40CODE
LOWtests/fast/test_ray_cluster_bootstrap.py85CODE
LOWtests/fast/source_scan.py49CODE
LOWtests/fast/tinker/core/test_service.py759CODE
LOW…sts/fast/backends/test_fsdp_hub_kernels_distributed.py27CODE
LOW…sts/fast/backends/test_fsdp_hub_kernels_distributed.py56CODE
LOW…st/backends/training_utils/test_local_response_rows.py26CODE
229 more matches not shown…
Cross-File Repetition54 hits · 270 pts
SeverityFileLineSnippetContext
HIGHtests/fast/utils/test_misc.py0teardown paths overlap, so a second dispose must not raise.STRING
HIGH…sts/fast/ray/rollout/test_server_cell_state_machine.py0teardown paths overlap, so a second dispose must not raise.STRING
HIGHtests/fast/ray/train/test_group_create.py0teardown paths overlap, so a second dispose must not raise.STRING
HIGH…t_utils/comparisons/test_inference_engine_checksums.py0the happy path has to stay reachable, or the refusals below prove nothing.STRING
HIGHtests/fast/utils/test_utils/comparisons/test_metrics.py0the happy path has to stay reachable, or the refusals below prove nothing.STRING
HIGH…t/e2e/deploy/split/test_scenario_split_multi_policy.py0the happy path has to stay reachable, or the refusals below prove nothing.STRING
HIGHtests/fast/e2e/deploy/common/test_example_args.py0the happy path has to stay reachable, or the refusals below prove nothing.STRING
HIGH…imental/openenv/test_openenv_daytona_agent_function.py0the typed check is best-effort: the backend still classifies by text when the sdk (or that class) is absent, rather thanSTRING
HIGH…xperimental/openenv/test_openenv_e2b_agent_function.py0the typed check is best-effort: the backend still classifies by text when the sdk (or that class) is absent, rather thanSTRING
HIGH…erimental/openenv/test_openenv_modal_agent_function.py0the typed check is best-effort: the backend still classifies by text when the sdk (or that class) is absent, rather thanSTRING
HIGH…st/e2e/deploy/hot_restart/test_scenario_hot_restart.py0such a take-over resumes exactly where the script it replaced stood, so it redoes nothing.STRING
HIGH…hot_restart/test_scenario_hot_restart_no_checkpoint.py0such a take-over resumes exactly where the script it replaced stood, so it redoes nothing.STRING
HIGHtests/fast/e2e/deploy/hot_restart/test_driver.py0such a take-over resumes exactly where the script it replaced stood, so it redoes nothing.STRING
HIGHtests/fast/ray/specs/test_inference.py0the release has to contain the executor pod, or the address book would point at nothing.STRING
HIGHtests/fast/ray/specs/test_train.py0the release has to contain the executor pod, or the address book would point at nothing.STRING
HIGHtests/fast/ray/specs/test_rollout.py0the release has to contain the executor pod, or the address book would point at nothing.STRING
HIGHtests/e2e/fsdp/test_qwen3_0.6B_megatron_fsdp_align.py0--train-env-vars '{"pytorch_cuda_alloc_conf":"expandable_segments:true"}'STRING
HIGHscripts/run_qwen3_4b.py0--train-env-vars '{"pytorch_cuda_alloc_conf":"expandable_segments:true"}'STRING
HIGHscripts/run_mcore_fsdp.py0--train-env-vars '{"pytorch_cuda_alloc_conf":"expandable_segments:true"}'STRING
HIGHscripts/run_qwen3_30b_a3b_fsdp.py0--train-env-vars '{"pytorch_cuda_alloc_conf":"expandable_segments:true"}'STRING
HIGHscripts/run_qwen3_0_6b_fsdp.py0--train-env-vars '{"pytorch_cuda_alloc_conf":"expandable_segments:true"}'STRING
HIGHscripts/run_qwen3_0_6b_torchtitan.py0--train-env-vars '{"pytorch_cuda_alloc_conf":"expandable_segments:true"}'STRING
HIGHscripts/run_nemotron_3_nano_4b_fsdp.py0--train-env-vars '{"pytorch_cuda_alloc_conf":"expandable_segments:true"}'STRING
HIGHtests/e2e/fsdp/_true_on_policy_rollout_topk.py0--apply-chat-template-kwargs '{"enable_thinking":false}'STRING
HIGHscripts/run_qwen3_4b_npu.py0--apply-chat-template-kwargs '{"enable_thinking":false}'STRING
HIGHscripts/run_qwen3_4b.py0--apply-chat-template-kwargs '{"enable_thinking":false}'STRING
HIGHexamples/experimental/nemo-gym/run.py0kill old ray jobs and stale processes to free gpu resources.STRING
HIGHexamples/experimental/harbor/run.py0kill old ray jobs and stale processes to free gpu resources.STRING
HIGHexamples/experimental/openenv/openenv_launch_common.py0kill old ray jobs and stale processes to free gpu resources.STRING
HIGH…e-agent-harbor-docker/run-glm47-flash-agentic-async.py0kill old ray jobs and stale processes to free gpu resources.STRING
HIGHexamples/swe-agent-harbor-docker/run.py0kill old ray jobs and stale processes to free gpu resources.STRING
HIGH…/swe-agent-harbor-docker/run_glm52_lora_tb2_daytona.py0kill old ray jobs and stale processes to free gpu resources.STRING
HIGHexamples/experimental/nemo-gym/run.py0convert hf checkpoint to torch_dist format if not already done.STRING
HIGHexamples/experimental/openenv/run-openenv-tbench2.py0convert hf checkpoint to torch_dist format if not already done.STRING
HIGHexamples/swe-agent-harbor-docker/run.py0convert hf checkpoint to torch_dist format if not already done.STRING
HIGHexamples/lora/run_lora_native.py0run grpo lora training through the native path (assumes prepare already ran).STRING
HIGHexamples/lora/run_qwen3_lora_native.py0run grpo lora training through the native path (assumes prepare already ran).STRING
HIGHexamples/lora/run_glm5_2_744b_a40b_lora_native.py0run grpo lora training through the native path (assumes prepare already ran).STRING
HIGHscripts/run_glm5_744b_a40b.py0convert hf checkpoint to fp8 (block quantization). megatron still uses bf16.STRING
HIGHscripts/run_glm5_2_744b_a40b.py0convert hf checkpoint to fp8 (block quantization). megatron still uses bf16.STRING
HIGHscripts/amd/run_glm5_2_744b_a40b.py0convert hf checkpoint to fp8 (block quantization). megatron still uses bf16.STRING
HIGHscripts/run_glm5_1_744b_a40b_lora.py0run grpo lora training (assumes the dataset is already prepared).STRING
HIGHscripts/run_glm5_2_744b_a40b_lora.py0run grpo lora training (assumes the dataset is already prepared).STRING
HIGHscripts/run_qwen3_5_35b_a3b_lora.py0run grpo lora training (assumes the dataset is already prepared).STRING
HIGHscripts/run_glm5_1_744b_a40b_lora.py0download the model checkpoint + dataset, then run grpo lora training.STRING
HIGHscripts/run_glm5_2_744b_a40b_lora.py0download the model checkpoint + dataset, then run grpo lora training.STRING
HIGHscripts/run_qwen3_5_35b_a3b_lora.py0download the model checkpoint + dataset, then run grpo lora training.STRING
HIGHscripts/run_deepseek_v4_1.py0--apply-chat-template-kwargs '{"thinking_mode":"thinking"}'STRING
HIGHscripts/run_deepseek_v4.py0--apply-chat-template-kwargs '{"thinking_mode":"thinking"}'STRING
HIGHscripts/amd/run_deepseek_v4.py0--apply-chat-template-kwargs '{"thinking_mode":"thinking"}'STRING
HIGHscripts/run_inkling.py0return parallel config args for tested gpu configurations. only includes configurations that have been verified to work.STRING
HIGHscripts/run_deepseek_v4.py0return parallel config args for tested gpu configurations. only includes configurations that have been verified to work.STRING
HIGHscripts/amd/run_inkling.py0return parallel config args for tested gpu configurations. only includes configurations that have been verified to work.STRING
HIGHscripts/amd/run_deepseek_v4.py0return parallel config args for tested gpu configurations. only includes configurations that have been verified to work.STRING
Structural Annotation Overuse123 hits · 224 pts
SeverityFileLineSnippetContext
LOWtests/ci/README.md11### Step 0: Prepare `/data/miles_ci`COMMENT
LOW⚡tests/ci/README.md38### Step 1: EnvCOMMENT
LOW⚡tests/ci/README.md48### Step 2: Prepare `/home/runner/externals`COMMENT
LOW⚡tests/ci/README.md58### Step 3: RunCOMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py186 # Step 1: sender — wrap state_dict for transportCOMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py189 # Step 2: sender — flatten via pytree (what PGTransport does internally)COMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py192 # Step 3: sender — pickle treespec + non-tensor leaves; "send" tensor leaves over the wireCOMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py199 # Step 4: receiver — unpickle metadata + interleave received tensors back into leaf orderCOMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py213 # Step 5: receiver — unwrap into iteration + state_dictCOMMENT
LOW⚡tests/fast/utils/test_process_group_utils.py267 # Step 1: single groupCOMMENT
LOW⚡tests/fast/utils/test_process_group_utils.py273 # Step 2: two groups = global sumCOMMENT
LOW⚡tests/fast/utils/test_process_group_utils.py278 # Step 3: bitwise equality across all ranksCOMMENT
LOW⚡tests/fast/utils/test_process_group_utils.py286 # Step 4: empty groups = no-opCOMMENT
LOW⚡tests/fast/utils/test_process_group_utils.py291 # Step 5: MAX opCOMMENT
LOW⚡tests/fast/utils/test_process_group_utils.py310 # Step 1: single group gatherCOMMENT
LOWtests/fast/utils/test_process_group_utils.py324 # Step 2: two group gather — global rank 0 gets everythingCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py125 # Step 1: first_wait=0, so first check runs immediately after task startsCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py129 # Step 2: Elapse less than interval — no second checkCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py133 # Step 3: Elapse to interval — second checkCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py150 # Step 1: Elapse 100s — still in first_waitCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py154 # Step 2: Elapse to 300s — first_wait completes, first check runsCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py158 # Step 3: Elapse interval — second checkCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py322 # Step 1: Initial first_wait (100s)COMMENT
LOW⚡tests/fast/utils/test_health_checker.py328 # Step 2: Normal interval (5s)COMMENT
LOW⚡tests/fast/utils/test_health_checker.py332 # Step 3: a full off/on cycle observed by the loop resets first_waitCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py337 # Step 4: the new first_wait (100s) must elapse before the next checkCOMMENT
LOW⚡tests/fast/utils/test_clock.py239 # Step 1: first_wait=10COMMENT
LOW⚡tests/fast/utils/test_clock.py244 # Step 2: interval=5COMMENT
LOW⚡tests/fast/utils/test_clock.py248 # Step 3: interval=5COMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py396 # Step 1: First poll → heal attempt fails, sets next_attempt_atCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py401 # Step 2: Poll again without advancing clock → should skip healCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py406 # Step 3: Advance clock past backoff → should attempt heal againCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py435 # Step 1: First attempt failsCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py442 # Step 2: Advance clock past backoff, second attempt succeedsCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py512 # Step 1: Unhealthy → heal fails → backoff entry createdCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py517 # Step 2: Cell becomes NOT_APPLICABLE → backoff entry cleanedCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py538 # Step 1: Unhealthy → heal fails → backoff entry createdCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py543 # Step 2: Cell becomes HEALTHY → backoff entry cleanedCOMMENT
LOW⚡tests/fast/utils/test_witness/test_module.py71 # Step 1: Compute loss without witnessCOMMENT
LOW⚡tests/fast/utils/test_witness/test_module.py81 # Step 2: Compute loss with witnessCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py108 # Step 1: Run the full collection (no mocks)COMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py111 # Step 2: Verify the package appears in editable_packagesCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py118 # Step 3: Verify git info — clean repoCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py128 # Step 4: Verify package also in full_pip_listCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py138 # Step 1: Stage an uncommitted fileCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py142 # Step 2: Run collectionCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py145 # Step 3: Verify dirty + diff_stat mentions the fileCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py160 # Step 1: Modify a tracked file without stagingCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py164 # Step 2: Run collectionCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py167 # Step 3: Verify dirtyCOMMENT
LOW⚡…t_analyzer/rules/test_cross_replica_weight_checksum.py80 # Step 0: matchCOMMENT
LOW⚡…t_analyzer/rules/test_cross_replica_weight_checksum.py83 # Step 1: mismatchCOMMENT
LOW⚡…t_analyzer/rules/test_cross_replica_weight_checksum.py86 # Step 2: matchCOMMENT
LOW⚡tests/fast/ray/train/test_group.py423 # Step 1: Stop cell 1COMMENT
LOW⚡tests/fast/ray/train/test_group.py426 # Step 2: RefreshCOMMENT
LOW⚡tests/fast/ray/train/test_group.py429 # Step 3: Quorum bumped (init was quorum 0, this is first reconfigure)COMMENT
LOW⚡tests/fast/ray/train/test_group.py432 # Step 4: Remaining alive cells have updated indep_dp_infoCOMMENT
LOW⚡tests/fast/ray/train/test_group.py441 # Step 5: Stopped cell untouchedCOMMENT
LOW⚡tests/fast/ray/train/test_group.py444 # Step 6: Actors received reconfigure_indep_dpCOMMENT
LOW⚡tests/fast/ray/train/test_group.py463 # Step 1: Stop cell 2, then start it (pending)COMMENT
63 more matches not shown…
Verbosity Indicators109 hits · 202 pts
SeverityFileLineSnippetContext
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py186 # Step 1: sender — wrap state_dict for transportCOMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py189 # Step 2: sender — flatten via pytree (what PGTransport does internally)COMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py192 # Step 3: sender — pickle treespec + non-tensor leaves; "send" tensor leaves over the wireCOMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py199 # Step 4: receiver — unpickle metadata + interleave received tensors back into leaf orderCOMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py213 # Step 5: receiver — unwrap into iteration + state_dictCOMMENT
LOW⚡tests/fast/utils/test_process_group_utils.py267 # Step 1: single groupCOMMENT
LOW⚡tests/fast/utils/test_process_group_utils.py273 # Step 2: two groups = global sumCOMMENT
LOW⚡tests/fast/utils/test_process_group_utils.py278 # Step 3: bitwise equality across all ranksCOMMENT
LOW⚡tests/fast/utils/test_process_group_utils.py286 # Step 4: empty groups = no-opCOMMENT
LOW⚡tests/fast/utils/test_process_group_utils.py291 # Step 5: MAX opCOMMENT
LOW⚡tests/fast/utils/test_process_group_utils.py310 # Step 1: single group gatherCOMMENT
LOWtests/fast/utils/test_process_group_utils.py324 # Step 2: two group gather — global rank 0 gets everythingCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py125 # Step 1: first_wait=0, so first check runs immediately after task startsCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py129 # Step 2: Elapse less than interval — no second checkCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py133 # Step 3: Elapse to interval — second checkCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py150 # Step 1: Elapse 100s — still in first_waitCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py154 # Step 2: Elapse to 300s — first_wait completes, first check runsCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py158 # Step 3: Elapse interval — second checkCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py322 # Step 1: Initial first_wait (100s)COMMENT
LOW⚡tests/fast/utils/test_health_checker.py328 # Step 2: Normal interval (5s)COMMENT
LOW⚡tests/fast/utils/test_health_checker.py332 # Step 3: a full off/on cycle observed by the loop resets first_waitCOMMENT
LOW⚡tests/fast/utils/test_health_checker.py337 # Step 4: the new first_wait (100s) must elapse before the next checkCOMMENT
LOW⚡tests/fast/utils/test_clock.py239 # Step 1: first_wait=10COMMENT
LOW⚡tests/fast/utils/test_clock.py244 # Step 2: interval=5COMMENT
LOW⚡tests/fast/utils/test_clock.py248 # Step 3: interval=5COMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py396 # Step 1: First poll → heal attempt fails, sets next_attempt_atCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py401 # Step 2: Poll again without advancing clock → should skip healCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py406 # Step 3: Advance clock past backoff → should attempt heal againCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py435 # Step 1: First attempt failsCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py442 # Step 2: Advance clock past backoff, second attempt succeedsCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py512 # Step 1: Unhealthy → heal fails → backoff entry createdCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py517 # Step 2: Cell becomes NOT_APPLICABLE → backoff entry cleanedCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py538 # Step 1: Unhealthy → heal fails → backoff entry createdCOMMENT
LOW⚡tests/fast/utils/test_mini_ft_controller.py543 # Step 2: Cell becomes HEALTHY → backoff entry cleanedCOMMENT
LOW⚡tests/fast/utils/test_witness/test_module.py71 # Step 1: Compute loss without witnessCOMMENT
LOW⚡tests/fast/utils/test_witness/test_module.py81 # Step 2: Compute loss with witnessCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py108 # Step 1: Run the full collection (no mocks)COMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py111 # Step 2: Verify the package appears in editable_packagesCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py118 # Step 3: Verify git info — clean repoCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py128 # Step 4: Verify package also in full_pip_listCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py138 # Step 1: Stage an uncommitted fileCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py142 # Step 2: Run collectionCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py145 # Step 3: Verify dirty + diff_stat mentions the fileCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py160 # Step 1: Modify a tracked file without stagingCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py164 # Step 2: Run collectionCOMMENT
LOW⚡tests/fast/utils/env_report/test_git_state.py167 # Step 3: Verify dirtyCOMMENT
LOW⚡…t_analyzer/rules/test_cross_replica_weight_checksum.py80 # Step 0: matchCOMMENT
LOW⚡…t_analyzer/rules/test_cross_replica_weight_checksum.py83 # Step 1: mismatchCOMMENT
LOW⚡…t_analyzer/rules/test_cross_replica_weight_checksum.py86 # Step 2: matchCOMMENT
LOW⚡tests/fast/ray/train/test_group.py423 # Step 1: Stop cell 1COMMENT
LOW⚡tests/fast/ray/train/test_group.py426 # Step 2: RefreshCOMMENT
LOW⚡tests/fast/ray/train/test_group.py429 # Step 3: Quorum bumped (init was quorum 0, this is first reconfigure)COMMENT
LOW⚡tests/fast/ray/train/test_group.py432 # Step 4: Remaining alive cells have updated indep_dp_infoCOMMENT
LOW⚡tests/fast/ray/train/test_group.py441 # Step 5: Stopped cell untouchedCOMMENT
LOW⚡tests/fast/ray/train/test_group.py444 # Step 6: Actors received reconfigure_indep_dpCOMMENT
LOW⚡tests/fast/ray/train/test_group.py463 # Step 1: Stop cell 2, then start it (pending)COMMENT
LOW⚡tests/fast/ray/train/test_group.py467 # Step 2: Refresh heals the pending cellCOMMENT
LOW⚡tests/fast/ray/train/test_group.py470 # Step 3: All 3 cells are now aliveCOMMENT
LOW⚡tests/fast/ray/train/test_group.py473 # Step 4: All cells have consistent indep_dp_infoCOMMENT
LOW⚡tests/fast/ray/train/test_group.py478 # Step 5: Healed cell's actors received initCOMMENT
49 more matches not shown…
AI Slop Vocabulary32 hits · 102 pts
SeverityFileLineSnippetContext
MEDIUMtests/ci/test/test_history_gate.py706# --- dual-register files + harness-supplied registry ------------------------COMMENT
MEDIUMtests/ci/test/test_history_gate.py731 # single-registry reparse raise (ambiguous). With the harness passing theCOMMENT
MEDIUMtests/ci/test/test_ci_history.py204 # This covers the backend's current file naming detail, not a CI harnessCOMMENT
MEDIUMtests/ci/metric_history/gate.py315 # never raise on a dual-register / no-register file. Use the harness'sCOMMENT
MEDIUMtests/ci/metric_history/gate.py331 # The harness already selected one register_*_ci() call; use it directly andCOMMENT
MEDIUM⚡…fast/utils/chat_template_utils/test_fixed_templates.py63 # stay append-only regardless of which roles the harness appends.COMMENT
MEDIUMtests/e2e/short/test_run_megatron.py163 # The CI harness invokes this file as bare `python3 <file>` with no args.COMMENT
MEDIUM…s/e2e/sglang/test_session_server_multi_role/_common.py92 # This harness produces one rollout batch, so its train-side batch divisorCOMMENT
LOW…ron_utils/megatron_to_hf/processors/quantizer_nvfp4.py102 # for other parameters, we just return the original converted_named_paramsCOMMENT
LOW…atron_utils/megatron_to_hf/processors/quantizer_fp8.py123 # for other parameters, we just return the original converted_named_paramsCOMMENT
LOW…ron_utils/megatron_to_hf/processors/quantizer_mxfp8.py114 # for other parameters, we just return the original converted_named_paramsCOMMENT
LOWmiles/backends/fsdp_utils/lr_scheduler.py98 # If the learning rate is constant, just return the initial value.COMMENT
MEDIUMmiles/utils/arguments.py316 # On iff the CI harness injected MILES_CI_GATE_RECORD_DIR (the same env varCOMMENT
MEDIUMmiles/utils/tracking_utils/ci_history.py62# Env var naming the directory the harness assigns for this run's records.COMMENT
MEDIUMmiles/utils/tracking_utils/ci_history.py103 # No harness-assigned directory: nothing to collect into. LeavingCOMMENT
MEDIUMmiles/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
MEDIUM⚡examples/experimental/harbor/harbor_agent_function.py107# --- harness bindings -------------------------------------------------------COMMENT
MEDIUM⚡examples/experimental/harbor/harbor_agent_function.py109# What Miles must know per harness to hand it the session URL: which env vars /COMMENT
MEDIUM⚡examples/experimental/harbor/harbor_agent_function.py111# Everything else about running the harness is Harbor's.COMMENT
MEDIUM⚡examples/experimental/harbor/harbor_agent_function.py119# constraint and which just follow the harness.COMMENT
MEDIUM⚡examples/experimental/harbor/harbor_agent_function.py128 # the model name Harbor passes to the harnessCOMMENT
MEDIUMexamples/experimental/openenv/openenv_launch_common.py223 # WITH the harness marker, which the per-episode guard cannot tell fromCOMMENT
MEDIUM…s/experimental/openenv/openenv_modal_agent_function.py60# older install outright, and the shared agent loop's harness-marker guardCOMMENT
MEDIUM…les/experimental/openenv/openenv_e2b_agent_function.py57# older install outright, and the shared agent loop's harness-marker guardCOMMENT
MEDIUM…experimental/openenv/openenv_daytona_agent_function.py65# older install outright, and the shared agent loop's harness-marker guardCOMMENT
MEDIUMexamples/experimental/openenv/openenv_agent_function.py341 # - harness marker absent: the server scored, but not through theCOMMENT
MEDIUM⚡examples/experimental/openenv/openenv_agent_function.py458 # No canonical verdict (infra/harness failure or a non-canonical server,COMMENT
MEDIUM⚡examples/experimental/openenv/openenv_agent_function.py467 # the scalar reward (plus the harness marker). The detailed pytest CTRFCOMMENT
MEDIUMexamples/experimental/openenv/scan_golden.py110 # server-side scoring failure or a non-canonical harness isCOMMENT
MEDIUMexamples/experimental/hud/rollout.py455 # from a turn the harness could not even parse a tool call out of.COMMENT
MEDIUMexamples/experimental/hud/run_hud2048.py140 # cut mid-JSON, which the harness answers by rewriting that turn's recordedCOMMENT
MEDIUMexamples/experimental/hud/computer_tool.py177 # typing, say), and the harness's own log says only "-> computer".COMMENT
Hallucination Indicators6 hits · 90 pts
SeverityFileLineSnippetContext
CRITICAL⚡tests/fast/utils/test_witness/test_module.py218 model.local_head_witness.witness.weight.data.fill_(42.0)CODE
CRITICAL⚡tests/fast/utils/test_witness/test_module.py246 assert 5 in model.local_head_witness.witness.weight.grad.squeeze(-1).nonzero(as_tuple=True)[0].tolist()CODE
CRITICAL⚡tests/fast/utils/test_witness/test_module.py402 chunk.module.local_head_witness.witness.weight.data.fill_(1.0)CODE
CRITICAL⚡tests/fast/utils/test_witness/test_module.py403 chunk.module.local_tail_witness.witness.weight.data.fill_(1.0)CODE
CRITICAL⚡tests/fast/utils/test_witness/test_module.py425 chunk.module.local_head_witness.witness.weight.data.fill_(1.0)CODE
CRITICAL⚡tests/fast/utils/test_witness/test_module.py426 chunk.module.local_tail_witness.witness.weight.data.fill_(1.0)CODE
Modern AI Meta-Vocabulary31 hits · 81 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md72 [every model and every black-box harness](https://miles.radixark.com/docs/user-guide/agentic-rollout),CODE
MEDIUMtests/fast/dashboard/dummy_dump.py180 # every third sample is agentic-shaped: multi-turn (mixed weight versionsCOMMENT
MEDIUMtests/manual/dashboard_simulator/calibration.py203 if "lifecycle" in fields["metadata"]: # only agentic sessions record itCODE
MEDIUM…-verify/scripts/mechanical_refactor_proof_generator.py716 # are exactly the relocated symbols (the prep commit inlined them, scaffolding included, asCOMMENT
MEDIUM…-verify/scripts/mechanical_refactor_proof_generator.py1033 # A move source the commit deletes (its defs all relocated, leaving only scaffolding) isCOMMENT
MEDIUMmiles/utils/test_utils/session_verify_agent.py162# English-only on purpose: matches the production agentic flows tokenizationCOMMENT
MEDIUMmiles/rollout/fully_async_data_buffer.py36# returns multiple samples per trajectory (e.g. multi-agent).COMMENT
MEDIUMmiles/rollout/base_types.py127 # One generate may lead to multiple samples, such as multi-agent, tree-like exploration, orCOMMENT
MEDIUMmiles/dashboard/store.py1024 # per-turn spans (multi_turn / agentic) supersede the coarseCOMMENT
MEDIUMmiles/dashboard/static/views_tokens.js305 // open on the first generated token: an agentic prompt runs to thousands ofCOMMENT
MEDIUMdocs/models/gpt-oss/gpt-oss.md8[GPT-OSS](https://huggingface.co/openai/gpt-oss-20b) is OpenAI's open-weight language model, designed for reasoning, ageCODE
MEDIUMdocs/models/glm/glm5.md7[GLM-5](https://huggingface.co/zai-org/GLM-5) is the most powerful language model in Zhipu AI's GLM series, scaling to 7CODE
MEDIUMdocs/models/glm/glm5-2.md75Beyond the math recipe above, [`examples/experimental/openenv/glm52_tbench2/`](https://github.com/radixark/miles/tree/maCODE
MEDIUMdocs/models/kimi/kimi-k2.5.md9[Kimi-K2.5](https://huggingface.co/moonshotai/Kimi-K2.5) is an open-source, natively multimodal agentic model from MoonsCODE
MEDIUMdocs/examples/multi-lora.md10- `tinker_agent/`: client package for agentic training; see [Agentic training](#agentic-training).CODE
MEDIUMdocs/examples/index.md57- **[tau-bench](https://github.com/radixark/miles/tree/main/examples/experimental/tau-bench)**: Training in an agentic mCODE
MEDIUM…erimental/multi_agent/run-qwen3-30B-A3B-multi-agent.sh57# multi-agent do not support eval for nowCOMMENT
MEDIUMexamples/experimental/tau-bench/generate_with_tau.py45 "agent": "tool-calling", # Select between ["tool-calling", "act", "react", "few-shot"]CODE
MEDIUMexamples/experimental/openenv/openenv_agent_function.py107# total episode time: a long agentic trajectory can loop for turns * (longCOMMENT
MEDIUMexamples/experimental/openenv/openenv_agent_function.py326 # text protocol the Harbor mini-swe-agent scaffold uses.COMMENT
MEDIUM…/openenv/glm52_tbench2/run_glm5_2_744b_a40b_daytona.py142 # with long-horizon agentic trials, waiting for each group's slowestCOMMENT
MEDIUMexamples/experimental/openenv/glm52_tbench2/README.md1# GLM-5.2 744B-A40B — agentic RL on terminal-bench-2 (Daytona sandboxes)COMMENT
MEDIUMexamples/experimental/strands_sglang/README.md3This example connects `miles` with [`strands-sglang`](https://github.com/horizon-rl/strands-sglang) (SGLang extension foCODE
MEDIUM…e-agent-harbor-docker/run-glm47-flash-agentic-async.py65 # model's own context window, so a runaway trajectory can hold a 100k+ token KV footprint andCOMMENT
MEDIUMexamples/swe-agent-harbor-docker/run.py47 # model's own context window, so a runaway trajectory can hold a 100k+ token KV footprint andCOMMENT
MEDIUM…/swe-agent-harbor-docker/run_glm52_lora_tb2_daytona.py102 # GLM-5.2 specifics. megatron is dense O(S**2) and caps near S=4096, so agenticCOMMENT
MEDIUM…/swe-agent-harbor-docker/run_glm52_lora_tb2_daytona.py359 # earliest warning of policy collapse on a long agentic run.COMMENT
MEDIUM…/swe-agent-harbor-docker/run_glm52_lora_tb2_daytona.py417 # Variable-length agentic batches fragment the allocator pool until NCCL's ownCOMMENT
MEDIUMexamples/multi_lora/README.md7- `tinker_agent/`: client package for agentic training; see [Agentic training](#agentic-training).CODE
MEDIUMscripts/sandbox_smoke/run.py69 sys.path.insert(0, str(REPO)) # for miles.rollout.agentic; no PYTHONPATH neededCODE
MEDIUM.github/workflows/run-ci-file.yml4# Fixed default-branch orchestration for /rerun-test <test-file>. The reviewedCOMMENT
Over-Commented Block74 hits · 70 pts
SeverityFileLineSnippetContext
LOWtools/cpu_memory_profiler.py1# CPU Memory Profiler - standalone tool for profiling system memory during training.COMMENT
LOWtests/ci/ci_utils.py761COMMENT
LOWtests/ci/github_runner/docker-compose.yml1# Please refer to `README.md` for how to setup this GitHub action runner.COMMENT
LOWtests/ci/metric_history/register.py81_FIELDS: dict[str, tuple[bool, object]] = {COMMENT
LOWtests/fast/utils/test_http_utils.py281# Simulated-delay tests (mock time + socket so tests run instantly)COMMENT
LOW…/fast/utils/chat_template_utils/test_tito_tokenizer.py161# ---------------------------------------------------------------------------COMMENT
LOW…utils/chat_template_utils/test_token_seq_comparator.py141COMMENT
LOW…utils/chat_template_utils/test_token_seq_comparator.py241 sp_b = env.token_id(env.config.known_special_tokens[1])COMMENT
LOW…utils/chat_template_utils/test_token_seq_comparator.py261# GLM47 template: <|assistant|>{content}<|user|>COMMENT
LOW…utils/chat_template_utils/test_token_seq_comparator.py341 )COMMENT
LOW…utils/chat_template_utils/test_token_seq_comparator.py401 text = env.encode("same")COMMENT
LOWtests/fast/utils/chat_template_utils/test_template.py181COMMENT
LOWtests/e2e/conftest_dumper.py21 # attn_k disabled: megatron dumps k pre-RoPE (after adjust_key_value) whileCOMMENT
LOW…ang/test_session_server_multi_role/test_minimax_m27.py21)COMMENT
LOWtests/e2e/torchtitan/test_qwen3_8B_tp_pp.py1from tests.ci.ci_register import register_cuda_ciCOMMENT
LOWtests/e2e/torchtitan/test_qwen3_30B_A3B_tp_pp_ep_cp.py1from tests.ci.ci_register import register_cuda_ciCOMMENT
LOWtests/e2e/megatron/test_qwen3_5_35B_A3B/_common.py41 enable_mtp_training: boolCOMMENT
LOW.claude/skills/setup-ci-host/setup-host.sh1#!/usr/bin/env bashCOMMENT
LOW.claude/skills/manage-gh-runners/manage-runners.sh1#!/usr/bin/env bashCOMMENT
LOWmiles/utils/seqlen_balancing.py1# Copied from https://github.com/volcengine/verl/blob/468adf22c43b744348051fccd7a5d830c6c3c36a/verl/utils/seqlen_balanciCOMMENT
LOWmiles/utils/test_utils/chat_template_verify.py141# * ``APPEND_ROLES: frozenset[str]`` — non-assistant roles that appear afterCOMMENT
LOWmiles/utils/test_utils/chat_template_verify.py401 )COMMENT
LOWmiles/rollout/inference_rollout/__init__.py1# This is a refactor of the portions above generate-function in sglang_rollout.py,COMMENT
LOWmiles/rollout/rm_hub/math_dapo_utils.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWmiles/dashboard/static/carpet.js21COMMENT
LOWdocs/advanced/p2p-weight-transfer.md141#COMMENT
LOW…atures/train_infer_mismatch_helper/run-qwen3-4b-mis.sh121 --attention-backend flashCOMMENT
LOW…s/train_infer_mismatch_helper/run-qwen3-4b-fsdp-mis.sh121 # geometric: geometric meanCOMMENT
LOW…tures/low_precision/run-qwen3-30b-a3b-fp8-two-nodes.sh1#!/bin/bashCOMMENT
LOW…_features/p2p_weight_transfer/prepare-qwen3-30B-A3B.sh1#!/bin/bashCOMMENT
LOW…p2p_weight_transfer/run-qwen3-30B-A3B-4node-profile.sh1#!/bin/bashCOMMENT
LOW…a_features/p2p_weight_transfer/prepare-glm4.7-flash.sh1#!/bin/bashCOMMENT
LOW…fra_features/p2p_weight_transfer/prepare-glm4.5-air.sh1#!/bin/bashCOMMENT
LOW…les/infra_features/p2p_weight_transfer/prepare-glm5.sh1#!/bin/bashCOMMENT
LOW…/p2p_weight_transfer/run-glm4.7-flash-2node-profile.sh1#!/bin/bashCOMMENT
LOW…es/p2p_weight_transfer/run-glm4.5-air-8node-profile.sh1#!/bin/bashCOMMENT
LOW…eatures/p2p_weight_transfer/run-glm5-disagg-profile.sh1#!/bin/bashCOMMENT
LOW…_weight_transfer/run-qwen3-235B-A22B-16node-profile.sh1#!/bin/bashCOMMENT
LOW…ures/p2p_weight_transfer/run-kimi-k2-64node-profile.sh1#!/bin/bashCOMMENT
LOW…/infra_features/p2p_weight_transfer/prepare-kimi-k2.sh1COMMENT
LOWexamples/experimental/harbor/harbor_agent_function.py101COMMENT
LOWexamples/experimental/openenv/tb2_sandbox_modal.py81# Lifetime (see the orphan-reclamation note above). The TTL is a HARD ceiling onCOMMENT
LOWexamples/experimental/openenv/tb2_sandbox_recipe.py341 # debian-ish (all 89 current TB2 images are debian/ubuntu based). DoCOMMENT
LOWexamples/experimental/openenv/tb2_sandbox_recipe.py361 # package: local fixes (canonical evaluate, TB2_COMMAND_TIMEOUT_S)COMMENT
LOWexamples/experimental/openenv/run-openenv-tbench2.py81 openenv_env_url: str = os.environ.get("OPENENV_ENV_URL", "http://localhost:8003")COMMENT
LOWexamples/experimental/openenv/run-openenv-tbench2.py101 openenv_sandbox_backend: str = os.environ.get("OPENENV_SANDBOX_BACKEND", "")COMMENT
LOWexamples/experimental/openenv/openenv_agent_function.py61COMMENT
LOWexamples/experimental/openenv/openenv_agent_function.py181# post_episode(env, action_cls) optional hygiene hook (a long-livedCOMMENT
LOWexamples/experimental/openenv/openenv_agent_function.py201 # under that path after every episode, which fills the sandbox overlayCOMMENT
LOWexamples/experimental/openenv/openenv_agent_function.py321 # Feed the command output back as a user turn, not a tool turn. GLMCOMMENT
LOW…/openenv/glm52_tbench2/run_glm5_2_744b_a40b_daytona.py81 openenv_run_id: str = os.environ.get("OPENENV_RUN_ID", "")COMMENT
LOW…erimental/openenv/glm52_tbench2/launch_16node_slurm.sh1#!/bin/bashCOMMENT
LOWexamples/experimental/search-r1/run_qwen2.5_3B.sh121 # --use-tisCOMMENT
LOWexamples/experimental/search-r1/qa_em_format.py1# Adapt from https://github.com/PeterGriffinJin/Search-R1/blob/ceee7b89655ed52f205b9beb98e1190c3eedcfb0/verl/utils/rewarCOMMENT
LOW…al/search-r1/local_dense_retriever/retrieval_server.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…perimental/search-r1/local_dense_retriever/download.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWexamples/experimental/hud/run_hud2048.py101 )COMMENT
LOWexamples/experimental/hud/run_hud2048.py121 # the directory content is byte-identical (mind stray __pycache__).COMMENT
LOW…/swe-agent-harbor-docker/run_glm52_lora_tb2_daytona.py101COMMENT
LOW…n-qwen2.5-3B-megatron-lora-disaggregated-multi-node.sh1#!/bin/bashCOMMENT
14 more matches not shown…
AI Structural Patterns43 hits · 38 pts
SeverityFileLineSnippetContext
LOWtools/convert_hf_to_int4_direct.py118CODE
LOWdocker/build.py205CODE
LOWmiles_plugins/models/hf_attention.py71CODE
LOWmiles_plugins/models/linear_attn.py524CODE
LOWmiles_plugins/models/glm5/glm5.py195CODE
LOWmiles_plugins/models/kimi_k3/layers.py209CODE
LOWmiles_plugins/models/kimi_k3/layers.py320CODE
LOWmiles_plugins/models/inkling/model.py69CODE
LOWmiles_plugins/models/glm5_next/dsa.py168CODE
LOWmiles_plugins/models/qwen3_8_next/gdn.py174CODE
LOWmiles_plugins/models/deepseek_v4/deepseek_v4.py245CODE
LOWmiles_plugins/models/deepseek_v4/ops/cp_utils.py44CODE
LOWmiles_plugins/models/deepseek_v4/ops/cp_utils.py65CODE
LOWmiles_plugins/models/deepseek_v4_1/deepseek_v4_1.py477CODE
LOWtests/ci/ci_utils.py434CODE
LOWtests/ci/test/test_comment_ci_command.py234CODE
LOWtests/fast/backends/megatron_utils/test_initialize.py13CODE
LOW…nds/training_utils/weight_update/protocols/conftest.py259CODE
LOW…ast/backends/training_utils/loss/test_loss_snapshot.py241CODE
LOW…s/fast/backends/sglang_utils/test_server_args_utils.py80CODE
LOWtests/fast/utils/test_health_checker.py26CODE
LOWtests/fast/utils/test_arguments.py687CODE
LOW…d_utils/helm_backend/launcher/test_launch_lifecycle.py629CODE
LOWtests/fast/utils/workers/test_ray_worker_manager.py44CODE
LOW…ts/fast/utils/workers/test_ray_worker_manager_serve.py99CODE
LOWtests/fast/utils/workers/reconcile/test_loop.py52CODE
LOWtests/fast/rollout/generate_hub/test_single_turn.py74CODE
LOWtests/fast/rollout/generate_utils/test_sample_utils.py20CODE
LOWtests/fast/rollout/session/test_samples.py48CODE
LOWtests/fast/dashboard/dummy_dump.py60CODE
LOWtests/fast/ray/rollout/real_ray/conftest.py36CODE
LOWtests/fast/ray/train/test_group.py49CODE
LOW…atron_to_hf/processors/quantizer_compressed_tensors.py225CODE
LOWmiles/backends/training_utils/loss/hub/math_utils.py1024CODE
LOWmiles/utils/http_utils.py455CODE
LOWmiles/utils/distributed_utils.py49CODE
LOWmiles/utils/data.py196CODE
LOW…les/utils/external_utils/command_utils/base_backend.py155CODE
LOWmiles/utils/external_utils/miles_workbench/__main__.py41CODE
LOWmiles/ray/train/group.py520CODE
LOWexamples/experimental/tau-bench/openai_tool_adapter.py109CODE
LOW…al/search-r1/local_dense_retriever/retrieval_server.py290CODE
LOWexamples/retool_v2/tool_sandbox.py352CODE
Self-Referential Comments12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMmiles_plugins/mbridge/mimo.py81 # Create a proxy name to use with parent class methodsCOMMENT
MEDIUMmiles_plugins/models/qwen3_5.py84 # Define the decoder block specCOMMENT
MEDIUMmiles_plugins/models/qwen3_next.py42 # Define the decoder block specCOMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py767 # Define the decoder block specCOMMENT
MEDIUMtests/test_attention_output_gate_tp.py138 # Create a full gate where each head has a distinct valueCOMMENT
MEDIUMmiles/backends/megatron_utils/model_provider.py265 # Define the decoder block specCOMMENT
MEDIUMmiles/backends/megatron_utils/model_provider.py273 # Define the decoder layer specCOMMENT
MEDIUMmiles/backends/fsdp_utils/lr_scheduler.py77 # Initialize parent classCOMMENT
MEDIUMmiles/utils/async_utils.py33# Create a background event loop threadCOMMENT
MEDIUMmiles/utils/http_utils.py385 # Define the async actorCOMMENT
MEDIUMmiles/rollout/rm_hub/__init__.py68 # This function is intended for remote or time-consuming reward model evaluation.COMMENT
MEDIUMexamples/experimental/tau-bench/trainable_agents.py213 # Initialize tracking variablesCOMMENT
Example Usage Blocks14 hits · 25 pts
SeverityFileLineSnippetContext
LOW⚡…_features/p2p_weight_transfer/prepare-qwen3-30B-A3B.sh7# Usage:COMMENT
LOW…p2p_weight_transfer/run-qwen3-30B-A3B-4node-profile.sh8# Usage:COMMENT
LOW⚡…a_features/p2p_weight_transfer/prepare-glm4.7-flash.sh8# Usage:COMMENT
LOW⚡…fra_features/p2p_weight_transfer/prepare-glm4.5-air.sh10# Usage:COMMENT
LOW…les/infra_features/p2p_weight_transfer/prepare-glm5.sh11# Usage:COMMENT
LOW⚡…eatures/p2p_weight_transfer/prepare-qwen3-235b-A22B.sh8# Usage:COMMENT
LOW…/p2p_weight_transfer/run-glm4.7-flash-2node-profile.sh5# Usage:COMMENT
LOW…es/p2p_weight_transfer/run-glm4.5-air-8node-profile.sh11# Usage:COMMENT
LOW…eatures/p2p_weight_transfer/run-glm5-disagg-profile.sh11# Usage:COMMENT
LOW…_weight_transfer/run-qwen3-235B-A22B-16node-profile.sh5# Usage:COMMENT
LOW…ures/p2p_weight_transfer/run-kimi-k2-64node-profile.sh9# Usage:COMMENT
LOW⚡…/infra_features/p2p_weight_transfer/prepare-kimi-k2.sh11# Usage:COMMENT
LOW…n-qwen2.5-3B-megatron-lora-disaggregated-multi-node.sh15# Usage:COMMENT
LOWexamples/geo3k_vlm/run_geo3k_vlm.sh5# Usage:COMMENT
Overly Generic Function Names14 hits · 19 pts
SeverityFileLineSnippetContext
LOW⚡tests/fast/utils/test_platforms.py16 def helper(x):CODE
LOW…/scripts/tests/proof_generator/test_script_and_diff.py113 "model.py": ("def keep():\n return 0\n\n\ndef helper(x):\n return x + 1\n"),CODE
LOW…/scripts/tests/proof_generator/test_script_and_diff.py135 "def helper(x):\n"CODE
LOW…rify/scripts/tests/proof_generator/test_infer_moves.py37 "model.py": ("def keep():\n return 0\n\n\ndef helper(x):\n return x + 1\n"),CODE
LOW…rify/scripts/tests/proof_generator/test_infer_moves.py59 "def helper(x):\n"CODE
LOW⚡…ipts/tests/reproduction_utils/test_extract_function.py159 signature=" def helper(self):",CODE
LOW⚡…ipts/tests/reproduction_utils/test_extract_function.py169 assert " def helper(self):\n val = compute_thing()\n" in outCODE
LOW⚡…y/scripts/tests/reproduction_utils/test_move_symbol.py63 (tmp_path / "src.py").write_text("class Old:\n @staticmethod\n def helper(x):\n return x * 2\n")CODE
LOW⚡…y/scripts/tests/reproduction_utils/test_move_symbol.py67 assert "def helper(x):\n return x * 2\n" in (tmp_path / "dst.py").read_text()CODE
LOW⚡…y/scripts/tests/reproduction_utils/test_move_symbol.py222 " def helper(y):\n"CODE
LOW⚡…y/scripts/tests/reproduction_utils/test_move_symbol.py230 assert " @staticmethod\n def helper(y):\n" in dst_outCODE
LOW⚡…y/scripts/tests/reproduction_utils/test_move_symbol.py265 (tmp_path / "src.py").write_text("def helper(x):\n return x + 1\n")CODE
LOW⚡…y/scripts/tests/reproduction_utils/test_move_symbol.py320 (tmp_path / "src.py").write_text("def helper(x):\n return x\n")CODE
LOW⚡…y/scripts/tests/reproduction_utils/test_move_symbol.py324 assert " def helper(x):\n return x\n" in (tmp_path / "dst.py").read_text()CODE
Redundant / Tautological Comments12 hits · 17 pts
SeverityFileLineSnippetContext
LOWmiles_plugins/mbridge/mimo.py51 # Check if this is an MTP layer weightCOMMENT
LOWtests/ci/ci_utils.py648 # Check if we should retryCOMMENT
LOWmiles/backends/megatron_utils/model_provider.py170 # Check if the custom provider supports vp_stage parameterCOMMENT
LOWmiles/backends/megatron_utils/model_provider.py302 # Check if fp8_model_init supports preserve_high_precision_init_valCOMMENT
LOWmiles/backends/fsdp_utils/arguments.py108 ): # Check if it's a Union type # config-access-exempt: inspect union type arguments when deriving dataclass CCODE
LOWmiles/backends/training_utils/metrics/log_utils.py392 if val: # Check if val is not emptyCODE
LOW…s/utils/chat_template_utils/templates/encoding_dsv4.py413 # Check if previous message has a task - if so, this is a task output (no thinking)COMMENT
LOW…/utils/chat_template_utils/templates/encoding_dsv41.py352 # Check if previous message has a task - if so, this is a task output (no thinking)COMMENT
LOWmiles/utils/hf_utils/config.py29 # Set True to override transformers' native config.COMMENT
LOWexamples/experimental/tau-bench/trainable_agents.py322 # Check if doneCOMMENT
LOWexamples/experimental/search-r1/qa_em_format.py86 # Check if this is a tagCOMMENT
LOWexamples/retool_v2/tool_sandbox.py236 # Return resultCOMMENT
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHmiles/backends/sglang_utils/sglang_api_client.py111Run /health_generate on the underlying SGLang HTTP server. Args: timeout: Timeout for the health reSTRING
HIGHexamples/experimental/tau-bench/openai_tool_adapter.py52 Parse sglang response to OpenAI compatible format Args: response: Raw response text from sSTRING
HIGHexamples/experimental/tau-bench/generate_with_tau.py120 Generate a complete agent-environment interaction trajectory for tau-bench. This is the main entry point for mSTRING
Fake / Example Data14 hits · 13 pts
SeverityFileLineSnippetContext
LOW⚡tests/fast/backends/sglang_utils/test_sglang_config.py795 worker_type="placeholder", num_gpus_per_engine=1, needs_offload=False, overrides={"x": 99}CODE
LOWtests/fast/rollout/generate_hub/test_single_turn.py291 "process_fn_kwargs": {"routed_experts": "placeholder"},CODE
LOW⚡tests/fast/ray/specs/test_inference.py1275 {"worker_type": "placeholder", "num_gpus": gpu_offset, "num_gpus_per_engine": num_gpus_per_engine}CODE
LOWtests/fast/ray/specs/test_inference.py638 {"worker_type": "placeholder", "num_gpus": 4, "num_gpus_per_engine": 4},CODE
LOWtests/fast/ray/specs/test_inference.py783 {"worker_type": "placeholder", "num_gpus": 4, "num_gpus_per_engine": 4},CODE
LOWtests/fast/ray/specs/test_inference.py1260 {"worker_type": "placeholder", "num_gpus": 12, "num_gpus_per_engine": 12},CODE
LOWtests/fast/ray/specs/test_entrypoint.py73 {"worker_type": "placeholder", "num_gpus": 4, "num_gpus_per_engine": 4},CODE
LOW…/ray/rollout/test_rollout_server_expected_num_cells.py28 dict(worker_type="placeholder", num_gpus=8, num_gpus_per_engine=4),CODE
LOW…/ray/rollout/test_rollout_server_expected_num_cells.py48 dict(worker_type="placeholder", num_gpus=2, num_gpus_per_engine=2),CODE
LOWtests/fast/ray/rollout/test_config_matrix.py97 @pytest.mark.parametrize("wt", ["regular", "prefill", "decode", "placeholder"])CODE
LOW⚡tests/fast/ray/rollout/test_debug_data.py33 with pytest.raises(AssertionError, match="placeholder"):CODE
LOWmiles/backends/sglang_utils/sglang_api_client.py18 PLACEHOLDER = "placeholder"CODE
LOWmiles/backends/sglang_utils/sglang_config.py37 "placeholder" reserves GPU slots without creating engines.STRING
LOWmiles/utils/debug_utils/send_to_sglang.py53 client = AsyncOpenAI(api_key="dummy_key", base_url=url)CODE
Slop Phrases2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMmiles/rollout/on_policy_distillation.py441 # 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