AI Slop Code Risk Monitor

PrimeIntellect-ai/prime-rl

SlopCodeMonitor badge for PrimeIntellect-ai/prime-rl Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Agentic RL Training at Scale

16.3 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for PrimeIntellect-ai/prime-rl, a Python project with 2,211 GitHub stars. SynthScan examined 105,036 lines of code across 568 source files, recording 1350 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-11-01
Last Push
2.2K
Stars
Python
Language
105.0K
Lines of Code
568
Files
1.4K
Pattern Hits
2026-10-31
Scan Date
0.08
HC Hit Rate

Risk Review · Payload v1

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

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

Cognitive Ownership Risk 38.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 10.6/100 · LOW

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

Agent Over-Engineering Ratio 44.1/100 · MEDIUM

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

PR Review Velocity Impact 55.8/100 · HIGH

Which changes need focused human review? 1350 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 73LOW 1234

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 1350 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 Identifiers723 hits · 736 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.py154def test_toml_partial_nested_override(tmp_path):CODE
LOW⚡tests/unit/test_configs.py163def test_toml_discriminated_union_default_type(tmp_path):CODE
LOW⚡tests/unit/test_configs.py172def test_toml_discriminated_union_switch_variant(tmp_path):CODE
LOW⚡tests/unit/test_configs.py205def test_toml_discriminated_union_override_switch_variant(tmp_path):CODE
LOW⚡tests/unit/test_configs.py213def test_cli_overrides_defaults():CODE
LOW⚡tests/unit/test_configs.py221def test_toml_overrides_defaults(tmp_path):CODE
LOW⚡tests/unit/test_configs.py317def test_moe_compute_apply_to(backend, selection, num_layers, selected):CODE
LOW⚡tests/unit/test_configs.py324def test_moe_compute_rejects_invalid_apply_to(selection):CODE
LOW⚡tests/unit/test_configs.py329def test_moe_compute_rejects_out_of_range_layer():CODE
LOW⚡tests/unit/test_configs.py336def test_moe_compute_apply_to_cli(selection, selected):CODE
LOW⚡tests/unit/test_configs.py422def test_removed_moe_runtime_fields_are_rejected(removed):CODE
LOW⚡tests/unit/test_configs.py428def test_optimizer_state_offload_keeps_legacy_default(config_cls):CODE
LOW⚡tests/unit/test_configs.py434def test_freeze_moe_router_auto_resolves_per_trainer():CODE
LOW⚡tests/unit/test_configs.py1116def test_orchestrator_renderer_auto_rejects_unmapped_model():CODE
LOW⚡tests/unit/test_configs.py1122def test_orchestrator_renderer_auto_accepts_mapped_model():CODE
LOW⚡tests/unit/test_configs.py1129def test_sft_renderer_auto_accepts_prime_qwen_model():CODE
LOW⚡tests/unit/test_configs.py1134def test_sft_rejects_default_renderer_for_real_data():CODE
LOW⚡tests/unit/test_configs.py1139def test_sft_allows_unused_default_renderer_for_fake_data():CODE
LOW⚡tests/unit/test_configs.py1149def test_orchestrator_explicit_renderer_skips_unmapped_check():CODE
LOWtests/unit/test_configs.py126def test_rl_launcher_config_roundtrip(tmp_path):CODE
LOWtests/unit/test_configs.py190def test_length_penalty_variants_are_opt_in(tmp_path, penalty, expected_type):CODE
LOWtests/unit/test_configs.py240def test_removed_fused_lm_head_chunk_size_field_is_rejected():CODE
LOWtests/unit/test_configs.py245def test_icepop_is_an_optional_loss_with_validated_ratio_bounds():CODE
LOWtests/unit/test_configs.py268def test_moe_runtime_defaults_are_independent_from_dense_quantization():CODE
LOWtests/unit/test_configs.py298def test_supported_moe_runtime_configs(model):CODE
LOWtests/unit/test_configs.py366def test_invalid_moe_runtime_configs_fail(model, message):CODE
LOWtests/unit/test_configs.py372def test_mega_moe_buffer_defaults_to_a_cp_shard(cp, expected):CODE
LOWtests/unit/test_configs.py399def test_mega_moe_buffer_smaller_than_a_cp_shard_fails():CODE
LOWtests/unit/test_configs.py445def test_full_optimizer_offload_disables_gradient_clipping(config_cls):CODE
LOWtests/unit/test_configs.py458def test_full_optimizer_offload_requires_supported_optimizer(config_cls):CODE
LOWtests/unit/test_configs.py469def test_full_optimizer_offload_accepts_sign_sgd(config_cls):CODE
LOWtests/unit/test_configs.py480def test_resolved_json_roundtrips_explicit_none(tmp_path):CODE
LOWtests/unit/test_configs.py516def test_client_defaults_survive_partial_overrides(CODE
LOWtests/unit/test_configs.py527def test_env_algo_inherits_the_group_algo():CODE
LOWtests/unit/test_configs.py557def test_sources_inherit_the_group_fields_they_leave_unset(CODE
LOWtests/unit/test_configs.py621def test_train_sources_can_use_their_own_group_sizes():CODE
LOWtests/unit/test_configs.py647def test_group_defaults_match_source_defaults(group):CODE
LOWtests/unit/test_configs.py659def test_policy_sources_accept_different_top_p_values():CODE
LOWtests/unit/test_configs.py712def test_policy_sampling_is_validated_before_rollouts(sampling, agent_sampling, rejected, frozen):CODE
LOWtests/unit/test_configs.py730def test_policy_sources_reject_mixed_top_k_capture():CODE
LOWtests/unit/test_configs.py753def test_single_node_auto_inference_ports_follow_server_port():CODE
LOWtests/unit/test_configs.py776def test_single_node_nccl_resolved_json_roundtrips(tmp_path):CODE
LOWtests/unit/test_configs.py795def test_multi_node_auto_inference_parallelism():CODE
LOWtests/unit/test_configs.py816def test_disaggregated_inference_inherits_deployment_gpus_per_node():CODE
LOWtests/unit/test_configs.py834def test_ac_none_disables_ac_offloading():CODE
LOWtests/unit/test_configs.py840def test_shared_model_name_propagates_to_subconfigs():CODE
LOWtests/unit/test_configs.py857def test_shared_tokenizer_propagates_when_subconfigs_unset():CODE
LOWtests/unit/test_configs.py870def test_shared_and_sub_tokenizer_name_conflict_raises():CODE
LOWtests/unit/test_configs.py885def test_tokenizer_name_falls_back_to_model_name_when_unset():CODE
LOWtests/unit/test_configs.py900def test_explicit_subconfig_tokenizer_name_survives_shared_model_propagation():CODE
LOWtests/unit/test_configs.py933def test_tokenizer_chat_template_mismatch_raises():CODE
LOWtests/unit/test_configs.py943def test_shared_seq_len_propagates_to_subconfigs():CODE
LOWtests/unit/test_configs.py955def test_shared_and_sub_seq_len_conflict_raises():CODE
LOWtests/unit/test_configs.py969def test_shared_and_sub_model_name_conflict_raises():CODE
LOWtests/unit/test_configs.py981def test_shared_and_sub_max_steps_conflict_raises():CODE
663 more matches not shown…
Unused Imports206 hits · 206 pts
SeverityFileLineSnippetContext
LOWtests/unit/train/test_model.py24CODE
LOWtests/unit/train/models/test_deepseek_v4_kernels.py186CODE
LOWtests/unit/inference/test_serving_tokens.py15CODE
LOWtests/unit/orchestrator/test_qwen3_vl_e2e.py3CODE
LOWpackages/prime-rl-configs/src/prime_rl/utils/config.py6CODE
LOWpackages/prime-rl-configs/src/prime_rl/utils/config.py7CODE
LOWpackages/prime-rl-configs/src/prime_rl/utils/config.py10CODE
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/payload.py18CODE
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/inference/dynamo.py1CODE
LOWsrc/prime_rl/inference/vllm/server.py195CODE
LOWsrc/prime_rl/inference/vllm/routed_experts.py1CODE
LOWsrc/prime_rl/inference/vllm/serving_tokens.py26CODE
LOWsrc/prime_rl/inference/vllm/worker/nixl.py3CODE
LOWsrc/prime_rl/eval/resume.py14CODE
LOWsrc/prime_rl/eval/online.py13CODE
LOWsrc/prime_rl/eval/eval.py9CODE
LOWsrc/prime_rl/control/types.py1CODE
LOWsrc/prime_rl/trainer/utils.py27CODE
LOWsrc/prime_rl/trainer/scheduler.py1CODE
LOWsrc/prime_rl/trainer/distributed/deepep.py1CODE
LOWsrc/prime_rl/trainer/distributed/__init__.py1CODE
LOWsrc/prime_rl/trainer/optim/__init__.py11CODE
LOWsrc/prime_rl/trainer/models/conversion_ops.py35CODE
LOWsrc/prime_rl/trainer/models/__init__.py20CODE
LOWsrc/prime_rl/trainer/models/__init__.py20CODE
LOWsrc/prime_rl/trainer/models/laguna/__init__.py1CODE
LOWsrc/prime_rl/trainer/models/laguna/__init__.py2CODE
LOWsrc/prime_rl/trainer/models/laguna/__init__.py2CODE
LOWsrc/prime_rl/trainer/models/laguna/__init__.py2CODE
LOWsrc/prime_rl/trainer/models/laguna/converting_laguna.py20CODE
146 more matches not shown…
Modern Structural Boilerplate114 hits · 112 pts
SeverityFileLineSnippetContext
LOWscripts/docker_application.py26def set_fallback_version(pyproject: Path, version: str) -> None:CODE
LOW…/prime-rl-configs/src/prime_rl/configs/orchestrator.py671 def update_policy_samplings(self, update: Callable[[TrainSamplingConfig], TrainSamplingConfig]) -> None:CODE
LOWsrc/prime_rl/monitors/prime.py52def 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__.py13__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/record.py63def update_record(path: Path, merge: Callable[[dict[str, Any]], dict[str, Any]]) -> None:CODE
LOWsrc/prime_rl/utils/process.py96def set_proc_title(name: str) -> None: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/modelexpress.py66 def update_weights_from_modelexpress(self, version_uid: str) -> None:CODE
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.py136__all__ = [CODE
LOWsrc/prime_rl/trainer/parallel_dims.py33__all__ = ["ParallelDims"]CODE
LOWsrc/prime_rl/trainer/distributed/deepep.py471__all__ = [CODE
LOWsrc/prime_rl/trainer/distributed/ngram_lookup.py75__all__ = ["LocalLookup", "NGramLookup", "RowShardedLookup", "count_ids_per_rank"]CODE
LOWsrc/prime_rl/trainer/distributed/collectives.py268__all__ = [CODE
LOWsrc/prime_rl/trainer/distributed/__init__.py3__all__ = ["ExpertWeightParallel"]CODE
LOWsrc/prime_rl/trainer/models/__init__.py139__all__ = [CODE
LOWsrc/prime_rl/trainer/models/base.py191__all__ = ["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.py418__all__ = [CODE
LOWsrc/prime_rl/trainer/models/gpt_oss/attention.py145__all__ = [CODE
LOWsrc/prime_rl/trainer/models/gpt_oss/modeling_gpt_oss.py213__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/ngram.py30 def set_lookup(self, lookup: NGramLookup) -> None:CODE
LOWsrc/prime_rl/trainer/models/layers/ngram.py33 def set_layout(self, multipliers: list[int], sizes: list[int], offsets: list[int]) -> None:CODE
LOWsrc/prime_rl/trainer/models/layers/ngram.py184__all__ = [CODE
LOWsrc/prime_rl/trainer/models/layers/gated_delta_net.py132__all__ = ["GatedDeltaNet"]CODE
LOWsrc/prime_rl/trainer/models/layers/moe.py106 def set_compute(self, compute: ExpertCompute | FusedDispatchExpertCompute) -> None:CODE
LOWsrc/prime_rl/trainer/models/layers/moe.py343 def set_token_dispatcher(self, token_dispatcher: TokenDispatcher) -> None:CODE
LOWsrc/prime_rl/trainer/models/layers/lora/__init__.py5__all__ = ["LoRAModule", "LoRALinear", "LoRAGroupedExperts", "LoRAGptOssGroupedExperts"]CODE
LOWsrc/prime_rl/trainer/models/minimax_m2/__init__.py8__all__ = [CODE
LOW…me_rl/trainer/models/minimax_m2/modeling_minimax_m2.py268__all__ = [STRING
LOW…/trainer/models/nemotron_h/configuration_nemotron_h.py140__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.py249__all__ = [CODE
LOWsrc/prime_rl/trainer/models/nemotron_h/__init__.py8__all__ = [CODE
LOW…me_rl/trainer/models/nemotron_h/modeling_nemotron_h.py236__all__ = [CODE
LOW…rl/trainer/models/glm5_next/configuration_glm5_next.py155__all__ = ["Glm5NextConfig", "Glm5NextTextConfig"]CODE
LOW…/prime_rl/trainer/models/glm5_next/sparse_attention.py255__all__ = ["KPoolIndexer", "PoolLayout", "SparseMlaAttention", "hadamard_128"]CODE
LOWsrc/prime_rl/trainer/models/glm5_next/__init__.py9__all__ = [CODE
LOW…me_rl/trainer/models/glm5_next/converting_glm5_next.py39__all__ = ["conversion_chain", "is_hf_state_dict", "is_prime_state_dict"]CODE
LOW…rime_rl/trainer/models/glm5_next/modeling_glm5_next.py197 def set_input_embeddings(self, embeddings: nn.Embedding) -> None:CODE
LOW…rime_rl/trainer/models/glm5_next/modeling_glm5_next.py251 def set_input_embeddings(self, embeddings: nn.Embedding) -> None:CODE
LOW…rime_rl/trainer/models/glm5_next/modeling_glm5_next.py290 def set_input_embeddings(self, embeddings: nn.Embedding) -> None:CODE
LOW…rime_rl/trainer/models/glm5_next/modeling_glm5_next.py334__all__ = [CODE
LOW…/prime_rl/trainer/models/glm5_next/linear_attention.py129__all__ = ["KimiDeltaAttention"]CODE
LOWsrc/prime_rl/trainer/models/qwen3/__init__.py3__all__ = ["Qwen3ForCausalLM", "Qwen3Model", "Qwen3PreTrainedModel"]CODE
LOWsrc/prime_rl/trainer/models/qwen3/modeling_qwen3.py266__all__ = ["Qwen3ForCausalLM", "Qwen3Model", "Qwen3PreTrainedModel"]STRING
LOWsrc/prime_rl/trainer/models/deepseek_v4/attention.py829__all__ = [CODE
54 more matches not shown…
Decorative Section Separators30 hits · 108 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/unit/orchestrator/test_advantage.py172# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_advantage.py174# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_advantage.py229# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_advantage.py231# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_advantage.py383# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_advantage.py385# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_algorithms.py91# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_algorithms.py97# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_algorithms.py359# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/orchestrator/test_algorithms.py366# --------------------------------------------------------------------------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.py161# ---------------------------------------------------------------------------COMMENT
MEDIUM…ges/prime-rl-configs/src/prime_rl/configs/algorithm.py163# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/_compat.py7# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/_compat.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/trainer/models/kernels/fp8_utils.py27# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/trainer/models/kernels/fp8_utils.py29# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡src/prime_rl/trainer/models/kernels/fp8_utils.py85# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡src/prime_rl/trainer/models/kernels/fp8_utils.py87# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/trainer/models/kernels/fp8_utils.py329# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/trainer/models/kernels/fp8_utils.py331# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/prime_rl/orchestrator/dispatcher.py310 # ── lifecycle ──────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/prime_rl/orchestrator/dispatcher.py860 # ── metrics ────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/prime_rl/orchestrator/concurrency.py167 # ── inbound hooks ────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/prime_rl/orchestrator/concurrency.py320 # ── internals ────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/prime_rl/orchestrator/concurrency.py354 # ── observability ────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/prime_rl/orchestrator/orchestrator.py200 # ── lifecycle ──────────────────────────────────────────────────────────COMMENT
Empty Error Handlers19 hits · 95 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
HIGHsrc/prime_rl/transports/payload.py444except Exception:CODE
HIGHsrc/prime_rl/transports/payload.py475except Exception: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.py2216except OSError:CODE
HIGHsrc/prime_rl/entrypoints/rl.py98except 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.py18except Exception:CODE
HIGHsrc/prime_rl/orchestrator/dispatcher.py324except asyncio.TimeoutError:CODE
HIGHsrc/prime_rl/orchestrator/envs.py55except 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.py518except asyncio.TimeoutError:CODE
Cross-File Repetition19 hits · 95 pts
SeverityFileLineSnippetContext
HIGHtests/unit/train/models/test_deepseek_v4_kernels.py0bound the largest absolute deviation by `rtol` times the reference's own scale.STRING
HIGHtests/unit/train/models/test_deepseek_v4.py0bound the largest absolute deviation by `rtol` times the reference's own scale.STRING
HIGHtests/unit/train/models/test_fp8_grouped_gemm.py0bound the largest absolute deviation by `rtol` times the reference's own scale.STRING
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.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…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
AI Slop Vocabulary27 hits · 83 pts
SeverityFileLineSnippetContext
MEDIUMtests/regression/configs/eval/gsm8k.toml2# each, with the null harness (one chat completion per task, no sandbox) againstCOMMENT
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.toml88# # 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.toml94# --- 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.toml99# # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2.COMMENT
MEDIUMexamples/advanced/glm-4.5-air/search.toml123# # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2.COMMENT
MEDIUMexamples/advanced/glm-4.5-air/search.toml148# # 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
MEDIUMexamples/extra/vlm/rl-qwen3.5.toml157# Replace color-codeword with your multimodal environment and compatible harness.COMMENT
MEDIUMexamples/extra/vlm/rl-qwen3.8.toml163# Replace color-codeword with your multimodal environment and compatible harness.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.js968 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
MEDIUMsrc/prime_rl/trainer/sft/data.py358 # scaffolding (e.g. <|im_start|>assistant) the harness emits.COMMENT
Deep Nesting81 hits · 80 pts
SeverityFileLineSnippetContext
LOWtools/convert_fp8_to_bf16.py41CODE
LOWtests/unit/transports/test_payload.py103CODE
LOWtests/unit/transports/test_modelexpress_boundary.py22CODE
LOWtests/unit/train/models/test_deepseek_v4_kernels.py47CODE
LOWtests/unit/train/models/test_deepseek_v4.py101CODE
LOWtests/unit/inference/test_routed_experts.py29CODE
LOWtests/integration/dashboard_smoke.py92CODE
LOWtests/regression/scripts/eval.py112CODE
LOWscripts/chat.py15CODE
LOW…ages/prime-rl-configs/src/prime_rl/utils/validation.py6CODE
LOWpackages/prime-rl-configs/src/prime_rl/configs/rl.py601CODE
LOWpackages/prime-rl-configs/src/prime_rl/configs/diff.py90CODE
LOW…kages/prime-rl-configs/src/prime_rl/configs/trainer.py361CODE
LOWsrc/prime_rl/monitors/file/traces/update.py67CODE
LOWsrc/prime_rl/monitors/file/traces/live.py105CODE
LOWsrc/prime_rl/transports/payload.py371CODE
LOWsrc/prime_rl/transports/weights/modelexpress.py72CODE
LOWsrc/prime_rl/transports/weights/nccl.py189CODE
LOWsrc/prime_rl/transports/weights/__init__.py22CODE
LOWsrc/prime_rl/transports/weights/__init__.py48CODE
LOWsrc/prime_rl/transports/weights/nixl/agent.py151CODE
LOWsrc/prime_rl/utils/act_offloading.py62CODE
LOWsrc/prime_rl/utils/act_offloading.py136CODE
LOWsrc/prime_rl/utils/nccl.py10CODE
LOWsrc/prime_rl/utils/chat_template.py5CODE
LOWsrc/prime_rl/utils/utils.py81CODE
LOWsrc/prime_rl/utils/record.py36CODE
LOWsrc/prime_rl/dashboard/server.py716CODE
LOWsrc/prime_rl/dashboard/server.py1160CODE
LOWsrc/prime_rl/dashboard/server.py1923CODE
LOWsrc/prime_rl/dashboard/server.py1995CODE
LOWsrc/prime_rl/entrypoints/rl.py177CODE
LOWsrc/prime_rl/entrypoints/eval.py49CODE
LOWsrc/prime_rl/inference/dynamo.py199CODE
LOWsrc/prime_rl/inference/patches.py794CODE
LOWsrc/prime_rl/inference/patches.py818CODE
LOWsrc/prime_rl/inference/vllm/qwen38_weight_loading.py8CODE
LOWsrc/prime_rl/inference/vllm/qwen38_weight_loading.py23CODE
LOWsrc/prime_rl/inference/vllm/qwen38_weight_loading.py37CODE
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/serving_tokens.py97CODE
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.py172CODE
LOWsrc/prime_rl/eval/resume.py40CODE
LOWsrc/prime_rl/eval/resume.py59CODE
LOWsrc/prime_rl/eval/online.py77CODE
LOWsrc/prime_rl/trainer/model.py437CODE
LOWsrc/prime_rl/trainer/moe_runtime.py98CODE
LOWsrc/prime_rl/trainer/optim/state_offload.py35CODE
LOWsrc/prime_rl/trainer/optim/__init__.py138CODE
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.py152CODE
21 more matches not shown…
Excessive Try-Catch Wrapping35 hits · 40 pts
SeverityFileLineSnippetContext
LOWscripts/chat.py161 except Exception as e:CODE
LOWsrc/prime_rl/monitors/prime.py336 except Exception as e:CODE
LOWsrc/prime_rl/monitors/prime.py385 except Exception as e:CODE
LOWsrc/prime_rl/monitors/prime.py397 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.py144 except Exception as e:CODE
LOWsrc/prime_rl/monitors/wandb/overview.py247 except Exception as e:CODE
LOWsrc/prime_rl/transports/payload.py444 except Exception:CODE
LOWsrc/prime_rl/transports/payload.py475 except Exception:CODE
LOWsrc/prime_rl/transports/weights/modelexpress.py110 except Exception as exc:CODE
LOWsrc/prime_rl/utils/utils.py42 except Exception:CODE
LOWsrc/prime_rl/utils/utils.py61 except Exception:CODE
MEDIUMsrc/prime_rl/utils/utils.py37def async_wrapper(*args, **kwargs):CODE
MEDIUMsrc/prime_rl/utils/utils.py56def sync_wrapper(*args, **kwargs):CODE
LOWsrc/prime_rl/dashboard/server.py1720 except Exception:CODE
LOWsrc/prime_rl/dashboard/server.py1775 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.py18except Exception: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.py145 except Exception as exc:CODE
LOWsrc/prime_rl/orchestrator/clients.py101 except Exception as error:CODE
LOWsrc/prime_rl/orchestrator/clients.py418 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 Patterns38 hits · 38 pts
SeverityFileLineSnippetContext
LOWtests/unit/orchestrator/test_metrics.py14CODE
LOWsrc/prime_rl/monitors/__init__.py48CODE
LOWsrc/prime_rl/utils/pathing.py103CODE
LOWsrc/prime_rl/dashboard/server.py1549CODE
LOWsrc/prime_rl/dashboard/server.py1597CODE
LOWsrc/prime_rl/trainer/model.py936CODE
LOW…prime_rl/trainer/models/laguna/configuration_laguna.py38CODE
LOWsrc/prime_rl/trainer/models/laguna/modeling_laguna.py357CODE
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.py168CODE
LOW…ime_rl/trainer/models/gpt_oss/configuration_gpt_oss.py33CODE
LOWsrc/prime_rl/trainer/models/layers/lm_head.py462CODE
LOW…/trainer/models/minimax_m2/configuration_minimax_m2.py64CODE
LOW…me_rl/trainer/models/minimax_m2/modeling_minimax_m2.py198CODE
LOW…/trainer/models/nemotron_h/configuration_nemotron_h.py14CODE
LOW…rl/trainer/models/glm5_next/configuration_glm5_next.py10CODE
LOWsrc/prime_rl/trainer/models/qwen3/modeling_qwen3.py206CODE
LOW…rainer/models/deepseek_v4/configuration_deepseek_v4.py103CODE
LOW…_rl/trainer/models/deepseek_v4/modeling_deepseek_v4.py278CODE
LOW…_rl/trainer/models/glm_moe_dsa/modeling_glm_moe_dsa.py271CODE
LOW…rainer/models/glm_moe_dsa/configuration_glm_moe_dsa.py119CODE
LOW…qwen3_8_flash_next/configuration_qwen3_8_flash_next.py10CODE
LOW…qwen3_8_flash_next/configuration_qwen3_8_flash_next.py132CODE
LOW…dels/qwen3_8_flash_next/modeling_qwen3_8_flash_next.py349CODE
LOW…iner/models/muse_glimmer/configuration_muse_glimmer.py9CODE
LOW…l/trainer/models/muse_glimmer/modeling_muse_glimmer.py251CODE
LOW…c/prime_rl/trainer/models/afmoe/configuration_afmoe.py18CODE
LOWsrc/prime_rl/trainer/models/afmoe/modeling_afmoe.py416CODE
LOW…/prime_rl/trainer/models/glm4_moe/modeling_glm4_moe.py240CODE
LOW…e_rl/trainer/models/glm4_moe/configuration_glm4_moe.py138CODE
LOWsrc/prime_rl/trainer/models/qwen3_5/modeling_qwen3_5.py315CODE
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.py226CODE
LOW…rime_rl/trainer/models/qwen3_moe/modeling_qwen3_moe.py242CODE
LOW…rl/trainer/models/qwen3_moe/configuration_qwen3_moe.py142CODE
LOWsrc/prime_rl/trainer/sft/data.py267CODE
Modern AI Meta-Vocabulary11 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md333. Native integration with [`verifiers`](https://github.com/PrimeIntellect-ai/verifiers) environments through the [EnvirCODE
MEDIUM⚡tests/unit/orchestrator/test_algorithms.py451 # template scaffold (False), the second is message body (True). Only the bodyCOMMENT
MEDIUM⚡tests/unit/orchestrator/test_algorithms.py452 # token gets the role weight — the scaffold is excluded (content granularity).COMMENT
MEDIUMtests/unit/orchestrator/test_algorithms.py480 # Only position 5 (the body token) is weighted; the scaffold token at position 4 is not.COMMENT
MEDIUMdocs/inference.md31- [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
MEDIUMexamples/advanced/glm-4.5-air/ipo-ablation/base.toml1# IPO vs IcePop ablation on GLM-4.5-Air agentic SWE RL (see docs/ipo.md). Shared base: compose with oneCOMMENT
MEDIUMsrc/prime_rl/trainer/sft/data.py358 # scaffolding (e.g. <|im_start|>assistant) the harness emits.COMMENT
MEDIUMsrc/prime_rl/trainer/sft/data.py466 # If processed example is None, skip it (e.g. if tokenized sample exceeds context window)COMMENT
Over-Commented Block27 hits · 27 pts
SeverityFileLineSnippetContext
LOWtests/unit/train/models/test_deepseek_v4.py421 # The compress branch runs a different base, so it must not collapse onto `main`.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[[orchestrator.train.source]]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
LOWexamples/advanced/qwen3-235b-a22b/sft-max-perf.toml1# SFT max trainer perf: Qwen3-235B-A22B on 4 nodes x 8 B300 at seq 16k.COMMENT
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
LOWconfigs/advanced/deepseek-v4-flash/swe_mxfp8.toml1# DeepSeek-V4-Flash RL on the `scaleswe` SWE taskset at 131k context, with online MXFP8 vLLMCOMMENT
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.py141COMMENT
LOWsrc/prime_rl/_compat.py1"""Compatibility shims for upstream regressions.COMMENT
LOWsrc/prime_rl/utils/act_offloading.py301 # Note: [Track views of the unpacked]COMMENT
LOWsrc/prime_rl/dashboard/static/style.css761 gap: 8px;COMMENT
LOWsrc/prime_rl/dashboard/static/style.css1801#tm-live-label { margin-left: 8px; }COMMENT
LOWsrc/prime_rl/trainer/ckpt.py121COMMENT
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.py741 """`packed` carries the document boundaries every pathway below is clipped at."""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.py521def _is_retryable_lora_error(exception: BaseException) -> bool: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.py261 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.py172 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
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.py231 # Create the iterator only after a potential resume: iter() forks workers with aCOMMENT
Redundant / Tautological Comments5 hits · 8 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/tests.yml42 # Set WANDB_MODE to online only if WANDB_API_KEY is available, otherwise set to offlineCOMMENT
LOWsrc/prime_rl/trainer/lora.py112 # Check if module is Linear or a supported expert classCOMMENT
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.md119For 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.py101 """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.md49- 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.py183 """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