Repository Analysis

radixark/miles

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

33.9 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of radixark/miles, a Python project with 1,938 GitHub stars. SynthScan v2.0 examined 220,753 lines of code across 1355 source files, recording 5102 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 33.9 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

33.9
Adjusted Score
33.9
Raw Score
100%
Time Factor
2026-08-09
Last Push
1.9K
Stars
Python
Language
220.8K
Lines of Code
1.4K
Files
5.1K
Pattern Hits
2026-08-09
Scan Date
0.05
HC Hit Rate

What These Metrics Mean

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

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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

CRITICAL 6HIGH 68MEDIUM 705LOW 4323

Directory Score Breakdown

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

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers3092 hits · 3128 pts
SeverityFileLineSnippetContext
LOWtools/convert_hf_to_nvfp4.py60def _is_moe_expert_weight_name(name: str) -> bool:CODE
LOWtools/convert_hf_to_nvfp4.py157def _update_quantization_config(cfg: dict, ignore_list: list[str]) -> None:CODE
LOWtools/convert_hf_to_nvfp4.py231def _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.py1295def convert_torch_dist_to_hf_ray(args: Args) -> str:STRING
LOWtools/convert_hf_to_int4_direct.py76def round_to_quantized_type_dtype(CODE
LOW…ch/latest/sglang_attn_bridge/hf_sglang_triton_patch.py117def apply_sglang_triton_attention_patch(model):CODE
LOW…amd_patch/latest/sglang_attn_bridge/triton_attn_bwd.py339def triton_attention_backward(q, k, v, o, do, B, S, sm_scale=None):CODE
LOWmiles_plugins/mbridge/deepseek_v32.py49 def _hf_config_with_rope_fields(self):CODE
LOWmiles_plugins/mbridge/deepseek_v32.py56 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/deepseekv4.py73 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
LOWmiles_plugins/mbridge/qwen3_5.py154 def _adjust_mapping_for_shared_weights(self):CODE
LOWmiles_plugins/mbridge/qwen3_5.py160 def _get_hf_shared_weight_keys(self) -> list[str]:CODE
LOWmiles_plugins/mbridge/qwen3_5.py165 def _supports_transformer_config_kwarg(self, kwarg_name: str) -> bool:CODE
LOWmiles_plugins/mbridge/qwen3_5.py181 def _get_transformer_layer_spec(self, vp_stage=None):CODE
LOWmiles_plugins/mbridge/qwen3_5.py267 def _weight_name_mapping_mtp_mlp(self, name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/qwen3_5.py286 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/glm4moe.py60 def _weight_name_mapping_mcore_to_hf(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/mbridge/qwen3_next.py108 def _weight_name_mapping_mcore_to_hf(self, mcore_weights_name: str) -> list[str]:CODE
LOWmiles_plugins/megatron_bridge/nemotron_h.py151def _install_nemotronh_hybrid_layer_shims() -> None:CODE
LOWmiles_plugins/megatron_bridge/nemotron_h.py184def _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__.py43 def broadcast_obj_from_pp_rank(self, obj, name=None):CODE
LOWmiles_plugins/models/dsa_topk.py47def _flashinfer_tie_break_value() -> int:CODE
LOWmiles_plugins/models/qwen_gdn_backend.py7def get_chunk_gated_delta_rule(backend: str):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.py33def _zigzag_to_packed_shard_impl(hidden_states, cu_seqlens, cp_group, cp_rank, cp_size):CODE
LOWmiles_plugins/models/hf_attention.py59def _packed_shard_to_zigzag_impl(hidden_states, cu_seqlens, cp_group, cp_rank, cp_size):CODE
LOWmiles_plugins/models/qwen3_next.py80 def fix_query_key_value_ordering(self, mixed_qkvz, mixed_ba):CODE
LOWmiles_plugins/models/cp_utils.py11def 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.py513 def get_absorb_query_key_value_tensors(CODE
LOWmiles_plugins/models/glm5/glm5.py693 def get_query_key_value_tensors(self):CODE
LOWmiles_plugins/models/glm5/glm5.py716 def set_for_recompute_input_layernorm(self):CODE
LOWmiles_plugins/models/glm5/ops/indexer.py10def pytorch_extract_topk_scores(logits, topk_indices, dim=-1):CODE
LOWmiles_plugins/models/glm5/ops/indexer.py65def generate_varlen_mask_params(cu_seqlens):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.py151def get_inkling_dense_layer_spec(config) -> ModuleSpec:CODE
LOWmiles_plugins/models/inkling/model.py300def inkling_mm_model_provider(pre_process=True, post_process=True, vp_stage=None):CODE
LOWmiles_plugins/models/inkling/ops.py486def get_inkling_relative_attention_score_mod(rel_extent: int) -> Callable:CODE
3032 more matches not shown…
Decorative Section Separators636 hits · 2272 pts
SeverityFileLineSnippetContext
MEDIUMmiles_plugins/models/glm5/glm5.py218 # =====================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py220 # =====================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py317 # =================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py319 # =================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py531 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py533 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py543 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py545 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py559 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py561 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py626 # =========================================COMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py628 # =========================================COMMENT
MEDIUMmiles_plugins/models/deepseek_v4/ops/v4_indexer.py85 # =========================================COMMENT
MEDIUMmiles_plugins/models/deepseek_v4/ops/v4_indexer.py87 # =========================================COMMENT
MEDIUMtests/test_attention_output_gate_tp.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_attention_output_gate_tp.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_attention_output_gate_tp.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_attention_output_gate_tp.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_attention_output_gate_tp.py121# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_attention_output_gate_tp.py123# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_attention_output_gate_tp.py170# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_attention_output_gate_tp.py172# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fused_experts_backward.py12# ============================================================================COMMENT
MEDIUMtests/test_fused_experts_backward.py14# ============================================================================COMMENT
MEDIUMtests/test_fused_experts_backward.py259# ============================================================================COMMENT
MEDIUMtests/test_fused_experts_backward.py261# ============================================================================COMMENT
MEDIUMtests/test_fused_experts_backward.py266# ============================================================================COMMENT
MEDIUMtests/test_fused_experts_backward.py268# ============================================================================COMMENT
MEDIUMtests/test_fused_experts_backward.py313# ============================================================================COMMENT
MEDIUMtests/test_fused_experts_backward.py315# ============================================================================COMMENT
MEDIUMtests/test_fused_experts_backward.py531# ============================================================================COMMENT
MEDIUMtests/test_fused_experts_backward.py533# ============================================================================COMMENT
MEDIUMtests/ci/test/test_log_groups.py64# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py66# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py107# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py109# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py144# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py146# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py174# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py176# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py212# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py214# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py334# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py336# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py380# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py382# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py30# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py32# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ci/test/test_log_groups.py448# ---------------------------------------------------------------------------STRING
MEDIUMtests/ci/test/test_log_groups.py450# ---------------------------------------------------------------------------STRING
MEDIUMtests/fast/backends/megatron_utils/test_lora_utils.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/fast/backends/megatron_utils/test_lora_utils.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/fast/backends/megatron_utils/test_lora_utils.py46# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/fast/backends/megatron_utils/test_lora_utils.py48# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/fast/backends/megatron_utils/test_lora_utils.py133# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/fast/backends/megatron_utils/test_lora_utils.py135# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/fast/backends/megatron_utils/test_lora_utils.py192# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/fast/backends/megatron_utils/test_lora_utils.py194# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/fast/backends/megatron_utils/test_lora_utils.py219# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/fast/backends/megatron_utils/test_lora_utils.py221# ---------------------------------------------------------------------------COMMENT
576 more matches not shown…
Unused Imports273 hits · 264 pts
SeverityFileLineSnippetContext
LOWtools/convert_hf_to_torch_dist.py12CODE
LOWtools/convert_torch_dist_to_hf_ray.py75CODE
LOWdocker/amd_patch/latest/sglang_attn_bridge/__init__.py3CODE
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/megatron_bridge/nemotron_h.py23CODE
LOWmiles_plugins/megatron_bridge/__init__.py16CODE
LOWmiles_plugins/megatron_bridge/__init__.py75CODE
LOWmiles_plugins/models/qwen3_vl.py9CODE
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
LOWtests/ci/metric_history/storage/__init__.py11CODE
LOWtests/ci/metric_history/storage/__init__.py11CODE
LOWtests/ci/metric_history/storage/__init__.py11CODE
LOWtests/ci/metric_history/storage/__init__.py11CODE
LOWtests/ci/metric_history/storage/sqlite_store.py17CODE
LOWtests/ci/metric_history/storage/neon_store.py35CODE
LOWtests/fast-gpu/test_run_megatron_worker_main.py9CODE
LOWtests/fast-gpu/test_run_megatron_worker_main.py48CODE
LOWtests/fast/backends/test_fsdp_routing_replay.py151CODE
LOWtests/fast/backends/test_fsdp_routing_replay.py165CODE
LOW…ckends/training_utils/test_reduce_gathered_log_dict.py3CODE
213 more matches not shown…
Modern Structural Boilerplate236 hits · 242 pts
SeverityFileLineSnippetContext
LOWtrain_multi_lora_async.py20logger = logging.getLogger(__name__)CODE
LOWtrain_async.py18logger = logging.getLogger(__name__)CODE
LOWtrain.py19logger = logging.getLogger(__name__)CODE
LOWtools/cpu_memory_profiler.py23logger = logging.getLogger(__name__)CODE
LOWtools/convert_hf_to_nvfp4.py157def _update_quantization_config(cfg: dict, ignore_list: list[str]) -> None: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
LOWdocker/amd_patch/latest/sglang_attn_bridge/__init__.py5__all__ = ["apply_sglang_triton_attention_patch"]CODE
LOWmiles_plugins/mbridge/__init__.py12__all__ = [CODE
LOWmiles_plugins/megatron_bridge/nemotron_h.py29logger = 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/cp_utils.py8logger = 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.py25logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/models/inkling/lora.py13logger = logging.getLogger(__name__)CODE
LOWmiles_plugins/optimizers/nvme_stream.py42logger = logging.getLogger(__name__)CODE
LOWtests/ci/ci_utils.py71logger = logging.getLogger(__name__)CODE
LOWtests/ci/ci_register.py9__all__ = [CODE
LOWtests/ci/metric_history/__init__.py20__all__ = [CODE
LOWtests/ci/metric_history/storage/__init__.py13__all__ = [CODE
LOWtests/fast/utils/test_health_checker.py8async def _settle(clock: FakeClock) -> None:CODE
LOWtests/fast/ray/train/test_group.py831async def _set_all_train_return(group: RayTrainGroup, value: TrainStepOutcome) -> None:CODE
LOWtests/fast/ray/train/dummy_actor.py25 def set_fail_methods(self, methods: list[str]) -> None:CODE
LOWtests/fast/ray/train/dummy_actor.py28 def set_train_return_value(self, value: Any) -> None:CODE
LOWtests/fast/ray/train/dummy_actor.py52 def set_rollout_manager(self, *args: Any, **kwargs: Any) -> None:CODE
LOWtests/fast/ray/train/dummy_actor.py67 def update_weights(self) -> None:CODE
LOWtests/fast/ray/train/dummy_actor.py70 def set_heartbeat_fail(self, fail: bool) -> None:CODE
LOWtests/fast/ray/train/dummy_actor.py73 def set_last_active_timestamp(self, ts: float) -> None:CODE
LOWtests/e2e/sglang/utils/session_tool_agent.py36logger = logging.getLogger(__name__)CODE
LOWtests/e2e/sglang/utils/router_equivalence_generate.py27logger = logging.getLogger(__name__)CODE
LOWtests/e2e/ft/conftest_ft/fault_injection.py14logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/checkpoint.py95logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/checkpoint.py97__all__ = ["save_checkpoint", "save_checkpoint_with_lora", "load_checkpoint"]CODE
LOWmiles/backends/megatron_utils/initialize.py19logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/bridge_lora_helpers.py20logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/arguments.py7__all__ = ["validate_args", "parse_args", "set_default_megatron_args"]CODE
LOWmiles/backends/megatron_utils/arguments.py9logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/local_weight_checksum.py24logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/fp32_param_utils.py7logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/model.py57logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/multi_lora_optimizer.py17logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/model_provider.py24logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/multi_lora_utils.py17logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/ci_utils.py15logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/actor.py70logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/actor.py73def _setup_disk_offload_reclaim(disk_dir: str) -> None:CODE
LOWmiles/backends/megatron_utils/actor.py356 def _set_replay_stage(self, stage: str) -> None:CODE
LOWmiles/backends/megatron_utils/actor.py723 def update_weights(self, info: "EnginesAndLock") -> None:CODE
LOWmiles/backends/megatron_utils/parallel.py15logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/rematerialize_utils.py13logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/sglang.py27__all__ = [CODE
LOWmiles/backends/megatron_utils/lora_utils.py16logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/hf_export.py28logger = logging.getLogger(__name__)CODE
LOWmiles/backends/megatron_utils/multi_lora_scheduler.py9logger = logging.getLogger(__name__)CODE
LOW…atron_utils/update_weight/update_weight_from_tensor.py34logger = logging.getLogger(__name__)CODE
LOW…atron_utils/update_weight/update_weight_from_tensor.py237 def update_weights(self) -> None:CODE
LOWmiles/backends/megatron_utils/update_weight/common.py18logger = logging.getLogger(__name__)CODE
LOW…ls/update_weight/update_weight_from_distributed/p2p.py33logger = logging.getLogger(__name__)CODE
LOW…/update_weight/update_weight_from_distributed/mixin.py29logger = logging.getLogger(__name__)CODE
176 more matches not shown…
Structural Annotation Overuse129 hits · 237 pts
SeverityFileLineSnippetContext
LOW…amd_patch/latest/sglang_attn_bridge/triton_attn_bwd.py410 # Step 1: preprocess deltaCOMMENT
LOW…amd_patch/latest/sglang_attn_bridge/triton_attn_bwd.py427 # Step 2: compute LSECOMMENT
LOW…amd_patch/latest/sglang_attn_bridge/triton_attn_bwd.py448 # Step 3: compute dK, dVCOMMENT
LOW…amd_patch/latest/sglang_attn_bridge/triton_attn_bwd.py482 # Step 4: compute dQCOMMENT
LOWtests/ci/README.md11### Step 0: Prepare `/data/miles_ci`COMMENT
LOWtests/ci/README.md28### Step 1: EnvCOMMENT
LOWtests/ci/README.md38### Step 2: Prepare `/home/runner/externals`COMMENT
LOWtests/ci/README.md48### Step 3: RunCOMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py97 # Step 1: sender — wrap state_dict for transportCOMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py100 # Step 2: sender — flatten via pytree (what PGTransport does internally)COMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py103 # Step 3: sender — pickle treespec + non-tensor leaves; "send" tensor leaves over the wireCOMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py110 # Step 4: receiver — unpickle metadata + interleave received tensors back into leaf orderCOMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py124 # Step 5: receiver — unwrap into iteration + state_dictCOMMENT
LOWtests/fast/utils/test_process_group_utils.py267 # Step 1: single groupCOMMENT
LOWtests/fast/utils/test_process_group_utils.py273 # Step 2: two groups = global sumCOMMENT
LOWtests/fast/utils/test_process_group_utils.py278 # Step 3: bitwise equality across all ranksCOMMENT
LOWtests/fast/utils/test_process_group_utils.py286 # Step 4: empty groups = no-opCOMMENT
LOWtests/fast/utils/test_process_group_utils.py291 # Step 5: MAX opCOMMENT
LOWtests/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
LOWtests/fast/utils/test_env_report.py341 # Step 1: Run the full collection (no mocks)COMMENT
LOWtests/fast/utils/test_env_report.py348 # Step 2: Verify the package appears in editable_packagesCOMMENT
LOWtests/fast/utils/test_env_report.py355 # Step 3: Verify git info — clean repoCOMMENT
LOWtests/fast/utils/test_env_report.py365 # Step 4: Verify single-line JSON output is parseable and contains this packageCOMMENT
LOWtests/fast/utils/test_env_report.py376 # Step 5: Verify package also in full_pip_listCOMMENT
LOWtests/fast/utils/test_env_report.py386 # Step 1: Stage an uncommitted fileCOMMENT
LOWtests/fast/utils/test_env_report.py390 # Step 2: Run collectionCOMMENT
LOWtests/fast/utils/test_env_report.py397 # Step 3: Verify dirty + diff_stat mentions the fileCOMMENT
LOWtests/fast/utils/test_env_report.py412 # Step 1: Modify a tracked file without stagingCOMMENT
LOWtests/fast/utils/test_env_report.py416 # Step 2: Run collectionCOMMENT
LOWtests/fast/utils/test_env_report.py423 # Step 3: Verify dirtyCOMMENT
LOWtests/fast/utils/test_health_checker.py83 # Step 1: first_wait=0, so first check runs immediately after task startsCOMMENT
LOWtests/fast/utils/test_health_checker.py87 # Step 2: Elapse less than interval — no second checkCOMMENT
LOWtests/fast/utils/test_health_checker.py91 # Step 3: Elapse to interval — second checkCOMMENT
LOWtests/fast/utils/test_health_checker.py107 # Step 1: Elapse 100s — still in first_waitCOMMENT
LOWtests/fast/utils/test_health_checker.py111 # Step 2: Elapse to 300s — first_wait completes, first check runsCOMMENT
LOWtests/fast/utils/test_health_checker.py115 # Step 3: Elapse interval — second checkCOMMENT
LOWtests/fast/utils/test_health_checker.py262 # Step 1: Initial first_wait (100s)COMMENT
LOWtests/fast/utils/test_health_checker.py268 # Step 2: Normal interval (5s)COMMENT
LOWtests/fast/utils/test_health_checker.py272 # Step 3: Pause + resume resets first_waitCOMMENT
LOWtests/fast/utils/test_health_checker.py276 # Step 4: Need to elapse past the pending interval sleep first,COMMENT
LOWtests/fast/utils/test_clock.py239 # Step 1: first_wait=10COMMENT
LOWtests/fast/utils/test_clock.py244 # Step 2: interval=5COMMENT
LOWtests/fast/utils/test_clock.py248 # Step 3: interval=5COMMENT
LOWtests/fast/utils/test_mini_ft_controller.py382 # Step 1: First poll → heal attempt fails, sets next_attempt_atCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py387 # Step 2: Poll again without advancing clock → should skip healCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py392 # Step 3: Advance clock past backoff → should attempt heal againCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py421 # Step 1: First attempt failsCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py428 # Step 2: Advance clock past backoff, second attempt succeedsCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py498 # Step 1: Unhealthy → heal fails → backoff entry createdCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py503 # Step 2: Cell becomes NOT_APPLICABLE → backoff entry cleanedCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py524 # Step 1: Unhealthy → heal fails → backoff entry createdCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py529 # Step 2: Cell becomes HEALTHY → backoff entry cleanedCOMMENT
LOWtests/fast/utils/test_witness/test_module.py71 # Step 1: Compute loss without witnessCOMMENT
LOWtests/fast/utils/test_witness/test_module.py81 # Step 2: Compute loss with witnessCOMMENT
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
LOWtests/fast/ray/train/test_group.py239 # Step 1: Stop cell 1COMMENT
LOWtests/fast/ray/train/test_group.py242 # Step 2: RefreshCOMMENT
69 more matches not shown…
Excessive Try-Catch Wrapping197 hits · 219 pts
SeverityFileLineSnippetContext
LOWtools/convert_hf_to_hf_int4.py39 except Exception as e:CODE
LOWtools/convert_hf_to_torch_dist.py44 except Exception:CODE
LOWtools/convert_hf_to_int4.py39 except Exception as e:CODE
LOWmiles_plugins/megatron_bridge/nemotron_h.py216 except Exception as e: # best-effort; avoid breaking unrelated modelsCODE
LOWmiles_plugins/megatron_bridge/__init__.py59except Exception as _e: # best-effortCODE
LOWmiles_plugins/megatron_bridge/__init__.py67except Exception as _e: # best-effort; Qwen3-VL may be unavailable in some envsCODE
LOWmiles_plugins/megatron_bridge/__init__.py76except 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.py21except Exception: # pragma: no coverCODE
LOWmiles_plugins/models/inkling/ops.py476except Exception as _import_error:CODE
LOWmiles_plugins/models/inkling/lora.py645 except Exception:CODE
LOWtests/ci/ci_utils.py142 except Exception as e:CODE
LOWtests/ci/ci_utils.py159 except Exception as e:CODE
LOWtests/ci/ci_utils.py260 except Exception as e: # noqa: BLE001 -- never let store setup fail CICODE
LOWtests/ci/ci_utils.py341 except Exception as e:CODE
LOWtests/ci/ci_utils.py527 except Exception as e: # noqa: BLE001 -- gate infra must not affect pass/failCODE
LOWtests/ci/ci_utils.py571 except Exception:CODE
MEDIUMtests/ci/ci_utils.py156def _target_func():CODE
LOWtests/ci/metric_history/storage/neon_store.py138 except Exception:STRING
LOWtests/ci/metric_history/storage/neon_store.py192 except Exception:STRING
LOWtests/fast/dashboard/test_gpu_sampler.py177 except Exception:CODE
LOWtests/fast/ray/rollout/conftest.py218 except Exception:CODE
LOWtests/fast/ray/rollout/conftest.py249 except Exception:CODE
MEDIUMtests/fast/ray/rollout/conftest.py215def _count():CODE
LOWtests/fast/ray/rollout/real_ray/conftest.py32 except Exception:CODE
LOWtests/fast/ray/rollout/real_ray/test_fault_tolerance.py50 except Exception:CODE
LOWtests/manual/session/_bench_load_generator.py222 except Exception:CODE
LOWtests/e2e/short/test_qwen2.5_0.5B_opd_sglang.py78 except Exception:CODE
LOWtests/e2e/ft/conftest_ft/fault_injection.py78 except Exception:CODE
LOWtests/e2e/ft/conftest_ft/fault_injection.py109 except Exception:CODE
LOWmiles/backends/megatron_utils/__init__.py25except Exception as _e: # best-effort; not every environment uses megatron.bridgeCODE
LOWmiles/backends/megatron_utils/model_provider.py273 except Exception as e:CODE
LOWmiles/backends/megatron_utils/lora_utils.py497 except Exception as hf_export_err:CODE
LOWmiles/backends/megatron_utils/hf_export.py169 except Exception as e:CODE
LOWmiles/backends/megatron_utils/hf_export.py185 except Exception as e:CODE
LOW…atron_utils/update_weight/update_weight_from_tensor.py511 except Exception as _unload_err:CODE
LOW…t/update_weight_from_distributed/p2p_transfer_utils.py179 except Exception as e:CODE
LOWmiles/backends/megatron_utils/megatron_to_hf/inkling.py56 except Exception:CODE
MEDIUMmiles/backends/megatron_utils/megatron_to_hf/inkling.py51def _qkv_tp_size(args):CODE
LOWmiles/backends/megatron_utils/ft/indep_dp.py142 except Exception:CODE
LOWmiles/backends/fsdp_utils/checkpoint.py118 except Exception as e:CODE
LOWmiles/backends/fsdp_utils/checkpoint.py130 except Exception as e:CODE
LOWmiles/backends/fsdp_utils/checkpoint.py143 except Exception as e:CODE
LOWmiles/backends/fsdp_utils/models/nemotron_h.py32 except Exception: # pragma: no coverCODE
LOWmiles/backends/fsdp_utils/models/nemotron_h.py56 except Exception:CODE
LOWmiles/backends/fsdp_utils/models/nemotron_h.py119 except Exception: # pragma: no coverCODE
LOWmiles/backends/fsdp_utils/models/qwen3_5.py96 except Exception:CODE
LOWmiles/backends/training_utils/mm_data.py191 except Exception:CODE
LOWmiles/backends/training_utils/loss_hub/math_utils.py97 except Exception:CODE
LOWmiles/backends/sglang_utils/sglang_engine.py66 except Exception:CODE
LOWmiles/backends/sglang_utils/sglang_engine.py458 except Exception as e:CODE
LOWmiles/backends/sglang_utils/sglang_engine.py492 except Exception as e:CODE
LOWmiles/utils/dumper_utils.py315 except Exception:CODE
LOWmiles/utils/misc.py96 except Exception as e:CODE
LOWmiles/utils/misc.py247 except Exception:CODE
LOWmiles/utils/reloadable_process_group.py278 except Exception as e:CODE
MEDIUMmiles/utils/reloadable_process_group.py275def _wrap_low_level_call():CODE
LOWmiles/utils/retry_utils.py31 except Exception:CODE
LOWmiles/utils/processing_utils.py37 except Exception as e:CODE
137 more matches not shown…
Cross-Language Confusion37 hits · 215 pts
SeverityFileLineSnippetContext
HIGHtests/ci/test/test_run_suite.py323 assert "github.event.schedule || github.run_id" in workflowCODE
HIGHtests/ci/test/test_run_suite.py329 "group: ${{ github.workflow }}-${{ github.event.number || github.event.schedule || github.run_id }}"CODE
HIGHtests/ci/test/test_run_suite.py360 assert "github.event.schedule || github.run_id" in workflowCODE
HIGH…st/backends/megatron_utils/test_checkpoint_transfer.py411 # Empty view shares its base's storage (data_ptr is non-null).COMMENT
HIGHtests/fast/ray/multi_lora/test_controller_http.py179 unknown names report null; COMPLETED is retained after free_slot."""STRING
HIGHtests/fast/router/test_session_samples_op_v2.py671 response = app_client.post(f"/sessions/{uuid.uuid4().hex}/samples", content=b'{"max_seq_len":null}')CODE
HIGHtests/fast/router/test_session_samples_op_v2.py681 response = app_client.post(f"/sessions/{sid}/samples", content=b'{"max_seq_len":null}')CODE
HIGHtests/fast/router/test_session_samples_op.py297 response = app_client.post(f"/sessions/{uuid.uuid4().hex}/samples", content=b'{"max_seq_len":null}')CODE
HIGHtests/fast/router/test_session_samples_op.py307 response = app_client.post(f"/sessions/{sid}/samples", content=b'{"max_seq_len":null}')CODE
HIGHtests/e2e/megatron/test_qwen3_5_35b_a3b_lora_ci.py54 U.exec_command("ray stop --force || true; pkill -9 sglang || true; sleep 10")CODE
HIGH…/model_scripts/test_glm5_2_744b_a40b_5layer_lora_ci.py60 U.exec_command("ray stop --force || true; pkill -9 sglang || true; sleep 10")CODE
HIGH…/model_scripts/test_glm5_1_744b_a40b_6layer_lora_ci.py60 U.exec_command("ray stop --force || true; pkill -9 sglang || true; sleep 10")CODE
HIGH…megatron/model_scripts/test_gpt_oss_20b_moe_lora_ci.py126 U.exec_command("ray stop --force || true; pkill -9 sglang || true; sleep 10")CODE
HIGH…al-refactor-verify/mechanical_refactor_verify_utils.py30 exec_command(f"git add -A && git commit -m {shlex.quote(message)}", cwd=cwd)CODE
HIGHmiles/utils/external_utils/command_utils.py199 f"export no_proxy=127.0.0.1 && export PYTHONBUFFERED=16 && "CODE
HIGHmiles/utils/external_utils/command_utils.py312 "pkill -x mooncake_master >/dev/null 2>&1 || true; "CODE
HIGHmiles/utils/external_utils/command_utils.py319 exec_command("pkill -x mooncake_master >/dev/null 2>&1 || true")CODE
HIGHmiles/rollout/session/samples/codec.py184 setattr(sample, field, copy(spec.null))CODE
HIGHexamples/infra_features/p2p_weight_transfer/run.py769 pkill_python = f"pgrep -x 'python|python3' | grep -v -w {my_pid} | grep -v -w {my_ppid} | xargs -r kill -9 || true"CODE
HIGHexamples/infra_features/p2p_weight_transfer/run.py770 run_cmd("pkill -9 sglang || true", check=False)CODE
HIGHexamples/infra_features/p2p_weight_transfer/run.py772 run_cmd("ray stop --force || true", check=False)CODE
HIGHexamples/infra_features/p2p_weight_transfer/run.py773 run_cmd("pkill -9 ray || true", check=False)CODE
HIGHexamples/infra_features/p2p_weight_transfer/run.py776 run_cmd("pkill -9 ray || true", check=False)CODE
HIGHexamples/infra_features/p2p_weight_transfer/run.py778 run_cmd("pkill -9 redis || true", check=False)CODE
HIGH…/infra_features/random_async/run_random_async_3node.py31 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/openenv/openenv_launch_common.py61 f"pgrep -f '{t}' | {exclude} | xargs -r kill 2>/dev/null || true",CODE
HIGHexamples/experimental/openenv/openenv_launch_common.py206 provision_hint="mkdir -p ~/.config/daytona && echo dtn_... > ~/.config/daytona/api_key",CODE
HIGHexamples/experimental/openenv/openenv_launch_common.py217 provision_hint="mkdir -p ~/.config/e2b && echo <key> > ~/.config/e2b/api_key"CODE
HIGHexamples/experimental/openenv/tb2_sandbox_recipe.py264 f"mkdir -p /opt/tb2-tasks && curl -fsSL {url} | "CODE
HIGHexamples/experimental/openenv/tb2_sandbox_recipe.py327 "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y "CODE
HIGHexamples/experimental/openenv/tb2_sandbox_recipe.py341 f"mkdir -p /opt/src && echo {_env_src_tar_b64()} | base64 -d | tar xz -C /opt/src",CODE
HIGHexamples/experimental/openenv/openenv_agent_function.py221 "! -name repo_cache -exec rm -rf {} + 2>/dev/null || true"CODE
HIGHexamples/experimental/openenv/scan_golden.py67 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.py104 '[ -n "$ids" ] && docker stop $ids && docker rm $ids; 'CODE
HIGH…e-agent-harbor-docker/run-glm47-flash-agentic-async.py119 f"pgrep -f '{pattern}' | {exclude} | xargs -r kill 2>/dev/null || true",CODE
HIGHexamples/swe-agent-harbor-docker/run.py82 f"pgrep -f '{t}' | {exclude} | xargs -r kill 2>/dev/null || true",CODE
Verbosity Indicators112 hits · 207 pts
SeverityFileLineSnippetContext
LOW…amd_patch/latest/sglang_attn_bridge/triton_attn_bwd.py410 # Step 1: preprocess deltaCOMMENT
LOW…amd_patch/latest/sglang_attn_bridge/triton_attn_bwd.py427 # Step 2: compute LSECOMMENT
LOW…amd_patch/latest/sglang_attn_bridge/triton_attn_bwd.py448 # Step 3: compute dK, dVCOMMENT
LOW…amd_patch/latest/sglang_attn_bridge/triton_attn_bwd.py482 # Step 4: compute dQCOMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py97 # Step 1: sender — wrap state_dict for transportCOMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py100 # Step 2: sender — flatten via pytree (what PGTransport does internally)COMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py103 # Step 3: sender — pickle treespec + non-tensor leaves; "send" tensor leaves over the wireCOMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py110 # Step 4: receiver — unpickle metadata + interleave received tensors back into leaf orderCOMMENT
LOW…st/backends/megatron_utils/test_checkpoint_transfer.py124 # Step 5: receiver — unwrap into iteration + state_dictCOMMENT
LOWtests/fast/utils/test_process_group_utils.py267 # Step 1: single groupCOMMENT
LOWtests/fast/utils/test_process_group_utils.py273 # Step 2: two groups = global sumCOMMENT
LOWtests/fast/utils/test_process_group_utils.py278 # Step 3: bitwise equality across all ranksCOMMENT
LOWtests/fast/utils/test_process_group_utils.py286 # Step 4: empty groups = no-opCOMMENT
LOWtests/fast/utils/test_process_group_utils.py291 # Step 5: MAX opCOMMENT
LOWtests/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
LOWtests/fast/utils/test_env_report.py341 # Step 1: Run the full collection (no mocks)COMMENT
LOWtests/fast/utils/test_env_report.py348 # Step 2: Verify the package appears in editable_packagesCOMMENT
LOWtests/fast/utils/test_env_report.py355 # Step 3: Verify git info — clean repoCOMMENT
LOWtests/fast/utils/test_env_report.py365 # Step 4: Verify single-line JSON output is parseable and contains this packageCOMMENT
LOWtests/fast/utils/test_env_report.py376 # Step 5: Verify package also in full_pip_listCOMMENT
LOWtests/fast/utils/test_env_report.py386 # Step 1: Stage an uncommitted fileCOMMENT
LOWtests/fast/utils/test_env_report.py390 # Step 2: Run collectionCOMMENT
LOWtests/fast/utils/test_env_report.py397 # Step 3: Verify dirty + diff_stat mentions the fileCOMMENT
LOWtests/fast/utils/test_env_report.py412 # Step 1: Modify a tracked file without stagingCOMMENT
LOWtests/fast/utils/test_env_report.py416 # Step 2: Run collectionCOMMENT
LOWtests/fast/utils/test_env_report.py423 # Step 3: Verify dirtyCOMMENT
LOWtests/fast/utils/test_health_checker.py83 # Step 1: first_wait=0, so first check runs immediately after task startsCOMMENT
LOWtests/fast/utils/test_health_checker.py87 # Step 2: Elapse less than interval — no second checkCOMMENT
LOWtests/fast/utils/test_health_checker.py91 # Step 3: Elapse to interval — second checkCOMMENT
LOWtests/fast/utils/test_health_checker.py107 # Step 1: Elapse 100s — still in first_waitCOMMENT
LOWtests/fast/utils/test_health_checker.py111 # Step 2: Elapse to 300s — first_wait completes, first check runsCOMMENT
LOWtests/fast/utils/test_health_checker.py115 # Step 3: Elapse interval — second checkCOMMENT
LOWtests/fast/utils/test_health_checker.py262 # Step 1: Initial first_wait (100s)COMMENT
LOWtests/fast/utils/test_health_checker.py268 # Step 2: Normal interval (5s)COMMENT
LOWtests/fast/utils/test_health_checker.py272 # Step 3: Pause + resume resets first_waitCOMMENT
LOWtests/fast/utils/test_health_checker.py276 # Step 4: Need to elapse past the pending interval sleep first,COMMENT
LOWtests/fast/utils/test_clock.py239 # Step 1: first_wait=10COMMENT
LOWtests/fast/utils/test_clock.py244 # Step 2: interval=5COMMENT
LOWtests/fast/utils/test_clock.py248 # Step 3: interval=5COMMENT
LOWtests/fast/utils/test_mini_ft_controller.py382 # Step 1: First poll → heal attempt fails, sets next_attempt_atCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py387 # Step 2: Poll again without advancing clock → should skip healCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py392 # Step 3: Advance clock past backoff → should attempt heal againCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py421 # Step 1: First attempt failsCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py428 # Step 2: Advance clock past backoff, second attempt succeedsCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py498 # Step 1: Unhealthy → heal fails → backoff entry createdCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py503 # Step 2: Cell becomes NOT_APPLICABLE → backoff entry cleanedCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py524 # Step 1: Unhealthy → heal fails → backoff entry createdCOMMENT
LOWtests/fast/utils/test_mini_ft_controller.py529 # Step 2: Cell becomes HEALTHY → backoff entry cleanedCOMMENT
LOWtests/fast/utils/test_witness/test_module.py71 # Step 1: Compute loss without witnessCOMMENT
LOWtests/fast/utils/test_witness/test_module.py81 # Step 2: Compute loss with witnessCOMMENT
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
LOWtests/fast/ray/train/test_group.py239 # Step 1: Stop cell 1COMMENT
LOWtests/fast/ray/train/test_group.py242 # Step 2: RefreshCOMMENT
LOWtests/fast/ray/train/test_group.py245 # Step 3: Quorum bumped (init was quorum 0, this is first reconfigure)COMMENT
LOWtests/fast/ray/train/test_group.py248 # Step 4: Remaining alive cells have updated indep_dp_infoCOMMENT
LOWtests/fast/ray/train/test_group.py257 # Step 5: Stopped cell untouchedCOMMENT
LOWtests/fast/ray/train/test_group.py260 # Step 6: Actors received reconfigure_indep_dpCOMMENT
52 more matches not shown…
Deep Nesting182 hits · 179 pts
SeverityFileLineSnippetContext
LOWtrain_async.py22CODE
LOWtrain.py22CODE
LOWtools/convert_hf_to_nvfp4.py157CODE
LOWtools/convert_hf_to_nvfp4.py208CODE
LOWtools/convert_hf_to_nvfp4.py231CODE
LOWtools/convert_hf_to_nvfp4.py277CODE
LOWtools/convert_hf_to_mxfp8.py161CODE
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.py98CODE
LOWmiles_plugins/mbridge/deepseek_v32.py72CODE
LOWmiles_plugins/mbridge/deepseek_v32.py106CODE
LOWmiles_plugins/mbridge/glm4.py83CODE
LOWmiles_plugins/mbridge/glm4moe.py35CODE
LOWmiles_plugins/models/glm5/ops/tilelang_indexer_bwd.py18CODE
LOWmiles_plugins/models/glm5/ops/tilelang_indexer_bwd.py46CODE
LOWmiles_plugins/models/glm5/ops/tilelang_indexer_fwd.py91CODE
LOWmiles_plugins/models/glm5/ops/tilelang_indexer_fwd.py102CODE
LOW…les_plugins/models/glm5/ops/tilelang_sparse_mla_bwd.py87CODE
LOW…les_plugins/models/glm5/ops/tilelang_sparse_mla_bwd.py137CODE
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.py47CODE
LOW…les_plugins/models/deepseek_v4/ops/kernel/act_quant.py48CODE
LOW…les_plugins/models/deepseek_v4/ops/kernel/act_quant.py64CODE
LOW…/models/deepseek_v4/ops/kernel/tilelang_indexer_bwd.py18CODE
LOW…/models/deepseek_v4/ops/kernel/tilelang_indexer_bwd.py46CODE
LOW…/models/deepseek_v4/ops/kernel/tilelang_indexer_fwd.py95CODE
LOW…/models/deepseek_v4/ops/kernel/tilelang_indexer_fwd.py106CODE
LOW…dels/deepseek_v4/ops/kernel/tilelang_sparse_mla_bwd.py87CODE
LOW…dels/deepseek_v4/ops/kernel/tilelang_sparse_mla_bwd.py134CODE
LOWtests/ci/ci_utils.py39CODE
LOWtests/ci/ci_utils.py275CODE
LOWtests/ci/ci_utils.py383CODE
LOWtests/ci/ci_register.py309CODE
LOWtests/ci/test/test_ci_register.py607CODE
LOWtests/ci/metric_history/register.py282CODE
LOW…s/fast/backends/training_utils/loss/loss_test_utils.py266CODE
LOWtests/fast/dashboard/dummy_telemetry.py121CODE
LOWtests/fast/ray/rollout/conftest.py234CODE
LOWtests/fast/ray/rollout/test_addr_allocator.py41CODE
LOWtests/fast/ray/rollout/real_ray/test_rollout_manager.py385CODE
LOWtests/fast/router/test_session_race_conditions.py194CODE
LOWtests/fast/router/test_session_race_conditions.py234CODE
LOWtests/fast/router/test_session_race_conditions.py282CODE
LOWtests/fast/router/test_session_race_conditions.py351CODE
LOWtests/fast/router/test_tree_assembly_invariants.py144CODE
LOWtests/fast/router/test_sessions_v2.py131CODE
LOW…nual/models/deepseek_v4/test_v4_tilelang_sparse_mla.py138CODE
LOW…/manual/models/deepseek_v4/test_v4_tilelang_indexer.py232CODE
LOW…/manual/models/deepseek_v4/test_v4_tilelang_indexer.py474CODE
LOWtests/e2e/short/test_qwen2.5_0.5B_opd_sglang.py38CODE
LOWtests/e2e/precision/test_qwen3_0.6B_parallel_check.py32CODE
LOWtests/e2e/megatron/test_qwen3_4B_offload_disk_stream.py51CODE
LOWtests/e2e/megatron/test_qwen3_4B_offload_disk.py43CODE
122 more matches not shown…
Cross-File Repetition28 hits · 140 pts
SeverityFileLineSnippetContext
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_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/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
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_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_inkling.py0return parallel config args for tested gpu configurations. only includes configurations that have been verified to work.STRING
HIGHscripts/run_deepseek_v4.py0return parallel config args for tested gpu configurations. only includes configurations that have been verified to work.STRING
HIGHscripts/amd/run_deepseek_v4.py0return parallel config args for tested gpu configurations. only includes configurations that have been verified to work.STRING
Hallucination Indicators6 hits · 90 pts
SeverityFileLineSnippetContext
CRITICALtests/fast/utils/test_witness/test_module.py218 model.local_head_witness.witness.weight.data.fill_(42.0)CODE
CRITICALtests/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
CRITICALtests/fast/utils/test_witness/test_module.py402 chunk.module.local_head_witness.witness.weight.data.fill_(1.0)CODE
CRITICALtests/fast/utils/test_witness/test_module.py403 chunk.module.local_tail_witness.witness.weight.data.fill_(1.0)CODE
CRITICALtests/fast/utils/test_witness/test_module.py425 chunk.module.local_head_witness.witness.weight.data.fill_(1.0)CODE
CRITICALtests/fast/utils/test_witness/test_module.py426 chunk.module.local_tail_witness.witness.weight.data.fill_(1.0)CODE
AI Slop Vocabulary24 hits · 63 pts
SeverityFileLineSnippetContext
MEDIUMtests/ci/test/test_history_gate.py611# --- dual-register files + harness-supplied registry ------------------------STRING
MEDIUMtests/ci/test/test_history_gate.py636 # 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.py269 # never raise on a dual-register / no-register file. Use the harness'sCOMMENT
MEDIUMtests/ci/metric_history/gate.py285 # The harness already selected one register_*_ci() call; use it directly andCOMMENT
MEDIUM…fast/utils/chat_template_utils/test_fixed_templates.py49 # stay append-only regardless of which roles the harness appends.COMMENT
MEDIUM…nual/models/deepseek_v4/test_v4_tilelang_sparse_mla.py388 """Print a comprehensive diff summary across all forward configs."""STRING
MEDIUM…/manual/models/deepseek_v4/test_v4_tilelang_indexer.py526 """Print a comprehensive diff summary across all configurations."""STRING
MEDIUMtests/e2e/short/test_run_megatron.py156 # The CI harness invokes this file as bare `python3 <file>` with no args.COMMENT
MEDIUM…s/e2e/sglang/test_session_server_multi_role/_common.py60 # This harness produces one rollout batch, so its train-side batch divisorCOMMENT
LOW…ron_utils/megatron_to_hf/processors/quantizer_nvfp4.py95 # for other parameters, we just return the original converted_named_paramsCOMMENT
LOW…atron_utils/megatron_to_hf/processors/quantizer_fp8.py110 # for other parameters, we just return the original converted_named_paramsCOMMENT
LOW…ron_utils/megatron_to_hf/processors/quantizer_mxfp8.py108 # 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.py2663 # On iff the CI harness injected MILES_CI_GATE_RECORD_DIR (the same env varCOMMENT
MEDIUMmiles/utils/tracking_utils/ci_history.py58# Env var naming the directory the harness assigns for this run's records.COMMENT
MEDIUMmiles/utils/tracking_utils/ci_history.py92 # 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…les/experimental/openenv/openenv_e2b_agent_function.py55# older install outright, and the shared agent loop's harness-marker guardCOMMENT
MEDIUM…experimental/openenv/openenv_daytona_agent_function.py63# older install outright, and the shared agent loop's harness-marker guardCOMMENT
MEDIUMexamples/experimental/openenv/openenv_agent_function.py329 # - harness marker absent: the server scored, but not through theCOMMENT
MEDIUMexamples/experimental/openenv/openenv_agent_function.py443 # No canonical verdict (infra/harness failure or a non-canonical server,COMMENT
MEDIUMexamples/experimental/openenv/openenv_agent_function.py452 # the scalar reward (plus the harness marker). The detailed pytest CTRFCOMMENT
MEDIUMexamples/experimental/openenv/scan_golden.py114 # server-side scoring failure or a non-canonical harness isCOMMENT
Over-Commented Block57 hits · 55 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.py101COMMENT
LOW…/fast/utils/chat_template_utils/test_tito_tokenizer.py141 chat_template_kwargs={"clear_thinking": False},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/manual/session/bench_session_server_overhead.py301 json.dump(payload, f, indent=2)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.py21register_ci_gate(metric_key="rollout/tito_session_mismatch_rate/v2/assistant_text")COMMENT
LOWtests/e2e/ft/conftest_ft/scenario_deterministic.py81COMMENT
LOWtests/e2e/ft/conftest_ft/scenario_with_failure.py21COMMENT
LOW.claude/skills/setup-ci-host/setup-host.sh1#!/usr/bin/env bashCOMMENT
LOW.claude/skills/manage-gh-runners/manage-runners.sh1#!/usr/bin/env bashCOMMENT
LOWmiles/utils/seqlen_balancing.py1# Copied from https://github.com/volcengine/verl/blob/468adf22c43b744348051fccd7a5d830c6c3c36a/verl/utils/seqlen_balanciCOMMENT
LOWmiles/utils/test_utils/chat_template_verify.py141# * ``APPEND_ROLES: frozenset[str]`` — non-assistant roles that appear afterCOMMENT
LOWmiles/utils/test_utils/chat_template_verify.py401 )COMMENT
LOWmiles/rollout/inference_rollout/__init__.py1# This is a refactor of the portions above generate-function in sglang_rollout.py,COMMENT
LOWmiles/rollout/rm_hub/math_dapo_utils.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWmiles/dashboard/static/carpet.js21COMMENT
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/openenv/tb2_sandbox_recipe.py321 # state is part of the task environment — solutions and agents runCOMMENT
LOWexamples/experimental/openenv/run-openenv-tbench2.py81 # within the limit is terminated and scored reward 0, bounding long-trajectoryCOMMENT
LOWexamples/experimental/openenv/openenv_agent_function.py61# (CAPACITY_REACHED) and the docker-mode tbench2 server caps concurrent envsCOMMENT
LOWexamples/experimental/openenv/openenv_agent_function.py81# what _multi_turn parses: exactly one shell command per turn in a singleCOMMENT
LOWexamples/experimental/openenv/openenv_agent_function.py181# (openenv_daytona_agent_function).COMMENT
LOWexamples/experimental/openenv/openenv_agent_function.py201 # (TB2_OUTPUT_DIR=/tmp/tbench2_env_runs) leaves a per-episode trial dirCOMMENT
LOWexamples/experimental/openenv/openenv_agent_function.py321COMMENT
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
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
LOW…tion/qwen3_5_35b_selfdistill/phase2_opd_selfdistill.sh1#!/bin/bashCOMMENT
LOW…y_distillation/qwen3_5_35b_selfdistill/phase2_gb200.sh1#!/bin/bashCOMMENT
LOWscripts/run_glm45_355b_a32b.py361 # "NCCL_PXN_DISABLE": "0",COMMENT
LOWscripts/models/nemotron-3-ultra-550b-a55b-4layer.sh1# 4-layer slice of NVIDIA Nemotron-3-Ultra-550B-A55B, for single-node (8 GPU) CI.COMMENT
LOWscripts/models/qwen3.5-35B-A3B_lora.sh61# (identical to qwen3.5-35B-A3B.sh); every LoRA / run-mode flag lives in the runner,COMMENT
LOWscripts/models/nemotron-3-super-120b-a12b.sh1# NVIDIA Nemotron-3-Super-120B-A12B (BF16, MoE nemotron_h = hybrid Mamba + Attention + MoE).COMMENT
LOWscripts/models/qwen3.6-35B-A3B_lora.sh61# (identical to qwen3.5-35B-A3B.sh); every LoRA / run-mode flag lives in the runner,COMMENT
LOWscripts/models/nemotron-3-ultra-550b-a55b.sh1# NVIDIA Nemotron-3-Ultra-550B-A55B (BF16, MoE nemotron_h = hybrid Mamba2 + Attention + MoE).COMMENT
LOW.github/workflows/pr-test-rocm.yml1# doc-dev: docs/ci/00-stage.mdCOMMENT
Modern AI Meta-Vocabulary15 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUM…nds/megatron_utils/test_lora_weight_sync_validation.py355# - DistBucketedWeightUpdateMixin._update_lora_weights → shared orchestrationCOMMENT
MEDIUMtests/fast/dashboard/dummy_dump.py168 # every third sample is agentic-shaped: multi-turn (mixed weight versionsCOMMENT
MEDIUMmiles/utils/test_utils/session_verify_agent.py114# English-only on purpose: matches the production agentic flows tokenizationCOMMENT
MEDIUMmiles/rollout/fully_async_data_buffer.py24# returns multiple samples per trajectory (e.g. multi-agent).COMMENT
MEDIUMmiles/rollout/base_types.py84 # One generate may lead to multiple samples, such as multi-agent, tree-like exploration, orCOMMENT
MEDIUMmiles/dashboard/store.py704 # per-turn spans (multi_turn / agentic) supersede the coarseCOMMENT
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/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
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/nemo-gym/run.py183 # Gates the dynamic registration of the agentic flags above; withoutCOMMENT
MEDIUMexamples/experimental/openenv/openenv_agent_function.py105# total episode time: a long agentic trajectory can loop for turns * (longCOMMENT
MEDIUMexamples/experimental/openenv/openenv_agent_function.py315 # text protocol the Harbor mini-swe-agent scaffold uses.COMMENT
MEDIUMexamples/experimental/strands_sglang/README.md3This example connects `miles` with [`strands-sglang`](https://github.com/horizon-rl/strands-sglang) (SGLang extension foCODE
Self-Referential Comments13 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMtrain_multi_lora_async.py43 # Create a controller nclusing MultiLoRAController and MultiLoRAHTTPServer to manage loraCOMMENT
MEDIUMmiles_plugins/mbridge/mimo.py82 # Create a proxy name to use with parent class methodsCOMMENT
MEDIUMmiles_plugins/models/qwen3_5.py231 # Define the decoder block specCOMMENT
MEDIUMmiles_plugins/models/qwen3_next.py232 # Define the decoder block specCOMMENT
MEDIUMmiles_plugins/models/glm5/glm5.py751 # 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.py230 # Define the decoder block specCOMMENT
MEDIUMmiles/backends/megatron_utils/model_provider.py238 # Define the decoder layer specCOMMENT
MEDIUMmiles/backends/fsdp_utils/lr_scheduler.py77 # Initialize parent classCOMMENT
MEDIUMmiles/utils/async_utils.py16# Create a background event loop threadCOMMENT
MEDIUMmiles/utils/http_utils.py313 # Define the async actorCOMMENT
MEDIUMmiles/rollout/rm_hub/__init__.py57 # This function is intended for remote or time-consuming reward model evaluation.COMMENT
MEDIUMexamples/experimental/tau-bench/trainable_agents.py212 # Initialize tracking variablesCOMMENT
Example Usage Blocks14 hits · 25 pts
SeverityFileLineSnippetContext
LOW…_features/p2p_weight_transfer/prepare-qwen3-30B-A3B.sh7# Usage:COMMENT
LOW…p2p_weight_transfer/run-qwen3-30B-A3B-4node-profile.sh8# Usage:COMMENT
LOW…a_features/p2p_weight_transfer/prepare-glm4.7-flash.sh8# Usage:COMMENT
LOW…fra_features/p2p_weight_transfer/prepare-glm4.5-air.sh10# Usage:COMMENT
LOW…les/infra_features/p2p_weight_transfer/prepare-glm5.sh11# Usage:COMMENT
LOW…eatures/p2p_weight_transfer/prepare-qwen3-235b-A22B.sh8# Usage:COMMENT
LOW…/p2p_weight_transfer/run-glm4.7-flash-2node-profile.sh5# Usage:COMMENT
LOW…es/p2p_weight_transfer/run-glm4.5-air-8node-profile.sh11# Usage:COMMENT
LOW…eatures/p2p_weight_transfer/run-glm5-disagg-profile.sh11# Usage:COMMENT
LOW…_weight_transfer/run-qwen3-235B-A22B-16node-profile.sh5# Usage:COMMENT
LOW…ures/p2p_weight_transfer/run-kimi-k2-64node-profile.sh9# Usage:COMMENT
LOW…/infra_features/p2p_weight_transfer/prepare-kimi-k2.sh11# Usage:COMMENT
LOW…n-qwen2.5-3B-megatron-lora-disaggregated-multi-node.sh15# Usage:COMMENT
LOWexamples/geo3k_vlm/run_geo3k_vlm.sh5# Usage:COMMENT
AI Structural Patterns23 hits · 22 pts
SeverityFileLineSnippetContext
LOWtools/convert_hf_to_int4_direct.py118CODE
LOWmiles_plugins/models/qwen3_5.py182CODE
LOWmiles_plugins/models/hf_attention.py175CODE
LOWmiles_plugins/models/qwen3_next.py193CODE
LOWmiles_plugins/models/glm5/glm5.py193CODE
LOW…les_plugins/models/glm5/ops/tilelang_sparse_mla_bwd.py87CODE
LOWmiles_plugins/models/inkling/model.py64CODE
LOWmiles_plugins/models/deepseek_v4/deepseek_v4.py211CODE
LOW…ast/backends/training_utils/loss/test_loss_snapshot.py201CODE
LOWtests/fast/utils/test_health_checker.py15CODE
LOWtests/fast/utils/test_arguments.py75CODE
LOWtests/fast/rollout/generate_hub/test_single_turn.py68CODE
LOWtests/fast/rollout/generate_utils/test_sample_utils.py17CODE
LOWtests/fast/dashboard/dummy_dump.py60CODE
LOW…atron_utils/update_weight/update_weight_from_tensor.py234CODE
LOW…/update_weight/update_weight_from_distributed/mixin.py337CODE
LOW…atron_to_hf/processors/quantizer_compressed_tensors.py223CODE
LOWmiles/utils/http_utils.py368CODE
LOWmiles/utils/distributed_utils.py40CODE
LOWmiles/utils/data.py187CODE
LOWexamples/experimental/tau-bench/openai_tool_adapter.py109CODE
LOW…al/search-r1/local_dense_retriever/retrieval_server.py290CODE
LOWexamples/retool_v2/tool_sandbox.py351CODE
Redundant / Tautological Comments12 hits · 17 pts
SeverityFileLineSnippetContext
LOWmiles_plugins/mbridge/mimo.py51 # Check if this is an MTP layer weightCOMMENT
LOWmiles_plugins/mbridge/mimo.py80 # Check if this is a transformer_layer componentCOMMENT
LOWtests/ci/ci_utils.py539 # Check if we should retryCOMMENT
LOWmiles/backends/megatron_utils/model_provider.py147 # Check if the custom provider supports vp_stage parameterCOMMENT
LOWmiles/backends/megatron_utils/model_provider.py270 # Check if fp8_model_init supports preserve_high_precision_init_valCOMMENT
LOWmiles/backends/megatron_utils/lora_utils.py273 # Check if already in Megatron format (standard / canonical / Kimi MLA linear_*).COMMENT
LOWmiles/backends/fsdp_utils/arguments.py75 if hasattr(f.type, "__args__"): # Check if it's a Union typeCODE
LOWmiles/backends/training_utils/log_utils.py374 if val: # Check if val is not emptyCODE
LOWmiles/utils/hf_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
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHmiles/backends/sglang_utils/sglang_engine.py295Run /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
Fake / Example Data10 hits · 10 pts
SeverityFileLineSnippetContext
LOWtests/fast/rollout/generate_hub/test_single_turn.py208 "process_fn_kwargs": {"routed_experts": "placeholder"},CODE
LOWtests/fast/ray/rollout/test_config_matrix.py82 @pytest.mark.parametrize("wt", ["regular", "prefill", "decode", "placeholder"])CODE
LOWtests/fast/ray/rollout/real_ray/test_server_group.py23 engines = [ServerEngine() for _ in range(num_engines)] if worker_type != "placeholder" else []CODE
LOWtests/fast/ray/rollout/real_ray/test_server_group.py53 group = _build_group(pg_tuple=pg, num_engines=0, worker_type="placeholder")CODE
LOWmiles/backends/sglang_utils/sglang_config.py16 worker_type: One of "regular", "prefill", "decode", or "placeholder".STRING
LOWmiles/backends/sglang_utils/sglang_config.py17 "placeholder" reserves GPU slots without creating engines.STRING
LOWmiles/backends/sglang_utils/sglang_config.py32 valid_types = {"regular", "prefill", "decode", "placeholder"}CODE
LOWmiles/utils/debug_utils/send_to_sglang.py53 client = AsyncOpenAI(api_key="dummy_key", base_url=url)CODE
LOWmiles/ray/rollout/rollout_server.py65 [ServerEngine() for _ in range(num_engines)] if group_cfg.worker_type != "placeholder" else []CODE
LOWmiles/ray/rollout/server_group.py68 if self.args.debug_train_only or self.worker_type == "placeholder":CODE
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
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…atron_utils/update_weight/update_weight_from_tensor.py245 # TODO: implement lora weight checkerCOMMENT