AI Slop Code RIsk Monitor

radixark/miles

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

37.4 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for radixark/miles, a Python project with 3,089 GitHub stars. SynthScan examined 471,431 lines of code across 2856 source files, recording 14395 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 37.4 (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.

37.4
Adjusted Signal
37.4
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
3.1K
Stars
Python
Language
471.4K
Lines of Code
2.9K
Files
14.4K
Pattern Hits
2026-10-12
Scan Date
0.07
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 75.2/100 · CRITICAL

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

Hallucinated Dependency & Supply Chain Risk 10.7/100 · LOW

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

Agent Over-Engineering Ratio 80.7/100 · CRITICAL

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

PR Review Velocity Impact 83.1/100 · CRITICAL

Which changes need focused human review? 14395 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 191MEDIUM 684LOW 13514

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 14395 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 Identifiers11594 hits · 12081 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_torch_dist_to_hf_ray.py375def compute_dcp_load_accounting(storage_data: dict[Any, Any], plan: LoadPlan) -> tuple[int, int, int]:STRING
LOWtools/convert_torch_dist_to_hf_ray.py385def prepare_cached_metadata_for_reader(STRING
LOWtools/convert_torch_dist_to_hf_ray.py475def is_supported_moe_read_item(read_item: Any, source_key: str, tensor_size: torch.Size) -> bool:STRING
LOWtools/convert_torch_dist_to_hf_ray.py501def create_full_tensor_read_items(source_key: str, metadata: dist_cp.metadata.Metadata) -> list[Any]:STRING
LOWtools/convert_torch_dist_to_hf_ray.py508def create_direct_moe_read_items(block: MoeBlockSpec, md: dist_cp.metadata.TensorStorageMetadata) -> list[ReadItem]:STRING
LOWtools/convert_torch_dist_to_hf_ray.py573def converted_moe_tensors_from_chunk(STRING
LOWtools/convert_torch_dist_to_hf_ray.py693def tensor_metadata_from_checkpoint_metadata(STRING
LOWtools/convert_torch_dist_to_hf_ray.py772def collect_moe_blocks_by_file(STRING
LOWtools/convert_torch_dist_to_hf_ray.py958def prepare_moe_block_task_tensors(STRING
LOWtools/convert_torch_dist_to_hf_ray.py976def prepare_whole_source_task_tensors(STRING
LOWtools/convert_torch_dist_to_hf_ray.py1001def write_prepared_tensor_groups(STRING
LOWtools/convert_torch_dist_to_hf_ray.py1049def initialize_worker_cuda_device(actor_id: int, quantization_config: dict[str, Any] | None) -> int | None:STRING
LOWtools/convert_torch_dist_to_hf_ray.py1296def 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.py168 def _weight_name_mapping_other(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/qwen3_8_next.py187 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.py68 def _hf_config_with_rope_fields(self):CODE
LOWmiles_plugins/mbridge/deepseek_v32.py75 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.py80 def _adjust_mapping_for_shared_weights(self):CODE
LOWmiles_plugins/mbridge/inkling.py83 def _get_hf_shared_weight_keys(self):CODE
LOW⚡miles_plugins/mbridge/qwen3_5.py166 def _adjust_mapping_for_shared_weights(self):CODE
LOW⚡miles_plugins/mbridge/qwen3_5.py172 def _get_hf_shared_weight_keys(self) -> list[str]:CODE
LOW⚡miles_plugins/mbridge/qwen3_5.py177 def _supports_transformer_config_kwarg(self, kwarg_name: str) -> bool:CODE
LOWmiles_plugins/mbridge/qwen3_5.py193 def _get_transformer_layer_spec(self, vp_stage=None):CODE
LOWmiles_plugins/mbridge/qwen3_5.py279 def _weight_name_mapping_mtp_mlp(self, name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/qwen3_5.py298 def _weight_name_mapping_mcore_to_hf(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/glm5_next.py110 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.py128 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/megatron_bridge/mimo_v2.py83 def get_query_key_value_tensors(CODE
LOWmiles_plugins/megatron_bridge/nemotron_h.py159def _install_nemotronh_hybrid_layer_shims() -> None:CODE
LOWmiles_plugins/megatron_bridge/nemotron_h.py192def _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__.py44 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.py76def _patch_model_forward_and_rope_index() -> None:CODE
LOWmiles_plugins/models/qwen3_vl.py134def _patch_preprocess_packed_seqs_identity(model_mod) -> None:CODE
LOWmiles_plugins/models/qwen3_vl.py182def _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.py514 def get_absorb_query_key_value_tensors(CODE
LOWmiles_plugins/models/glm5/glm5.py701 def get_query_key_value_tensors(self):CODE
LOWmiles_plugins/models/glm5/glm5.py724 def set_for_recompute_input_layernorm(self):CODE
LOWmiles_plugins/models/kimi_k3/lora.py137def _enable_full_recompute_input_grads(model) -> None: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
LOWmiles_plugins/models/inkling/__init__.py13def inkling_mm_model_provider(*args, **kwargs):CODE
LOWmiles_plugins/models/inkling/model.py149def get_inkling_dense_layer_spec(config) -> ModuleSpec:CODE
LOWmiles_plugins/models/inkling/model.py297def inkling_mm_model_provider(pre_process=True, post_process=True, vp_stage=None):CODE
11534 more matches not shown…
Decorative Section Separators590 hits · 2086 pts
SeverityFileLineSnippetContext
MEDIUMmiles_plugins/models/glm5/glm5.py218 # =====================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py220 # =====================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py321 # =================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py323 # =================COMMENT
MEDIUM⚡miles_plugins/models/glm5/glm5.py532 # =========================================COMMENT
MEDIUM⚡miles_plugins/models/glm5/glm5.py534 # =========================================COMMENT
MEDIUM⚡miles_plugins/models/glm5/glm5.py544 # =========================================COMMENT
MEDIUM⚡miles_plugins/models/glm5/glm5.py546 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py560 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py562 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py627 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py629 # =========================================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.py334# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py336# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py380# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py382# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py30# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py32# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/ci/test/test_log_groups.py448# ---------------------------------------------------------------------------STRING
MEDIUM⚡tests/ci/test/test_log_groups.py450# ---------------------------------------------------------------------------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.py18# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/fast/backends/megatron_utils/test_lora_utils.py20# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/fast/backends/megatron_utils/test_lora_utils.py45# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/fast/backends/megatron_utils/test_lora_utils.py47# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/fast/backends/megatron_utils/test_lora_utils.py100# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/fast/backends/megatron_utils/test_lora_utils.py102# ---------------------------------------------------------------------------COMMENT
530 more matches not shown…
Unused Imports652 hits · 628 pts
SeverityFileLineSnippetContext
LOWtools/convert_hf_to_torch_dist.py11CODE
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/megatron_bridge/mimo_v2.py23CODE
LOWmiles_plugins/megatron_bridge/nemotron_h.py22CODE
LOWmiles_plugins/megatron_bridge/__init__.py16CODE
LOWmiles_plugins/megatron_bridge/__init__.py76CODE
LOWmiles_plugins/megatron_bridge/__init__.py81CODE
LOWmiles_plugins/models/qwen3_vl.py9CODE
LOWmiles_plugins/models/linear_attn.py14CODE
LOWmiles_plugins/models/linear_attn.py145CODE
LOWmiles_plugins/models/kimi_k3/lora.py1CODE
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/lora.py1CODE
LOWmiles_plugins/models/inkling/layers.py4CODE
LOWmiles_plugins/models/inkling/image_processing.py1CODE
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.py20CODE
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.py31CODE
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/gate.py29CODE
LOWtests/ci/metric_history/constraints.py24CODE
LOWtests/ci/metric_history/selection.py27CODE
LOWtests/ci/metric_history/storage/store.py22CODE
LOWtests/ci/metric_history/storage/__init__.py9CODE
LOWtests/ci/metric_history/storage/__init__.py9CODE
LOWtests/ci/metric_history/storage/__init__.py10CODE
592 more matches not shown…
Modern Structural Boilerplate357 hits · 363 pts
SeverityFileLineSnippetContext
LOWserve_tinker.py24logger = logging.getLogger(__name__)CODE
LOWtrain_async.py19logger = logging.getLogger(__name__)CODE
LOWtrain_multi_policy.py29logger = logging.getLogger(__name__)CODE
LOWtrain.py22logger = 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.py274 def _set_postfix(self) -> None:STRING
LOWtools/visualize/cpu_memory_profiler_visualize.py12logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/mbridge/__init__.py16__all__ = [CODE
LOWmiles_plugins/megatron_bridge/mimo_v2.py43logger = 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/kimi_k3/lora.py11logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/models/inkling/__init__.py19__all__ = ["get_inkling_spec", "inkling_mm_model_provider", "inkling_model_provider"]CODE
LOWmiles_plugins/models/inkling/model.py26logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/models/inkling/lora.py16logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/models/qwen3_8_next/model_provider.py16logger = 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.py53logger = logging.getLogger(__name__)CODE
LOWtests/ci/ci_utils.py82logger = 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/cluster_backends.py24logger = logging.getLogger(__name__)CODE
LOW…t/backends/megatron_utils/test_shared_ppo_lifecycle.py736 def update_weights(self) -> None:CODE
LOW…kends/training_utils/loss/test_loss_cp2_consistency.py41def _set_parallel_state(rank: int, world_size: int, tp_group) -> None:CODE
LOW…training_utils/loss/test_tinker_loss_cp_consistency.py39def _set_parallel_state(rank: int, world_size: int, tp_group) -> None:CODE
LOWtests/fast/utils/test_context_lock_failure_patterns.py125async def _update_weights_flow(controller: _Controller, label: str) -> None:CODE
LOWtests/fast/utils/test_health_checker.py19async def _settle(clock: FakeClock) -> None:CODE
LOWtests/fast/utils/test_context_lock.py505async def _set_after_yields(event: asyncio.Event, yields: int) -> None:CODE
LOWtests/fast/utils/test_arguments.py53def _set_megatron_parallel_sizes(args: argparse.Namespace) -> None:CODE
LOWtests/fast/utils/workers/cell_operations/test_ray.py82async def _settle() -> None:CODE
LOWtests/fast/ray/test_train_actor.py256 def set_device(self, device: str) -> None:CODE
LOW⚡tests/fast/ray/test_kubernetes_assembly.py98 def set_train_parallel_config(self, config: dict[str, Any]) -> None:CODE
LOW⚡tests/fast/ray/test_kubernetes_assembly.py101 async def set_eval_fleet_info(self, eval_fleet_info: EvalFleetInfo | None) -> None:CODE
LOWtests/fast/ray/test_kubernetes_assembly.py157 async def update_weights(self, rollout_id: int | None = None) -> None:CODE
LOW…ts/fast/ray/rollout/test_server_cell_health_checker.py365async def _settle(clock: FakeClock) -> None:CODE
LOW⚡tests/fast/ray/train/test_group.py1026async def _set_all_train_return(group: TrainerController, value: TrainStepOutput) -> None:CODE
LOW⚡tests/fast/ray/train/test_group.py1032async def _set_all_train_returns_per_attempt(group: TrainerController, values: list[TrainStepOutput]) -> None:CODE
LOWtests/fast/ray/train/test_group.py308 def _set_configs(cell, configs: list[dict]) -> None:CODE
LOWtests/fast/ray/train/test_train_return_value.py32def _set_train_return_value(cell: Any, value: Any) -> None:CODE
LOW⚡tests/fast/ray/train/dummy_actor.py29 def set_fail_methods(self, methods: list[str]) -> None:CODE
LOW⚡tests/fast/ray/train/dummy_actor.py32 def set_train_return_value(self, value: Any) -> None:CODE
LOW⚡tests/fast/ray/train/dummy_actor.py35 def set_train_return_values_per_attempt(self, values: list[Any]) -> None:CODE
LOW⚡tests/fast/ray/train/dummy_actor.py38 def set_train_parallel_config(self, config: dict) -> None:CODE
LOWtests/fast/ray/train/dummy_actor.py93 def set_update_weights_return_value(self, value: Any) -> None:CODE
LOW⚡tests/fast/ray/train/dummy_actor.py104 def set_heartbeat_fail(self, fail: bool) -> None:CODE
LOW⚡tests/fast/ray/train/dummy_actor.py107 def set_last_active_timestamp(self, ts: float) -> None:CODE
LOWtests/fast/ray/train/fake_worker_manager.py13logger = logging.getLogger(__name__)CODE
LOW…s/e2e/deploy/conftest_deploy/split/split_deployment.py24logger = logging.getLogger(__name__)CODE
LOW…s/e2e/deploy/conftest_deploy/hot_restart/fault_form.py22logger = logging.getLogger(__name__)CODE
LOW…deploy/conftest_deploy/hot_restart/cluster_observer.py26logger = logging.getLogger(__name__)CODE
LOW…/e2e/deploy/conftest_deploy/hot_restart/freeze_plan.py15logger = logging.getLogger(__name__)CODE
297 more matches not shown…
Cross-Language Confusion60 hits · 338 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.py546 assert "github.event.schedule || inputs.ref || github.run_id" in workflowCODE
HIGH⚡tests/ci/test/test_run_suite.py552 "group: pr-test-${{ github.event.number || github.event.schedule || inputs.ref || github.run_id }}"CODE
HIGHtests/ci/test/test_run_suite.py573 "group: pr-test-rocm-${{ github.event.number || github.event.schedule || inputs.ref || github.run_id }}"CODE
HIGHtests/ci/test/test_run_suite.py609 assert "github.event.schedule || inputs.ref || github.run_id" in workflowCODE
HIGHtests/ci/test/test_file_run.py246 "GITHUB_COMMIT_NAME: ${{ inputs.ref || github.sha }}_"CODE
HIGHtests/ci/test/test_file_run.py247 "${{ 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.py491 # 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.py256 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…_utils/helm_backend/launcher/values/test_pool_entry.py25PREPARE_CMD = "mkdir -p /scratch/dataset && rsync -a /cluster-storage/dataset/ /scratch/dataset"CODE
HIGH…mmand_utils/helm_backend/orchestrator/test_observer.py136 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
HIGHtests/fast/dashboard/test_dump_reader_views.py473 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⚡tests/fast/router/test_session_samples_op_v2.py1076 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.py1086 response = app_client.post(f"/sessions/{sid}/samples", content=b'{"max_seq_len":null}')CODE
HIGH⚡tests/fast/router/test_session_samples_op.py423 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.py433 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/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.py73 "ray stop --force || true; pkill -9 sglang || true; sleep 10"CODE
HIGH…/model_scripts/test_glm5_1_744b_a40b_6layer_lora_ci.py73 "ray stop --force || true; pkill -9 sglang || true; sleep 10"CODE
HIGH…megatron/model_scripts/test_gpt_oss_20b_moe_lora_ci.py137 "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.py23 "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/session/samples/codec.py209 setattr(sample, field, copy(spec.null))CODE
HIGHmiles/dashboard/store.py1091 # with null, which would otherwise split one logical seriesCOMMENT
HIGH⚡examples/infra_features/p2p_weight_transfer/run.py732 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.py733 run_cmd("pkill -9 sglang || true", check=False)CODE
HIGH⚡examples/infra_features/p2p_weight_transfer/run.py735 run_cmd("ray stop --force || true", check=False)CODE
HIGH⚡examples/infra_features/p2p_weight_transfer/run.py736 run_cmd("pkill -9 ray || true", check=False)CODE
HIGH⚡examples/infra_features/p2p_weight_transfer/run.py739 run_cmd("pkill -9 ray || true", check=False)CODE
HIGH⚡examples/infra_features/p2p_weight_transfer/run.py741 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.py212 "! -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
HIGHexamples/experimental/hud/run_hud2048.py78 " mkdir -p ~/.config/daytona && echo dtn_... > ~/.config/daytona/api_key"CODE
HIGH…e-agent-harbor-docker/run-glm47-flash-agentic-async.py121 f"pgrep -f '{pattern}' | {exclude} | xargs -r kill 2>/dev/null || true",CODE
HIGHexamples/swe-agent-harbor-docker/run.py83 f"pgrep -f '{t}' | {exclude} | xargs -r kill 2>/dev/null || true",CODE
HIGH…/swe-agent-harbor-docker/run_glm52_lora_tb2_daytona.py157 f"pgrep -f '{pattern}' | {exclude} | xargs -r kill 2>/dev/null || true",CODE
HIGHscripts/run_nemotron_3_super_120b_a12b.py61 if U.exec_command_cpu(f"nc -z {args.head_ip} 6379 2>/dev/null; echo $?", capture_output=True).strip() == "0":CODE
HIGHscripts/run_nemotron_3_super_120b_a12b.py71 if f"{expected_gpus}.0 GPU" in U.exec_command_cpu("ray status 2>/dev/null || true", capture_output=True):CODE
HIGHscripts/ci/runner_utilization_report.py287 equal to `created_at` (not null). The previous code required both aSTRING
Empty Error Handlers65 hits · 325 pts
SeverityFileLineSnippetContext
HIGHtools/convert_hf_to_torch_dist.py52except Exception:CODE
HIGHmiles_plugins/models/linear_attn.py45except ImportError:CODE
HIGHmiles_plugins/models/qwen3_8_next/gdn.py11except ImportError:CODE
HIGHmiles_plugins/models/qwen3_8_next/hyper_connection.py165except AssertionError:CODE
HIGHtests/ci/ci_utils.py151except ProcessLookupError:CODE
HIGHtests/ci/test/test_lark_notify.py360except ValueError:CODE
HIGHtests/fast-gpu/test_dsv4_indexer_cp_balance.py124except ImportError:CODE
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.py145except Exception:CODE
HIGHtests/fast/utils/workers/real_ray/conftest.py251except Exception:CODE
HIGH…fast/utils/workers/real_ray/test_ray_worker_manager.py451except WorkerUnreachableError:CODE
HIGHtests/fast/utils/workers/e2e/harness.py220except (ConnectionResetError, BrokenPipeError, asyncio.IncompleteReadError):CODE
HIGHtests/fast/ray/rollout/conftest.py346except 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.py145except ray.exceptions.RayActorError:CODE
HIGHtests/manual/session/bench_session_server_overhead.py740except (ValueError, ProcessLookupError, AttributeError):CODE
HIGHtests/manual/session/bench_session_server_overhead.py443except (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.py99except ImportError:CODE
HIGHmiles/backends/sglang_utils/sglang_engine.py28except ValueError:CODE
HIGHmiles/backends/sglang_utils/sglang_api_client.py40except httpx.HTTPError:CODE
HIGHmiles/backends/sglang_utils/sglang_api_client.py52except httpx.HTTPError:CODE
HIGHmiles/backends/sglang_utils/sglang_api_client.py358except httpx.HTTPError:CODE
HIGHmiles/utils/http_utils.py99except ValueError:CODE
HIGH…utils/chat_template_utils/message_matcher_hub/funcs.py92except RecursionError:CODE
HIGHmiles/utils/test_utils/session_verify_runner.py296except 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.py60except (TimeoutError, asyncio.TimeoutError):CODE
HIGHmiles/utils/workers/process_utils.py42except ProcessLookupError:CODE
HIGHmiles/utils/workers/process_utils.py49except ProcessLookupError:CODE
HIGHmiles/utils/hf_utils/config.py132except ImportError:CODE
HIGHmiles/rollout/agentic/agent_function.py88except (BrokenPipeError, ConnectionResetError):CODE
HIGHmiles/rollout/rm_hub/math_utils.py355except Exception:CODE
HIGHmiles/rollout/rm_hub/math_utils.py301except Exception:CODE
HIGHmiles/dashboard/store.py379except json.JSONDecodeError: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
HIGH…experimental/openenv/openenv_daytona_agent_function.py90except ImportError: # pragma: no cover - only without the daytona SDKCODE
HIGHexamples/experimental/openenv/openenv_agent_function.py216except Exception:CODE
HIGHexamples/experimental/openenv/scan_golden.py87except Exception:CODE
HIGHexamples/experimental/openenv/tb2_sandbox_e2b.py250except Exception:CODE
HIGH…xperimental/formal_math/single_round/kimina_wrapper.py96except requests.RequestException:CODE
HIGHexamples/retool_v2/tool_sandbox.py183except Exception:CODE
5 more matches not shown…
Excessive Try-Catch Wrapping287 hits · 319 pts
SeverityFileLineSnippetContext
LOWtools/convert_hf_to_hf_int4.py39 except Exception as e:CODE
LOWtools/convert_hf_to_torch_dist.py52 except Exception:CODE
LOWtools/convert_hf_to_int4.py39 except Exception as e:CODE
LOWmiles_plugins/mbridge/qwen3_8_next.py164 except Exception:CODE
LOWmiles_plugins/megatron_bridge/nemotron_h.py223 except Exception as e: # best-effort; avoid breaking unrelated modelsCODE
LOW⚡miles_plugins/megatron_bridge/__init__.py60except Exception as _e: # best-effortCODE
LOW⚡miles_plugins/megatron_bridge/__init__.py68except Exception as _e: # best-effort; Qwen3-VL may be unavailable in some envsCODE
LOW⚡miles_plugins/megatron_bridge/__init__.py77except Exception as _e: # pragma: no cover - defensiveCODE
LOW⚡miles_plugins/megatron_bridge/__init__.py82except Exception as _e: # pragma: no cover - defensiveCODE
LOWmiles_plugins/models/qwen3_vl.py200 except Exception:CODE
MEDIUMmiles_plugins/models/qwen3_vl.py76def _patch_model_forward_and_rope_index() -> None:CODE
LOWmiles_plugins/models/inkling/ops.py22except Exception: # pragma: no coverCODE
LOWmiles_plugins/models/inkling/ops.py181except Exception as _import_error:CODE
LOWmiles_plugins/models/inkling/lora.py649 except Exception:CODE
LOWtests/ci/ci_utils.py153 except Exception as e:CODE
LOWtests/ci/ci_utils.py192 except Exception as e:CODE
LOWtests/ci/ci_utils.py293 except Exception as e: # noqa: BLE001 -- never let store setup fail CICODE
LOWtests/ci/ci_utils.py373 except Exception as e:CODE
LOWtests/ci/ci_utils.py573 except Exception as e: # noqa: BLE001 -- gate infra must not affect pass/failCODE
LOWtests/ci/ci_utils.py617 except Exception:CODE
MEDIUMtests/ci/ci_utils.py189def _target_func():CODE
LOWtests/ci/github_runner/b200_job_lock.py111 except Exception as error:CODE
LOWtests/ci/metric_history/storage/neon_store.py138 except Exception:STRING
LOWtests/ci/metric_history/storage/neon_store.py192 except Exception:STRING
LOW⚡tests/fast/utils/workers/real_ray/conftest.py145 except Exception:STRING
LOWtests/fast/utils/workers/real_ray/conftest.py251 except Exception:CODE
LOWtests/fast/dashboard/test_engine_derived.py82 except Exception as e: # noqa: BLE001CODE
MEDIUMtests/fast/dashboard/test_engine_derived.py79def _collect(store, results, errors):CODE
LOW⚡tests/fast/dashboard/test_gpu_sampler.py398 except Exception:CODE
LOW⚡tests/fast/ray/rollout/conftest.py303 except Exception:CODE
LOWtests/fast/ray/rollout/conftest.py346 except Exception:CODE
MEDIUMtests/fast/ray/rollout/conftest.py300def _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.py111 except Exception:CODE
LOWtests/manual/session/_bench_load_generator.py222 except Exception:CODE
LOW⚡…s/e2e/deploy/conftest_deploy/split/split_deployment.py137 except Exception:CODE
LOW⚡…s/e2e/deploy/conftest_deploy/hot_restart/fault_form.py183 except Exception:CODE
MEDIUM…s/e2e/deploy/conftest_deploy/hot_restart/fault_form.py180def _read_restart_stamps_or_none(self) -> dict[str, str | None] | None:CODE
LOW…deploy/conftest_deploy/hot_restart/cluster_observer.py228 except Exception:CODE
LOW…deploy/conftest_deploy/hot_restart/cluster_observer.py264 except Exception:CODE
LOWtests/e2e/deploy/conftest_deploy/hot_restart/driver.py258 except Exception:CODE
LOWtests/e2e/deploy/conftest_deploy/hot_restart/driver.py304 except Exception:CODE
MEDIUMtests/e2e/deploy/conftest_deploy/hot_restart/driver.py255def _read_progress_and_observe_cluster(self) -> RunProgress | None:CODE
MEDIUMtests/e2e/deploy/conftest_deploy/hot_restart/driver.py299def _reread_saved_iteration(self) -> int | None: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
LOWtests/e2e/ft/conftest_ft/fault_injection/core.py109 except Exception:CODE
LOWtests/e2e/ft/conftest_ft/fault_injection/core.py152 except 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/__init__.py25except Exception as _e: # best-effort; not every environment uses megatron.bridgeCODE
LOWmiles/backends/megatron_utils/model_provider.py295 except Exception as e:CODE
LOWmiles/backends/megatron_utils/hf_export.py79 except Exception as e:CODE
LOWmiles/backends/megatron_utils/lora/utils.py210 except Exception:CODE
LOWmiles/backends/megatron_utils/megatron_to_hf/inkling.py56 except Exception:CODE
227 more matches not shown…
Cross-File Repetition63 hits · 315 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…features/split_deployment/test_run_qwen3_0_6b_split.py0every other deployment holds the controller itself and refuses to be pointed at one.STRING
HIGH…lit_deployment/test_run_solver_verifier_gsm8k_split.py0every other deployment holds the controller itself and refuses to be pointed at one.STRING
HIGH…/e2e/deploy/split/test_scenario_split_deterministic.py0every other deployment holds the controller itself and refuses to be pointed at one.STRING
HIGH…features/split_deployment/test_run_qwen3_0_6b_split.py0the deployment that carries the trainer reaches it in its own process and refuses the flag.STRING
HIGH…lit_deployment/test_run_solver_verifier_gsm8k_split.py0the deployment that carries the trainer reaches it in its own process and refuses the flag.STRING
HIGH…/e2e/deploy/split/test_scenario_split_deterministic.py0the deployment that carries the trainer reaches it in its own process and refuses the flag.STRING
HIGH…features/split_deployment/test_run_qwen3_0_6b_split.py0deployments that disagree on the master hand each other references nothing can read back.STRING
HIGH…lit_deployment/test_run_solver_verifier_gsm8k_split.py0deployments that disagree on the master hand each other references nothing can read back.STRING
HIGH…/e2e/deploy/split/test_scenario_split_deterministic.py0deployments that disagree on the master hand each other references nothing can read back.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
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
HIGHscripts/run_deepseek_v32.py0use_tis: true use_rs: {"true" if args.tis_use_rs else "false"} tis_level: "token" rs_level: "token" tis_mode: "truncate"STRING
HIGHscripts/run_joy_ai_llm_flash.py0use_tis: true use_rs: {"true" if args.tis_use_rs else "false"} tis_level: "token" rs_level: "token" tis_mode: "truncate"STRING
HIGHscripts/run_qwen3_4b.py0use_tis: true use_rs: {"true" if args.tis_use_rs else "false"} tis_level: "token" rs_level: "token" tis_mode: "truncate"STRING
HIGHscripts/run_qwen3_30b_a3b.py0use_tis: true use_rs: {"true" if args.tis_use_rs else "false"} tis_level: "token" rs_level: "token" tis_mode: "truncate"STRING
HIGHscripts/run_glm45_355b_a32b.py0use_tis: true use_rs: {"true" if args.tis_use_rs else "false"} tis_level: "token" rs_level: "token" tis_mode: "truncate"STRING
HIGHscripts/amd/run_qwen3_30b_a3b.py0use_tis: true use_rs: {"true" if args.tis_use_rs else "false"} tis_level: "token" rs_level: "token" tis_mode: "truncate"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
3 more matches not shown…
Deep Nesting250 hits · 246 pts
SeverityFileLineSnippetContext
LOWtrain_async.py23CODE
LOWtrain.py25CODE
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.py173CODE
LOWtools/convert_kimi_int4_to_bf16.py101CODE
LOWtools/convert_torch_dist_to_hf_ray.py573CODE
LOWtools/convert_torch_dist_to_hf_ray.py325CODE
LOWtools/fp8_cast_bf16.py43CODE
LOWtools/convert_to_hf.py29CODE
LOWdocker/build.py102CODE
LOWdocker/image_inputs.py75CODE
LOWdocker/image_inputs.py82CODE
LOWmiles_plugins/mbridge/deepseek_v32.py91CODE
LOWmiles_plugins/mbridge/deepseek_v32.py125CODE
LOWmiles_plugins/mbridge/glm4.py83CODE
LOWmiles_plugins/mbridge/glm4moe.py35CODE
LOWmiles_plugins/models/kimi_k3/lora.py47CODE
LOWmiles_plugins/models/kimi_k3/lora.py438CODE
LOWmiles_plugins/models/kimi_k3/lora.py678CODE
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.py59CODE
LOWmiles_plugins/models/deepseek_v4/deepseek_v4.py240CODE
LOWmiles_plugins/models/deepseek_v4_1/engram.py118CODE
LOWmiles_plugins/models/deepseek_v4_1/deepseek_v4_1.py215CODE
LOWmiles_plugins/models/deepseek_v4_1/deepseek_v4_1.py466CODE
LOWtests/ci/stage_selection.py142CODE
LOWtests/ci/ci_utils.py50CODE
LOWtests/ci/ci_utils.py308CODE
LOWtests/ci/ci_utils.py415CODE
LOWtests/ci/ci_policy.py92CODE
LOWtests/ci/ci_policy.py184CODE
LOWtests/ci/hardware.py76CODE
LOWtests/ci/file_run.py31CODE
LOWtests/ci/ci_register.py387CODE
LOWtests/ci/test/test_ci_register.py732CODE
LOWtests/ci/github_runner/b200_job_lock.py39CODE
LOWtests/ci/github_runner/b200_job_lock.py81CODE
LOWtests/ci/metric_history/register.py282CODE
LOWtests/fast-gpu/test_dsv4_thd_cp_correctness.py128CODE
LOWtests/fast-gpu/test_dsv4_indexer_cp_balance.py129CODE
LOWtests/fast/test_platform_contract.py93CODE
LOWtests/fast/train_args.py40CODE
LOWtests/fast/test_ray_cluster_bootstrap.py81CODE
LOWtests/fast/source_scan.py49CODE
LOWtests/fast/tinker/core/test_service.py678CODE
LOW…sts/fast/backends/test_fsdp_hub_kernels_distributed.py27CODE
LOW…sts/fast/backends/test_fsdp_hub_kernels_distributed.py50CODE
LOW…ckends/training_utils/test_score_centering_filtered.py191CODE
LOW…nds/training_utils/test_score_centering_distributed.py212CODE
LOW…ils/weight_update/test_dist_weight_update_lifecycle.py131CODE
LOW…ng_utils/weight_update/test_p2p_remote_weight_infos.py45CODE
LOW…ng_utils/weight_update/test_p2p_remote_weight_infos.py83CODE
190 more matches not shown…
Structural Annotation Overuse123 hits · 224 pts
SeverityFileLineSnippetContext
LOWtests/ci/README.md11### Step 0: Prepare `/data/miles_ci`COMMENT
LOW⚡tests/ci/README.md28### Step 1: EnvCOMMENT
LOW⚡tests/ci/README.md38### Step 2: Prepare `/home/runner/externals`COMMENT
LOW⚡tests/ci/README.md48### Step 3: RunCOMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py128 # Step 1: sender — wrap state_dict for transportCOMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py131 # Step 2: sender — flatten via pytree (what PGTransport does internally)COMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py134 # Step 3: sender — pickle treespec + non-tensor leaves; "send" tensor leaves over the wireCOMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py141 # Step 4: receiver — unpickle metadata + interleave received tensors back into leaf orderCOMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py155 # 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.py374 # Step 1: Stop cell 1COMMENT
LOW⚡tests/fast/ray/train/test_group.py377 # Step 2: RefreshCOMMENT
LOW⚡tests/fast/ray/train/test_group.py380 # Step 3: Quorum bumped (init was quorum 0, this is first reconfigure)COMMENT
LOW⚡tests/fast/ray/train/test_group.py383 # Step 4: Remaining alive cells have updated indep_dp_infoCOMMENT
LOW⚡tests/fast/ray/train/test_group.py392 # Step 5: Stopped cell untouchedCOMMENT
LOW⚡tests/fast/ray/train/test_group.py395 # Step 6: Actors received reconfigure_indep_dpCOMMENT
LOW⚡tests/fast/ray/train/test_group.py414 # 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.py128 # Step 1: sender — wrap state_dict for transportCOMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py131 # Step 2: sender — flatten via pytree (what PGTransport does internally)COMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py134 # Step 3: sender — pickle treespec + non-tensor leaves; "send" tensor leaves over the wireCOMMENT
LOW⚡…st/backends/megatron_utils/test_checkpoint_transfer.py141 # Step 4: receiver — unpickle metadata + interleave received tensors back into leaf orderCOMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py155 # 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.py374 # Step 1: Stop cell 1COMMENT
LOW⚡tests/fast/ray/train/test_group.py377 # Step 2: RefreshCOMMENT
LOW⚡tests/fast/ray/train/test_group.py380 # Step 3: Quorum bumped (init was quorum 0, this is first reconfigure)COMMENT
LOW⚡tests/fast/ray/train/test_group.py383 # Step 4: Remaining alive cells have updated indep_dp_infoCOMMENT
LOW⚡tests/fast/ray/train/test_group.py392 # Step 5: Stopped cell untouchedCOMMENT
LOW⚡tests/fast/ray/train/test_group.py395 # Step 6: Actors received reconfigure_indep_dpCOMMENT
LOW⚡tests/fast/ray/train/test_group.py414 # Step 1: Stop cell 2, then start it (pending)COMMENT
LOW⚡tests/fast/ray/train/test_group.py418 # Step 2: Refresh heals the pending cellCOMMENT
LOW⚡tests/fast/ray/train/test_group.py421 # Step 3: All 3 cells are now aliveCOMMENT
LOW⚡tests/fast/ray/train/test_group.py424 # Step 4: All cells have consistent indep_dp_infoCOMMENT
LOW⚡tests/fast/ray/train/test_group.py429 # Step 5: Healed cell's actors received initCOMMENT
49 more matches not shown…
AI Slop Vocabulary32 hits · 98 pts
SeverityFileLineSnippetContext
MEDIUMtests/ci/test/test_history_gate.py631# --- dual-register files + harness-supplied registry ------------------------STRING
MEDIUMtests/ci/test/test_history_gate.py656 # single-registry reparse raise (ambiguous). With the harness passing theSTRING
MEDIUMtests/ci/test/test_ci_history.py201 # This covers the backend's current file naming detail, not a CI harnessCOMMENT
MEDIUMtests/ci/metric_history/gate.py276 # never raise on a dual-register / no-register file. Use the harness'sCOMMENT
MEDIUMtests/ci/metric_history/gate.py292 # 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.py94 # 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.py106 # 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.py2843 # On iff the CI harness injected MILES_CI_GATE_RECORD_DIR (the same env varCOMMENT
MEDIUMmiles/utils/tracking_utils/ci_history.py61# Env var naming the directory the harness assigns for this run's records.COMMENT
MEDIUMmiles/utils/tracking_utils/ci_history.py102 # 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.py221 # 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.py333 # - harness marker absent: the server scored, but not through theCOMMENT
MEDIUM⚡examples/experimental/openenv/openenv_agent_function.py448 # No canonical verdict (infra/harness failure or a non-canonical server,COMMENT
MEDIUM⚡examples/experimental/openenv/openenv_agent_function.py457 # 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/hud2048_config.yaml29# cut mid-JSON, which the harness answers by rewriting that turn's recordedCOMMENT
MEDIUMexamples/experimental/hud/rollout.py436 # from a turn the harness could not even parse a tool call out of.COMMENT
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-Vocabulary26 hits · 70 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.py174 # every third sample is agentic-shaped: multi-turn (mixed weight versionsCOMMENT
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.py159# English-only on purpose: matches the production agentic flows tokenizationCOMMENT
MEDIUM⚡miles/rollout/fully_async_data_buffer.py32# returns multiple samples per trajectory (e.g. multi-agent).COMMENT
MEDIUMmiles/rollout/base_types.py105 # One generate may lead to multiple samples, such as multi-agent, tree-like exploration, orCOMMENT
MEDIUMmiles/dashboard/store.py715 # 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/index.md55- **[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.py318 # 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…/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
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 Block70 hits · 66 pts
SeverityFileLineSnippetContext
LOWtools/cpu_memory_profiler.py1# CPU Memory Profiler - standalone tool for profiling system memory during training.COMMENT
LOWtests/ci/github_runner/docker-compose.yml1# Please refer to `README.md` for how to setup this GitHub action runner.COMMENT
LOWtests/fast/utils/test_http_utils.py241 process.kill()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#COMMENT
LOW…utils/chat_template_utils/test_token_seq_comparator.py401# ---------------------------------------------------------------------------COMMENT
LOWtests/fast/utils/chat_template_utils/test_template.py201# ---------------------------------------------------------------------------COMMENT
LOWtests/manual/session/bench_session_server_overhead.py301 payload = dict(result)COMMENT
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/backends/training_utils/loss/hub/math_utils.py881COMMENT
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
LOW…es/infra_features/train_infer_mismatch_helper/mis.yaml1# Enable importance sampling, details refer to the comments of compute_mis_weights in mis.pyCOMMENT
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.py161_DEFAULT_ENV_URL = "http://localhost:8003"COMMENT
LOWexamples/experimental/openenv/openenv_agent_function.py181COMMENT
LOWexamples/experimental/openenv/openenv_agent_function.py321 # rejects an empty message content with "content cannot be empty".COMMENT
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/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/hud2048_config.yaml1# HUD 2048 (v6 browser starter). Sizing comes from measurements on this task;COMMENT
LOWexamples/experimental/hud/hud2048_config.yaml21# Turns are the expensive axis -- every turn re-prefills the whole screenshotCOMMENT
LOWexamples/experimental/hud/hud2048_config.yaml41# Reward = which task template to train on. Of the starter's three 2048COMMENT
LOW…/swe-agent-harbor-docker/run_glm52_lora_tb2_daytona.py101COMMENT
LOW…n-qwen2.5-3B-megatron-lora-disaggregated-multi-node.sh1#!/bin/bashCOMMENT
LOW…n-qwen2.5-3B-megatron-lora-disaggregated-multi-node.sh21# Run the script once per node, with NODE_RANK 0 on the head node and a distinctCOMMENT
LOW…n-qwen2.5-3B-megatron-lora-disaggregated-multi-node.sh41# env ${ENV} bash ...-multi-node.sh broadcast 3 # worker 3 (rollout node 1)COMMENT
LOW…_policy_distillation/run-qwen3-8B-opd-multi-teacher.sh1#!/bin/bashCOMMENT
LOW…llation/qwen3_5_35b_selfdistill/phase1_rlvr_teacher.sh1#!/bin/bashCOMMENT
10 more matches not shown…
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.py64 # Define the decoder block specCOMMENT
MEDIUMmiles_plugins/models/qwen3_next.py54 # Define the decoder block specCOMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py758 # 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.py255 # Define the decoder block specCOMMENT
MEDIUMmiles/backends/megatron_utils/model_provider.py263 # Define the decoder layer specCOMMENT
MEDIUMmiles/backends/fsdp_utils/lr_scheduler.py77 # Initialize parent classCOMMENT
MEDIUMmiles/utils/async_utils.py31# Create a background event loop threadCOMMENT
MEDIUMmiles/utils/http_utils.py326 # Define the async actorCOMMENT
MEDIUMmiles/rollout/rm_hub/__init__.py56 # This function is intended for remote or time-consuming reward model evaluation.COMMENT
MEDIUMexamples/experimental/tau-bench/trainable_agents.py212 # Initialize tracking variablesCOMMENT
AI Structural Patterns39 hits · 34 pts
SeverityFileLineSnippetContext
LOWtools/convert_hf_to_int4_direct.py118CODE
LOWdocker/build.py197CODE
LOWmiles_plugins/models/hf_attention.py71CODE
LOWmiles_plugins/models/linear_attn.py503CODE
LOWmiles_plugins/models/glm5/glm5.py193CODE
LOWmiles_plugins/models/kimi_k3/layers.py207CODE
LOWmiles_plugins/models/kimi_k3/layers.py318CODE
LOWmiles_plugins/models/inkling/model.py65CODE
LOWmiles_plugins/models/glm5_next/dsa.py164CODE
LOWmiles_plugins/models/qwen3_8_next/gdn.py173CODE
LOWmiles_plugins/models/deepseek_v4/deepseek_v4.py240CODE
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.py466CODE
LOWtests/ci/ci_utils.py415CODE
LOWtests/ci/test/test_comment_ci_command.py234CODE
LOW…ast/backends/training_utils/loss/test_loss_snapshot.py241CODE
LOW…s/fast/backends/sglang_utils/test_server_args_utils.py59CODE
LOWtests/fast/utils/test_health_checker.py26CODE
LOWtests/fast/utils/test_arguments.py361CODE
LOW…d_utils/helm_backend/launcher/test_launch_lifecycle.py482CODE
LOWtests/fast/utils/workers/test_ray_worker_manager.py39CODE
LOW…ts/fast/utils/workers/test_ray_worker_manager_serve.py92CODE
LOWtests/fast/utils/workers/reconcile/test_loop.py52CODE
LOWtests/fast/rollout/generate_hub/test_single_turn.py71CODE
LOWtests/fast/rollout/generate_utils/test_sample_utils.py17CODE
LOWtests/fast/rollout/session/test_samples.py33CODE
LOWtests/fast/dashboard/dummy_dump.py60CODE
LOWtests/fast/ray/rollout/real_ray/conftest.py36CODE
LOW…atron_to_hf/processors/quantizer_compressed_tensors.py225CODE
LOWmiles/backends/training_utils/loss/hub/math_utils.py970CODE
LOWmiles/utils/http_utils.py386CODE
LOWmiles/utils/distributed_utils.py49CODE
LOWmiles/utils/data.py192CODE
LOW…les/utils/external_utils/command_utils/base_backend.py131CODE
LOWmiles/utils/external_utils/miles_workbench/__main__.py41CODE
LOWexamples/experimental/tau-bench/openai_tool_adapter.py109CODE
LOW…al/search-r1/local_dense_retriever/retrieval_server.py290CODE
LOWexamples/retool_v2/tool_sandbox.py351CODE
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 Names13 hits · 18 pts
SeverityFileLineSnippetContext
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
Fake / Example Data18 hits · 16 pts
SeverityFileLineSnippetContext
LOWtests/fast/rollout/generate_hub/test_single_turn.py252 "process_fn_kwargs": {"routed_experts": "placeholder"},CODE
LOW⚡tests/fast/ray/specs/test_inference.py1159 {"worker_type": "placeholder", "num_gpus": gpu_offset, "num_gpus_per_engine": num_gpus_per_engine}CODE
LOWtests/fast/ray/specs/test_inference.py546 {"worker_type": "placeholder", "num_gpus": 4, "num_gpus_per_engine": 4},CODE
LOWtests/fast/ray/specs/test_inference.py680 {"worker_type": "placeholder", "num_gpus": 4, "num_gpus_per_engine": 4},CODE
LOWtests/fast/ray/specs/test_inference.py904 if group_cfg.worker_type != "placeholder":CODE
LOWtests/fast/ray/specs/test_inference.py1146 {"worker_type": "placeholder", "num_gpus": 12, "num_gpus_per_engine": 12},CODE
LOWtests/fast/ray/specs/test_entrypoint.py61 {"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.py90 @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
LOW⚡miles/backends/sglang_utils/sglang_config.py25 worker_type: One of "regular", "prefill", "decode", or "placeholder".STRING
LOW⚡miles/backends/sglang_utils/sglang_config.py26 "placeholder" reserves GPU slots without creating engines.STRING
LOW⚡miles/backends/sglang_utils/sglang_config.py35 worker_type: Literal["regular", "prefill", "decode", "placeholder"]CODE
LOWmiles/backends/sglang_utils/sglang_config.py145 worker_type: Literal["regular", "prefill", "decode", "placeholder"]CODE
LOWmiles/backends/sglang_utils/sglang_config.py261 if group.worker_type != "placeholder"CODE
LOWmiles/utils/debug_utils/send_to_sglang.py53 client = AsyncOpenAI(api_key="dummy_key", base_url=url)CODE
LOWmiles/ray/specs/inference.py284 if server_group_config.worker_type != "placeholder"CODE
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHmiles/backends/sglang_utils/sglang_api_client.py93Run /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.py118 Generate a complete agent-environment interaction trajectory for tau-bench. This is the main entry point for mSTRING
Redundant / Tautological Comments10 hits · 14 pts
SeverityFileLineSnippetContext
LOWmiles_plugins/mbridge/mimo.py51 # Check if this is an MTP layer weightCOMMENT
LOWtests/ci/ci_utils.py585 # Check if we should retryCOMMENT
LOWmiles/backends/megatron_utils/model_provider.py159 # Check if the custom provider supports vp_stage parameterCOMMENT
LOWmiles/backends/megatron_utils/model_provider.py292 # Check if fp8_model_init supports preserve_high_precision_init_valCOMMENT
LOWmiles/backends/fsdp_utils/arguments.py90 if hasattr(f.type, "__args__"): # Check if it's a Union typeCODE
LOWmiles/backends/training_utils/metrics/log_utils.py379 if val: # Check if val is not emptyCODE
LOWmiles/utils/hf_utils/config.py29 # Set True to override transformers' native config.COMMENT
LOWexamples/experimental/tau-bench/trainable_agents.py321 # Check if doneCOMMENT
LOWexamples/experimental/search-r1/qa_em_format.py86 # Check if this is a tagCOMMENT
LOWexamples/retool_v2/tool_sandbox.py235 # Return resultCOMMENT
Slop Phrases2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMmiles/rollout/on_policy_distillation.py433 # 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