An Easy-to-use, Scalable and High-performance Agentic RL Framework based on Ray (PPO & DAPO & REINFORCE++ & VLM & TIS & vLLM & Ray & Async RL)
This report summarizes scanner evidence for OpenRLHF/OpenRLHF, a Python project with 10,080 GitHub stars. SynthScan examined 18,752 lines of code across 107 source files, recording 240 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 17.1 (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.
Can maintainers explain intent, assumptions, and trade-offs? 163 finding(s).
Are imports declared and package/API names verified? 32 finding(s).
Are wrappers, guards, and repeated structures necessary? 143 finding(s).
Which changes need focused human review? 240 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 240 distinct pattern matches across 14 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 | openrlhf/utils/vlm_utils.py | 68 | def process_prompt_with_images( | CODE |
| LOW | openrlhf/utils/seqlen_balancing.py | 153 | def get_seqlen_balanced_partitions(seqlen_list: List[int], k_partitions: int, equal_size: bool): | CODE |
| LOW | openrlhf/utils/seqlen_balancing.py | 171 | def _check_and_sort_partitions(partitions): | CODE |
| LOW | openrlhf/utils/seqlen_balancing.py | 234 | def get_minimum_num_micro_batch_size(total_lengths, max_tokens_per_gpu, ring_attn_size, ds_tensor_parallel_size): | CODE |
| LOW⚡ | openrlhf/utils/math_utils.py | 175 | def _strip_properly_formatted_commas(expr: str) -> str: | CODE |
| LOW | openrlhf/utils/math_utils.py | 200 | def _inject_implicit_mixed_number(step: str) -> str: | CODE |
| LOW | openrlhf/utils/math_utils.py | 278 | def count_unknown_letters_in_expr(expr: str) -> int: | CODE |
| LOW | openrlhf/utils/loss_utils.py | 54 | def _optimizer_step_loss_norm(masks, dp_group, dp_size, gas): | CODE |
| LOW | openrlhf/utils/loss_utils.py | 80 | def iter_grad_accum_global_norm(data_iter, strategy, accumulated_gradient, mask_fn): | CODE |
| LOW | openrlhf/utils/distributed_util.py | 1 | def torch_dist_barrier_and_cuda_sync(): | CODE |
| LOW | openrlhf/utils/distributed_util.py | 13 | def stateless_init_process_group(master_address, master_port, rank, world_size, device): | CODE |
| LOW | openrlhf/utils/deepspeed/deepspeed_utils.py | 121 | def get_optimizer_grouped_parameters( | CODE |
| LOW | openrlhf/models/ring_attn_utils.py | 9 | def patch_transformers_for_ring_flash_attn(): | CODE |
| LOW | openrlhf/models/ring_attn_utils.py | 32 | def reset_ring_attn_position_ids(start, end, packed_seq_lens): | CODE |
| LOW | openrlhf/models/ring_attn_utils.py | 72 | def get_tensor_in_current_ring_attn_rank(tensors: list[torch.Tensor] | torch.Tensor, ring_attn_group, pad_id): | CODE |
| LOW | openrlhf/models/model.py | 21 | def get_llm_for_sequence_regression( | CODE |
| LOW⚡ | openrlhf/models/actor.py | 302 | def gradient_checkpointing_enable(self, gradient_checkpointing_kwargs={"use_reentrant": False}): | CODE |
| LOW⚡ | openrlhf/models/actor.py | 305 | def gradient_checkpointing_disable(self): | CODE |
| LOW⚡ | openrlhf/models/actor.py | 308 | def print_trainable_parameters(self): | CODE |
| LOW | openrlhf/trainer/sft_trainer.py | 223 | def save_logs_and_checkpoints(self, args, global_step, step_bar, logs_dict=None, client_states=None): | CODE |
| LOW | openrlhf/trainer/rm_trainer.py | 214 | def save_logs_and_checkpoints(self, args, global_step, step_bar, logs_dict=None, client_states=None): | CODE |
| LOW | openrlhf/trainer/ppo_trainer.py | 197 | def restore_best_checkpoint_state(self, checkpoint_states) -> None: | CODE |
| LOW | openrlhf/trainer/ppo_trainer.py | 384 | def save_logs_and_checkpoints(self, global_step: int, logs_dict=None, client_states=None) -> None: | CODE |
| LOW | openrlhf/trainer/dpo_trainer.py | 223 | def save_logs_and_checkpoints(self, args, global_step, step_bar, logs_dict=None, client_states=None): | CODE |
| LOW | openrlhf/trainer/ppo_utils/samples_generator.py | 195 | def _dispatch_prompts_to_vllm( | CODE |
| LOW | openrlhf/trainer/ppo_utils/samples_generator.py | 243 | def _process_response_into_experience(self, response, **generate_kwargs) -> Experience: | CODE |
| LOW | openrlhf/trainer/ppo_utils/experience_maker.py | 238 | def compute_advantages_and_returns(self, experiences: List[Experience]) -> List[Experience]: | CODE |
| LOW | openrlhf/trainer/ppo_utils/experience_maker.py | 343 | def get_advantages_and_returns( | CODE |
| LOW | openrlhf/trainer/ppo_utils/experience.py | 236 | def remove_padding_in_sequences(items: List[Experience]) -> List[Experience]: | CODE |
| LOW | openrlhf/trainer/ppo_utils/length_penalty.py | 61 | def apply_stop_properly_penalty( | CODE |
| LOW | openrlhf/trainer/ray/vllm_engine.py | 179 | def get_num_unfinished_requests(self) -> int: | CODE |
| LOW | openrlhf/trainer/ray/ppo_actor.py | 495 | def init_model_from_pretrained(self, strategy: DeepspeedStrategy, pretrain, max_steps=None, vllm_engines=None): | CODE |
| LOW | openrlhf/trainer/ray/ppo_critic.py | 188 | def init_model_from_pretrained(self, strategy: DeepspeedStrategy, pretrain, max_steps): | CODE |
| LOW | openrlhf/trainer/ray/utils.py | 20 | def ray_noset_visible_devices(env_vars=os.environ): | CODE |
| LOW | openrlhf/trainer/ray/launcher.py | 60 | def init_model_from_pretrained(self, *args, **kwargs): | CODE |
| LOW | openrlhf/trainer/ray/launcher.py | 106 | def init_model_from_pretrained(self, strategy: DeepspeedStrategy, pretrain): | CODE |
| LOW | openrlhf/trainer/ray/launcher.py | 159 | def init_model_from_pretrained(self, strategy: DeepspeedStrategy, pretrain): | CODE |
| LOW | openrlhf/trainer/ray/launcher.py | 292 | def async_init_model_from_pretrained( | CODE |
| LOW | tests/test_pretrain_loss_mask.py | 55 | def test_pretrain_targets_and_gradients_follow_valid_next_tokens(modules, tokenizer, texts, max_length, token_level): | CODE |
| LOW | tests/test_pretrain_loss_mask.py | 90 | def test_ordinary_sft_and_multiturn_masks_stay_unchanged(modules): | CODE |
| LOW | tests/test_pretrain_loss_mask.py | 103 | def test_pretrain_sequence_without_next_token_has_no_targets(modules, length): | CODE |
| LOW | tests/test_eval_dataloader.py | 15 | def test_eval_keeps_tail_and_training_still_drops_it(ds_module, monkeypatch, cli, size, replicas, batch_size): | CODE |
| LOW | tests/test_sft_trainer.py | 52 | def set_gradient_accumulation_boundary(self, boundary): | CODE |
| LOW | tests/test_sft_trainer.py | 189 | def test_epoch_updates_match_token_mean_reference(sft_module, lengths, gas, micro_batch_size, aux_coef): | CODE |
| LOW | tests/test_sft_trainer.py | 208 | def test_resume_matches_uninterrupted_training(sft_module, checkpoint_index, micro_batch_size): | CODE |
| LOW | tests/test_sft_trainer.py | 232 | def test_cli_scheduler_uses_actual_optimizer_windows( | CODE |
| LOW | tests/test_sft_trainer.py | 269 | def test_no_complete_update_is_rejected(sft_module, lengths, epochs): | CODE |
| LOW | tests/test_reward_shaping.py | 62 | def test_constant_rewards_have_finite_zero_group_advantages(maker_module, dtype): | CODE |
| LOW | tests/test_reward_shaping.py | 81 | def test_group_advantages_produce_reference_policy_gradient(maker_module, dtype, gap): | CODE |
| LOW | tests/test_reward_shaping.py | 104 | def test_integer_rewards_preserve_fractional_length_penalty(maker_module): | CODE |
| LOW | tests/test_reward_shaping.py | 130 | def test_flash_reinforce_centers_on_the_rollout_batch_mean_without_whitening(maker_module): | CODE |
| LOW | tests/test_agent.py | 22 | def test_remote_rewards_distribute_nonempty_shards(monkeypatch, query_count, rounds, concurrent, replicas): | CODE |
| LOW | tests/test_agent.py | 94 | def test_multiturn_truncation_reaches_reward_penalty(agent_modules, finish_reasons, with_logprobs, penalty_coef): | CODE |
| LOW | tests/test_dataset_utils.py | 13 | def test_saved_dataset_split_selection_does_not_scan_rows(tmp_path, monkeypatch, as_dict, split): | CODE |
| LOW⚡ | tests/test_ray_env_vars.py | 140 | def test_tokenizers_parallelism_default(self): | CODE |
| LOW⚡ | tests/test_ray_env_vars.py | 146 | def test_ray_zero_copy_default(self): | CODE |
| LOW⚡ | tests/test_ray_env_vars.py | 161 | def test_nccl_debug_user_info(self): | CODE |
| LOW⚡ | tests/test_ray_env_vars.py | 165 | def test_nccl_debug_user_trace(self): | CODE |
| LOW⚡ | tests/test_ray_env_vars.py | 169 | def test_tokenizers_parallelism_user_false(self): | CODE |
| LOW⚡ | tests/test_ray_env_vars.py | 173 | def test_ray_zero_copy_user_disabled(self): | CODE |
| 32 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_ray_env_vars.py | 126 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_ray_env_vars.py | 128 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_ray_env_vars.py | 153 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_ray_env_vars.py | 155 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_ray_env_vars.py | 190 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_ray_env_vars.py | 192 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | examples/python/vlm_multiturn_agent.py | 37 | # ────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | examples/python/vlm_multiturn_agent.py | 39 | # ────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | examples/python/vlm_multiturn_agent.py | 69 | # ────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | examples/python/vlm_multiturn_agent.py | 71 | # ────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | examples/python/vlm_multiturn_agent.py | 177 | # ────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | examples/python/vlm_multiturn_agent.py | 179 | # ────────────────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | openrlhf/datasets/prompts_dataset.py | 26 | CODE | |
| LOW | openrlhf/datasets/utils.py | 10 | CODE | |
| LOW | openrlhf/utils/vlm_utils.py | 30 | CODE | |
| LOW | openrlhf/utils/math_utils.py | 25 | CODE | |
| LOW | openrlhf/utils/math_utils.py | 285 | CODE | |
| LOW | openrlhf/utils/math_utils.py | 372 | CODE | |
| LOW | openrlhf/utils/math_utils.py | 26 | CODE | |
| LOW | openrlhf/utils/agent.py | 207 | CODE | |
| LOW | openrlhf/utils/deepspeed/deepspeed.py | 503 | CODE | |
| LOW | openrlhf/utils/deepspeed/deepspeed.py | 533 | CODE | |
| LOW | openrlhf/utils/deepspeed/deepspeed.py | 685 | CODE | |
| LOW | openrlhf/models/model.py | 21 | CODE | |
| LOW | openrlhf/models/utils.py | 10 | CODE | |
| LOW | openrlhf/models/actor.py | 76 | CODE | |
| LOW | openrlhf/models/actor.py | 221 | CODE | |
| LOW | openrlhf/trainer/sft_trainer.py | 104 | CODE | |
| LOW | openrlhf/trainer/sft_trainer.py | 223 | CODE | |
| LOW | openrlhf/trainer/sft_trainer.py | 254 | CODE | |
| LOW | openrlhf/trainer/ppo_trainer_async.py | 100 | CODE | |
| LOW | openrlhf/trainer/rm_trainer.py | 214 | CODE | |
| LOW | openrlhf/trainer/rm_trainer.py | 247 | CODE | |
| LOW | openrlhf/trainer/ppo_trainer.py | 503 | CODE | |
| LOW | openrlhf/trainer/dpo_trainer.py | 223 | CODE | |
| LOW | openrlhf/trainer/dpo_trainer.py | 254 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/samples_generator.py | 140 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/experience_maker.py | 238 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/experience.py | 164 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/experience.py | 199 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/experience.py | 103 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/length_penalty.py | 61 | CODE | |
| LOW | openrlhf/trainer/ray/ppo_actor.py | 153 | CODE | |
| LOW | examples/python/agent_func_openai_server_executor.py | 241 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | openrlhf/datasets/__init__.py | 1 | CODE | |
| LOW | openrlhf/datasets/__init__.py | 2 | CODE | |
| LOW | openrlhf/datasets/__init__.py | 3 | CODE | |
| LOW | openrlhf/utils/math_utils.py | 6 | CODE | |
| LOW | openrlhf/utils/__init__.py | 1 | CODE | |
| LOW | openrlhf/utils/__init__.py | 1 | CODE | |
| LOW | openrlhf/utils/__init__.py | 2 | CODE | |
| LOW | openrlhf/utils/__init__.py | 2 | CODE | |
| LOW | openrlhf/utils/deepspeed/__init__.py | 1 | CODE | |
| LOW | openrlhf/models/__init__.py | 1 | CODE | |
| LOW | openrlhf/models/__init__.py | 2 | CODE | |
| LOW | openrlhf/models/__init__.py | 2 | CODE | |
| LOW | openrlhf/models/__init__.py | 2 | CODE | |
| LOW | openrlhf/models/__init__.py | 2 | CODE | |
| LOW | openrlhf/models/__init__.py | 2 | CODE | |
| LOW | openrlhf/models/__init__.py | 2 | CODE | |
| LOW | openrlhf/models/__init__.py | 2 | CODE | |
| LOW | openrlhf/models/__init__.py | 2 | CODE | |
| LOW | openrlhf/models/__init__.py | 12 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/__init__.py | 1 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/__init__.py | 1 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/__init__.py | 1 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/__init__.py | 1 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/__init__.py | 2 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/__init__.py | 2 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/__init__.py | 3 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/__init__.py | 3 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/__init__.py | 3 | CODE | |
| LOW | openrlhf/trainer/ppo_utils/__init__.py | 4 | CODE | |
| LOW | openrlhf/trainer/ray/__init__.py | 2 | CODE | |
| LOW | openrlhf/trainer/ray/__init__.py | 2 | CODE | |
| LOW | examples/python/agent_func_openai_server_executor.py | 16 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | openrlhf/utils/math_utils.py | 311 | except Exception: | CODE |
| HIGH | openrlhf/utils/math_utils.py | 248 | except Exception: | CODE |
| HIGH | tests/test_ray_env_vars.py | 118 | except SystemExit: | CODE |
| HIGH | tests/test_ray_env_vars.py | 212 | except SystemExit: | CODE |
| HIGH | examples/python/agent_func_openai_server_executor.py | 47 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | openrlhf/datasets/utils.py | 62 | except Exception as e: | CODE |
| LOW | openrlhf/utils/vlm_utils.py | 63 | except Exception as e: | CODE |
| LOW | openrlhf/utils/math_utils.py | 38 | except Exception: | CODE |
| LOW | openrlhf/utils/math_utils.py | 66 | except Exception: | CODE |
| LOW | openrlhf/utils/math_utils.py | 130 | except Exception: | CODE |
| LOW⚡ | openrlhf/utils/math_utils.py | 160 | except Exception: | CODE |
| LOW⚡ | openrlhf/utils/math_utils.py | 167 | except Exception: | CODE |
| LOW | openrlhf/utils/math_utils.py | 190 | except Exception: | CODE |
| LOW | openrlhf/utils/math_utils.py | 248 | except Exception: | CODE |
| LOW | openrlhf/utils/math_utils.py | 311 | except Exception: | CODE |
| LOW | openrlhf/utils/math_utils.py | 361 | except Exception: | CODE |
| LOW | openrlhf/utils/utils.py | 47 | except Exception: | CODE |
| LOW | openrlhf/utils/agent.py | 303 | except Exception as e: | CODE |
| LOW | openrlhf/utils/agent.py | 356 | except Exception as e: # pragma: no cover - defensive | CODE |
| LOW | examples/python/agent_func_openai_server_executor.py | 47 | except Exception: | CODE |
| LOW | examples/python/agent_func_openai_server_executor.py | 218 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 501 | # --algo.kl.init_coef 0 # No reference model | COMMENT |
| LOW | README_zh.md | 481 | --actor.gradient_checkpointing_enable \ | COMMENT |
| LOW | openrlhf/utils/seqlen_balancing.py | 1 | # Copied from https://github.com/volcengine/verl/blob/468adf22c43b744348051fccd7a5d830c6c3c36a/verl/utils/seqlen_balanci | COMMENT |
| LOW | openrlhf/utils/deepspeed/deepspeed.py | 141 | # ``optim`` defaults to the strategy-wide setting but can be overridden per-model | COMMENT |
| LOW | openrlhf/utils/deepspeed/deepspeed.py | 301 | # sets are silently dropped. ns_steps / nesterov are NOT configurable via | COMMENT |
| LOW | examples/scripts/train_nonrl_slurm.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/scripts/train_vlm_math_hybrid_engine.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/scripts/train_vlm_math_hybrid_engine.sh | 81 | --ds.enable_sleep | COMMENT |
| LOW | examples/scripts/train_vlm_math_hybrid_engine.sh | 101 | # Images in the dataset should be a list of paths/URLs. | COMMENT |
| LOW | …mples/scripts/train_flash_reinforce_ray_agent_async.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/scripts/train_prorlv2_math_hybrid_engine.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/scripts/train_prorlv2_math_hybrid_engine.sh | 81 | COMMENT | |
| LOW | examples/scripts/train_prorlv2_math_hybrid_engine.sh | 101 | # Truncated sample rewards are scaled by this coefficient (0.0 = zero reward for truncated) | COMMENT |
| LOW | examples/scripts/train_ppo_ray_slurm.sh | 1 | #!/bin/bash | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 41 | - [🎯 Design Paradigm](#design-paradigm-agent-based-execution) - Unified agent-based execution pipeline | CODE |
| MEDIUM | README.md | 58 | - [2026/9] OpenRLHF supports [FlashREINFORCE](https://www.alphaxiv.org/abs/2609.flashreinforce-asynchronous-rl-agentic-m | CODE |
| MEDIUM | README_zh.md | 56 | - [2026/9] OpenRLHF 支持 [FlashREINFORCE](https://www.researchgate.net/publication/414274571_FlashREINFORCE_FLASHREINFORCE | CODE |
| MEDIUM | openrlhf/trainer/ppo_utils/samples_generator.py | 260 | # Truncate everything to the configured context window. | COMMENT |
| MEDIUM | …mples/scripts/train_flash_reinforce_ray_agent_async.sh | 2 | # FlashREINFORCE: critic-free, single-rollout asynchronous RL for agentic language models | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | openrlhf/utils/agent.py | 79 | # Initialize tracking variables | COMMENT |
| MEDIUM | openrlhf/models/utils.py | 145 | # The following code is equivalent to: | COMMENT |
| MEDIUM | openrlhf/trainer/ray/vllm_engine.py | 248 | # Create a big placement group to ensure that all engines are packed | COMMENT |
| MEDIUM | openrlhf/trainer/ray/utils.py | 5 | # This function is used to get the bundle indices of a placement group | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | openrlhf/datasets/__init__.py | 5 | __all__ = ["PromptDataset", "RewardDataset", "SFTDataset"] | CODE |
| LOW | openrlhf/utils/vlm_utils.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | openrlhf/utils/__init__.py | 4 | __all__ = [ | CODE |
| LOW | openrlhf/utils/distributed_sampler.py | 9 | __all__ = ["DistributedSampler"] | CODE |
| LOW | openrlhf/utils/distributed_sampler.py | 138 | def set_epoch(self, epoch: int, consumed_samples=0) -> None: | STRING |
| LOW | openrlhf/utils/deepspeed/__init__.py | 3 | __all__ = [ | CODE |
| LOW | openrlhf/models/__init__.py | 14 | __all__ = [ | CODE |
| LOW | openrlhf/models/utils.py | 10 | def set_z3_leaf_modules(model: nn.Module, detect_hybrid: bool = True) -> None: | CODE |
| LOW | openrlhf/trainer/ppo_utils/__init__.py | 6 | __all__ = [ | CODE |
| LOW | openrlhf/trainer/ray/__init__.py | 4 | __all__ = [ | CODE |
| LOW | examples/python/agent_func_gem_multiturn.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/python/agent_func_openai_server_executor.py | 33 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | openrlhf/utils/agent.py | 251 | # Check if response was truncated (hit max_tokens length limit) | COMMENT |
| LOW | openrlhf/trainer/ppo_utils/samples_generator.py | 277 | # Check if response was truncated (hit max_tokens limit, finish_reason == "length") | COMMENT |
| LOW | openrlhf/trainer/ray/launcher.py | 330 | # Check if all kwargs parameters are iterable | COMMENT |
| LOW | examples/python/agent_func.py | 47 | # Check if episode is done | COMMENT |
| LOW | examples/python/agent_func_gem_multiturn.py | 113 | # Check if episode is done | COMMENT |
| LOW | examples/scripts/ckpt_ds_zero_to_universal.sh | 10 | # Set CKPT_PATH to the first argument and shift it out so that "$@" contains the extra arguments. | COMMENT |
| LOW | examples/scripts/ckpt_ds_zero_to_universal.sh | 20 | # Check if the latest tag exists. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | openrlhf/utils/deepspeed/deepspeed_utils.py | 7 | CODE | |
| LOW | openrlhf/models/model.py | 21 | CODE | |
| LOW | openrlhf/models/loss.py | 121 | CODE | |
| LOW | openrlhf/models/actor.py | 76 | CODE | |
| LOW | openrlhf/models/actor.py | 221 | CODE | |
| LOW | openrlhf/trainer/ray/ppo_actor.py | 39 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/scripts/train_prorlv2_math_hybrid_engine.sh | 13 | # ProRL v2 achieves state-of-the-art performance among 1.5B reasoning models | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | openrlhf/datasets/sft_dataset.py | 87 | def process_data(self, data): | CODE |
| LOW | openrlhf/datasets/reward_dataset.py | 101 | def process_data(self, data): | CODE |