Repository Analysis

areal-project/AReaL

The RL Bridge for LLM-based Agent Applications. Made Simple & Flexible.

29.9 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of areal-project/AReaL, a Python project with 5,700 GitHub stars. SynthScan v2.0 examined 302,564 lines of code across 1197 source files, recording 6050 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 29.9 places this repository in the Moderate AI signal band.

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

29.9
Adjusted Score
29.9
Raw Score
100%
Time Factor
2026-08-29
Last Push
5.7K
Stars
Python
Language
302.6K
Lines of Code
1.2K
Files
6.0K
Pattern Hits
2026-08-29
Scan Date
0.08
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 0HIGH 97MEDIUM 1056LOW 4897

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

Decorative Section Separators963 hits · 3344 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml219# =============================================================================COMMENT
MEDIUMpyproject.toml221# =============================================================================COMMENT
MEDIUMpyproject.toml283# =============================================================================COMMENT
MEDIUMpyproject.toml285# =============================================================================COMMENT
MEDIUMpyproject.toml306# =============================================================================COMMENT
MEDIUMpyproject.toml308# =============================================================================COMMENT
MEDIUMpyproject.vllm.toml230# =============================================================================COMMENT
MEDIUMpyproject.vllm.toml232# =============================================================================COMMENT
MEDIUMpyproject.vllm.toml314# =============================================================================COMMENT
MEDIUMpyproject.vllm.toml316# =============================================================================COMMENT
MEDIUMpyproject.vllm.toml337# =============================================================================COMMENT
MEDIUMpyproject.vllm.toml339# =============================================================================COMMENT
MEDIUMtests/test_per_layer_optim_step.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_per_layer_optim_step.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_per_layer_optim_step.py119# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_per_layer_optim_step.py121# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_per_layer_optim_step.py253# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_per_layer_optim_step.py255# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_seqpack.py461# =============================================================================COMMENT
MEDIUMtests/test_seqpack.py463# =============================================================================COMMENT
MEDIUMtests/test_seqpack.py979# =============================================================================COMMENT
MEDIUMtests/test_seqpack.py981# =============================================================================COMMENT
MEDIUMtests/test_seqpack.py27# =============================================================================COMMENT
MEDIUMtests/test_seqpack.py29# =============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py30# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py32# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py81# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py83# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py219# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py221# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py242# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py244# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py301# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py303# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py354# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py356# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py154# ============================================================================COMMENT
MEDIUMtests/test_slurm_scheduler.py156# ============================================================================COMMENT
MEDIUMtests/test_kk_allocate.py223# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py225# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py461# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py463# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py550# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py552# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py34# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py62# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py64# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py114# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py116# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py158# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py160# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py373# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py375# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py426# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_kk_allocate.py428# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_local_scheduler.py39# ============================================================================COMMENT
MEDIUMtests/test_local_scheduler.py41# ============================================================================COMMENT
MEDIUMtests/test_inference_engines.py149# ============================================================================COMMENT
MEDIUMtests/test_inference_engines.py151# ============================================================================COMMENT
903 more matches not shown…
Hyper-Verbose Identifiers2807 hits · 2692 pts
SeverityFileLineSnippetContext
LOW.opencode/skills/add-reward/SKILL.md122def test_reward_correct_answer():CODE
LOW.opencode/skills/add-archon-model/SKILL.md369def test_state_dict_roundtrip():CODE
LOW.opencode/skills/add-unit-tests/SKILL.md52def test_function_under_condition_returns_expected():CODE
LOW.opencode/skills/add-unit-tests/SKILL.md104def test_slow_but_required_in_ci():CODE
LOW.opencode/skills/add-unit-tests/SKILL.md115def test_distributed_function(monkeypatch):CODE
LOWtests/test_train_controller.py159def create_mock_distributed_batch(size=4, seq_len=10):CODE
LOWtests/test_train_controller.py254 def test_destroy_handles_errors(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py273 def test_destroy_requests_reverse_order(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py293 def test_merge_tensors_reorders_results(self):CODE
LOWtests/test_train_controller.py304 def test_merge_tensors_with_tensor_results(self):CODE
LOWtests/test_train_controller.py431 def test_custom_function_call_with_distributed_batch(CODE
LOWtests/test_train_controller.py455 def test_custom_function_call_with_regular_args(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py476 def test_custom_function_call_filters_dp_heads(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py491 def test_create_process_group_is_dummy(self, train_controller, parallel_strategy):CODE
LOWtests/test_train_controller.py515 def test_connect_engine_sets_rollout(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py529 def test_connect_engine_warns_on_change(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py545 def test_connect_engine_same_rollout_no_warning(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py560 def test_check_rollout_engine_connected_raises_when_not_connected(CODE
LOWtests/test_train_controller.py572 def test_check_rollout_engine_connected_passes_when_connected(CODE
LOWtests/test_train_controller.py588 def test_prepare_batch_delegates_to_rollout(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py618 def test_rollout_batch_delegates_to_rollout(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py651 def test_update_weights_raises_when_not_connected(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py694 def test_prepare_dispatch_splits_distributed_batch(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py708 def test_prepare_dispatch_partitions_without_duplication(CODE
LOWtests/test_train_controller.py735 def test_prepare_dispatch_replicates_non_batch_args(CODE
LOWtests/test_train_controller.py752 def test_prepare_dispatch_handles_kwargs(self, train_controller, ft_spec):CODE
LOWtests/test_train_controller.py771 def test_storage_clear_surfaces_per_node_failures_and_stats(self):CODE
LOWtests/test_train_controller.py812 def test_failed_storage_clear_is_retried_on_next_call(self):CODE
LOWtests/test_train_controller.py833 def test_second_storage_clear_failure_cleans_workers_then_raises(self):CODE
LOWtests/test_train_controller.py862 def test_worker_cleanup_failure_preserves_exhausted_storage_state(self):CODE
LOWtests/test_train_controller.py901 def test_storage_clear_propagates_cancellation(self):CODE
LOWtests/test_train_controller.py916 def test_storage_clear_cancellation_keeps_batch_state_atomic(self):CODE
LOWtests/test_slurm_terminal_state.py14 def test_node_fail_maps_to_failed(self):CODE
LOWtests/test_slurm_terminal_state.py20 def test_terminal_states_are_not_active(self, state):CODE
LOWtests/test_slurm_terminal_state.py24 def test_live_states_are_active(self, state):CODE
LOWtests/test_slurm_terminal_state.py41 def test_maps_sacct_output_to_a_job_state(self, output, expected):CODE
LOWtests/test_slurm_terminal_state.py45 def test_returns_none_when_sacct_has_no_record(self):CODE
LOWtests/test_slurm_terminal_state.py56 def test_returns_none_when_sacct_is_unavailable(self, error):CODE
LOWtests/test_slurm_terminal_state.py60 def test_reads_only_the_first_record(self):CODE
LOWtests/test_gloo_mirror_group_gating.py41 def test_the_gloo_group_is_built_only_under_an_offload_guard(self):CODE
LOWtests/test_gloo_mirror_group_gating.py64 def test_the_mirror_group_defaults_to_none(self):CODE
LOWtests/test_vocab_parallel_inplace.py18def test_gather_logprobs_forwards_explicit_chunk_size(CODE
LOWtests/test_vocab_parallel_inplace.py73def test_regular_entropy_path_remains_differentiable():CODE
LOWtests/test_vocab_parallel_inplace.py96def test_inplace_vocab_parallel_matches_reference_and_reuses_storage(CODE
LOWtests/test_vocab_parallel_inplace.py153def test_inplace_vocab_parallel_rejects_invalid_temperature(temperature: float):CODE
LOWtests/test_vocab_parallel_inplace.py165def test_reuse_logits_accepts_full_storage_squeeze_view():CODE
LOWtests/test_vocab_parallel_inplace.py189def test_reuse_logits_rejects_partial_view():CODE
LOWtests/test_trackio_backend.py15 def test_default_mode_is_disabled(self):CODE
LOWtests/test_trackio_backend.py20 def test_default_optional_fields_are_none(self):CODE
LOWtests/test_trackio_backend.py40 def test_invalid_mode_raises_error(self):CODE
LOWtests/test_trackio_backend.py47 def test_all_valid_modes_accepted(self):CODE
LOWtests/test_trackio_backend.py57 def test_trackio_field_exists(self):CODE
LOWtests/test_trackio_backend.py62 def test_trackio_field_default_is_disabled(self):CODE
LOWtests/test_trackio_backend.py108 def test_trackio_init_called_when_enabled(CODE
LOWtests/test_trackio_backend.py125 def test_trackio_not_init_when_disabled(CODE
LOWtests/test_trackio_backend.py142 def test_trackio_log_called_on_commit(CODE
LOWtests/test_trackio_backend.py162 def test_trackio_finish_called_on_close(CODE
LOWtests/test_trackio_backend.py181 def test_trackio_not_logged_when_disabled(CODE
LOWtests/test_network_ipv6_utils.py31def test_dual_stack_environment_executes_correct_branch(ip_stack):CODE
LOWtests/test_network_ipv6_utils.py79def test_format_host_for_url_idempotent():CODE
2747 more matches not shown…
Unused Imports710 hits · 676 pts
SeverityFileLineSnippetContext
LOWtests/test_awex_delta_common.py9CODE
LOWtests/test_warmup_process_groups.py8CODE
LOWtests/test_perf_trace_converter.py1CODE
LOWtests/test_megatron_async_save.py16CODE
LOWtests/utils.py7CODE
LOWtests/utils.py7CODE
LOWtests/test_geometry3k_agent.py3CODE
LOWtests/test_reassemble_cp_logprobs.py15CODE
LOWtests/test_examples.py737CODE
LOWtests/test_examples.py817CODE
LOWtests/test_profile_example.py1CODE
LOWtests/test_grouped_rollout_workflow.py3CODE
LOWtests/experimental/archon/test_hf_parity_qwen2.py1CODE
LOWtests/experimental/archon/test_moe_common.py25CODE
LOWtests/experimental/archon/conftest.py107CODE
LOWtests/experimental/archon/conftest.py115CODE
LOWtests/experimental/archon/test_hf_parity_qwen3.py1CODE
LOWtests/experimental/archon/test_hf_parity_qwen3_moe.py1CODE
LOWtests/experimental/archon/test_hf_parity_qwen3_5_moe.py1CODE
LOWtests/experimental/archon/test_async_checkpoint.py11CODE
LOWtests/experimental/archon/utils.py22CODE
LOWtests/experimental/archon/utils.py22CODE
LOWtests/experimental/archon/utils.py22CODE
LOWtests/experimental/archon/test_qwen3_5.py14CODE
LOWtests/experimental/archon/test_moe_hf_parity.py23CODE
LOWtests/experimental/archon/test_hf_parity_qwen3_5.py1CODE
LOW…experimental/archon/torchrun/run_pp_gradient_verify.py12CODE
LOWtests/experimental/archon/torchrun/run_pp_tests.py21CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py24CODE
LOWtests/experimental/archon/fp8/test_fp8_scale_layout.py8CODE
LOWtests/experimental/archon/fp8/test_conversion.py11CODE
LOWtests/experimental/archon/fp8/test_moe_dispatch.py23CODE
LOWtests/experimental/archon/fp8/test_fp8_linear.py20CODE
LOW…sts/experimental/archon/fp8/torchrun/run_checkpoint.py2CODE
LOW…xperimental/archon/fp8/torchrun/run_sharded_dequant.py16CODE
LOWtests/experimental/openai/test_proxy_gateway.py3CODE
LOWtests/experimental/openai/test_proxy_integration.py1CODE
LOWtests/experimental/openai/test_proxy_rollout_server.py3CODE
LOWtests/experimental/openai/test_online_agent.py3CODE
LOWtests/experimental/openai/test_vlm_trajectory.py3CODE
LOW…experimental/openai/test_streaming_chat_completions.py10CODE
LOWtests/experimental/openai/test_retry_orphan.py9CODE
LOWtests/infra/test_proc.py1CODE
LOWtests/infra/test_remote_inf_engine.py1CODE
LOWtests/infra/test_local_launcher.py1CODE
LOWtests/infra/test_launcher_utils.py1CODE
LOWtests/infra/sandbox/test_runner.py5CODE
LOWtests/infra/sandbox/test_client_manager.py3CODE
LOWtests/infra/data_service/test_epoch_crossing.py15CODE
LOWtests/infra/data_service/test_guard.py1CODE
LOWtests/infra/data_service/test_gateway.py1CODE
LOWtests/infra/data_service/test_auth.py1CODE
LOWtests/infra/data_service/test_router.py1CODE
LOWtests/infra/data_service/test_worker.py1CODE
LOWtests/infra/data_service/test_performance.py1CODE
LOWtests/infra/data_service/test_trainer_compat.py1CODE
LOWtests/infra/data_service/test_data_service_e2e.py1CODE
LOWtests/infra/data_service/test_controller.py1CODE
LOWtests/v2/weight_update/test_wu_controller.py2CODE
LOWtests/v2/weight_update/conftest.py10CODE
650 more matches not shown…
Excessive Try-Catch Wrapping495 hits · 524 pts
SeverityFileLineSnippetContext
LOW.opencode/skills/add-reward/SKILL.md61 except Exception:CODE
LOWtests/test_rtensor.py96 except Exception:CODE
LOWtests/test_slurm_scheduler.py60 except Exception as e:CODE
LOWtests/test_ray_scheduler.py86 except Exception as e:CODE
LOWtests/test_local_scheduler.py2109 except Exception:CODE
LOWtests/test_offload.py93 except Exception as e:CODE
LOWtests/test_cuda_deterministic.py307 except Exception as e:CODE
LOWtests/test_cuda_deterministic.py338 except Exception:CODE
LOWtests/test_sglang_pp_distributed.py296 except Exception:CODE
LOWtests/test_adv_norm_config.py1073 except Exception as e:CODE
LOWtests/experimental/archon/conftest.py32except Exception:CODE
LOWtests/experimental/archon/conftest.py118except Exception:CODE
LOWtests/experimental/archon/conftest.py174 except Exception:CODE
LOWtests/experimental/archon/test_weight_sync.py162 except Exception:CODE
LOWtests/experimental/archon/test_weight_sync.py220 except Exception:CODE
LOWtests/experimental/archon/test_weight_sync.py282 except Exception:CODE
LOWtests/experimental/archon/test_weight_sync.py378 except Exception:CODE
LOWtests/experimental/archon/test_grpo.py447 except Exception as e:CODE
LOW…/experimental/archon/torchrun/run_qwen3_parallelize.py551 except Exception as e:CODE
LOW…experimental/archon/torchrun/run_pp_gradient_verify.py578 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_archon_engine_pp.py167 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_archon_engine_pp.py197 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_archon_engine_pp.py231 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_archon_engine_pp.py286 except Exception as e:CODE
LOWtests/experimental/archon/torchrun/run_parallel_dims.py222 except Exception as e:CODE
LOWtests/experimental/archon/torchrun/run_parallel_dims.py396 except Exception as e:CODE
LOWtests/experimental/archon/torchrun/run_ep_tests.py818 except Exception as e:CODE
LOWtests/experimental/archon/torchrun/run_pp_tests.py901 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py149 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py294 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py461 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py585 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py778 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1008 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1197 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1359 except Exception as e:CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1467 except Exception as e:CODE
LOW…ts/experimental/archon/torchrun/run_pp_combinations.py558 except Exception as e:CODE
LOW…ts/experimental/archon/torchrun/run_pp_combinations.py629 except Exception as e:CODE
LOW…sts/experimental/archon/fp8/torchrun/run_checkpoint.py140 except Exception as e:CODE
LOW…sts/experimental/archon/fp8/torchrun/run_checkpoint.py191 except Exception as e:CODE
LOW…xperimental/archon/fp8/torchrun/run_sharded_dequant.py244 except Exception as e:CODE
LOWtests/infra/data_service/test_data_service_e2e.py35 except Exception as exc:CODE
LOWtests/torchrun/run_sglang_pp_weight_sync.py275 except Exception as e:CODE
LOWtests/torchrun/run_sglang_pp_weight_sync.py443 except Exception as e:CODE
LOWtests/torchrun/run_fsdp_memory_efficient_lora.py116 except Exception as e:CODE
LOWtests/torchrun/run_lock.py72 except Exception:CODE
LOWtests/v2/weight_update/test_kv_store.py99 except Exception as exc:CODE
LOW…/v2/weight_update/torchrun/run_nccl_weight_transfer.py65 except Exception as e:CODE
LOW…/v2/weight_update/torchrun/run_nccl_weight_transfer.py110 except Exception as e:CODE
LOW…/v2/weight_update/torchrun/run_nccl_weight_transfer.py233 except Exception as e:CODE
LOW…/v2/weight_update/torchrun/run_nccl_weight_transfer.py283 except Exception as e:CODE
LOW…sts/v2/training_service/test_controller_integration.py173 except Exception as exc:CODE
LOWtests/v2/inference_service/integration_utils.py62 except Exception as e:CODE
MEDIUMtests/fp8/model_hooks.py306def hook(module, input, output):CODE
MEDIUMtests/fp8/model_hooks.py325def input_hook(module, input):CODE
MEDIUMtests/fp8/model_hooks.py344def backward_hook(module, grad_input, grad_output):CODE
MEDIUMtests/fp8/model_hooks.py510def backward_hook(module, grad_input, grad_output):CODE
LOWtests/fp8/model_hooks.py317 except Exception as e:CODE
LOWtests/fp8/model_hooks.py336 except Exception as e:CODE
435 more matches not shown…
Structural Annotation Overuse245 hits · 420 pts
SeverityFileLineSnippetContext
LOW.opencode/skills/add-reward/SKILL.md20### Step 1: Create Reward FileCOMMENT
LOW.opencode/skills/add-reward/SKILL.md80### Step 2: Register in __init__.pyCOMMENT
LOW.opencode/skills/add-reward/SKILL.md99### Step 3: Handle Blocking OperationsCOMMENT
LOW.opencode/skills/add-reward/SKILL.md114### Step 4: Add TestsCOMMENT
LOW.opencode/skills/add-dataset/SKILL.md20### Step 1: Create Dataset FileCOMMENT
LOW.opencode/skills/add-dataset/SKILL.md107### Step 2: Register in __init__.pyCOMMENT
LOW.opencode/skills/add-dataset/SKILL.md129### Step 3: Add Config (Optional)COMMENT
LOW.opencode/skills/add-dataset/SKILL.md140### Step 4: Add TestsCOMMENT
LOW.opencode/skills/add-archon-model/SKILL.md29### Step 1: Analyze the Target Model ArchitectureCOMMENT
LOW.opencode/skills/add-archon-model/SKILL.md66### Step 2: Select the Reference ModelCOMMENT
LOW.opencode/skills/add-archon-model/SKILL.md90### Step 3: Implement `args.py`COMMENT
LOW.opencode/skills/add-archon-model/SKILL.md131### Step 4: Implement `model.py`COMMENT
LOW.opencode/skills/add-archon-model/SKILL.md178### Step 5: Implement `rope.py`COMMENT
LOW.opencode/skills/add-archon-model/SKILL.md200### Step 6: Implement `state_dict_adapter.py`COMMENT
LOW.opencode/skills/add-archon-model/SKILL.md243### Step 7: Implement `parallelize.py`COMMENT
LOW.opencode/skills/add-archon-model/SKILL.md282### Step 8: Create `spec.py` and RegisterCOMMENT
LOW.opencode/skills/add-archon-model/SKILL.md315### Step 9: Register in `__init__.py`COMMENT
LOW.opencode/skills/add-archon-model/SKILL.md325### Step 10: Verify and TestCOMMENT
LOW.opencode/skills/add-workflow/SKILL.md28### Step 1: Create Workflow FileCOMMENT
LOW.opencode/skills/add-workflow/SKILL.md105### Step 2: Register in __init__.pyCOMMENT
LOW.opencode/skills/add-workflow/SKILL.md118### Step 3: Update Entry ScriptCOMMENT
LOW.opencode/skills/add-workflow/SKILL.md129### Step 4: Add TestsCOMMENT
LOW.opencode/skills/add-unit-tests/SKILL.md21### Step 1: Understand Test TypesCOMMENT
LOW.opencode/skills/add-unit-tests/SKILL.md33### Step 2: Create Test File StructureCOMMENT
LOW.opencode/skills/add-unit-tests/SKILL.md47### Step 3: Write Test FunctionsCOMMENT
LOW.opencode/skills/add-unit-tests/SKILL.md65### Step 4: Add Pytest Markers and CI StrategyCOMMENT
LOW.opencode/skills/add-unit-tests/SKILL.md108### Step 5: Mock Distributed EnvironmentCOMMENT
LOW.opencode/skills/add-unit-tests/SKILL.md122### Step 6: Handle GPU DependenciesCOMMENT
LOWtests/experimental/openai/test_proxy_gateway.py358 # Step 2: populate queue again for the post-refresh session.COMMENT
LOWtests/experimental/openai/test_proxy_gateway.py368 # Step 3: refresh — same api_key triggers auto-end + new session.COMMENT
LOWtests/experimental/openai/test_proxy_gateway.py339 # Step 1: populate ready queue and start initial session.COMMENT
LOWtests/fp8/test_fp8_tensor.py409 # Step 1: View to 4DCOMMENT
LOWtests/fp8/test_fp8_tensor.py423 # Step 2: Split into Q, K, V along dim=1COMMENT
LOWtests/fp8/test_fp8_tensor.py451 # Step 3: Reshape to 2DCOMMENT
LOWtests/fp8/model_hooks.py123 # Step 1: Prepare micro-batchesCOMMENT
LOWtests/fp8/model_hooks.py126 # Step 2: Define loss functionsCOMMENT
LOWtests/fp8/model_hooks.py153 # Step 3: Compute total loss weightCOMMENT
LOWtests/fp8/model_hooks.py158 # Step 4: Forward-backward using Megatron's pipeline functionCOMMENT
LOWtests/fp8/model_hooks.py193 # Step 5: Collect gradients before optimizer.step()COMMENT
LOW.agents/skills/translate-doc-zh/SKILL.md16### Step 1: Validate the source pathCOMMENT
LOW.agents/skills/translate-doc-zh/SKILL.md23### Step 2: Resolve the target pathCOMMENT
LOW.agents/skills/translate-doc-zh/SKILL.md28### Step 3: Choose translation modeCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md172### Step 0: Parse Input and Record BaselineCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md239### Step 1: Update Pyproject FilesCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md253### Step 2: Lock Dependencies (Variant-Aware)COMMENT
LOW.agents/skills/upgrade-deps/SKILL.md280### Step 3: Resolve Dependency ConflictsCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md312### Step 4: Update Dockerfile (If Required)COMMENT
LOW.agents/skills/upgrade-deps/SKILL.md354### Step 5: Identify Updated Focused PackagesCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md383### Step 6: API Compatibility AuditCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md466### Step 7: Run Pre-CommitCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md472### Step 8: Generate Upgrade SummaryCOMMENT
LOW.agents/skills/upgrade-deps/SKILL.md523### Step 9: Create PR and Trigger CI (Optional)COMMENT
LOW.agents/skills/add-reward/SKILL.md20### Step 1: Create Reward FileCOMMENT
LOW.agents/skills/add-reward/SKILL.md80### Step 2: Register in __init__.pyCOMMENT
LOW.agents/skills/add-reward/SKILL.md99### Step 3: Handle Blocking OperationsCOMMENT
LOW.agents/skills/add-reward/SKILL.md114### Step 4: Add TestsCOMMENT
LOW.agents/skills/add-dataset/SKILL.md20### Step 1: Create Dataset FileCOMMENT
LOW.agents/skills/add-dataset/SKILL.md107### Step 2: Register in __init__.pyCOMMENT
LOW.agents/skills/add-dataset/SKILL.md129### Step 3: Add Config (Optional)COMMENT
LOW.agents/skills/add-dataset/SKILL.md140### Step 4: Add TestsCOMMENT
185 more matches not shown…
Cross-File Repetition70 hits · 350 pts
SeverityFileLineSnippetContext
HIGH.opencode/skills/add-reward/SKILL.md0compute reward for a single completion. args: prompt: prompt string completions: completion string (model output) promptSTRING
HIGH.agents/skills/add-reward/SKILL.md0compute reward for a single completion. args: prompt: prompt string completions: completion string (model output) promptSTRING
HIGH.claude/skills/add-reward/SKILL.md0compute reward for a single completion. args: prompt: prompt string completions: completion string (model output) promptSTRING
HIGH.opencode/skills/add-reward/SKILL.md0extract the answer from a completion string. implement your extraction logic here.STRING
HIGH.agents/skills/add-reward/SKILL.md0extract the answer from a completion string. implement your extraction logic here.STRING
HIGH.claude/skills/add-reward/SKILL.md0extract the answer from a completion string. implement your extraction logic here.STRING
HIGH.opencode/skills/add-dataset/SKILL.md0load dataset for sft training. args: path: path to dataset (huggingface hub or local path) split: dataset split (train/vSTRING
HIGH.agents/skills/add-dataset/SKILL.md0load dataset for sft training. args: path: path to dataset (huggingface hub or local path) split: dataset split (train/vSTRING
HIGH.claude/skills/add-dataset/SKILL.md0load dataset for sft training. args: path: path to dataset (huggingface hub or local path) split: dataset split (train/vSTRING
HIGH.opencode/skills/add-dataset/SKILL.md0load dataset for rl training. args: path: path to dataset split: dataset split tokenizer: tokenizer for length filteringSTRING
HIGH.agents/skills/add-dataset/SKILL.md0load dataset for rl training. args: path: path to dataset split: dataset split tokenizer: tokenizer for length filteringSTRING
HIGH.claude/skills/add-dataset/SKILL.md0load dataset for rl training. args: path: path to dataset split: dataset split tokenizer: tokenizer for length filteringSTRING
HIGH.opencode/skills/add-workflow/SKILL.md0run a single episode. must be async and non-blocking.STRING
HIGH.agents/skills/add-workflow/SKILL.md0run a single episode. must be async and non-blocking.STRING
HIGH.claude/skills/add-workflow/SKILL.md0run a single episode. must be async and non-blocking.STRING
HIGH.opencode/skills/add-unit-tests/SKILL.md0test that function returns expected value under condition.STRING
HIGH.agents/skills/add-unit-tests/SKILL.md0test that function returns expected value under condition.STRING
HIGH.claude/skills/add-unit-tests/SKILL.md0test that function returns expected value under condition.STRING
HIGHtests/test_train_engine.py0create mock padded input data (same format for huggingface) for testing. returns a dict with input_ids, attention_mask, STRING
HIGHtests/test_megatron_engine.py0create mock padded input data (same format for huggingface) for testing. returns a dict with input_ids, attention_mask, STRING
HIGHtests/torchrun/run_megatron_engine_distributed.py0create mock padded input data (same format for huggingface) for testing. returns a dict with input_ids, attention_mask, STRING
HIGHtests/torchrun/run_fsdp_ulysses_forward.py0create mock padded input data (same format for huggingface) for testing. returns a dict with input_ids, attention_mask, STRING
HIGHtests/torchrun/run_fsdp_ulysses_train_batch.py0create mock padded input data (same format for huggingface) for testing. returns a dict with input_ids, attention_mask, STRING
HIGH…sts/v2/inference_service/test_data_proxy_standalone.py0mock arealopenai client that returns a valid chatcompletion.STRING
HIGHtests/v2/inference_service/test_data_proxy_version.py0mock arealopenai client that returns a valid chatcompletion.STRING
HIGHtests/v2/inference_service/test_data_proxy_pause.py0mock arealopenai client that returns a valid chatcompletion.STRING
HIGHareal/experimental/engine/archon_engine.py0drain this worker's client-side rtensor fetch buffer. called via rpc by ``traincontroller.clear_batches`` at step end soSTRING
HIGHareal/engine/fsdp_engine.py0drain this worker's client-side rtensor fetch buffer. called via rpc by ``traincontroller.clear_batches`` at step end soSTRING
HIGHareal/engine/megatron_engine.py0drain this worker's client-side rtensor fetch buffer. called via rpc by ``traincontroller.clear_batches`` at step end soSTRING
HIGHareal/engine/sglang_remote.py0drain this worker's client-side rtensor fetch buffer. called via rpc by ``traincontroller.clear_batches`` at step end soSTRING
HIGHareal/engine/vllm_remote.py0drain this worker's client-side rtensor fetch buffer. called via rpc by ``traincontroller.clear_batches`` at step end soSTRING
HIGHareal/experimental/engine/archon_engine.py0expose local fetch-buffer stats for post-step drain verification.STRING
HIGHareal/engine/fsdp_engine.py0expose local fetch-buffer stats for post-step drain verification.STRING
HIGHareal/engine/megatron_engine.py0expose local fetch-buffer stats for post-step drain verification.STRING
HIGHareal/engine/sglang_remote.py0expose local fetch-buffer stats for post-step drain verification.STRING
HIGHareal/engine/vllm_remote.py0expose local fetch-buffer stats for post-step drain verification.STRING
HIGHareal/experimental/engine/archon_engine.py0temporarily onload parameters for offload-unsafe operations. reentrant: nested calls increment depth; only the outermostSTRING
HIGHareal/engine/fsdp_engine.py0temporarily onload parameters for offload-unsafe operations. reentrant: nested calls increment depth; only the outermostSTRING
HIGHareal/engine/megatron_engine.py0temporarily onload parameters for offload-unsafe operations. reentrant: nested calls increment depth; only the outermostSTRING
HIGHareal/experimental/openai/client.py0set reward for a specific completion/response by its id.STRING
HIGHareal/experimental/openai/cache.py0set reward for a specific completion/response by its id.STRING
HIGHareal/experimental/openai/proxy/client_session.py0set reward for a specific completion/response by its id.STRING
HIGHareal/experimental/openai/client.py0set reward for the most recent completion/response.STRING
HIGHareal/experimental/openai/cache.py0set reward for the most recent completion/response.STRING
HIGHareal/experimental/openai/proxy/client_session.py0set reward for the most recent completion/response.STRING
HIGHareal/infra/scheduler/slurm.py0fork a single worker asynchronously. parameters ---------- command : str, optional custom module path to run instead of STRING
HIGHareal/infra/scheduler/local.py0fork a single worker asynchronously. parameters ---------- command : str, optional custom module path to run instead of STRING
HIGHareal/infra/scheduler/ray.py0fork a single worker asynchronously. parameters ---------- command : str, optional custom module path to run instead of STRING
HIGHareal/infra/scheduler/slurm.py0kill a single forked worker via its parent's rpc server.STRING
HIGHareal/infra/scheduler/local.py0kill a single forked worker via its parent's rpc server.STRING
HIGHareal/infra/scheduler/ray.py0kill a single forked worker via its parent's rpc server.STRING
HIGHareal/infra/scheduler/slurm.py0cleanup forked workers by calling kill endpoint on parent workers.STRING
HIGHareal/infra/scheduler/local.py0cleanup forked workers by calling kill endpoint on parent workers.STRING
HIGHareal/infra/scheduler/ray.py0cleanup forked workers by calling kill endpoint on parent workers.STRING
HIGHareal/infra/scheduler/slurm.py0create forked workers concurrently using async requests. parameters ---------- command : str, optional custom module patSTRING
HIGHareal/infra/scheduler/local.py0create forked workers concurrently using async requests. parameters ---------- command : str, optional custom module patSTRING
HIGHareal/infra/scheduler/ray.py0create forked workers concurrently using async requests. parameters ---------- command : str, optional custom module patSTRING
HIGHareal/infra/scheduler/slurm.py0fork new worker processes from existing workers. creates new worker processes by forking from existing workers of the taSTRING
HIGHareal/infra/scheduler/local.py0fork new worker processes from existing workers. creates new worker processes by forking from existing workers of the taSTRING
HIGHareal/infra/scheduler/ray.py0fork new worker processes from existing workers. creates new worker processes by forking from existing workers of the taSTRING
10 more matches not shown…
Deep Nesting271 hits · 238 pts
SeverityFileLineSnippetContext
LOWtests/test_train_controller.py78CODE
LOWtests/test_tree_training.py108CODE
LOWtests/test_tree_training.py134CODE
LOWtests/test_allocation_mode.py203CODE
LOWtests/test_rollout_controller.py76CODE
LOWtests/test_rollout_controller.py489CODE
LOWtests/test_local_scheduler.py2031CODE
LOWtests/test_local_scheduler.py2243CODE
LOWtests/test_local_scheduler.py2364CODE
LOWtests/test_local_scheduler.py2491CODE
LOWtests/test_packed_vs_padded_consistency.py132CODE
LOWtests/test_packed_vs_padded_consistency.py230CODE
LOWtests/test_sglang_pp_distributed.py77CODE
LOWtests/test_examples.py26CODE
LOWtests/test_examples.py935CODE
LOWtests/test_examples.py952CODE
LOWtests/experimental/archon/test_weight_sync.py263CODE
LOWtests/experimental/archon/test_weight_sync.py440CODE
LOWtests/experimental/archon/test_forward.py300CODE
LOW…experimental/archon/torchrun/run_pp_gradient_verify.py308CODE
LOWtests/experimental/archon/torchrun/run_pp_tests.py251CODE
LOWtests/experimental/archon/torchrun/run_pp_tests.py277CODE
LOWtests/experimental/archon/torchrun/run_pp_tests.py321CODE
LOWtests/experimental/archon/torchrun/run_pp_tests.py569CODE
LOWtests/experimental/archon/torchrun/run_tp_forward.py110CODE
LOWtests/experimental/archon/torchrun/dist_utils.py155CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py620CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py810CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1040CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1233CODE
LOW…s/experimental/archon/torchrun/run_checkpoint_tests.py1405CODE
LOW…ts/experimental/archon/torchrun/run_pp_combinations.py465CODE
LOWtests/torchrun/run_fsdp_optimizer_dtype.py71CODE
LOWtests/torchrun/run_sglang_pp_weight_sync.py287CODE
LOWtests/torchrun/run_perf_tracer.py12CODE
LOWtests/torchrun/run_megatron_engine_distributed.py667CODE
LOWtests/torchrun/run_megatron_engine_vlm_distributed.py431CODE
LOW…/v2/weight_update/torchrun/run_nccl_weight_transfer.py123CODE
LOWtests/fp8/test_fp8_rmsnorm.py174CODE
LOWtests/fp8/test_fp8_rmsnorm.py281CODE
LOWtests/fp8/model_hooks.py101CODE
LOWtests/fp8/model_hooks.py214CODE
LOWtests/fp8/model_hooks.py264CODE
LOWtests/fp8/engine_utils.py35CODE
LOWtests/megatron/torchrun/run_grad_norm_tp.py56CODE
LOWdocs/generate_cli_docs.py38CODE
LOWdocs/generate_cli_docs.py143CODE
LOWdocs/generate_cli_docs.py186CODE
LOWexamples/tir/tools/python_tool.py120CODE
LOW…mples/experimental/inference_service/online_rollout.py12CODE
LOW…perimental/inference_service/human_in_the_loop_demo.py201CODE
LOWexamples/experimental/inference_service/tau2_rollout.py156CODE
LOWexamples/agent_service/run_agent_service.py42CODE
LOWexamples/agent_service/agent.py101CODE
LOWexamples/tau2/agent.py95CODE
LOWexamples/scaffolding/search_agent_controller.py126CODE
LOWexamples/scaffolding/core/task_collection.py222CODE
LOWexamples/scaffolding/core/task_collection.py353CODE
LOWexamples/scaffolding/tests/test_controllers.py152CODE
LOWexamples/scaffolding/tests/test_self_contained.py35CODE
211 more matches not shown…
Verbosity Indicators103 hits · 190 pts
SeverityFileLineSnippetContext
LOWtests/experimental/openai/test_proxy_gateway.py358 # Step 2: populate queue again for the post-refresh session.COMMENT
LOWtests/experimental/openai/test_proxy_gateway.py368 # Step 3: refresh — same api_key triggers auto-end + new session.COMMENT
LOWtests/experimental/openai/test_proxy_gateway.py339 # Step 1: populate ready queue and start initial session.COMMENT
LOWtests/fp8/test_fp8_tensor.py409 # Step 1: View to 4DCOMMENT
LOWtests/fp8/test_fp8_tensor.py423 # Step 2: Split into Q, K, V along dim=1COMMENT
LOWtests/fp8/test_fp8_tensor.py451 # Step 3: Reshape to 2DCOMMENT
LOWtests/fp8/model_hooks.py123 # Step 1: Prepare micro-batchesCOMMENT
LOWtests/fp8/model_hooks.py126 # Step 2: Define loss functionsCOMMENT
LOWtests/fp8/model_hooks.py153 # Step 3: Compute total loss weightCOMMENT
LOWtests/fp8/model_hooks.py158 # Step 4: Forward-backward using Megatron's pipeline functionCOMMENT
LOWtests/fp8/model_hooks.py193 # Step 5: Collect gradients before optimizer.step()COMMENT
LOWexamples/countdown/countdown.py452 # Step 1: 1+2=3COMMENT
LOWexamples/countdown/countdown.py453 # Step 2: 3*3=9COMMENT
LOWexamples/countdown/countdown.py454 # Step 3: 9*3=27COMMENT
LOWexamples/countdown/countdown.py455 # Step 4: 27+3=30COMMENT
LOWexamples/countdown/countdown.py459 # Step 1: 24/2 = 12COMMENT
LOWexamples/countdown/countdown.py460 # Step 2: 12 + 2 = 14COMMENT
LOWexamples/scaffolding/controllers.py500 # Step 1: Run generation (yields task lists for worker execution)COMMENT
LOWexamples/scaffolding/controllers.py503 # Step 2: Create reward tasks and compute rewards locallyCOMMENT
LOW…eal/experimental/models/archon/moe_weight_converter.py249 # Step 1: Store metadata for from_hf reconstructionCOMMENT
LOW…eal/experimental/models/archon/moe_weight_converter.py255 # Step 2: Calculate local expert indices from placementsCOMMENT
LOW…eal/experimental/models/archon/moe_weight_converter.py267 # Step 3: Store indices for from_hf reconstructionCOMMENT
LOW…eal/experimental/models/archon/moe_weight_converter.py270 # Step 4: Create new placements for individual expert weights (2D)COMMENT
LOW…eal/experimental/models/archon/moe_weight_converter.py290 # Step 5: Extract local tensor and split into individual expertsCOMMENT
LOWareal/experimental/models/archon/expert_parallel.py129 # Step 1: Exchange token counts via all-to-allCOMMENT
LOWareal/experimental/models/archon/expert_parallel.py162 # Step 2: All-to-all to dispatch tokensCOMMENT
LOWareal/experimental/models/archon/expert_parallel.py170 # Step 3: Permute for grouped_mm alignmentCOMMENT
LOWareal/experimental/models/archon/expert_parallel.py203 # Step 1: Unpermute to pre-permutation orderCOMMENT
LOWareal/experimental/models/archon/expert_parallel.py206 # Step 2: All-to-all to combine (reverse direction)COMMENT
LOWareal/utils/save_load.py24 # Step 1: Identify if the input is a Hugging Face repo ID or local pathCOMMENT
LOWareal/utils/save_load.py39 # Step 2: Download the repo if it's a Hugging Face repo IDCOMMENT
LOWareal/utils/save_load.py47 # Step 3: Load all .safetensors and .bin filesCOMMENT
LOWareal/utils/data.py1546 # Step 1: Compute meanCOMMENT
LOWareal/utils/data.py1590 # Step 2: Compute stdCOMMENT
LOWareal/utils/functional/vocab_parallel.py135 # Step 1: Numerical stability - subtract maxCOMMENT
LOWareal/utils/functional/vocab_parallel.py142 # Step 2: Compute exp in-place and sum across all ranksCOMMENT
LOWareal/utils/functional/vocab_parallel.py147 # Step 3: Get the logit value at labels positionCOMMENT
LOWareal/utils/functional/vocab_parallel.py161 # Step 4: Compute log probabilityCOMMENT
LOWareal/utils/functional/vocab_parallel.py165 # Step 5: Compute softmax in-place for backward (reuse exp_logits memory)COMMENT
LOWareal/utils/functional/vocab_parallel.py265 # Step 1: Numerical stability - subtract max (shared)COMMENT
LOWareal/utils/functional/vocab_parallel.py272 # Step 2: Compute exp and sum_exp (shared)COMMENT
LOWareal/utils/functional/vocab_parallel.py278 # Step 3: Compute softmax in-place (shared)COMMENT
LOWareal/utils/functional/vocab_parallel.py282 # Step 4: For logprobs - get labels logitCOMMENT
LOWareal/utils/functional/vocab_parallel.py296 # Step 5: For entropy - compute sum(softmax * logits).COMMENT
LOWareal/utils/functional/vocab_parallel.py304 # Step 6: Compute final resultsCOMMENT
LOWareal/utils/functional/vocab_parallel.py346 # Step 1: Compute entropy gradient contributionCOMMENT
LOWareal/utils/functional/vocab_parallel.py362 # Step 2: Add logprobs gradient contributionCOMMENT
LOWareal/utils/functional/functional.py212 # Step 0: Validate input shapes.COMMENT
LOWareal/utils/functional/functional.py229 # Step 1: Compute log ratio = log(π_proximal / π_behave)COMMENT
LOWareal/utils/functional/functional.py235 # Step 2: Compute metric value (reuse existing KLEstimator sign conventions)COMMENT
LOWareal/utils/functional/functional.py262 # Step 3: Compute behave_imp_weight (needed for both modes)COMMENT
LOWareal/utils/functional/functional.py267 # Step 4: Aggregate and filterCOMMENT
LOWareal/utils/functional/functional.py413 # Step 5: Update loss_mask or keep it based on action modeCOMMENT
LOWareal/models/transformers/vision_sp_shard.py291 # Step 1: Get image assignment based on patch countsCOMMENT
LOWareal/models/transformers/vision_sp_shard.py310 # Step 2: Extract local inputs (use CPU grid_thw to avoid GPU→CPU syncsCOMMENT
LOWareal/models/transformers/vision_sp_shard.py317 # Step 3: Process local imagesCOMMENT
LOWareal/models/transformers/vision_sp_shard.py342 # Step 4: Unpack deepstack if present (Qwen3-VL returns (embeddings, list[Tensor]))COMMENT
LOWareal/models/transformers/vision_sp_shard.py347 # Step 5: All-gather (contiguous assignment, no reordering needed)COMMENT
LOWareal/models/transformers/vision_sp_shard.py363 # Step 6: All-gather deepstack embeddings (all ranks must participate)COMMENT
LOWareal/v2/training_service/controller/controller.py174 # Step 0: Create world_size guards via scheduler (one per GPU rank)COMMENT
43 more matches not shown…
Modern Structural Boilerplate155 hits · 154 pts
SeverityFileLineSnippetContext
LOWtests/test_staleness_manager.py24 def set_version(self, version: int) -> None:CODE
LOWtests/utils.py12__all__ = ["get_dataset_path", "get_model_path"]CODE
LOWtests/experimental/archon/utils.py34__all__ = [CODE
LOWtests/infra/data_service/test_trainer_compat.py16 def set_epoch(self, epoch: int) -> None:CODE
LOWtests/torchrun/run_sglang_pp_weight_sync.py45logger = logging.getLogger(__name__)CODE
LOWtests/v2/inference_service/test_data_proxy_pause.py142async def _set_paused(pause_state: PauseState, value: bool) -> None:CODE
LOWexamples/tir/tools/__init__.py18__all__ = [CODE
LOW…perimental/inference_service/human_in_the_loop_demo.py105def _set_reward(gateway_addr: str, api_key: str, reward: float) -> None:CODE
LOWexamples/scaffolding/__init__.py35__all__ = [CODE
LOWexamples/scaffolding/_compat.py36__all__ = [CODE
LOWexamples/scaffolding/core/controller.py16logger = logging.getLogger(__name__)CODE
LOWexamples/scaffolding/core/__init__.py36__all__ = [CODE
LOWexamples/terminal_bench/agent/__init__.py5__all__ = [CODE
LOWexamples/terminal_bench/workflow/__init__.py4__all__ = ["CamelRLVRWorkflow", "build_docker_image"]CODE
LOWareal/__init__.py32__all__ = [CODE
LOWareal/experimental/models/archon/model_spec.py131__all__ = [CODE
LOW…eal/experimental/models/archon/moe_weight_converter.py446__all__ = ["MoEConversionState", "MoEWeightConverter"]CODE
LOWareal/experimental/models/archon/ulysses.py18__all__ = [CODE
LOW…al/experimental/models/archon/activation_checkpoint.py310__all__ = [CODE
LOWareal/experimental/models/archon/__init__.py34__all__ = [CODE
LOWareal/experimental/models/archon/utils.py161__all__ = [CODE
LOWareal/experimental/models/archon/parallel_dims.py21__all__ = [CODE
LOWareal/experimental/models/archon/expert_parallel.py508__all__ = [CODE
LOWareal/experimental/models/archon/pipeline_parallel.py40__all__ = [CODE
LOWareal/experimental/models/archon/base.py168__all__ = [CODE
LOWareal/experimental/models/archon/attention/__init__.py7__all__ = [CODE
LOWareal/experimental/models/archon/attention/varlen.py13__all__ = ["varlen_attn", "VarlenAttentionWrapper"]CODE
LOWareal/experimental/models/archon/attention/varlen.py162def _setup_context(ctx: Any, inputs: tuple[Any, ...], output: Any) -> None:CODE
LOWareal/experimental/models/archon/attention/sdpa.py15__all__ = ["SDPAWrapper", "create_block_causal_mask_2d"]CODE
LOWareal/experimental/models/archon/qwen2/__init__.py12__all__ = [CODE
LOWareal/experimental/models/archon/qwen2/spec.py25__all__ = ["QWEN2_SPEC"]CODE
LOW…/experimental/models/archon/qwen2/infra/parallelize.py361__all__ = [CODE
LOWareal/experimental/models/archon/qwen2/model/model.py379__all__ = [CODE
LOWareal/experimental/models/archon/qwen2/model/rope.py155__all__ = [CODE
LOWareal/experimental/models/archon/qwen2/model/args.py70__all__ = ["Qwen2ModelArgs"]CODE
LOWareal/experimental/models/archon/qwen3/__init__.py12__all__ = [CODE
LOWareal/experimental/models/archon/qwen3/spec.py25__all__ = ["QWEN3_SPEC"]CODE
LOW…/experimental/models/archon/qwen3/infra/parallelize.py436def _setup_fsdp_prefetch(model: nn.Module) -> None:CODE
LOW…/experimental/models/archon/qwen3/infra/parallelize.py751__all__ = [CODE
LOWareal/experimental/models/archon/qwen3/model/model.py493__all__ = [CODE
LOWareal/experimental/models/archon/qwen3/model/rope.py12__all__ = [CODE
LOWareal/experimental/models/archon/qwen3/model/args.py111__all__ = ["Qwen3ModelArgs"]CODE
LOWareal/experimental/models/archon/qwen3_5/__init__.py12__all__ = [CODE
LOWareal/experimental/models/archon/qwen3_5/spec.py29__all__ = ["QWEN3_5_SPEC"]CODE
LOW…xperimental/models/archon/qwen3_5/infra/parallelize.py298__all__ = [CODE
LOWareal/experimental/models/archon/qwen3_5/model/model.py671__all__ = [CODE
LOWareal/experimental/models/archon/qwen3_5/model/rope.py149__all__ = [CODE
LOWareal/experimental/models/archon/qwen3_5/model/args.py182__all__ = ["Qwen3_5ModelArgs"]CODE
LOWareal/experimental/models/archon/moe/token_reorderer.py73__all__ = ["TokenReorderer"]CODE
LOWareal/experimental/models/archon/moe/__init__.py17__all__ = [CODE
LOWareal/experimental/models/archon/moe/grouped_experts.py288__all__ = ["GroupedExperts"]CODE
LOWareal/experimental/models/archon/moe/utils.py290__all__ = [CODE
LOWareal/experimental/models/archon/moe/kernels.py9__all__ = ["generate_permute_indices", "fill_indices_wrapper"]CODE
LOWareal/experimental/models/archon/moe/args.py109__all__ = ["MoEArgs"]CODE
LOWareal/experimental/models/archon/moe/router.py308__all__ = ["TokenChoiceTopKRouter"]CODE
LOWareal/experimental/models/archon/moe/moe.py261__all__ = ["MoE", "FeedForward"]CODE
LOWareal/experimental/engine/archon_weight_sync.py31logger = logging.getLogger(__name__)CODE
LOWareal/experimental/openai/client.py1759 def set_reward(self, id: str, reward: float) -> None:CODE
LOWareal/experimental/openai/client.py1765 def set_last_reward(self, reward: float) -> None:CODE
LOWareal/experimental/openai/cache.py88 def set_reward(self, interaction_id: str, reward: float) -> None:CODE
95 more matches not shown…
Docstring Block Structure19 hits · 95 pts
SeverityFileLineSnippetContext
HIGHareal/experimental/models/archon/fp8_checkpoint.py234Dequantize all FP8 weights in *hf_state_dict* to *target_dtype*. Detects FP8 weights by their ``float8_e4m3fn`` dtySTRING
HIGH…eal/experimental/models/archon/moe_weight_converter.py71Calculate start/end indices for [StridedShard(dim=i), Shard(dim=i)] placement. GPU Layout (strided_shard_rank, STRING
HIGHareal/experimental/models/archon/qwen3/model/model.py42Determine if a layer should use MoE instead of dense FFN. Args: layer_id: The layer index (0-based). STRING
HIGHareal/experimental/openai/client.py275Validate that ``value`` is a list of dictionaries or BaseModel objects. Args: name: Name of the argument beSTRING
HIGHareal/experimental/openai/client.py486Convert a Responses API input item into Chat Completions message dicts. Handles ``output_text``, ``input_text``, ``STRING
HIGHareal/infra/platforms/platform.py69Fallback attribute accessor for device-specific Torch modules. This method is called when the requested attributSTRING
HIGHareal/utils/seqpack.py168Return the allocation function for the given algorithm name. Args: algorithm: One of ``"ffd"`` or ``"kk"``.STRING
HIGHareal/utils/seqpack.py453Partition *values* into groups using the Karmarkar-Karp differencing method. This is a **drop-in replacement** for STRING
HIGHareal/utils/seqpack.py541 Splits `nums` into K groups such that the maximum difference between group sums is minimized. Returns indices STRING
HIGHareal/utils/name_resolve.py644Get the value for a key. Args: name: Key to retrieve Returns: The value as a sSTRING
HIGHareal/utils/name_resolve.py660Get a value with lock already acquired. Args: name: Key to retrieve Returns: TSTRING
HIGHareal/utils/name_resolve.py1057Get the value for a key. Args: name: Key to retrieve Returns: The value as a sSTRING
HIGHareal/utils/network.py13 Find the local IP address for outbound route to `probe_host:probe_port`. Args: probe_host: Remote addrSTRING
HIGHareal/utils/network.py119 Find multiple free ports within a specified range. Args: count: Number of free ports to find pSTRING
HIGHareal/api/alloc_mode.py1151Convert parsed result to _AllocationMode object. Args: result: Parsed result (list of ModelAllocatiSTRING
HIGHareal/engine/megatron_utils/fp8/config.py9Extract block size from quantization configuration. Args: quantization_config: Quantization configuration dSTRING
HIGHareal/engine/megatron_utils/fp8/tensor_helper.py313Convert Transformer Engine Float8BlockwiseQTensor to FP8BlockwiseTensorHelper. Args: tensor: TransfSTRING
HIGHareal/engine/fsdp_utils/optimizer.py20 Convert string to corresponding torch dtype, only supports bfloat16 and float32. Args: dtype_str: DataSTRING
HIGHareal/trainer/ppo/actor.py886 Resolve the proximal policy log-probabilities based on the method. This function determines the final proximalSTRING
Redundant / Tautological Comments64 hits · 94 pts
SeverityFileLineSnippetContext
LOWtests/test_tree_training.py258 # Check if results match with detailed error reportingCOMMENT
LOWtests/test_tree_training.py456 # Check if gradients are close:COMMENT
LOWtests/test_slurm_scheduler.py23# Check if 'srun' exists in the system PATHCOMMENT
LOWtests/test_fsdp_grad.py17# Check if CUDA is availableCOMMENT
LOWtests/test_local_scheduler.py2093 # Check if process diedCOMMENT
LOWtests/test_examples.py90 # Check if process has terminatedCOMMENT
LOWtests/experimental/archon/test_checkpoint_e2e.py391 # Check if weight tying is enabledCOMMENT
LOWtests/experimental/archon/test_qwen3_5.py891 # Set wq to output zeros for the gate half.COMMENT
LOWtests/experimental/openai/test_client_with_tool.py281 # Check if tool call was made (might depend on model capability)COMMENT
LOWtests/experimental/openai/test_client.py367 # Set rewards to leaf nodes only, which should be c_a1, c_a2, c_b1COMMENT
LOWtests/experimental/openai/test_client.py571 # Set rewards to leaf nodes only, which should be c_a1COMMENT
LOWtests/fp8/test_fp8_rmsnorm.py296 # Check if it's a combined file or individual fileCOMMENT
LOWtests/fp8/engine_utils.py69 # Check if this is a CUDA kernel eventCOMMENT
LOWtests/fp8/engine_utils.py81 # Check if this is a gemm-related kernelCOMMENT
LOWtests/fp8/engine_utils.py128 # Check if this is a gemm-related operation (may be at higher level)COMMENT
LOWtests/fp8/engine_utils.py130 # Check if we already have this in gemm_eventsCOMMENT
LOWtests/fp8/test_fp8_conversion.py81 # Check if tensor can be quantized (needs to satisfy block size requirements)COMMENT
LOW.claude/hooks/check-expert-update.sh5# Check if jq is availableCOMMENT
LOWdocs/generate_cli_docs.py147 # Check if it's a Union type (includes both Union[Type, None] and Type | None syntax)COMMENT
LOWdocs/generate_cli_docs.py150 # Check if it's a union with None (optional type)COMMENT
LOWexamples/tir/tir_workflow.py203 # Check if tool start marker is detectedCOMMENT
LOWexamples/countdown/reward_score.py31 # Check if all numbers in equation are availableCOMMENT
LOWexamples/terminal_bench/agent/chat_agent_trace.py94 # Check if we've reached max parse errorsSTRING
LOWexamples/terminal_bench/agent/chat_agent_trace.py217 # Check if this call is from a RegisteredAgentToolkit to prevent toolCOMMENT
LOWexamples/terminal_bench/agent/chat_agent_trace.py348 # Check if we've reached max parse errorsCOMMENT
LOW.github/workflows/build-docker-image.yml279 # Check if instance is runningCOMMENT
LOW.github/workflows/tag-release-image.yml217 # Check if instance is runningCOMMENT
LOWareal/experimental/models/archon/qwen3/model/args.py62 # Check if MoE is enabledCOMMENT
LOW…mental/models/archon/qwen3/model/state_dict_adapter.py465 # Check if all experts collectedCOMMENT
LOWareal/experimental/models/archon/qwen3_5/model/args.py118 # Check if MoE is enabledCOMMENT
LOWareal/experimental/openai/cache.py251 # Assign rewards to interactions in cache based on their creation orderCOMMENT
LOWareal/infra/async_task_runner.py522 # Check if thread is still aliveCOMMENT
LOWareal/infra/remote_inf_engine.py143 # Check if results are InteractionWithTokenLogpReward dictsCOMMENT
LOWareal/infra/remote_inf_engine.py755 # Check if it's a RolloutWorkflow classCOMMENT
LOWareal/infra/remote_inf_engine.py766 # Check if it's a RolloutWorkflow instanceCOMMENT
LOWareal/infra/workflow_executor.py168 # Check if all values are InteractionWithTokenLogpRewardCOMMENT
LOWareal/infra/scheduler/slurm.py1413 # Check if still running, force kill if neededCOMMENT
LOWareal/infra/scheduler/slurm.py1672 # Check if retryableCOMMENT
LOWareal/infra/scheduler/slurm.py1028 # Check if fork mode is enabledSTRING
LOWareal/infra/scheduler/local.py701 # Check if fork mode is enabledCOMMENT
LOWareal/infra/scheduler/local.py1680 # Check if worker died (forked workers have process=None)COMMENT
LOWareal/infra/scheduler/local.py1730 # Check if process has exited (forked workers have process=None)COMMENT
LOWareal/infra/scheduler/local.py1768 # Check if worker died (forked workers have process=None)COMMENT
LOWareal/infra/scheduler/ray.py1549 # Check if fork mode is enabledCOMMENT
LOWareal/infra/utils/concurrent.py71 # Check if we're already in an async contextCOMMENT
LOWareal/infra/utils/proc.py101 # Check if stdbuf is available (not present on macOS by default)COMMENT
LOWareal/tools/profile_fsdp.py383 # Print results - sorted by CUDA timeCOMMENT
LOWareal/tools/profile_archon.py341 # Print results - sorted by CUDA timeCOMMENT
LOWareal/utils/fs.py80 # Check if path is on network filesystemCOMMENT
LOWareal/utils/name_resolve.py517 # Check if key exists when replace=FalseCOMMENT
LOWareal/utils/name_resolve.py764 # Check if this is a delete eventCOMMENT
LOWareal/utils/name_resolve.py821 # Check if key matches prefix (exact match or starts with prefix/)COMMENT
LOWareal/utils/name_resolve.py970 # Check if key exists when replace=FalseCOMMENT
LOWareal/utils/name_resolve.py1024 # Check if key existsCOMMENT
LOWareal/models/mcore/hf_load.py489 # Check if any HF weight is FP8 (has _scale_inv suffix)COMMENT
LOWareal/models/transformers/qwen3_vl.py109 # Check if hidden_states is a DTensor (TP is enabled)COMMENT
LOWareal/api/cli_args.py352 # Check if equal to the default valueCOMMENT
LOWareal/api/alloc_mode.py790 # Check if name is providedCOMMENT
LOWareal/engine/megatron_utils/megatron.py144 # Check if this param is truly NOT TP-sharded.COMMENT
LOWareal/engine/megatron_utils/fp8/tensor_helper.py171 # Check if dim 0 is one of the last two dimensionsCOMMENT
4 more matches not shown…
Self-Referential Comments26 hits · 74 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_train_engine.py128 # Create the engine using from_pretrained method, without TrainEngineConfigCOMMENT
MEDIUMtests/test_rollout_controller.py29 # Create a mutable SchedulingSpec that can be modified by the controllerCOMMENT
MEDIUMtests/experimental/archon/test_state_dict_adapter.py63 # Create a minimal HF state dictCOMMENT
MEDIUMtests/experimental/archon/test_weight_sync.py189 # Create a fake tensor with correct shape on CPUCOMMENT
MEDIUMtests/experimental/openai/test_proxy_integration.py234 # Create a sessionCOMMENT
MEDIUMtests/fp8/test_fp8_rmsnorm.py231 # Create a dummy loss (sum of output)COMMENT
MEDIUMexamples/countdown/reward_score.py44 # Define a regex pattern that only allows numbers, operators, parentheses, and whitespaceCOMMENT
MEDIUMexamples/scaffolding/worker.py201 # Create a workerSTRING
MEDIUMexamples/scaffolding/worker.py239 # Create an async OpenAI client pointing to the SGLang serverCOMMENT
MEDIUMexamples/terminal_bench/agent/chat_agent_trace.py131 # Create an error tool calling recordSTRING
MEDIUMexamples/terminal_bench/agent/chat_agent_trace.py144 # Create the error recordSTRING
MEDIUMareal/infra/remote_inf_engine.py902 # Create a shallow copy of the input requestCOMMENT
MEDIUMareal/infra/rpc/guard/engine_blueprint.py48# Define the constraintCOMMENT
MEDIUMareal/tools/plot_session_trace.py1020 # Create a separate figure for each rankCOMMENT
MEDIUMareal/tools/plot_session_trace.py1030 # Create a figure for this rankCOMMENT
MEDIUMareal/tools/validate_docker_installation.py202 # Create an FP8 recipeCOMMENT
MEDIUMareal/tools/validate_docker_installation.py223 # Create a simple model and optimizerCOMMENT
MEDIUMareal/utils/recover.py472 # This method is called by check_if_recover to check if the experiment shouldCOMMENT
MEDIUMareal/models/tree_attn/tree.py382 # Create an empty dummy trieCOMMENT
MEDIUMareal/models/tree_attn/tree.py768 # Create a minimal valid block mask for empty treesCOMMENT
MEDIUMareal/v2/inference_service/sglang/scheduler.py220 # Create a scheduler and run the event loopCOMMENT
MEDIUMareal/workflow/openai_agent/math_agent.py67 # Create the main orchestrator agent with handoffsCOMMENT
MEDIUMareal/api/reward_api.py47 """This function is a placeholder for the reward function that will be used in the RLVR pipeline.STRING
MEDIUMareal/engine/megatron_utils/fp8/__init__.py5# This module provides FP8 quantization and dequantization utilities forCOMMENT
MEDIUMareal/engine/megatron_utils/fp8/tensor_helper.py32 # Create a tensor subclass that wraps rowwise_dataCOMMENT
MEDIUMareal/trainer/rl_trainer.py1217 # Create a working copy of configCOMMENT
Modern AI Meta-Vocabulary17 hits · 56 pts
SeverityFileLineSnippetContext
MEDIUMexamples/scaffolding/search_agent_controller.py152 # the SGLang context window.COMMENT
MEDIUMexamples/scaffolding/README.md63# Step 4: Create ScaffoldingLlm (orchestrates controllers with workers)COMMENT
MEDIUMexamples/scaffolding/core/worker.py2# Vendored from tensorrt_llm.scaffolding.workerCOMMENT
MEDIUMexamples/scaffolding/core/task.py2# Vendored from tensorrt_llm.scaffolding.taskCOMMENT
MEDIUMexamples/scaffolding/core/math_utils.py2# Vendored from tensorrt_llm.scaffolding.math_utilsCOMMENT
MEDIUMexamples/scaffolding/core/controller.py2# Vendored from tensorrt_llm.scaffolding.controllerCOMMENT
MEDIUMexamples/scaffolding/core/__init__.py2# Vendored from TensorRT-LLM scaffolding framework.COMMENT
MEDIUMexamples/scaffolding/core/__init__.py3# Core scaffolding primitives adapted for standalone use in AReaL.COMMENT
MEDIUMexamples/scaffolding/core/scaffolding_llm.py2# Vendored from tensorrt_llm.scaffolding.scaffolding_llmCOMMENT
MEDIUMexamples/scaffolding/core/result.py2# Vendored from tensorrt_llm.scaffolding.resultCOMMENT
MEDIUMexamples/scaffolding/core/task_collection.py2# Vendored from tensorrt_llm.scaffolding.task_collectionCOMMENT
MEDIUMareal/experimental/openai/client.py565 # prompt + generation past the backend model's context window.COMMENT
MEDIUMareal/utils/logging.py34# - white: Controllers, RPC, Inference wrappers (orchestration)COMMENT
MEDIUMareal/utils/logging.py122 # Inference service - white (orchestration)COMMENT
MEDIUMareal/v2/weight_update/awex/delta_detect.py472 # orchestration offloads the optimizer to CPU; consumed (or discarded)COMMENT
MEDIUMareal/v2/cli/inference/client.py15# the scaffold names directly.COMMENT
MEDIUMareal/v2/inference_service/vllm/bridge.py37 # Compute effective max_new_tokens (cap by remaining context window)COMMENT
Cross-Language Confusion6 hits · 46 pts
SeverityFileLineSnippetContext
HIGHtests/test_adv_norm_config.py599 # With single element, unbiased std should return zero (undefined)COMMENT
HIGHareal/infra/utils/slurm.py81 if kill -0 "$pid" 2>/dev/null; thenCODE
HIGHareal/infra/utils/slurm.py83 kill "$pid" 2>/dev/null || trueCODE
HIGHareal/infra/utils/slurm.py90 if kill -0 "$pid" 2>/dev/null; thenCODE
HIGHareal/infra/utils/slurm.py91 kill -9 "$pid" 2>/dev/null || trueCODE
HIGHareal/infra/utils/slurm.py143 if ! kill -0 "$pid" 2>/dev/null; thenCODE
AI Structural Patterns44 hits · 39 pts
SeverityFileLineSnippetContext
LOWtests/test_rollout_controller.py798CODE
LOWtests/test_dte_topology_gating.py20CODE
LOWtests/experimental/archon/torchrun/dist_utils.py21CODE
LOWtests/experimental/archon/torchrun/dist_utils.py131CODE
LOWtests/experimental/openai/test_cache.py28CODE
LOWtests/v2/inference_service/test_inf_bridge.py63CODE
LOW.agents/skills/review-pr/sync_review_pr_refs.py48CODE
LOWexamples/tir/tir_workflow.py273CODE
LOWexamples/tir/tools/daytona_python_tool.py74CODE
LOWexamples/terminal_bench/agent/camel_terminal_agent.py39CODE
LOWexamples/terminal_bench/workflow/camel_rlvr_workflow.py25CODE
LOWareal/experimental/camel/openai_model.py194CODE
LOWareal/experimental/models/archon/expert_parallel.py214CODE
LOW…/experimental/models/archon/qwen3/infra/parallelize.py302CODE
LOWareal/experimental/models/archon/moe/utils.py248CODE
LOWareal/experimental/models/archon/moe/utils.py285CODE
LOWareal/experimental/openai/client.py901CODE
LOWareal/experimental/openai/client.py925CODE
LOWareal/experimental/openai/client.py948CODE
LOWareal/experimental/openai/client.py1399CODE
LOWareal/experimental/openai/proxy/workflow.py73CODE
LOWareal/infra/remote_inf_engine.py1060CODE
LOWareal/infra/remote_inf_engine.py1199CODE
LOWareal/infra/scheduler/slurm.py74CODE
LOWareal/infra/scheduler/local.py100CODE
LOWareal/infra/scheduler/ray.py588CODE
LOWareal/infra/controller/rollout_controller.py941CODE
LOWareal/infra/sandbox/runner.py103CODE
LOWareal/models/mcore/vocab_parallel_head.py373CODE
LOWareal/models/mcore/lightning_attention.py151CODE
LOWareal/models/mcore/lightning_attention.py174CODE
LOWareal/models/mcore/lightning_attention.py342CODE
LOWareal/models/transformers/vision_sp_shard.py196CODE
LOWareal/v2/weight_update/nccl_group.py18CODE
LOWareal/v2/weight_update/controller/controller.py106CODE
LOWareal/v2/inference_service/controller/workflow.py46CODE
LOWareal/engine/sglang_remote.py570CODE
LOWareal/engine/vllm_remote.py428CODE
LOWareal/engine/core/distributed.py79CODE
LOWareal/engine/megatron_utils/checkpointer.py302CODE
LOWareal/engine/megatron_utils/packed_context_parallel.py534CODE
LOWareal/engine/vllm_ext/areal_vllm_server.py359CODE
LOWareal/engine/fsdp_utils/optimizer.py45CODE
LOWareal/trainer/ppo/actor.py554CODE
Over-Commented Block26 hits · 22 pts
SeverityFileLineSnippetContext
LOWpyproject.vllm.toml1# vLLM variant of the AReaL project configuration.COMMENT
LOWtests/test_megatron_engine_distributed.py301# bridge_type=megatron-bridge via the runner's override map; the padded BSHDCOMMENT
LOWtests/test_adv_norm_config.py1161COMMENT
LOWtests/experimental/archon/torchrun/run_cp_forward.py301 # Run with `torchrun --nproc_per_node=N` to test with multiple GPUsCOMMENT
LOWtests/torchrun/run_megatron_engine_distributed.py41# attention layers.COMMENT
LOWexamples/environ_ref.yaml21 NCCL_SET_THREAD_NAME: "1"COMMENT
LOWexamples/countdown/countdown.py441 type=str,COMMENT
LOWexamples/search_agent/tongyi_deepresearch/prompt.py1# SYSTEM_PROMPT = """You are a deep research assistant. Your core function is to conduct thorough, multi-source investigCOMMENT
LOWexamples/search_agent/tongyi_deepresearch/prompt.py21# import numpy as npCOMMENT
LOWareal/experimental/openai/cache.py161 ref_msgs = self[cids[0]].messagesCOMMENT
LOWareal/infra/platforms/platform.py41 # use "CPU" as a fallback for platforms not registered in PyTorchCOMMENT
LOWareal/infra/rpc/rtensor.py301# =============================================================================COMMENT
LOWareal/infra/rpc/guard/engine_blueprint.py601 400,COMMENT
LOWareal/utils/logging.py21)COMMENT
LOWareal/utils/recover.py381 # AWEX colocate transfer requires the full engine-levelCOMMENT
LOWareal/utils/functional/vocab_parallel.py341 # Total gradient = grad_logprobs * (one_hot - softmax) + grad_entropy * softmax * (E[x] - x)COMMENT
LOWareal/v2/inference_service/data_proxy/app.py961COMMENT
LOWareal/api/cli_args.py2041 cpu_offload_gb: float = 0COMMENT
LOWareal/engine/fsdp_engine.py521 # no communications are needed after `destroy`, so weCOMMENT
LOWareal/engine/megatron_engine.py1901 self.optimizer = get_megatron_optimizer(mcore_opt_config, self.model)COMMENT
LOWareal/engine/megatron_engine.py2241 # (see areal/engine/sglang_remote.py), so it requires a 1:1 mapping toCOMMENT
LOWareal/engine/megatron_utils/checkpointer.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWareal/engine/megatron_utils/packed_context_parallel.py401 attention_mask = input_.get("attention_mask", None)COMMENT
LOWareal/engine/megatron_utils/megatron.py141 return paramCOMMENT
LOWareal/engine/megatron_utils/fp8/__init__.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWareal/engine/awex/colocate_writer.py301 # resumed its full PP=1 weight set on this same physical GPU, soCOMMENT
AI Slop Vocabulary7 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_math_verify_reward.py498 """Advanced LaTeX formula tests for robust mathematical notation."""STRING
MEDIUMtests/experimental/archon/torchrun/run_cp_forward.py259 # Use cosine similarity for comparison (more robust to numerical errors)COMMENT
MEDIUMexamples/search_agent/tongyi_deepresearch/prompt.py1# SYSTEM_PROMPT = """You are a deep research assistant. Your core function is to conduct thorough, multi-source investigCOMMENT
MEDIUMexamples/search_agent/tongyi_deepresearch/prompt.py1# SYSTEM_PROMPT = """You are a deep research assistant. Your core function is to conduct thorough, multi-source investigCOMMENT
MEDIUMexamples/search_agent/tongyi_deepresearch/prompt.py38SYSTEM_PROMPT = """You are a deep research assistant. Your core function is to conduct thorough, multi-source investigatCODE
LOWareal/tools/perf_trace_converter.py919 # Replace .jsonl extension with .json, or just add .jsonCOMMENT
MEDIUMareal/utils/seqpack.py387 """Compute comprehensive packing quality metrics for a given partition.STRING
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHdocs/zh/best_practices/debugging.md72asyncio.run(MyAgent().run(data, base_url="https://api.openai.com/v1", api_key="YOUR_API_KEY"))CODE
HIGHdocs/en/best_practices/debugging.md79asyncio.run(MyAgent().run(data, base_url="https://api.openai.com/v1", api_key="YOUR_API_KEY"))CODE
Fake / Example Data12 hits · 7 pts
SeverityFileLineSnippetContext
LOWtests/v2/inference_service/test_inf_bridge.py588 "image_url": {"url": "placeholder"},CODE
LOWtests/v2/inference_service/test_image_input.py101 assert vllm_content[1]["image_url"]["url"] == "placeholder"CODE
LOWtests/v2/inference_service/test_image_input.py370 "image_url": {"url": "placeholder"},CODE
LOWtests/v2/inference_service/test_image_input.py407 {"type": "image_url", "image_url": {"url": "placeholder"}},CODE
LOWtests/v2/inference_service/test_image_input.py408 {"type": "image_url", "image_url": {"url": "placeholder"}},CODE
LOWtests/v2/inference_service/test_image_input.py445 {"type": "image_url", "image_url": {"url": "placeholder"}},CODE
LOWtests/v2/inference_service/test_image_input.py446 {"type": "image_url", "image_url": {"url": "placeholder"}},CODE
LOWtests/v2/inference_service/test_image_input.py478 {"type": "image_url", "image_url": {"url": "placeholder"}},CODE
LOWtests/v2/inference_service/test_data_proxy_chat.py574 headers={"Authorization": "Bearer fake-key"},CODE
LOWexamples/profile/README.md79The fake-data generator in `train_sft_profile.py` follows three rules:CODE
LOWexamples/profile/train_sft_profile.py97 """SFT config extended with profile fake-data options."""STRING
LOWareal/experimental/openai/client.py415 "image_url": {"url": "placeholder"},CODE
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWexamples/vlm/qwen3_6_27b_geometry3k_grpo.yaml3# Usage:COMMENT
LOWexamples/vlm/qwen3_6_35b_a3b_geometry3k_grpo.yaml3# Usage:COMMENT
LOWscripts/uv_sync.sh4# Usage:COMMENT
Overly Generic Function Names4 hits · 4 pts
SeverityFileLineSnippetContext
LOWexamples/scaffolding/core/worker.py21 async def run_task(self, task: Task) -> TaskStatus:CODE
LOWareal/v2/agent_service/gateway/bridge.py34 async def handle_request(self, request: Request) -> Any: ...CODE
LOWareal/v2/agent_service/gateway/bridge.py48 async def handle_request(self, request: Request) -> Any:CODE
LOWareal/v2/agent_service/gateway/bridge.py335 async def handle_request(self, request: Request) -> Any:CODE
TODO Padding1 hit · 1 pts
SeverityFileLineSnippetContext
LOWareal/models/mcore/registry.py555 share_embeddings_and_output_weights=False, # TODO: implement share output weightsCODE