AI Slop Code RIsk Monitor

PrimeIntellect-ai/prime-rl

Agentic RL Training at Scale

16.3 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for PrimeIntellect-ai/prime-rl, a Python project with 2,152 GitHub stars. SynthScan examined 96,940 lines of code across 565 source files, recording 1198 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 16.3 (Elevated pattern signal); it is not an authorship estimate.

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

16.3
Adjusted Signal
16.3
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
2.2K
Stars
Python
Language
96.9K
Lines of Code
565
Files
1.2K
Pattern Hits
2026-10-12
Scan Date
0.08
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 36.1/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 11.4/100 · LOW

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

Agent Over-Engineering Ratio 43.8/100 · MEDIUM

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

PR Review Velocity Impact 55.7/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 1HIGH 42MEDIUM 80LOW 1075

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers594 hits · 608 pts
SeverityFileLineSnippetContext
LOWtests/utils.py24def check_number_goes_up_or_down(CODE
LOWtests/utils.py110def check_final_eval_reward_above(lines: list[str], env_name: str, min_threshold: float):CODE
LOWtests/utils.py145def check_avg_reward_in_range(CODE
LOWtests/utils.py178def check_avg_mismatch_kl_in_range(CODE
LOWtests/utils.py211def check_mismatch_kl_in_range(CODE
LOW⚡tests/unit/test_configs.py127def test_toml_partial_nested_override(tmp_path):CODE
LOW⚡tests/unit/test_configs.py136def test_toml_discriminated_union_default_type(tmp_path):CODE
LOW⚡tests/unit/test_configs.py145def test_toml_discriminated_union_switch_variant(tmp_path):CODE
LOW⚡tests/unit/test_configs.py153def test_toml_discriminated_union_override_switch_variant(tmp_path):CODE
LOW⚡tests/unit/test_configs.py161def test_cli_overrides_defaults():CODE
LOW⚡tests/unit/test_configs.py169def test_toml_overrides_defaults(tmp_path):CODE
LOW⚡tests/unit/test_configs.py261def test_moe_compute_apply_to(backend, selection, num_layers, selected):CODE
LOW⚡tests/unit/test_configs.py268def test_moe_compute_rejects_invalid_apply_to(selection):CODE
LOW⚡tests/unit/test_configs.py273def test_moe_compute_rejects_out_of_range_layer():CODE
LOW⚡tests/unit/test_configs.py280def test_moe_compute_apply_to_cli(selection, selected):CODE
LOW⚡tests/unit/test_configs.py325def test_removed_moe_runtime_fields_are_rejected(removed):CODE
LOW⚡tests/unit/test_configs.py331def test_optimizer_state_offload_keeps_legacy_default(config_cls):CODE
LOW⚡tests/unit/test_configs.py337def test_moe_router_dtype_auto_resolves_per_trainer():CODE
LOW⚡tests/unit/test_configs.py347def test_freeze_moe_router_auto_resolves_per_trainer():CODE
LOW⚡tests/unit/test_configs.py1063def test_orchestrator_renderer_auto_rejects_unmapped_model():CODE
LOW⚡tests/unit/test_configs.py1069def test_orchestrator_renderer_auto_accepts_mapped_model():CODE
LOW⚡tests/unit/test_configs.py1076def test_sft_renderer_auto_accepts_prime_qwen_model():CODE
LOW⚡tests/unit/test_configs.py1081def test_sft_rejects_default_renderer_for_real_data():CODE
LOW⚡tests/unit/test_configs.py1086def test_sft_allows_unused_default_renderer_for_fake_data():CODE
LOW⚡tests/unit/test_configs.py1096def test_orchestrator_explicit_renderer_skips_unmapped_check():CODE
LOWtests/unit/test_configs.py188def test_removed_fused_lm_head_chunk_size_field_is_rejected():CODE
LOWtests/unit/test_configs.py193def test_icepop_is_an_optional_loss_with_validated_ratio_bounds():CODE
LOWtests/unit/test_configs.py212def test_moe_runtime_defaults_are_independent_from_dense_quantization():CODE
LOWtests/unit/test_configs.py242def test_supported_moe_runtime_configs(model):CODE
LOWtests/unit/test_configs.py310def test_invalid_moe_runtime_configs_fail(model, message):CODE
LOWtests/unit/test_configs.py358def test_full_optimizer_offload_disables_gradient_clipping(config_cls):CODE
LOWtests/unit/test_configs.py371def test_full_optimizer_offload_requires_supported_optimizer(config_cls):CODE
LOWtests/unit/test_configs.py382def test_full_optimizer_offload_accepts_sign_sgd(config_cls):CODE
LOWtests/unit/test_configs.py393def test_resolved_json_roundtrips_explicit_none(tmp_path):CODE
LOWtests/unit/test_configs.py429def test_client_defaults_survive_partial_overrides(CODE
LOWtests/unit/test_configs.py440def test_env_algo_inherits_the_group_algo():CODE
LOWtests/unit/test_configs.py470def test_sources_inherit_the_group_fields_they_leave_unset(CODE
LOWtests/unit/test_configs.py534def test_train_sources_can_use_their_own_group_sizes():CODE
LOWtests/unit/test_configs.py560def test_group_defaults_match_source_defaults(group):CODE
LOWtests/unit/test_configs.py572def test_policy_sources_accept_different_top_p_values():CODE
LOWtests/unit/test_configs.py612def test_policy_sampling_is_validated_before_rollouts(sampling, agent_sampling, rejected, frozen):CODE
LOWtests/unit/test_configs.py630def test_policy_sources_reject_mixed_top_k_capture():CODE
LOWtests/unit/test_configs.py653def test_single_node_auto_inference_ports_follow_server_port():CODE
LOWtests/unit/test_configs.py676def test_single_node_nccl_resolved_json_roundtrips(tmp_path):CODE
LOWtests/unit/test_configs.py695def test_multi_node_auto_inference_parallelism():CODE
LOWtests/unit/test_configs.py716def test_disaggregated_inference_inherits_deployment_gpus_per_node():CODE
LOWtests/unit/test_configs.py734def test_orchestrator_vlm_requires_renderer():CODE
LOWtests/unit/test_configs.py764def test_trainer_rejects_vlm_cp_with_ring():CODE
LOWtests/unit/test_configs.py781def test_ac_none_disables_ac_offloading():CODE
LOWtests/unit/test_configs.py787def test_shared_model_name_propagates_to_subconfigs():CODE
LOWtests/unit/test_configs.py804def test_shared_tokenizer_propagates_when_subconfigs_unset():CODE
LOWtests/unit/test_configs.py817def test_shared_and_sub_tokenizer_name_conflict_raises():CODE
LOWtests/unit/test_configs.py832def test_tokenizer_name_falls_back_to_model_name_when_unset():CODE
LOWtests/unit/test_configs.py847def test_explicit_subconfig_tokenizer_name_survives_shared_model_propagation():CODE
LOWtests/unit/test_configs.py880def test_tokenizer_chat_template_mismatch_raises():CODE
LOWtests/unit/test_configs.py890def test_shared_seq_len_propagates_to_subconfigs():CODE
LOWtests/unit/test_configs.py902def test_shared_and_sub_seq_len_conflict_raises():CODE
LOWtests/unit/test_configs.py916def test_shared_and_sub_model_name_conflict_raises():CODE
LOWtests/unit/test_configs.py928def test_shared_and_sub_max_steps_conflict_raises():CODE
LOWtests/unit/test_configs.py940def test_trainer_chat_template_cascades_to_inference():CODE
534 more matches not shown…
Unused Imports205 hits · 205 pts
SeverityFileLineSnippetContext
LOWtests/unit/train/test_model.py24CODE
LOWtests/unit/inference/test_serving_tokens.py13CODE
LOWtests/unit/orchestrator/test_qwen3_vl_e2e.py3CODE
LOWtests/integration/test_benchmark_regression.py9CODE
LOWbenchmarks/scripts/aggregate_results.py4CODE
LOWbenchmarks/scripts/run_single_benchmark.py10CODE
LOWpackages/prime-rl-configs/src/prime_rl/utils/config.py6CODE
LOWpackages/prime-rl-configs/src/prime_rl/utils/config.py7CODE
LOW…ages/prime-rl-configs/src/prime_rl/utils/validation.py1CODE
LOWpackages/prime-rl-configs/src/prime_rl/configs/rl.py12CODE
LOWsrc/prime_rl/monitors/prime.py1CODE
LOWsrc/prime_rl/monitors/__init__.py9CODE
LOWsrc/prime_rl/monitors/base.py1CODE
LOWsrc/prime_rl/monitors/file/monitor.py1CODE
LOWsrc/prime_rl/monitors/file/__init__.py1CODE
LOWsrc/prime_rl/monitors/file/traces/live.py15CODE
LOWsrc/prime_rl/monitors/wandb/monitor.py1CODE
LOWsrc/prime_rl/monitors/wandb/__init__.py1CODE
LOWsrc/prime_rl/monitors/wandb/overview.py13CODE
LOWsrc/prime_rl/transports/weights/__init__.py9CODE
LOW…prime_rl/transports/weights/nixl/cuda_malloc_memory.py3CODE
LOW…ime_rl/transports/weights/nixl/trainer_tensor_table.py3CODE
LOWsrc/prime_rl/transports/weights/nixl/tensor_routing.py3CODE
LOWsrc/prime_rl/transports/weights/nixl/graph.py3CODE
LOWsrc/prime_rl/transports/weights/nixl/model_express.py3CODE
LOWsrc/prime_rl/transports/weights/nixl/__init__.py3CODE
LOWsrc/prime_rl/transports/weights/nixl/__init__.py3CODE
LOWsrc/prime_rl/transports/weights/nixl/agent.py3CODE
LOWsrc/prime_rl/transports/weights/nixl/nixl.py3CODE
LOWsrc/prime_rl/transports/batch/__init__.py9CODE
LOWsrc/prime_rl/transports/batch/__init__.py9CODE
LOWsrc/prime_rl/transports/batch/__init__.py9CODE
LOWsrc/prime_rl/transports/batch/__init__.py9CODE
LOWsrc/prime_rl/transports/batch/__init__.py9CODE
LOWsrc/prime_rl/transports/batch/__init__.py9CODE
LOWsrc/prime_rl/utils/async_utils.py1CODE
LOWsrc/prime_rl/utils/sequence.py1CODE
LOWsrc/prime_rl/utils/cp.py1CODE
LOWsrc/prime_rl/utils/cp.py4CODE
LOWsrc/prime_rl/multimodal/registry.py1CODE
LOWsrc/prime_rl/multimodal/__init__.py1CODE
LOWsrc/prime_rl/multimodal/__init__.py1CODE
LOWsrc/prime_rl/multimodal/__init__.py1CODE
LOWsrc/prime_rl/multimodal/__init__.py2CODE
LOWsrc/prime_rl/multimodal/kimi_k25.py1CODE
LOWsrc/prime_rl/multimodal/qwen_vl.py1CODE
LOWsrc/prime_rl/multimodal/base.py1CODE
LOWsrc/prime_rl/inference/dynamo.py1CODE
LOWsrc/prime_rl/inference/vllm/server.py171CODE
LOWsrc/prime_rl/inference/vllm/routed_experts.py1CODE
LOWsrc/prime_rl/inference/vllm/serving_tokens.py17CODE
LOWsrc/prime_rl/inference/vllm/worker/nixl.py3CODE
LOWsrc/prime_rl/eval/runner.py14CODE
LOWsrc/prime_rl/eval/resume.py14CODE
LOWsrc/prime_rl/eval/online.py13CODE
LOWsrc/prime_rl/eval/eval.py9CODE
LOWsrc/prime_rl/trainer/multimodal.py1CODE
LOWsrc/prime_rl/trainer/utils.py24CODE
LOWsrc/prime_rl/trainer/scheduler.py1CODE
LOWsrc/prime_rl/trainer/distributed/deepep.py1CODE
145 more matches not shown…
Decorative Section Separators40 hits · 146 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/unit/orchestrator/test_advantage.py171# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_advantage.py173# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_advantage.py228# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_advantage.py230# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_advantage.py278# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_advantage.py280# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_algorithms.py91# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_algorithms.py97# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_algorithms.py357# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_algorithms.py364# --------------------------------------------------------------------------COMMENT
MEDIUMtests/integration/test_benchmark_regression.py166# =============================================================================COMMENT
MEDIUMtests/integration/test_benchmark_regression.py168# =============================================================================COMMENT
MEDIUMtests/integration/test_benchmark_regression.py226# =============================================================================COMMENT
MEDIUMtests/integration/test_benchmark_regression.py228# =============================================================================COMMENT
MEDIUM…ges/prime-rl-configs/src/prime_rl/configs/algorithm.py71# ---------------------------------------------------------------------------COMMENT
MEDIUM…ges/prime-rl-configs/src/prime_rl/configs/algorithm.py73# ---------------------------------------------------------------------------COMMENT
MEDIUM…ges/prime-rl-configs/src/prime_rl/configs/algorithm.py84# ---------------------------------------------------------------------------COMMENT
MEDIUM…ges/prime-rl-configs/src/prime_rl/configs/algorithm.py86# ---------------------------------------------------------------------------COMMENT
MEDIUM…ges/prime-rl-configs/src/prime_rl/configs/algorithm.py149# ---------------------------------------------------------------------------COMMENT
MEDIUM…ges/prime-rl-configs/src/prime_rl/configs/algorithm.py151# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡src/prime_rl/_compat.py7# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡src/prime_rl/_compat.py15# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡src/prime_rl/_compat.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/_compat.py35# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/utils/vlm.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/utils/vlm.py39# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡src/prime_rl/utils/vlm.py102# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡src/prime_rl/utils/vlm.py104# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/trainer/models/kernels/fp8_utils.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/trainer/models/kernels/fp8_utils.py28# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡src/prime_rl/trainer/models/kernels/fp8_utils.py91# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡src/prime_rl/trainer/models/kernels/fp8_utils.py93# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/trainer/models/kernels/fp8_utils.py371# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/trainer/models/kernels/fp8_utils.py373# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/orchestrator/dispatcher.py324 # ── lifecycle ──────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/prime_rl/orchestrator/dispatcher.py854 # ── metrics ────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/prime_rl/orchestrator/concurrency.py164 # ── inbound hooks ────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/prime_rl/orchestrator/concurrency.py295 # ── internals ────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/prime_rl/orchestrator/concurrency.py329 # ── observability ────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/prime_rl/orchestrator/orchestrator.py169 # ── lifecycle ──────────────────────────────────────────────────────────COMMENT
Cross-File Repetition22 hits · 110 pts
SeverityFileLineSnippetContext
HIGHpackages/prime-rl-configs/src/prime_rl/configs/rl.py0run metadata. ``run.name`` names the run directory under ``output_dir``.STRING
HIGHpackages/prime-rl-configs/src/prime_rl/configs/sft.py0run metadata. ``run.name`` names the run directory under ``output_dir``.STRING
HIGHpackages/prime-rl-configs/src/prime_rl/configs/eval.py0run metadata. ``run.name`` names the run directory under ``output_dir``.STRING
HIGHpackages/prime-rl-configs/src/prime_rl/configs/rl.py0delete the run directory (``output_dir / run.name``) before starting. required to overwrite a run directory that containSTRING
HIGHpackages/prime-rl-configs/src/prime_rl/configs/sft.py0delete the run directory (``output_dir / run.name``) before starting. required to overwrite a run directory that containSTRING
HIGHpackages/prime-rl-configs/src/prime_rl/configs/eval.py0delete the run directory (``output_dir / run.name``) before starting. required to overwrite a run directory that containSTRING
HIGHpackages/prime-rl-configs/src/prime_rl/configs/rl.py0only validate and dump resolved configs, then exit early.STRING
HIGH…ges/prime-rl-configs/src/prime_rl/configs/inference.py0only validate and dump resolved configs, then exit early.STRING
HIGHpackages/prime-rl-configs/src/prime_rl/configs/sft.py0only validate and dump resolved configs, then exit early.STRING
HIGH…/prime-rl-configs/src/prime_rl/configs/orchestrator.py0extra environment variables for the sft trainer process(es). merged on top of the launcher defaults.STRING
HIGH…kages/prime-rl-configs/src/prime_rl/configs/trainer.py0extra environment variables for the sft trainer process(es). merged on top of the launcher defaults.STRING
HIGHpackages/prime-rl-configs/src/prime_rl/configs/sft.py0extra environment variables for the sft trainer process(es). merged on top of the launcher defaults.STRING
HIGH…/prime-rl-configs/src/prime_rl/configs/orchestrator.py0metric monitors (``monitors.wandb``, ``monitors.file``, ``monitors.prime``).STRING
HIGHpackages/prime-rl-configs/src/prime_rl/configs/sft.py0metric monitors (``monitors.wandb``, ``monitors.file``, ``monitors.prime``).STRING
HIGHpackages/prime-rl-configs/src/prime_rl/configs/eval.py0metric monitors (``monitors.wandb``, ``monitors.file``, ``monitors.prime``).STRING
HIGH…/prime-rl-configs/src/prime_rl/configs/orchestrator.py0betterstack heartbeat configuration for monitoring training progress.STRING
HIGH…kages/prime-rl-configs/src/prime_rl/configs/trainer.py0betterstack heartbeat configuration for monitoring training progress.STRING
HIGHpackages/prime-rl-configs/src/prime_rl/configs/sft.py0betterstack heartbeat configuration for monitoring training progress.STRING
HIGH…me_rl/trainer/models/minimax_m2/modeling_minimax_m2.py0routed_experts (`torch.longtensor` of shape `(batch_size, sequence_length, num_hidden_layers, num_experts_per_tok)`, *opSTRING
HIGH…/prime_rl/trainer/models/glm4_moe/modeling_glm4_moe.py0routed_experts (`torch.longtensor` of shape `(batch_size, sequence_length, num_hidden_layers, num_experts_per_tok)`, *opSTRING
HIGH…rime_rl/trainer/models/qwen3_moe/modeling_qwen3_moe.py0routed_experts (`torch.longtensor` of shape `(batch_size, sequence_length, num_hidden_layers, num_experts_per_tok)`, *opSTRING
HIGH…_rl/trainer/models/glm_moe_dsa/modeling_glm_moe_dsa.py0routed_experts (`torch.longtensor` of shape `(batch_size, sequence_length, num_hidden_layers, num_experts_per_tok)`, *opSTRING
Modern Structural Boilerplate98 hits · 96 pts
SeverityFileLineSnippetContext
LOWscripts/docker_application.py26def set_fallback_version(pyproject: Path, version: str) -> None:CODE
LOWsrc/prime_rl/monitors/prime.py115def update_platform_record(output_dir: Path, update: dict[str, Any]) -> None:CODE
LOWsrc/prime_rl/monitors/__init__.py32__all__ = [CODE
LOWsrc/prime_rl/monitors/file/__init__.py3__all__ = ["FileMonitor"]CODE
LOWsrc/prime_rl/monitors/file/traces/__init__.py33__all__ = ["get_annotations_dir", "get_index_path", "get_trace_dir", "get_trace_stream"]CODE
LOWsrc/prime_rl/monitors/wandb/__init__.py3__all__ = ["WandbMonitor"]CODE
LOWsrc/prime_rl/transports/weights/__init__.py14__all__ = [CODE
LOWsrc/prime_rl/transports/weights/nixl/__init__.py5__all__ = ["NIXLWeightReceiver", "NIXLWeightSender"]CODE
LOWsrc/prime_rl/transports/weights/nixl/agent.py151def set_ucx_env_defaults(device_index: int) -> None:CODE
LOWsrc/prime_rl/transports/batch/__init__.py45__all__ = [CODE
LOWsrc/prime_rl/utils/process.py91def set_proc_title(name: str) -> None:CODE
LOWsrc/prime_rl/multimodal/__init__.py4__all__ = [CODE
LOWsrc/prime_rl/entrypoints/eval.py38def set_nested(target: dict[str, Any], keys: list[str], value: Any) -> None:STRING
LOWsrc/prime_rl/inference/vllm/worker/nccl.py134 def update_weights_from_path(self, weight_dir: str) -> None:CODE
LOWsrc/prime_rl/inference/vllm/worker/filesystem.py24 def update_weights_from_path(self, weight_path: str) -> None:CODE
LOWsrc/prime_rl/inference/vllm/worker/weight_transfer.py27def update_mla_absorbed_weights(model: Module) -> None:CODE
LOWsrc/prime_rl/inference/vllm/worker/nixl.py477 def update_weights_from_path(self, weight_dir: str | None = None) -> None:CODE
LOWsrc/prime_rl/trainer/activation_checkpointing.py133__all__ = [CODE
LOWsrc/prime_rl/trainer/parallel_dims.py33__all__ = ["ParallelDims"]CODE
LOWsrc/prime_rl/trainer/lora.py116def _set_module_by_name(model: nn.Module, module_name: str, new_module: nn.Module) -> None:CODE
LOWsrc/prime_rl/trainer/distributed/deepep.py471__all__ = [CODE
LOWsrc/prime_rl/trainer/distributed/collectives.py257__all__ = [CODE
LOWsrc/prime_rl/trainer/distributed/__init__.py3__all__ = ["ExpertWeightParallel"]CODE
LOWsrc/prime_rl/trainer/models/__init__.py127__all__ = [CODE
LOWsrc/prime_rl/trainer/models/base.py159__all__ = ["ALL_CP_STYLES", "CPStyle", "CPSupport", "PreTrainedModelPrimeRL"]CODE
LOWsrc/prime_rl/trainer/models/laguna/__init__.py8__all__ = [CODE
LOW…prime_rl/trainer/models/laguna/configuration_laguna.py194__all__ = ["LagunaConfig"]CODE
LOWsrc/prime_rl/trainer/models/laguna/modeling_laguna.py431__all__ = [CODE
LOWsrc/prime_rl/trainer/models/gpt_oss/attention.py177__all__ = [CODE
LOWsrc/prime_rl/trainer/models/gpt_oss/modeling_gpt_oss.py221__all__ = [CODE
LOWsrc/prime_rl/trainer/models/gpt_oss/__init__.py8__all__ = [CODE
LOW…ime_rl/trainer/models/gpt_oss/configuration_gpt_oss.py112__all__ = ["GptOssConfig"]CODE
LOWsrc/prime_rl/trainer/models/layers/moe.py101 def set_compute(self, compute: ExpertCompute) -> None:CODE
LOWsrc/prime_rl/trainer/models/layers/moe.py348 def set_token_dispatcher(self, token_dispatcher: TokenDispatcher) -> None:CODE
LOWsrc/prime_rl/trainer/models/layers/ulysses_attn.py48def update_ulysses_params(cu_seqlens: torch.Tensor, max_seqlen: int) -> None:CODE
LOWsrc/prime_rl/trainer/models/layers/lora/__init__.py11__all__ = [CODE
LOWsrc/prime_rl/trainer/models/layers/lora/base.py14def set_lora_num_tokens(num_tokens: torch.Tensor, reset_reference: bool = False) -> None:CODE
LOWsrc/prime_rl/trainer/models/layers/lora/base.py42def set_multilora_scaling(scaling_factors: torch.Tensor, reset_reference: bool = False) -> None:CODE
LOWsrc/prime_rl/trainer/models/minimax_m2/__init__.py8__all__ = [CODE
LOW…me_rl/trainer/models/minimax_m2/modeling_minimax_m2.py281__all__ = [STRING
LOW…/trainer/models/nemotron_h/configuration_nemotron_h.py143__all__ = ["NemotronHConfig"]CODE
LOW…_rl/trainer/models/nemotron_h/converting_nemotron_h.py55__all__ = ["conversion_chain", "is_hf_state_dict", "is_prime_state_dict"]CODE
LOWsrc/prime_rl/trainer/models/nemotron_h/mamba.py244__all__ = [CODE
LOWsrc/prime_rl/trainer/models/nemotron_h/__init__.py8__all__ = [CODE
LOW…me_rl/trainer/models/nemotron_h/modeling_nemotron_h.py243__all__ = [CODE
LOWsrc/prime_rl/trainer/models/qwen3/__init__.py3__all__ = ["Qwen3ForCausalLM", "Qwen3Model", "Qwen3PreTrainedModel"]CODE
LOWsrc/prime_rl/trainer/models/qwen3/modeling_qwen3.py279__all__ = ["Qwen3ForCausalLM", "Qwen3Model", "Qwen3PreTrainedModel"]STRING
LOWsrc/prime_rl/trainer/models/deepseek_v4/attention.py790__all__ = [CODE
LOW…rime_rl/trainer/models/deepseek_v4/hyperconnections.py109__all__ = [CODE
LOW…rainer/models/deepseek_v4/configuration_deepseek_v4.py360__all__ = ["DeepseekV4Config"]CODE
LOWsrc/prime_rl/trainer/models/deepseek_v4/__init__.py4__all__ = [CODE
LOW…_rl/trainer/models/deepseek_v4/modeling_deepseek_v4.py345__all__ = [CODE
LOWsrc/prime_rl/trainer/models/deepseek_v4/rotary.py131__all__ = ["DeepseekV4RotaryEmbedding"]CODE
LOWsrc/prime_rl/trainer/models/glm_moe_dsa/__init__.py8__all__ = [CODE
LOW…_rl/trainer/models/glm_moe_dsa/modeling_glm_moe_dsa.py349__all__ = ["GlmMoeDsaConfig", "GlmMoeDsaPreTrainedModel", "GlmMoeDsaModel", "GlmMoeDsaForCausalLM"]STRING
LOW…rime_rl/trainer/models/qwen3_8_flash_next/attention.py110__all__ = ["IndexedGatedAttention"]CODE
LOW…qwen3_8_flash_next/configuration_qwen3_8_flash_next.py154__all__ = ["Qwen3_8FlashNextConfig", "Qwen3_8FlashNextTextConfig"]CODE
LOWsrc/prime_rl/trainer/models/qwen3_8_flash_next/norm.py25__all__ = ["RMSNorm"]CODE
LOW…prime_rl/trainer/models/qwen3_8_flash_next/__init__.py18__all__ = [CODE
LOW…/trainer/models/qwen3_8_flash_next/rotary_embedding.py58__all__ = ["RotaryEmbedding", "apply_rotary_embedding"]CODE
38 more matches not shown…
Empty Error Handlers16 hits · 80 pts
SeverityFileLineSnippetContext
HIGHtests/integration/test_reverse_text_rl_sft.py40except (httpx.ConnectError, httpx.ReadTimeout):CODE
HIGHtests/integration/test_reverse_text_rl_opd.py41except (httpx.ConnectError, httpx.ReadTimeout):CODE
HIGH…ges/prime-rl-configs/src/prime_rl/configs/inference.py130except json.JSONDecodeError:CODE
HIGH…prime_rl/transports/weights/nixl/cuda_malloc_memory.py12except OSError:CODE
HIGHsrc/prime_rl/utils/async_utils.py16except BaseException:CODE
HIGHsrc/prime_rl/dashboard/server.py2210except OSError:CODE
HIGHsrc/prime_rl/trainer/models/kernels/sparse_mla_bwd.py12except Exception:CODE
HIGHsrc/prime_rl/trainer/models/kernels/sparse_mla_fwd.py12except Exception:CODE
HIGH…ner/models/kernels/deepseek_v4/dsv4_sparse_attn_bwd.py88except Exception:CODE
HIGH…ner/models/kernels/deepseek_v4/dsv4_sparse_attn_fwd.py114except Exception:CODE
HIGH…trainer/models/kernels/deepseek_v4/dsv4_sparse_attn.py16except Exception:CODE
HIGHsrc/prime_rl/orchestrator/dispatcher.py338except asyncio.TimeoutError:CODE
HIGHsrc/prime_rl/orchestrator/envs.py53except FileNotFoundError:CODE
HIGHsrc/prime_rl/orchestrator/inference_metrics.py456except asyncio.CancelledError:CODE
HIGHsrc/prime_rl/orchestrator/periodic_logger.py38except asyncio.TimeoutError:CODE
HIGHsrc/prime_rl/orchestrator/orchestrator.py460except asyncio.TimeoutError:CODE
AI Slop Vocabulary25 hits · 76 pts
SeverityFileLineSnippetContext
MEDIUMexamples/advanced/glm-4.5-air/swe-budget.toml1# v1 RL: GLM-4.5-Air (100B MoE) on the v1 `scaleswe` SWE taskset, bash harness on a prime sandboxCOMMENT
MEDIUM⚡examples/advanced/glm-4.5-air/terminal.toml2# run through the rlm harness (ipython-only) on a prime sandbox. Each task ships its own Docker imageCOMMENT
MEDIUM⚡examples/advanced/glm-4.5-air/terminal.toml12# Clean up this run's orphaned prime sandboxes before launch (hardcoded label, matches the harness labels below).COMMENT
MEDIUMexamples/advanced/glm-4.5-air/terminal.toml90# # Metric-only monitors (weight 0): rlm harness-mechanics + swe code-usage rubrics, judged by GLM-5.2.COMMENT
MEDIUMexamples/advanced/glm-4.5-air/swe.toml1# v1 RL: GLM-4.5-Air (100B MoE) on the v1 `scaleswe` SWE taskset, bash harness on a prime sandboxCOMMENT
MEDIUMexamples/advanced/glm-4.5-air/swe.toml25# Clean up this run's orphaned prime sandboxes before launch (hardcoded label, matches the harness labels below).COMMENT
MEDIUMexamples/advanced/glm-4.5-air/swe.toml95# --- Eval: SWE-Bench Verified at step 0 + every 20 steps, bash harness on prime ---COMMENT
MEDIUMexamples/advanced/glm-4.5-air/search.toml2# through the rlm harness (its built-in `search` skill) on a prime sandbox. GRPO + linear lengthCOMMENT
MEDIUMexamples/advanced/glm-4.5-air/search.toml11# Clean up this run's orphaned prime sandboxes before launch (hardcoded label, matches the harness labels below).COMMENT
MEDIUMexamples/advanced/glm-4.5-air/search.toml101# # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2.COMMENT
MEDIUMexamples/advanced/glm-4.5-air/search.toml125# # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2.COMMENT
MEDIUMexamples/advanced/glm-4.5-air/search.toml150# # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2.COMMENT
MEDIUMexamples/advanced/glm-4.5-air/swe-2-node.toml13# Clean up this run's orphaned prime sandboxes before launch (hardcoded label, matches the harness labels below).COMMENT
MEDIUMexamples/advanced/glm-4.5-air/swe-2-node.toml31# --- Eval: SWE-Bench Verified at step 0 + every 20 steps, bash harness on prime ---COMMENT
MEDIUMexamples/advanced/glm-4.5-air/swe-4-node.toml14# Clean up this run's orphaned prime sandboxes before launch (hardcoded label, matches the harness labels below).COMMENT
MEDIUMexamples/advanced/glm-4.5-air/swe-4-node.toml32# --- Eval: SWE-Bench Verified at step 0 + every 20 steps, bash harness on prime ---COMMENT
MEDIUMconfigs/ci/integration/gsm8k-eval.toml1# CI eval smoke: gsm8k with the null harness in a local subprocess runtime againstCOMMENT
MEDIUMconfigs/debug/eval/tb2.toml1# Terminal-Bench 2 at avg@4: every task 4 times with the bash harness in primeCOMMENT
MEDIUMconfigs/debug/eval/single-turn.toml1# Single env, single turn: gsm8k with the null harness (one chat completion perCOMMENT
MEDIUMconfigs/debug/eval/multi-turn.toml1# Single env, multi turn: 16 terminal-bench-2 tasks with the bash harness inCOMMENT
MEDIUMconfigs/debug/eval/aime2026.toml1# AIME 2026 at avg@16: every problem 16 times with the null harness (one chatCOMMENT
MEDIUMsrc/prime_rl/dashboard/static/app.js966 model: "#78f8a5", harness: "#b7a6fa", other: "#2a2a2a",CODE
MEDIUMsrc/prime_rl/inference/server.py10 # spawn is more robust in vLLM nightlies and Qwen3-VL (fork can deadlock with multithreaded processes)COMMENT
LOWsrc/prime_rl/trainer/perf.py157 # Some MoE models (e.g. DeepSeek) use moe_intermediate_size, others (e.g. Granite) just use intermediate_sizeCOMMENT
MEDIUMsrc/prime_rl/trainer/sft/data.py357 # scaffolding (e.g. <|im_start|>assistant) the harness emits.COMMENT
Deep Nesting66 hits · 66 pts
SeverityFileLineSnippetContext
LOWtools/convert_fp8_to_bf16.py41CODE
LOWtests/unit/train/models/test_deepseek_v4_kernels.py63CODE
LOWtests/unit/train/models/test_deepseek_v4.py118CODE
LOWtests/integration/dashboard_smoke.py33CODE
LOWscripts/chat.py15CODE
LOW…ages/prime-rl-configs/src/prime_rl/utils/validation.py6CODE
LOWpackages/prime-rl-configs/src/prime_rl/configs/rl.py607CODE
LOWsrc/prime_rl/monitors/prime.py63CODE
LOWsrc/prime_rl/monitors/file/traces/update.py67CODE
LOWsrc/prime_rl/transports/weights/nixl/agent.py151CODE
LOWsrc/prime_rl/utils/act_offloading.py56CODE
LOWsrc/prime_rl/utils/act_offloading.py116CODE
LOWsrc/prime_rl/utils/nccl.py10CODE
LOWsrc/prime_rl/utils/chat_template.py5CODE
LOWsrc/prime_rl/utils/utils.py71CODE
LOWsrc/prime_rl/dashboard/server.py710CODE
LOWsrc/prime_rl/dashboard/server.py1154CODE
LOWsrc/prime_rl/dashboard/server.py1917CODE
LOWsrc/prime_rl/dashboard/server.py1989CODE
LOWsrc/prime_rl/entrypoints/rl.py111CODE
LOWsrc/prime_rl/entrypoints/eval.py49CODE
LOWsrc/prime_rl/inference/dynamo.py199CODE
LOWsrc/prime_rl/inference/patches.py247CODE
LOWsrc/prime_rl/inference/patches.py272CODE
LOWsrc/prime_rl/inference/vllm/qwen38_weight_loading.py8CODE
LOWsrc/prime_rl/inference/vllm/qwen38_weight_loading.py22CODE
LOWsrc/prime_rl/inference/vllm/qwen38_weight_loading.py27CODE
LOWsrc/prime_rl/inference/vllm/gpt_oss_weight_loading.py6CODE
LOWsrc/prime_rl/inference/vllm/gpt_oss_weight_loading.py56CODE
LOWsrc/prime_rl/inference/vllm/gpt_oss_weight_loading.py80CODE
LOWsrc/prime_rl/inference/vllm/worker/nccl.py31CODE
LOWsrc/prime_rl/inference/vllm/worker/nixl.py147CODE
LOWsrc/prime_rl/inference/vllm/worker/nixl.py491CODE
LOWsrc/prime_rl/eval/runner.py166CODE
LOWsrc/prime_rl/eval/resume.py38CODE
LOWsrc/prime_rl/eval/resume.py57CODE
LOWsrc/prime_rl/eval/online.py77CODE
LOWsrc/prime_rl/trainer/model.py503CODE
LOWsrc/prime_rl/trainer/moe_runtime.py62CODE
LOWsrc/prime_rl/trainer/lora.py210CODE
LOWsrc/prime_rl/trainer/optim/state_offload.py35CODE
LOWsrc/prime_rl/trainer/optim/__init__.py136CODE
LOWsrc/prime_rl/trainer/optim/offload.py356CODE
LOWsrc/prime_rl/trainer/models/fusions.py204CODE
LOWsrc/prime_rl/trainer/models/fusions.py243CODE
LOWsrc/prime_rl/trainer/models/fusions.py267CODE
LOWsrc/prime_rl/trainer/models/kernels/sparse_mla_bwd.py102CODE
LOWsrc/prime_rl/trainer/models/kernels/sparse_mla_bwd.py150CODE
LOW…ner/models/kernels/deepseek_v4/dsv4_sparse_attn_bwd.py172CODE
LOW…ner/models/kernels/deepseek_v4/dsv4_sparse_attn_bwd.py231CODE
LOWsrc/prime_rl/trainer/models/layers/moe.py179CODE
LOW…_rl/trainer/models/nemotron_h/converting_nemotron_h.py17CODE
LOW…me_rl/trainer/models/nemotron_h/modeling_nemotron_h.py42CODE
LOW…dels/qwen3_8_flash_next/modeling_qwen3_8_flash_next.py297CODE
LOWsrc/prime_rl/trainer/models/qwen3_5/rotary_embedding.py109CODE
LOWsrc/prime_rl/trainer/sft/train.py71CODE
LOWsrc/prime_rl/trainer/sft/data.py151CODE
LOWsrc/prime_rl/trainer/sft/data.py511CODE
LOWsrc/prime_rl/trainer/rl/train.py80CODE
LOWsrc/prime_rl/orchestrator/dispatcher.py326CODE
6 more matches not shown…
Excessive Try-Catch Wrapping39 hits · 45 pts
SeverityFileLineSnippetContext
LOWbenchmarks/scripts/aggregate_results.py76 except Exception as e:CODE
LOWbenchmarks/scripts/run_single_benchmark.py36 except Exception:CODE
LOWbenchmarks/scripts/run_single_benchmark.py293 except Exception as e:CODE
MEDIUMbenchmarks/scripts/run_single_benchmark.py296 print(f"Error: {e}")CODE
LOWscripts/chat.py161 except Exception as e:CODE
LOWsrc/prime_rl/monitors/prime.py382 except Exception as e:CODE
LOWsrc/prime_rl/monitors/prime.py428 except Exception as e:CODE
LOWsrc/prime_rl/monitors/prime.py440 except Exception as e:CODE
LOW⚡src/prime_rl/monitors/__init__.py129 except Exception as e:CODE
LOW⚡src/prime_rl/monitors/__init__.py138 except Exception as e:CODE
LOW⚡src/prime_rl/monitors/__init__.py147 except Exception as e:CODE
LOW⚡src/prime_rl/monitors/__init__.py156 except Exception as e:CODE
LOW⚡src/prime_rl/monitors/__init__.py165 except Exception as e:CODE
LOW⚡src/prime_rl/monitors/__init__.py174 except Exception as e:CODE
LOWsrc/prime_rl/monitors/wandb/monitor.py137 except Exception as e:CODE
LOWsrc/prime_rl/monitors/wandb/overview.py247 except Exception as e:CODE
LOWsrc/prime_rl/transports/batch/zmq.py59 except Exception:CODE
LOWsrc/prime_rl/utils/utils.py41 except Exception:CODE
LOWsrc/prime_rl/utils/utils.py60 except Exception:CODE
MEDIUMsrc/prime_rl/utils/utils.py36def async_wrapper(*args, **kwargs):CODE
MEDIUMsrc/prime_rl/utils/utils.py55def sync_wrapper(*args, **kwargs):CODE
LOWsrc/prime_rl/dashboard/server.py1714 except Exception:CODE
LOWsrc/prime_rl/dashboard/server.py1769 except Exception:CODE
LOWsrc/prime_rl/trainer/models/kernels/sparse_mla_bwd.py12except Exception:CODE
LOWsrc/prime_rl/trainer/models/kernels/sparse_mla_fwd.py12except Exception:CODE
LOW…ner/models/kernels/deepseek_v4/dsv4_sparse_attn_bwd.py88except Exception:CODE
LOW…ner/models/kernels/deepseek_v4/dsv4_sparse_attn_fwd.py114except Exception:CODE
LOW…trainer/models/kernels/deepseek_v4/dsv4_sparse_attn.py16except Exception:CODE
LOWsrc/prime_rl/orchestrator/dispatcher.py645 except Exception as exc:CODE
LOWsrc/prime_rl/orchestrator/batch.py876 except Exception as e:CODE
LOWsrc/prime_rl/orchestrator/inference_metrics.py301 except Exception as e:CODE
LOWsrc/prime_rl/orchestrator/inference_metrics.py317 except Exception as e:CODE
LOWsrc/prime_rl/orchestrator/inference_metrics.py331 except Exception as e:CODE
LOWsrc/prime_rl/orchestrator/inference_metrics.py373 except Exception as e:CODE
LOWsrc/prime_rl/orchestrator/utils.py93 except Exception as exc:CODE
LOWsrc/prime_rl/orchestrator/clients.py99 except Exception as error:CODE
LOWsrc/prime_rl/orchestrator/clients.py344 except Exception as e:CODE
LOWsrc/prime_rl/orchestrator/watcher.py106 except Exception as exc:CODE
LOWsrc/prime_rl/orchestrator/watcher.py127 except Exception as exc:CODE
AI Structural Patterns34 hits · 34 pts
SeverityFileLineSnippetContext
LOWtests/unit/orchestrator/test_metrics.py14CODE
LOWsrc/prime_rl/monitors/__init__.py48CODE
LOWsrc/prime_rl/utils/pathing.py95CODE
LOWsrc/prime_rl/dashboard/server.py1543CODE
LOWsrc/prime_rl/dashboard/server.py1591CODE
LOWsrc/prime_rl/inference/patches.py272CODE
LOWsrc/prime_rl/trainer/model.py1020CODE
LOW…prime_rl/trainer/models/laguna/configuration_laguna.py38CODE
LOWsrc/prime_rl/trainer/models/laguna/modeling_laguna.py370CODE
LOWsrc/prime_rl/trainer/models/kernels/sparse_mla_bwd.py102CODE
LOW…ner/models/kernels/deepseek_v4/dsv4_sparse_attn_bwd.py172CODE
LOWsrc/prime_rl/trainer/models/gpt_oss/modeling_gpt_oss.py176CODE
LOW…ime_rl/trainer/models/gpt_oss/configuration_gpt_oss.py33CODE
LOWsrc/prime_rl/trainer/models/layers/attn.py574CODE
LOW…/trainer/models/minimax_m2/configuration_minimax_m2.py64CODE
LOW…me_rl/trainer/models/minimax_m2/modeling_minimax_m2.py211CODE
LOW…/trainer/models/nemotron_h/configuration_nemotron_h.py13CODE
LOWsrc/prime_rl/trainer/models/qwen3/modeling_qwen3.py219CODE
LOW…rainer/models/deepseek_v4/configuration_deepseek_v4.py103CODE
LOW…_rl/trainer/models/deepseek_v4/modeling_deepseek_v4.py302CODE
LOW…_rl/trainer/models/glm_moe_dsa/modeling_glm_moe_dsa.py279CODE
LOW…rainer/models/glm_moe_dsa/configuration_glm_moe_dsa.py119CODE
LOW…qwen3_8_flash_next/configuration_qwen3_8_flash_next.py10CODE
LOW…c/prime_rl/trainer/models/afmoe/configuration_afmoe.py18CODE
LOWsrc/prime_rl/trainer/models/afmoe/modeling_afmoe.py421CODE
LOW…/prime_rl/trainer/models/glm4_moe/modeling_glm4_moe.py255CODE
LOW…e_rl/trainer/models/glm4_moe/configuration_glm4_moe.py138CODE
LOWsrc/prime_rl/trainer/models/qwen3_5/modeling_qwen3_5.py331CODE
LOW…ime_rl/trainer/models/qwen3_5/configuration_qwen3_5.py9CODE
LOW…ime_rl/trainer/models/qwen3_5/configuration_qwen3_5.py127CODE
LOWsrc/prime_rl/trainer/models/llama/modeling_llama.py240CODE
LOW…rime_rl/trainer/models/qwen3_moe/modeling_qwen3_moe.py255CODE
LOW…rl/trainer/models/qwen3_moe/configuration_qwen3_moe.py142CODE
LOWsrc/prime_rl/trainer/sft/data.py266CODE
Modern AI Meta-Vocabulary10 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md363. Native integration with [`verifiers`](https://github.com/PrimeIntellect-ai/verifiers) environments through the [EnvirCODE
MEDIUM⚡tests/unit/orchestrator/test_algorithms.py449 # template scaffold (False), the second is message body (True). Only the bodyCOMMENT
MEDIUM⚡tests/unit/orchestrator/test_algorithms.py450 # token gets the role weight — the scaffold is excluded (content granularity).COMMENT
MEDIUMtests/unit/orchestrator/test_algorithms.py478 # Only position 5 (the body token) is weighted; the scaffold token at position 4 is not.COMMENT
MEDIUMdocs/inference.md30- [Disaggregated](#pd-disaggregation) - Runs the inference server on multiple nodes, but disaggregates the prefill and dCODE
MEDIUMdocs/configuration.md260- [**MiniMax-M2.5 SWE**](https://github.com/PrimeIntellect-ai/prime-rl/tree/main/configs/advanced/minimax-m2.5) — `MiniMCODE
MEDIUM⚡examples/advanced/glm-4.5-air/terminal.toml1# exp: GLM-4.5-Air (100B MoE) RL across our v1 TERMINAL-domain envs — agentic shell/sandbox tasksCOMMENT
MEDIUMexamples/advanced/glm-4.5-air/README.md3RL on [`zai-org/GLM-4.5-Air`](https://huggingface.co/zai-org/GLM-4.5-Air) — a 100B MoE — at 131k context, across three aCODE
MEDIUMsrc/prime_rl/trainer/sft/data.py357 # scaffolding (e.g. <|im_start|>assistant) the harness emits.COMMENT
MEDIUMsrc/prime_rl/trainer/sft/data.py465 # If processed example is None, skip it (e.g. if tokenized sample exceeds context window)COMMENT
Over-Commented Block28 hits · 28 pts
SeverityFileLineSnippetContext
LOWtests/unit/train/models/test_deepseek_v4_kernels.py801COMMENT
LOWtests/unit/train/models/test_deepseek_v4_kernels.py1041COMMENT
LOWtests/unit/train/models/test_deepseek_v4.py441COMMENT
LOWtests/unit/train/models/test_deepseek_v4.py601DOC_LENS = (14, 18)COMMENT
LOWexamples/advanced/glm-4.5-air/swe-budget.toml1# v1 RL: GLM-4.5-Air (100B MoE) on the v1 `scaleswe` SWE taskset, bash harness on a prime sandboxCOMMENT
LOWexamples/advanced/glm-4.5-air/terminal.toml81# --- Train: tmax (per-task Docker image in a prime sandbox, rlm ipython) ---COMMENT
LOWexamples/advanced/glm-4.5-air/terminal.toml141# name = "rlm"COMMENT
LOWexamples/advanced/glm-4.5-air/swe.toml1# v1 RL: GLM-4.5-Air (100B MoE) on the v1 `scaleswe` SWE taskset, bash harness on a prime sandboxCOMMENT
LOWexamples/advanced/glm-4.5-air/swe-4-node.toml1# Budget variant of swe.toml: the same recipe on four nodes (1 train + 3 infer replicas, theCOMMENT
LOWconfigs/advanced/deepseek-v4-flash/inference.toml1# Standalone vLLM serving pre-flight: does this cluster's vLLM serve the real DeepSeek V4 FlashCOMMENT
LOWconfigs/advanced/deepseek-v4-flash/sft.toml1# Real-data SFT for deepseek-ai/DeepSeek-V4-Flash-0731 at full depth (all 43 layers, noCOMMENT
LOWscripts/install_llmd.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/docker-entrypoint.sh1#!/bin/bashCOMMENT
LOWscripts/docker-entrypoint.sh21 # Slug + content hash for the checkout dir name. Slug keeps the pathCOMMENT
LOW…ages/prime-rl-configs/src/prime_rl/utils/validation.py141 # the same SLURM allocation, so the nested inference inherits [slurm]. This isCOMMENT
LOWsrc/prime_rl/_compat.py21COMMENT
LOWsrc/prime_rl/utils/act_offloading.py261 # tensor.COMMENT
LOWsrc/prime_rl/dashboard/static/style.css761 gap: 8px;COMMENT
LOWsrc/prime_rl/trainer/ckpt.py121 # set_state_dict on the optimizer would route the loaded CPU valuesCOMMENT
LOWsrc/prime_rl/trainer/parallel_dims.py1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW…rime_rl/trainer/models/kernels/deepseek_v4/dsv4_mhc.py1# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW…trainer/models/kernels/deepseek_v4/dsv4_sparse_attn.py1# Torch-facing layer for the DeepSeek V4 sparse attention kernels: the `prime_rl::dsv4_sparse_attn`COMMENT
LOWsrc/prime_rl/trainer/models/deepseek_v4/attention.py701 raise ValueError(f"DeepSeek V4 cannot run the fused sparse-attention kernel: {blocker}")COMMENT
LOW…/prime_rl/trainer/models/glm4_moe/modeling_glm4_moe.py1# coding=utf-8COMMENT
LOWsrc/prime_rl/trainer/models/llama/modeling_llama.py1# coding=utf-8COMMENT
LOW…rime_rl/trainer/models/qwen3_moe/modeling_qwen3_moe.py1# coding=utf-8COMMENT
LOWsrc/prime_rl/orchestrator/clients.py361 # Retry on transient server errors (5xx, e.g. engine briefly unresponsive);COMMENT
LOWsrc/prime_rl/orchestrator/watcher.py81 if next_step <= self.ckpt_step:COMMENT
Hallucination Indicators1 hit · 15 pts
SeverityFileLineSnippetContext
CRITICAL⚡src/prime_rl/utils/act_offloading.py214 torch.autograd.variable.Variable._execution_engine.queue_callback(wait_and_del_remaining_references)CODE
Cross-Language Confusion3 hits · 10 pts
SeverityFileLineSnippetContext
HIGHtests/unit/train/sft/test_sft_dataset.py33 pytest.param('{"reasoning_effort": null}', id="json-string"),CODE
HIGHsrc/prime_rl/trainer/sft/data.py171 returns ``True`` even when the value is null). Strip the noise beforeSTRING
HIGHsrc/prime_rl/trainer/rl/annotations.py19 positions outside that mask hold null, since a fold keeps sampled tokens only and aSTRING
Redundant / Tautological Comments6 hits · 9 pts
SeverityFileLineSnippetContext
LOWscripts/chat.py70 # Check if the non-whitespace starts with a thinking tagCOMMENT
LOWscripts/chat.py92 # Check if we might be building up to a thinking tagCOMMENT
LOWscripts/chat.py117 # Check if buffer might contain partial closing tagCOMMENT
LOW.github/workflows/nightly_tests.yaml94 # Set WANDB_MODE to online only if WANDB_API_KEY is available, otherwise set to offlineCOMMENT
LOW.github/workflows/cpu_tests.yaml38 # Set WANDB_MODE to online only if WANDB_API_KEY is available, otherwise set to offlineCOMMENT
LOWsrc/prime_rl/trainer/lora.py159 # Check if module is Linear or a supported expert classCOMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMscripts/chat.py234 # Create the demoCOMMENT
MEDIUMsrc/prime_rl/trainer/optim/offload.py1# This file is fully AI-generated.COMMENT
MEDIUMsrc/prime_rl/trainer/sft/train.py228 # Create the iterator only after a potential resume: iter() forks workers with aCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/prime_rl/trainer/optim/offload.py1# This file is fully AI-generated.COMMENT
Fake / Example Data6 hits · 5 pts
SeverityFileLineSnippetContext
LOWexamples/advanced/glm-5.3/README.md119For a fake-data dry run, append [`fake.toml`](sft/h200/fake.toml) instead. You can use the same dashboard to monitor theCODE
LOWexamples/advanced/qwen3-30b-a3b/README.md125For a fake-data dry run, add [`fake.toml`](sft/h200/fake.toml) instead of the data overlay. `base.toml` sets `[slurm] paCODE
LOWconfigs/README.md11 (per-algorithm smokes), `fake/` (fake-data trainer/SFT smokes), andCODE
LOW…kages/prime-rl-configs/src/prime_rl/configs/trainer.py107 """Replace MoE token-choice routing with a round-robin assignment so every expert sees an equal share. Intended for STRING
LOWskills/training/start-run/SKILL.md47- Multi-node SLURM stops after `.trainer.done` for trainer-only fake-data runs. Runs with inference stop after both `.trCODE
LOWsrc/prime_rl/trainer/model.py213 """Force MoE token-choice routers into round-robin assignment for fake-data smoke tests."""STRING
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWexamples/advanced/glm-5.3/infer/pd-llmd.toml2# Step 3 / goal target. Topology mirrors the proven original glm5.1_llmd_inferenceCOMMENT