Agentic RL Training at Scale
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 917 finding(s).
Are imports declared and package/API names verified? 216 finding(s).
Are wrappers, guards, and repeated structures necessary? 978 finding(s).
Which changes need focused human review? 1350 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/utils.py | 24 | def check_number_goes_up_or_down( | CODE |
| LOW | tests/utils.py | 110 | def check_final_eval_reward_above(lines: list[str], env_name: str, min_threshold: float): | CODE |
| LOW | tests/utils.py | 145 | def check_avg_reward_in_range( | CODE |
| LOW | tests/utils.py | 178 | def check_avg_mismatch_kl_in_range( | CODE |
| LOW | tests/utils.py | 211 | def check_mismatch_kl_in_range( | CODE |
| LOW⚡ | tests/unit/test_configs.py | 154 | def test_toml_partial_nested_override(tmp_path): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 163 | def test_toml_discriminated_union_default_type(tmp_path): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 172 | def test_toml_discriminated_union_switch_variant(tmp_path): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 205 | def test_toml_discriminated_union_override_switch_variant(tmp_path): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 213 | def test_cli_overrides_defaults(): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 221 | def test_toml_overrides_defaults(tmp_path): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 317 | def test_moe_compute_apply_to(backend, selection, num_layers, selected): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 324 | def test_moe_compute_rejects_invalid_apply_to(selection): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 329 | def test_moe_compute_rejects_out_of_range_layer(): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 336 | def test_moe_compute_apply_to_cli(selection, selected): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 422 | def test_removed_moe_runtime_fields_are_rejected(removed): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 428 | def test_optimizer_state_offload_keeps_legacy_default(config_cls): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 434 | def test_freeze_moe_router_auto_resolves_per_trainer(): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 1116 | def test_orchestrator_renderer_auto_rejects_unmapped_model(): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 1122 | def test_orchestrator_renderer_auto_accepts_mapped_model(): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 1129 | def test_sft_renderer_auto_accepts_prime_qwen_model(): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 1134 | def test_sft_rejects_default_renderer_for_real_data(): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 1139 | def test_sft_allows_unused_default_renderer_for_fake_data(): | CODE |
| LOW⚡ | tests/unit/test_configs.py | 1149 | def test_orchestrator_explicit_renderer_skips_unmapped_check(): | CODE |
| LOW | tests/unit/test_configs.py | 126 | def test_rl_launcher_config_roundtrip(tmp_path): | CODE |
| LOW | tests/unit/test_configs.py | 190 | def test_length_penalty_variants_are_opt_in(tmp_path, penalty, expected_type): | CODE |
| LOW | tests/unit/test_configs.py | 240 | def test_removed_fused_lm_head_chunk_size_field_is_rejected(): | CODE |
| LOW | tests/unit/test_configs.py | 245 | def test_icepop_is_an_optional_loss_with_validated_ratio_bounds(): | CODE |
| LOW | tests/unit/test_configs.py | 268 | def test_moe_runtime_defaults_are_independent_from_dense_quantization(): | CODE |
| LOW | tests/unit/test_configs.py | 298 | def test_supported_moe_runtime_configs(model): | CODE |
| LOW | tests/unit/test_configs.py | 366 | def test_invalid_moe_runtime_configs_fail(model, message): | CODE |
| LOW | tests/unit/test_configs.py | 372 | def test_mega_moe_buffer_defaults_to_a_cp_shard(cp, expected): | CODE |
| LOW | tests/unit/test_configs.py | 399 | def test_mega_moe_buffer_smaller_than_a_cp_shard_fails(): | CODE |
| LOW | tests/unit/test_configs.py | 445 | def test_full_optimizer_offload_disables_gradient_clipping(config_cls): | CODE |
| LOW | tests/unit/test_configs.py | 458 | def test_full_optimizer_offload_requires_supported_optimizer(config_cls): | CODE |
| LOW | tests/unit/test_configs.py | 469 | def test_full_optimizer_offload_accepts_sign_sgd(config_cls): | CODE |
| LOW | tests/unit/test_configs.py | 480 | def test_resolved_json_roundtrips_explicit_none(tmp_path): | CODE |
| LOW | tests/unit/test_configs.py | 516 | def test_client_defaults_survive_partial_overrides( | CODE |
| LOW | tests/unit/test_configs.py | 527 | def test_env_algo_inherits_the_group_algo(): | CODE |
| LOW | tests/unit/test_configs.py | 557 | def test_sources_inherit_the_group_fields_they_leave_unset( | CODE |
| LOW | tests/unit/test_configs.py | 621 | def test_train_sources_can_use_their_own_group_sizes(): | CODE |
| LOW | tests/unit/test_configs.py | 647 | def test_group_defaults_match_source_defaults(group): | CODE |
| LOW | tests/unit/test_configs.py | 659 | def test_policy_sources_accept_different_top_p_values(): | CODE |
| LOW | tests/unit/test_configs.py | 712 | def test_policy_sampling_is_validated_before_rollouts(sampling, agent_sampling, rejected, frozen): | CODE |
| LOW | tests/unit/test_configs.py | 730 | def test_policy_sources_reject_mixed_top_k_capture(): | CODE |
| LOW | tests/unit/test_configs.py | 753 | def test_single_node_auto_inference_ports_follow_server_port(): | CODE |
| LOW | tests/unit/test_configs.py | 776 | def test_single_node_nccl_resolved_json_roundtrips(tmp_path): | CODE |
| LOW | tests/unit/test_configs.py | 795 | def test_multi_node_auto_inference_parallelism(): | CODE |
| LOW | tests/unit/test_configs.py | 816 | def test_disaggregated_inference_inherits_deployment_gpus_per_node(): | CODE |
| LOW | tests/unit/test_configs.py | 834 | def test_ac_none_disables_ac_offloading(): | CODE |
| LOW | tests/unit/test_configs.py | 840 | def test_shared_model_name_propagates_to_subconfigs(): | CODE |
| LOW | tests/unit/test_configs.py | 857 | def test_shared_tokenizer_propagates_when_subconfigs_unset(): | CODE |
| LOW | tests/unit/test_configs.py | 870 | def test_shared_and_sub_tokenizer_name_conflict_raises(): | CODE |
| LOW | tests/unit/test_configs.py | 885 | def test_tokenizer_name_falls_back_to_model_name_when_unset(): | CODE |
| LOW | tests/unit/test_configs.py | 900 | def test_explicit_subconfig_tokenizer_name_survives_shared_model_propagation(): | CODE |
| LOW | tests/unit/test_configs.py | 933 | def test_tokenizer_chat_template_mismatch_raises(): | CODE |
| LOW | tests/unit/test_configs.py | 943 | def test_shared_seq_len_propagates_to_subconfigs(): | CODE |
| LOW | tests/unit/test_configs.py | 955 | def test_shared_and_sub_seq_len_conflict_raises(): | CODE |
| LOW | tests/unit/test_configs.py | 969 | def test_shared_and_sub_model_name_conflict_raises(): | CODE |
| LOW | tests/unit/test_configs.py | 981 | def test_shared_and_sub_max_steps_conflict_raises(): | CODE |
| 663 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/train/test_model.py | 24 | CODE | |
| LOW | tests/unit/train/models/test_deepseek_v4_kernels.py | 186 | CODE | |
| LOW | tests/unit/inference/test_serving_tokens.py | 15 | CODE | |
| LOW | tests/unit/orchestrator/test_qwen3_vl_e2e.py | 3 | CODE | |
| LOW | packages/prime-rl-configs/src/prime_rl/utils/config.py | 6 | CODE | |
| LOW | packages/prime-rl-configs/src/prime_rl/utils/config.py | 7 | CODE | |
| LOW | packages/prime-rl-configs/src/prime_rl/utils/config.py | 10 | CODE | |
| LOW | …ages/prime-rl-configs/src/prime_rl/utils/validation.py | 1 | CODE | |
| LOW | packages/prime-rl-configs/src/prime_rl/configs/rl.py | 12 | CODE | |
| LOW | src/prime_rl/monitors/prime.py | 1 | CODE | |
| LOW | src/prime_rl/monitors/__init__.py | 9 | CODE | |
| LOW | src/prime_rl/monitors/base.py | 1 | CODE | |
| LOW | src/prime_rl/monitors/file/monitor.py | 1 | CODE | |
| LOW | src/prime_rl/monitors/file/__init__.py | 1 | CODE | |
| LOW | src/prime_rl/monitors/file/traces/live.py | 15 | CODE | |
| LOW | src/prime_rl/monitors/wandb/monitor.py | 1 | CODE | |
| LOW | src/prime_rl/monitors/wandb/__init__.py | 1 | CODE | |
| LOW | src/prime_rl/monitors/wandb/overview.py | 13 | CODE | |
| LOW | src/prime_rl/transports/payload.py | 18 | CODE | |
| LOW | src/prime_rl/transports/weights/__init__.py | 9 | CODE | |
| LOW | …prime_rl/transports/weights/nixl/cuda_malloc_memory.py | 3 | CODE | |
| LOW | …ime_rl/transports/weights/nixl/trainer_tensor_table.py | 3 | CODE | |
| LOW | src/prime_rl/transports/weights/nixl/tensor_routing.py | 3 | CODE | |
| LOW | src/prime_rl/transports/weights/nixl/graph.py | 3 | CODE | |
| LOW | src/prime_rl/transports/weights/nixl/model_express.py | 3 | CODE | |
| LOW | src/prime_rl/transports/weights/nixl/__init__.py | 3 | CODE | |
| LOW | src/prime_rl/transports/weights/nixl/__init__.py | 3 | CODE | |
| LOW | src/prime_rl/transports/weights/nixl/agent.py | 3 | CODE | |
| LOW | src/prime_rl/transports/weights/nixl/nixl.py | 3 | CODE | |
| LOW | src/prime_rl/transports/batch/__init__.py | 9 | CODE | |
| LOW | src/prime_rl/transports/batch/__init__.py | 9 | CODE | |
| LOW | src/prime_rl/transports/batch/__init__.py | 9 | CODE | |
| LOW | src/prime_rl/transports/batch/__init__.py | 9 | CODE | |
| LOW | src/prime_rl/transports/batch/__init__.py | 9 | CODE | |
| LOW | src/prime_rl/transports/batch/__init__.py | 9 | CODE | |
| LOW | src/prime_rl/utils/async_utils.py | 1 | CODE | |
| LOW | src/prime_rl/utils/sequence.py | 1 | CODE | |
| LOW | src/prime_rl/utils/cp.py | 1 | CODE | |
| LOW | src/prime_rl/inference/dynamo.py | 1 | CODE | |
| LOW | src/prime_rl/inference/vllm/server.py | 195 | CODE | |
| LOW | src/prime_rl/inference/vllm/routed_experts.py | 1 | CODE | |
| LOW | src/prime_rl/inference/vllm/serving_tokens.py | 26 | CODE | |
| LOW | src/prime_rl/inference/vllm/worker/nixl.py | 3 | CODE | |
| LOW | src/prime_rl/eval/resume.py | 14 | CODE | |
| LOW | src/prime_rl/eval/online.py | 13 | CODE | |
| LOW | src/prime_rl/eval/eval.py | 9 | CODE | |
| LOW | src/prime_rl/control/types.py | 1 | CODE | |
| LOW | src/prime_rl/trainer/utils.py | 27 | CODE | |
| LOW | src/prime_rl/trainer/scheduler.py | 1 | CODE | |
| LOW | src/prime_rl/trainer/distributed/deepep.py | 1 | CODE | |
| LOW | src/prime_rl/trainer/distributed/__init__.py | 1 | CODE | |
| LOW | src/prime_rl/trainer/optim/__init__.py | 11 | CODE | |
| LOW | src/prime_rl/trainer/models/conversion_ops.py | 35 | CODE | |
| LOW | src/prime_rl/trainer/models/__init__.py | 20 | CODE | |
| LOW | src/prime_rl/trainer/models/__init__.py | 20 | CODE | |
| LOW | src/prime_rl/trainer/models/laguna/__init__.py | 1 | CODE | |
| LOW | src/prime_rl/trainer/models/laguna/__init__.py | 2 | CODE | |
| LOW | src/prime_rl/trainer/models/laguna/__init__.py | 2 | CODE | |
| LOW | src/prime_rl/trainer/models/laguna/__init__.py | 2 | CODE | |
| LOW | src/prime_rl/trainer/models/laguna/converting_laguna.py | 20 | CODE | |
| 146 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/docker_application.py | 26 | def set_fallback_version(pyproject: Path, version: str) -> None: | CODE |
| LOW | …/prime-rl-configs/src/prime_rl/configs/orchestrator.py | 671 | def update_policy_samplings(self, update: Callable[[TrainSamplingConfig], TrainSamplingConfig]) -> None: | CODE |
| LOW | src/prime_rl/monitors/prime.py | 52 | def update_platform_record(output_dir: Path, update: dict[str, Any]) -> None: | CODE |
| LOW | src/prime_rl/monitors/__init__.py | 32 | __all__ = [ | CODE |
| LOW | src/prime_rl/monitors/file/__init__.py | 3 | __all__ = ["FileMonitor"] | CODE |
| LOW | src/prime_rl/monitors/file/traces/__init__.py | 33 | __all__ = ["get_annotations_dir", "get_index_path", "get_trace_dir", "get_trace_stream"] | CODE |
| LOW | src/prime_rl/monitors/wandb/__init__.py | 3 | __all__ = ["WandbMonitor"] | CODE |
| LOW | src/prime_rl/transports/weights/__init__.py | 13 | __all__ = [ | CODE |
| LOW | src/prime_rl/transports/weights/nixl/__init__.py | 5 | __all__ = ["NIXLWeightReceiver", "NIXLWeightSender"] | CODE |
| LOW | src/prime_rl/transports/weights/nixl/agent.py | 151 | def set_ucx_env_defaults(device_index: int) -> None: | CODE |
| LOW | src/prime_rl/transports/batch/__init__.py | 45 | __all__ = [ | CODE |
| LOW | src/prime_rl/utils/record.py | 63 | def update_record(path: Path, merge: Callable[[dict[str, Any]], dict[str, Any]]) -> None: | CODE |
| LOW | src/prime_rl/utils/process.py | 96 | def set_proc_title(name: str) -> None: | CODE |
| LOW | src/prime_rl/entrypoints/eval.py | 38 | def set_nested(target: dict[str, Any], keys: list[str], value: Any) -> None: | STRING |
| LOW | src/prime_rl/inference/vllm/worker/modelexpress.py | 66 | def update_weights_from_modelexpress(self, version_uid: str) -> None: | CODE |
| LOW | src/prime_rl/inference/vllm/worker/nccl.py | 134 | def update_weights_from_path(self, weight_dir: str) -> None: | CODE |
| LOW | src/prime_rl/inference/vllm/worker/filesystem.py | 24 | def update_weights_from_path(self, weight_path: str) -> None: | CODE |
| LOW | src/prime_rl/inference/vllm/worker/weight_transfer.py | 27 | def update_mla_absorbed_weights(model: Module) -> None: | CODE |
| LOW | src/prime_rl/inference/vllm/worker/nixl.py | 477 | def update_weights_from_path(self, weight_dir: str | None = None) -> None: | CODE |
| LOW | src/prime_rl/trainer/activation_checkpointing.py | 136 | __all__ = [ | CODE |
| LOW | src/prime_rl/trainer/parallel_dims.py | 33 | __all__ = ["ParallelDims"] | CODE |
| LOW | src/prime_rl/trainer/distributed/deepep.py | 471 | __all__ = [ | CODE |
| LOW | src/prime_rl/trainer/distributed/ngram_lookup.py | 75 | __all__ = ["LocalLookup", "NGramLookup", "RowShardedLookup", "count_ids_per_rank"] | CODE |
| LOW | src/prime_rl/trainer/distributed/collectives.py | 268 | __all__ = [ | CODE |
| LOW | src/prime_rl/trainer/distributed/__init__.py | 3 | __all__ = ["ExpertWeightParallel"] | CODE |
| LOW | src/prime_rl/trainer/models/__init__.py | 139 | __all__ = [ | CODE |
| LOW | src/prime_rl/trainer/models/base.py | 191 | __all__ = ["PreTrainedModelPrimeRL"] | CODE |
| LOW | src/prime_rl/trainer/models/laguna/__init__.py | 8 | __all__ = [ | CODE |
| LOW | …prime_rl/trainer/models/laguna/configuration_laguna.py | 194 | __all__ = ["LagunaConfig"] | CODE |
| LOW | src/prime_rl/trainer/models/laguna/modeling_laguna.py | 418 | __all__ = [ | CODE |
| LOW | src/prime_rl/trainer/models/gpt_oss/attention.py | 145 | __all__ = [ | CODE |
| LOW | src/prime_rl/trainer/models/gpt_oss/modeling_gpt_oss.py | 213 | __all__ = [ | CODE |
| LOW | src/prime_rl/trainer/models/gpt_oss/__init__.py | 8 | __all__ = [ | CODE |
| LOW | …ime_rl/trainer/models/gpt_oss/configuration_gpt_oss.py | 112 | __all__ = ["GptOssConfig"] | CODE |
| LOW | src/prime_rl/trainer/models/layers/ngram.py | 30 | def set_lookup(self, lookup: NGramLookup) -> None: | CODE |
| LOW | src/prime_rl/trainer/models/layers/ngram.py | 33 | def set_layout(self, multipliers: list[int], sizes: list[int], offsets: list[int]) -> None: | CODE |
| LOW | src/prime_rl/trainer/models/layers/ngram.py | 184 | __all__ = [ | CODE |
| LOW | src/prime_rl/trainer/models/layers/gated_delta_net.py | 132 | __all__ = ["GatedDeltaNet"] | CODE |
| LOW | src/prime_rl/trainer/models/layers/moe.py | 106 | def set_compute(self, compute: ExpertCompute | FusedDispatchExpertCompute) -> None: | CODE |
| LOW | src/prime_rl/trainer/models/layers/moe.py | 343 | def set_token_dispatcher(self, token_dispatcher: TokenDispatcher) -> None: | CODE |
| LOW | src/prime_rl/trainer/models/layers/lora/__init__.py | 5 | __all__ = ["LoRAModule", "LoRALinear", "LoRAGroupedExperts", "LoRAGptOssGroupedExperts"] | CODE |
| LOW | src/prime_rl/trainer/models/minimax_m2/__init__.py | 8 | __all__ = [ | CODE |
| LOW | …me_rl/trainer/models/minimax_m2/modeling_minimax_m2.py | 268 | __all__ = [ | STRING |
| LOW | …/trainer/models/nemotron_h/configuration_nemotron_h.py | 140 | __all__ = ["NemotronHConfig"] | CODE |
| LOW | …_rl/trainer/models/nemotron_h/converting_nemotron_h.py | 55 | __all__ = ["conversion_chain", "is_hf_state_dict", "is_prime_state_dict"] | CODE |
| LOW | src/prime_rl/trainer/models/nemotron_h/mamba.py | 249 | __all__ = [ | CODE |
| LOW | src/prime_rl/trainer/models/nemotron_h/__init__.py | 8 | __all__ = [ | CODE |
| LOW | …me_rl/trainer/models/nemotron_h/modeling_nemotron_h.py | 236 | __all__ = [ | CODE |
| LOW | …rl/trainer/models/glm5_next/configuration_glm5_next.py | 155 | __all__ = ["Glm5NextConfig", "Glm5NextTextConfig"] | CODE |
| LOW | …/prime_rl/trainer/models/glm5_next/sparse_attention.py | 255 | __all__ = ["KPoolIndexer", "PoolLayout", "SparseMlaAttention", "hadamard_128"] | CODE |
| LOW | src/prime_rl/trainer/models/glm5_next/__init__.py | 9 | __all__ = [ | CODE |
| LOW | …me_rl/trainer/models/glm5_next/converting_glm5_next.py | 39 | __all__ = ["conversion_chain", "is_hf_state_dict", "is_prime_state_dict"] | CODE |
| LOW | …rime_rl/trainer/models/glm5_next/modeling_glm5_next.py | 197 | def set_input_embeddings(self, embeddings: nn.Embedding) -> None: | CODE |
| LOW | …rime_rl/trainer/models/glm5_next/modeling_glm5_next.py | 251 | def set_input_embeddings(self, embeddings: nn.Embedding) -> None: | CODE |
| LOW | …rime_rl/trainer/models/glm5_next/modeling_glm5_next.py | 290 | def set_input_embeddings(self, embeddings: nn.Embedding) -> None: | CODE |
| LOW | …rime_rl/trainer/models/glm5_next/modeling_glm5_next.py | 334 | __all__ = [ | CODE |
| LOW | …/prime_rl/trainer/models/glm5_next/linear_attention.py | 129 | __all__ = ["KimiDeltaAttention"] | CODE |
| LOW | src/prime_rl/trainer/models/qwen3/__init__.py | 3 | __all__ = ["Qwen3ForCausalLM", "Qwen3Model", "Qwen3PreTrainedModel"] | CODE |
| LOW | src/prime_rl/trainer/models/qwen3/modeling_qwen3.py | 266 | __all__ = ["Qwen3ForCausalLM", "Qwen3Model", "Qwen3PreTrainedModel"] | STRING |
| LOW | src/prime_rl/trainer/models/deepseek_v4/attention.py | 829 | __all__ = [ | CODE |
| 54 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/unit/orchestrator/test_advantage.py | 172 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/orchestrator/test_advantage.py | 174 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/orchestrator/test_advantage.py | 229 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/orchestrator/test_advantage.py | 231 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/orchestrator/test_advantage.py | 383 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/orchestrator/test_advantage.py | 385 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/orchestrator/test_algorithms.py | 91 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/orchestrator/test_algorithms.py | 97 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/orchestrator/test_algorithms.py | 359 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unit/orchestrator/test_algorithms.py | 366 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ges/prime-rl-configs/src/prime_rl/configs/algorithm.py | 71 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ges/prime-rl-configs/src/prime_rl/configs/algorithm.py | 73 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ges/prime-rl-configs/src/prime_rl/configs/algorithm.py | 84 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ges/prime-rl-configs/src/prime_rl/configs/algorithm.py | 86 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ges/prime-rl-configs/src/prime_rl/configs/algorithm.py | 161 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ges/prime-rl-configs/src/prime_rl/configs/algorithm.py | 163 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/prime_rl/_compat.py | 7 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/prime_rl/_compat.py | 20 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/prime_rl/trainer/models/kernels/fp8_utils.py | 27 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/prime_rl/trainer/models/kernels/fp8_utils.py | 29 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | src/prime_rl/trainer/models/kernels/fp8_utils.py | 85 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | src/prime_rl/trainer/models/kernels/fp8_utils.py | 87 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/prime_rl/trainer/models/kernels/fp8_utils.py | 329 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/prime_rl/trainer/models/kernels/fp8_utils.py | 331 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/prime_rl/orchestrator/dispatcher.py | 310 | # ── lifecycle ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/prime_rl/orchestrator/dispatcher.py | 860 | # ── metrics ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/prime_rl/orchestrator/concurrency.py | 167 | # ── inbound hooks ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/prime_rl/orchestrator/concurrency.py | 320 | # ── internals ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/prime_rl/orchestrator/concurrency.py | 354 | # ── observability ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/prime_rl/orchestrator/orchestrator.py | 200 | # ── lifecycle ────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/integration/test_reverse_text_rl_sft.py | 40 | except (httpx.ConnectError, httpx.ReadTimeout): | CODE |
| HIGH | tests/integration/test_reverse_text_rl_opd.py | 41 | except (httpx.ConnectError, httpx.ReadTimeout): | CODE |
| HIGH | …ges/prime-rl-configs/src/prime_rl/configs/inference.py | 130 | except json.JSONDecodeError: | CODE |
| HIGH | src/prime_rl/transports/payload.py | 444 | except Exception: | CODE |
| HIGH | src/prime_rl/transports/payload.py | 475 | except Exception: | CODE |
| HIGH | …prime_rl/transports/weights/nixl/cuda_malloc_memory.py | 12 | except OSError: | CODE |
| HIGH | src/prime_rl/utils/async_utils.py | 16 | except BaseException: | CODE |
| HIGH | src/prime_rl/dashboard/server.py | 2216 | except OSError: | CODE |
| HIGH | src/prime_rl/entrypoints/rl.py | 98 | except OSError: | CODE |
| HIGH | src/prime_rl/trainer/models/kernels/sparse_mla_bwd.py | 12 | except Exception: | CODE |
| HIGH | src/prime_rl/trainer/models/kernels/sparse_mla_fwd.py | 12 | except Exception: | CODE |
| HIGH | …ner/models/kernels/deepseek_v4/dsv4_sparse_attn_bwd.py | 88 | except Exception: | CODE |
| HIGH | …ner/models/kernels/deepseek_v4/dsv4_sparse_attn_fwd.py | 114 | except Exception: | CODE |
| HIGH | …trainer/models/kernels/deepseek_v4/dsv4_sparse_attn.py | 18 | except Exception: | CODE |
| HIGH | src/prime_rl/orchestrator/dispatcher.py | 324 | except asyncio.TimeoutError: | CODE |
| HIGH | src/prime_rl/orchestrator/envs.py | 55 | except FileNotFoundError: | CODE |
| HIGH | src/prime_rl/orchestrator/inference_metrics.py | 456 | except asyncio.CancelledError: | CODE |
| HIGH | src/prime_rl/orchestrator/periodic_logger.py | 38 | except asyncio.TimeoutError: | CODE |
| HIGH | src/prime_rl/orchestrator/orchestrator.py | 518 | except asyncio.TimeoutError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/unit/train/models/test_deepseek_v4_kernels.py | 0 | bound the largest absolute deviation by `rtol` times the reference's own scale. | STRING |
| HIGH | tests/unit/train/models/test_deepseek_v4.py | 0 | bound the largest absolute deviation by `rtol` times the reference's own scale. | STRING |
| HIGH | tests/unit/train/models/test_fp8_grouped_gemm.py | 0 | bound the largest absolute deviation by `rtol` times the reference's own scale. | STRING |
| HIGH | packages/prime-rl-configs/src/prime_rl/configs/rl.py | 0 | run metadata. ``run.name`` names the run directory under ``output_dir``. | STRING |
| HIGH | packages/prime-rl-configs/src/prime_rl/configs/sft.py | 0 | run metadata. ``run.name`` names the run directory under ``output_dir``. | STRING |
| HIGH | packages/prime-rl-configs/src/prime_rl/configs/eval.py | 0 | run metadata. ``run.name`` names the run directory under ``output_dir``. | STRING |
| HIGH | packages/prime-rl-configs/src/prime_rl/configs/rl.py | 0 | delete the run directory (``output_dir / run.name``) before starting. required to overwrite a run directory that contain | STRING |
| HIGH | packages/prime-rl-configs/src/prime_rl/configs/sft.py | 0 | delete the run directory (``output_dir / run.name``) before starting. required to overwrite a run directory that contain | STRING |
| HIGH | packages/prime-rl-configs/src/prime_rl/configs/eval.py | 0 | delete the run directory (``output_dir / run.name``) before starting. required to overwrite a run directory that contain | STRING |
| HIGH | packages/prime-rl-configs/src/prime_rl/configs/rl.py | 0 | only validate and dump resolved configs, then exit early. | STRING |
| HIGH | …ges/prime-rl-configs/src/prime_rl/configs/inference.py | 0 | only validate and dump resolved configs, then exit early. | STRING |
| HIGH | packages/prime-rl-configs/src/prime_rl/configs/sft.py | 0 | only validate and dump resolved configs, then exit early. | STRING |
| HIGH | …/prime-rl-configs/src/prime_rl/configs/orchestrator.py | 0 | metric monitors (``monitors.wandb``, ``monitors.file``, ``monitors.prime``). | STRING |
| HIGH | packages/prime-rl-configs/src/prime_rl/configs/sft.py | 0 | metric monitors (``monitors.wandb``, ``monitors.file``, ``monitors.prime``). | STRING |
| HIGH | packages/prime-rl-configs/src/prime_rl/configs/eval.py | 0 | metric monitors (``monitors.wandb``, ``monitors.file``, ``monitors.prime``). | STRING |
| HIGH | …me_rl/trainer/models/minimax_m2/modeling_minimax_m2.py | 0 | routed_experts (`torch.longtensor` of shape `(batch_size, sequence_length, num_hidden_layers, num_experts_per_tok)`, *op | STRING |
| HIGH | …/prime_rl/trainer/models/glm4_moe/modeling_glm4_moe.py | 0 | routed_experts (`torch.longtensor` of shape `(batch_size, sequence_length, num_hidden_layers, num_experts_per_tok)`, *op | STRING |
| HIGH | …rime_rl/trainer/models/qwen3_moe/modeling_qwen3_moe.py | 0 | routed_experts (`torch.longtensor` of shape `(batch_size, sequence_length, num_hidden_layers, num_experts_per_tok)`, *op | STRING |
| HIGH | …_rl/trainer/models/glm_moe_dsa/modeling_glm_moe_dsa.py | 0 | routed_experts (`torch.longtensor` of shape `(batch_size, sequence_length, num_hidden_layers, num_experts_per_tok)`, *op | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/regression/configs/eval/gsm8k.toml | 2 | # each, with the null harness (one chat completion per task, no sandbox) against | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/swe-budget.toml | 1 | # v1 RL: GLM-4.5-Air (100B MoE) on the v1 `scaleswe` SWE taskset, bash harness on a prime sandbox | COMMENT |
| MEDIUM⚡ | examples/advanced/glm-4.5-air/terminal.toml | 2 | # run through the rlm harness (ipython-only) on a prime sandbox. Each task ships its own Docker image | COMMENT |
| MEDIUM⚡ | examples/advanced/glm-4.5-air/terminal.toml | 12 | # Clean up this run's orphaned prime sandboxes before launch (hardcoded label, matches the harness labels below). | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/terminal.toml | 88 | # # Metric-only monitors (weight 0): rlm harness-mechanics + swe code-usage rubrics, judged by GLM-5.2. | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/swe.toml | 1 | # v1 RL: GLM-4.5-Air (100B MoE) on the v1 `scaleswe` SWE taskset, bash harness on a prime sandbox | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/swe.toml | 25 | # Clean up this run's orphaned prime sandboxes before launch (hardcoded label, matches the harness labels below). | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/swe.toml | 94 | # --- Eval: SWE-Bench Verified at step 0 + every 20 steps, bash harness on prime --- | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/search.toml | 2 | # through the rlm harness (its built-in `search` skill) on a prime sandbox. GRPO + linear length | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/search.toml | 11 | # Clean up this run's orphaned prime sandboxes before launch (hardcoded label, matches the harness labels below). | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/search.toml | 99 | # # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2. | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/search.toml | 123 | # # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2. | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/search.toml | 148 | # # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2. | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/swe-2-node.toml | 13 | # Clean up this run's orphaned prime sandboxes before launch (hardcoded label, matches the harness labels below). | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/swe-2-node.toml | 31 | # --- Eval: SWE-Bench Verified at step 0 + every 20 steps, bash harness on prime --- | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/swe-4-node.toml | 14 | # Clean up this run's orphaned prime sandboxes before launch (hardcoded label, matches the harness labels below). | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/swe-4-node.toml | 32 | # --- Eval: SWE-Bench Verified at step 0 + every 20 steps, bash harness on prime --- | COMMENT |
| MEDIUM | examples/extra/vlm/rl-qwen3.5.toml | 157 | # Replace color-codeword with your multimodal environment and compatible harness. | COMMENT |
| MEDIUM | examples/extra/vlm/rl-qwen3.8.toml | 163 | # Replace color-codeword with your multimodal environment and compatible harness. | COMMENT |
| MEDIUM | configs/ci/integration/gsm8k-eval.toml | 1 | # CI eval smoke: gsm8k with the null harness in a local subprocess runtime against | COMMENT |
| MEDIUM | configs/debug/eval/tb2.toml | 1 | # Terminal-Bench 2 at avg@4: every task 4 times with the bash harness in prime | COMMENT |
| MEDIUM | configs/debug/eval/single-turn.toml | 1 | # Single env, single turn: gsm8k with the null harness (one chat completion per | COMMENT |
| MEDIUM | configs/debug/eval/multi-turn.toml | 1 | # Single env, multi turn: 16 terminal-bench-2 tasks with the bash harness in | COMMENT |
| MEDIUM | configs/debug/eval/aime2026.toml | 1 | # AIME 2026 at avg@16: every problem 16 times with the null harness (one chat | COMMENT |
| MEDIUM | src/prime_rl/dashboard/static/app.js | 968 | model: "#78f8a5", harness: "#b7a6fa", other: "#2a2a2a", | CODE |
| MEDIUM | src/prime_rl/inference/server.py | 10 | # spawn is more robust in vLLM nightlies and Qwen3-VL (fork can deadlock with multithreaded processes) | COMMENT |
| MEDIUM | src/prime_rl/trainer/sft/data.py | 358 | # scaffolding (e.g. <|im_start|>assistant) the harness emits. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/convert_fp8_to_bf16.py | 41 | CODE | |
| LOW | tests/unit/transports/test_payload.py | 103 | CODE | |
| LOW | tests/unit/transports/test_modelexpress_boundary.py | 22 | CODE | |
| LOW | tests/unit/train/models/test_deepseek_v4_kernels.py | 47 | CODE | |
| LOW | tests/unit/train/models/test_deepseek_v4.py | 101 | CODE | |
| LOW | tests/unit/inference/test_routed_experts.py | 29 | CODE | |
| LOW | tests/integration/dashboard_smoke.py | 92 | CODE | |
| LOW | tests/regression/scripts/eval.py | 112 | CODE | |
| LOW | scripts/chat.py | 15 | CODE | |
| LOW | …ages/prime-rl-configs/src/prime_rl/utils/validation.py | 6 | CODE | |
| LOW | packages/prime-rl-configs/src/prime_rl/configs/rl.py | 601 | CODE | |
| LOW | packages/prime-rl-configs/src/prime_rl/configs/diff.py | 90 | CODE | |
| LOW | …kages/prime-rl-configs/src/prime_rl/configs/trainer.py | 361 | CODE | |
| LOW | src/prime_rl/monitors/file/traces/update.py | 67 | CODE | |
| LOW | src/prime_rl/monitors/file/traces/live.py | 105 | CODE | |
| LOW | src/prime_rl/transports/payload.py | 371 | CODE | |
| LOW | src/prime_rl/transports/weights/modelexpress.py | 72 | CODE | |
| LOW | src/prime_rl/transports/weights/nccl.py | 189 | CODE | |
| LOW | src/prime_rl/transports/weights/__init__.py | 22 | CODE | |
| LOW | src/prime_rl/transports/weights/__init__.py | 48 | CODE | |
| LOW | src/prime_rl/transports/weights/nixl/agent.py | 151 | CODE | |
| LOW | src/prime_rl/utils/act_offloading.py | 62 | CODE | |
| LOW | src/prime_rl/utils/act_offloading.py | 136 | CODE | |
| LOW | src/prime_rl/utils/nccl.py | 10 | CODE | |
| LOW | src/prime_rl/utils/chat_template.py | 5 | CODE | |
| LOW | src/prime_rl/utils/utils.py | 81 | CODE | |
| LOW | src/prime_rl/utils/record.py | 36 | CODE | |
| LOW | src/prime_rl/dashboard/server.py | 716 | CODE | |
| LOW | src/prime_rl/dashboard/server.py | 1160 | CODE | |
| LOW | src/prime_rl/dashboard/server.py | 1923 | CODE | |
| LOW | src/prime_rl/dashboard/server.py | 1995 | CODE | |
| LOW | src/prime_rl/entrypoints/rl.py | 177 | CODE | |
| LOW | src/prime_rl/entrypoints/eval.py | 49 | CODE | |
| LOW | src/prime_rl/inference/dynamo.py | 199 | CODE | |
| LOW | src/prime_rl/inference/patches.py | 794 | CODE | |
| LOW | src/prime_rl/inference/patches.py | 818 | CODE | |
| LOW | src/prime_rl/inference/vllm/qwen38_weight_loading.py | 8 | CODE | |
| LOW | src/prime_rl/inference/vllm/qwen38_weight_loading.py | 23 | CODE | |
| LOW | src/prime_rl/inference/vllm/qwen38_weight_loading.py | 37 | CODE | |
| LOW | src/prime_rl/inference/vllm/gpt_oss_weight_loading.py | 6 | CODE | |
| LOW | src/prime_rl/inference/vllm/gpt_oss_weight_loading.py | 56 | CODE | |
| LOW | src/prime_rl/inference/vllm/gpt_oss_weight_loading.py | 80 | CODE | |
| LOW | src/prime_rl/inference/vllm/serving_tokens.py | 97 | CODE | |
| LOW | src/prime_rl/inference/vllm/worker/nccl.py | 31 | CODE | |
| LOW | src/prime_rl/inference/vllm/worker/nixl.py | 147 | CODE | |
| LOW | src/prime_rl/inference/vllm/worker/nixl.py | 491 | CODE | |
| LOW | src/prime_rl/eval/runner.py | 172 | CODE | |
| LOW | src/prime_rl/eval/resume.py | 40 | CODE | |
| LOW | src/prime_rl/eval/resume.py | 59 | CODE | |
| LOW | src/prime_rl/eval/online.py | 77 | CODE | |
| LOW | src/prime_rl/trainer/model.py | 437 | CODE | |
| LOW | src/prime_rl/trainer/moe_runtime.py | 98 | CODE | |
| LOW | src/prime_rl/trainer/optim/state_offload.py | 35 | CODE | |
| LOW | src/prime_rl/trainer/optim/__init__.py | 138 | CODE | |
| LOW | src/prime_rl/trainer/optim/offload.py | 356 | CODE | |
| LOW | src/prime_rl/trainer/models/fusions.py | 204 | CODE | |
| LOW | src/prime_rl/trainer/models/fusions.py | 243 | CODE | |
| LOW | src/prime_rl/trainer/models/fusions.py | 267 | CODE | |
| LOW | src/prime_rl/trainer/models/kernels/sparse_mla_bwd.py | 102 | CODE | |
| LOW | src/prime_rl/trainer/models/kernels/sparse_mla_bwd.py | 152 | CODE | |
| 21 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/chat.py | 161 | except Exception as e: | CODE |
| LOW | src/prime_rl/monitors/prime.py | 336 | except Exception as e: | CODE |
| LOW | src/prime_rl/monitors/prime.py | 385 | except Exception as e: | CODE |
| LOW | src/prime_rl/monitors/prime.py | 397 | except Exception as e: | CODE |
| LOW⚡ | src/prime_rl/monitors/__init__.py | 129 | except Exception as e: | CODE |
| LOW⚡ | src/prime_rl/monitors/__init__.py | 138 | except Exception as e: | CODE |
| LOW⚡ | src/prime_rl/monitors/__init__.py | 147 | except Exception as e: | CODE |
| LOW⚡ | src/prime_rl/monitors/__init__.py | 156 | except Exception as e: | CODE |
| LOW⚡ | src/prime_rl/monitors/__init__.py | 165 | except Exception as e: | CODE |
| LOW⚡ | src/prime_rl/monitors/__init__.py | 174 | except Exception as e: | CODE |
| LOW | src/prime_rl/monitors/wandb/monitor.py | 144 | except Exception as e: | CODE |
| LOW | src/prime_rl/monitors/wandb/overview.py | 247 | except Exception as e: | CODE |
| LOW | src/prime_rl/transports/payload.py | 444 | except Exception: | CODE |
| LOW | src/prime_rl/transports/payload.py | 475 | except Exception: | CODE |
| LOW | src/prime_rl/transports/weights/modelexpress.py | 110 | except Exception as exc: | CODE |
| LOW | src/prime_rl/utils/utils.py | 42 | except Exception: | CODE |
| LOW | src/prime_rl/utils/utils.py | 61 | except Exception: | CODE |
| MEDIUM | src/prime_rl/utils/utils.py | 37 | def async_wrapper(*args, **kwargs): | CODE |
| MEDIUM | src/prime_rl/utils/utils.py | 56 | def sync_wrapper(*args, **kwargs): | CODE |
| LOW | src/prime_rl/dashboard/server.py | 1720 | except Exception: | CODE |
| LOW | src/prime_rl/dashboard/server.py | 1775 | except Exception: | CODE |
| LOW | src/prime_rl/trainer/models/kernels/sparse_mla_bwd.py | 12 | except Exception: | CODE |
| LOW | src/prime_rl/trainer/models/kernels/sparse_mla_fwd.py | 12 | except Exception: | CODE |
| LOW | …ner/models/kernels/deepseek_v4/dsv4_sparse_attn_bwd.py | 88 | except Exception: | CODE |
| LOW | …ner/models/kernels/deepseek_v4/dsv4_sparse_attn_fwd.py | 114 | except Exception: | CODE |
| LOW | …trainer/models/kernels/deepseek_v4/dsv4_sparse_attn.py | 18 | except Exception: | CODE |
| LOW | src/prime_rl/orchestrator/inference_metrics.py | 301 | except Exception as e: | CODE |
| LOW | src/prime_rl/orchestrator/inference_metrics.py | 317 | except Exception as e: | CODE |
| LOW | src/prime_rl/orchestrator/inference_metrics.py | 331 | except Exception as e: | CODE |
| LOW | src/prime_rl/orchestrator/inference_metrics.py | 373 | except Exception as e: | CODE |
| LOW | src/prime_rl/orchestrator/utils.py | 145 | except Exception as exc: | CODE |
| LOW | src/prime_rl/orchestrator/clients.py | 101 | except Exception as error: | CODE |
| LOW | src/prime_rl/orchestrator/clients.py | 418 | except Exception as e: | CODE |
| LOW | src/prime_rl/orchestrator/watcher.py | 106 | except Exception as exc: | CODE |
| LOW | src/prime_rl/orchestrator/watcher.py | 127 | except Exception as exc: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/orchestrator/test_metrics.py | 14 | CODE | |
| LOW | src/prime_rl/monitors/__init__.py | 48 | CODE | |
| LOW | src/prime_rl/utils/pathing.py | 103 | CODE | |
| LOW | src/prime_rl/dashboard/server.py | 1549 | CODE | |
| LOW | src/prime_rl/dashboard/server.py | 1597 | CODE | |
| LOW | src/prime_rl/trainer/model.py | 936 | CODE | |
| LOW | …prime_rl/trainer/models/laguna/configuration_laguna.py | 38 | CODE | |
| LOW | src/prime_rl/trainer/models/laguna/modeling_laguna.py | 357 | CODE | |
| LOW | src/prime_rl/trainer/models/kernels/sparse_mla_bwd.py | 102 | CODE | |
| LOW | …ner/models/kernels/deepseek_v4/dsv4_sparse_attn_bwd.py | 172 | CODE | |
| LOW | src/prime_rl/trainer/models/gpt_oss/modeling_gpt_oss.py | 168 | CODE | |
| LOW | …ime_rl/trainer/models/gpt_oss/configuration_gpt_oss.py | 33 | CODE | |
| LOW | src/prime_rl/trainer/models/layers/lm_head.py | 462 | CODE | |
| LOW | …/trainer/models/minimax_m2/configuration_minimax_m2.py | 64 | CODE | |
| LOW | …me_rl/trainer/models/minimax_m2/modeling_minimax_m2.py | 198 | CODE | |
| LOW | …/trainer/models/nemotron_h/configuration_nemotron_h.py | 14 | CODE | |
| LOW | …rl/trainer/models/glm5_next/configuration_glm5_next.py | 10 | CODE | |
| LOW | src/prime_rl/trainer/models/qwen3/modeling_qwen3.py | 206 | CODE | |
| LOW | …rainer/models/deepseek_v4/configuration_deepseek_v4.py | 103 | CODE | |
| LOW | …_rl/trainer/models/deepseek_v4/modeling_deepseek_v4.py | 278 | CODE | |
| LOW | …_rl/trainer/models/glm_moe_dsa/modeling_glm_moe_dsa.py | 271 | CODE | |
| LOW | …rainer/models/glm_moe_dsa/configuration_glm_moe_dsa.py | 119 | CODE | |
| LOW | …qwen3_8_flash_next/configuration_qwen3_8_flash_next.py | 10 | CODE | |
| LOW | …qwen3_8_flash_next/configuration_qwen3_8_flash_next.py | 132 | CODE | |
| LOW | …dels/qwen3_8_flash_next/modeling_qwen3_8_flash_next.py | 349 | CODE | |
| LOW | …iner/models/muse_glimmer/configuration_muse_glimmer.py | 9 | CODE | |
| LOW | …l/trainer/models/muse_glimmer/modeling_muse_glimmer.py | 251 | CODE | |
| LOW | …c/prime_rl/trainer/models/afmoe/configuration_afmoe.py | 18 | CODE | |
| LOW | src/prime_rl/trainer/models/afmoe/modeling_afmoe.py | 416 | CODE | |
| LOW | …/prime_rl/trainer/models/glm4_moe/modeling_glm4_moe.py | 240 | CODE | |
| LOW | …e_rl/trainer/models/glm4_moe/configuration_glm4_moe.py | 138 | CODE | |
| LOW | src/prime_rl/trainer/models/qwen3_5/modeling_qwen3_5.py | 315 | CODE | |
| LOW | …ime_rl/trainer/models/qwen3_5/configuration_qwen3_5.py | 9 | CODE | |
| LOW | …ime_rl/trainer/models/qwen3_5/configuration_qwen3_5.py | 127 | CODE | |
| LOW | src/prime_rl/trainer/models/llama/modeling_llama.py | 226 | CODE | |
| LOW | …rime_rl/trainer/models/qwen3_moe/modeling_qwen3_moe.py | 242 | CODE | |
| LOW | …rl/trainer/models/qwen3_moe/configuration_qwen3_moe.py | 142 | CODE | |
| LOW | src/prime_rl/trainer/sft/data.py | 267 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 33 | 3. Native integration with [`verifiers`](https://github.com/PrimeIntellect-ai/verifiers) environments through the [Envir | CODE |
| MEDIUM⚡ | tests/unit/orchestrator/test_algorithms.py | 451 | # template scaffold (False), the second is message body (True). Only the body | COMMENT |
| MEDIUM⚡ | tests/unit/orchestrator/test_algorithms.py | 452 | # token gets the role weight — the scaffold is excluded (content granularity). | COMMENT |
| MEDIUM | tests/unit/orchestrator/test_algorithms.py | 480 | # Only position 5 (the body token) is weighted; the scaffold token at position 4 is not. | COMMENT |
| MEDIUM | docs/inference.md | 31 | - [Disaggregated](#pd-disaggregation) - Runs the inference server on multiple nodes, but disaggregates the prefill and d | CODE |
| MEDIUM | docs/configuration.md | 260 | - [**MiniMax-M2.5 SWE**](https://github.com/PrimeIntellect-ai/prime-rl/tree/main/configs/advanced/minimax-m2.5) — `MiniM | CODE |
| MEDIUM⚡ | examples/advanced/glm-4.5-air/terminal.toml | 1 | # exp: GLM-4.5-Air (100B MoE) RL across our v1 TERMINAL-domain envs — agentic shell/sandbox tasks | COMMENT |
| MEDIUM | examples/advanced/glm-4.5-air/README.md | 3 | RL on [`zai-org/GLM-4.5-Air`](https://huggingface.co/zai-org/GLM-4.5-Air) — a 100B MoE — at 131k context, across three a | CODE |
| MEDIUM | examples/advanced/glm-4.5-air/ipo-ablation/base.toml | 1 | # IPO vs IcePop ablation on GLM-4.5-Air agentic SWE RL (see docs/ipo.md). Shared base: compose with one | COMMENT |
| MEDIUM | src/prime_rl/trainer/sft/data.py | 358 | # scaffolding (e.g. <|im_start|>assistant) the harness emits. | COMMENT |
| MEDIUM | src/prime_rl/trainer/sft/data.py | 466 | # If processed example is None, skip it (e.g. if tokenized sample exceeds context window) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/train/models/test_deepseek_v4.py | 421 | # The compress branch runs a different base, so it must not collapse onto `main`. | COMMENT |
| LOW | examples/advanced/glm-4.5-air/swe-budget.toml | 1 | # v1 RL: GLM-4.5-Air (100B MoE) on the v1 `scaleswe` SWE taskset, bash harness on a prime sandbox | COMMENT |
| LOW | examples/advanced/glm-4.5-air/terminal.toml | 81 | [[orchestrator.train.source]] | COMMENT |
| LOW | examples/advanced/glm-4.5-air/swe.toml | 1 | # v1 RL: GLM-4.5-Air (100B MoE) on the v1 `scaleswe` SWE taskset, bash harness on a prime sandbox | COMMENT |
| LOW | examples/advanced/glm-4.5-air/swe-4-node.toml | 1 | # Budget variant of swe.toml: the same recipe on four nodes (1 train + 3 infer replicas, the | COMMENT |
| LOW | examples/advanced/qwen3-235b-a22b/sft-max-perf.toml | 1 | # SFT max trainer perf: Qwen3-235B-A22B on 4 nodes x 8 B300 at seq 16k. | COMMENT |
| LOW | configs/advanced/deepseek-v4-flash/inference.toml | 1 | # Standalone vLLM serving pre-flight: does this cluster's vLLM serve the real DeepSeek V4 Flash | COMMENT |
| LOW | configs/advanced/deepseek-v4-flash/sft.toml | 1 | # Real-data SFT for deepseek-ai/DeepSeek-V4-Flash-0731 at full depth (all 43 layers, no | COMMENT |
| LOW | configs/advanced/deepseek-v4-flash/swe_mxfp8.toml | 1 | # DeepSeek-V4-Flash RL on the `scaleswe` SWE taskset at 131k context, with online MXFP8 vLLM | COMMENT |
| LOW | scripts/install_llmd.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/docker-entrypoint.sh | 1 | #!/bin/bash | COMMENT |
| LOW | scripts/docker-entrypoint.sh | 21 | # Slug + content hash for the checkout dir name. Slug keeps the path | COMMENT |
| LOW | …ages/prime-rl-configs/src/prime_rl/utils/validation.py | 141 | COMMENT | |
| LOW | src/prime_rl/_compat.py | 1 | """Compatibility shims for upstream regressions. | COMMENT |
| LOW | src/prime_rl/utils/act_offloading.py | 301 | # Note: [Track views of the unpacked] | COMMENT |
| LOW | src/prime_rl/dashboard/static/style.css | 761 | gap: 8px; | COMMENT |
| LOW | src/prime_rl/dashboard/static/style.css | 1801 | #tm-live-label { margin-left: 8px; } | COMMENT |
| LOW | src/prime_rl/trainer/ckpt.py | 121 | COMMENT | |
| LOW | src/prime_rl/trainer/parallel_dims.py | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | …rime_rl/trainer/models/kernels/deepseek_v4/dsv4_mhc.py | 1 | # Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | …trainer/models/kernels/deepseek_v4/dsv4_sparse_attn.py | 1 | # Torch-facing layer for the DeepSeek V4 sparse attention kernels: the `prime_rl::dsv4_sparse_attn` | COMMENT |
| LOW | src/prime_rl/trainer/models/deepseek_v4/attention.py | 741 | """`packed` carries the document boundaries every pathway below is clipped at.""" | COMMENT |
| LOW | …/prime_rl/trainer/models/glm4_moe/modeling_glm4_moe.py | 1 | # coding=utf-8 | COMMENT |
| LOW | src/prime_rl/trainer/models/llama/modeling_llama.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …rime_rl/trainer/models/qwen3_moe/modeling_qwen3_moe.py | 1 | # coding=utf-8 | COMMENT |
| LOW | src/prime_rl/orchestrator/clients.py | 521 | def _is_retryable_lora_error(exception: BaseException) -> bool: | COMMENT |
| LOW | src/prime_rl/orchestrator/watcher.py | 81 | if next_step <= self.ckpt_step: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | src/prime_rl/utils/act_offloading.py | 261 | torch.autograd.variable.Variable._execution_engine.queue_callback(wait_and_del_remaining_references) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/unit/train/sft/test_sft_dataset.py | 33 | pytest.param('{"reasoning_effort": null}', id="json-string"), | CODE |
| HIGH | src/prime_rl/trainer/sft/data.py | 172 | returns ``True`` even when the value is null). Strip the noise before | STRING |
| HIGH | src/prime_rl/trainer/rl/annotations.py | 19 | positions outside that mask hold null, since a fold keeps sampled tokens only and a | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/chat.py | 234 | # Create the demo | COMMENT |
| MEDIUM | src/prime_rl/trainer/optim/offload.py | 1 | # This file is fully AI-generated. | COMMENT |
| MEDIUM | src/prime_rl/trainer/sft/train.py | 231 | # Create the iterator only after a potential resume: iter() forks workers with a | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/chat.py | 70 | # Check if the non-whitespace starts with a thinking tag | COMMENT |
| LOW | scripts/chat.py | 92 | # Check if we might be building up to a thinking tag | COMMENT |
| LOW | scripts/chat.py | 117 | # Check if buffer might contain partial closing tag | COMMENT |
| LOW | .github/workflows/tests.yml | 42 | # Set WANDB_MODE to online only if WANDB_API_KEY is available, otherwise set to offline | COMMENT |
| LOW | src/prime_rl/trainer/lora.py | 112 | # Check if module is Linear or a supported expert class | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/prime_rl/trainer/optim/offload.py | 1 | # This file is fully AI-generated. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/advanced/glm-5.3/README.md | 119 | For a fake-data dry run, append [`fake.toml`](sft/h200/fake.toml) instead. You can use the same dashboard to monitor the | CODE |
| LOW | examples/advanced/qwen3-30b-a3b/README.md | 119 | For a fake-data dry run, add [`fake.toml`](sft/h200/fake.toml) instead of the data overlay. `base.toml` sets `[slurm] pa | CODE |
| LOW | configs/README.md | 11 | (per-algorithm smokes), `fake/` (fake-data trainer/SFT smokes), and | CODE |
| LOW | …kages/prime-rl-configs/src/prime_rl/configs/trainer.py | 101 | """Replace MoE token-choice routing with a round-robin assignment so every expert sees an equal share. Intended for | STRING |
| LOW | skills/training/start-run/SKILL.md | 49 | - Multi-node SLURM stops after `.trainer.done` for trainer-only fake-data runs. Runs with inference stop after both `.tr | CODE |
| LOW | src/prime_rl/trainer/model.py | 183 | """Force MoE token-choice routers into round-robin assignment for fake-data smoke tests.""" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/advanced/glm-5.3/infer/pd-llmd.toml | 2 | # Step 3 / goal target. Topology mirrors the proven original glm5.1_llmd_inference | COMMENT |