AI Slop Code RIsk Monitor

verl-project/verl

verl/HybridFlow: A Flexible and Efficient RL Post-Training Framework

27.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for verl-project/verl, a Python project with 23,822 GitHub stars. SynthScan examined 245,575 lines of code across 1096 source files, recording 4915 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 27.4 (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.

27.4
Adjusted Signal
27.4
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
23.8K
Stars
Python
Language
245.6K
Lines of Code
1.1K
Files
4.9K
Pattern Hits
2026-10-12
Scan Date
0.13
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 56.8/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 6.2/100 · LOW

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

Agent Over-Engineering Ratio 61.1/100 · HIGH

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

PR Review Velocity Impact 73.7/100 · HIGH

Which changes need focused human review? 4915 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 4HIGH 140MEDIUM 454LOW 4317

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 4915 distinct pattern matches across 23 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 Identifiers2288 hits · 2287 pts
SeverityFileLineSnippetContext
LOWtests/test_protocol_v2_on_cpu.py67def test_tensor_dict_constructor():CODE
LOWtests/test_protocol_v2_on_cpu.py92def test_index_select_tensor_dict():CODE
LOWtests/test_protocol_v2_on_cpu.py152def test_tensordict_with_images():CODE
LOWtests/test_protocol_v2_on_cpu.py180def test_tensordict_with_packing():CODE
LOWtests/test_protocol_v2_on_cpu.py269def test_tensor_dict_make_iterator():CODE
LOWtests/test_protocol_v2_on_cpu.py509def test_torch_save_data_proto():CODE
LOWtests/test_protocol_v2_on_cpu.py654def test_dataproto_chunk_after_index():CODE
LOWtests/test_protocol_v2_on_cpu.py697def test_concat_nested_tensor():CODE
LOWtests/test_protocol_v2_on_cpu.py923def test_assign_non_tensor_stack_with_nested_lists():CODE
LOWtests/test_protocol_v2_on_cpu.py938def test_assign_non_tensor_stack_with_nested_dicts():CODE
LOWtests/test_protocol_v2_on_cpu.py953def test_assign_non_tensor_stack_with_complex_nested():CODE
LOWtests/test_protocol_v2_on_cpu.py972def test_assign_non_tensor_handles_wrappers():CODE
LOWtests/test_protocol_v2_on_cpu.py987def test_assign_non_tensor_stack_batch_size_check():CODE
LOWtests/test_protocol_v2_on_cpu.py995def test_assign_non_tensor_with_auto_detection():CODE
LOWtests/test_protocol_v2_on_cpu.py1018def test_get_tensordict_with_nested_lists():CODE
LOWtests/test_protocol_v2_on_cpu.py1033def test_get_tensordict_with_nested_dicts():CODE
LOWtests/test_protocol_v2_on_cpu.py1045def test_get_tensordict_with_complex_nested_structures():CODE
LOWtests/test_protocol_v2_on_cpu.py1060def test_get_tensordict_agent_loop_scenario():CODE
LOWtests/test_base_config_on_cpu.py33def test_getitem_nonexistent_attribute(base_config_mock):CODE
LOWtests/test_base_config_on_cpu.py39def test_getitem_invalid_key_type(base_config_mock):CODE
LOWtests/test_protocol_on_cpu.py141def test_tensor_dict_constructor():CODE
LOWtests/test_protocol_on_cpu.py155def test_tensor_dict_make_iterator():CODE
LOWtests/test_protocol_on_cpu.py219def test_concat_metrics_from_multiple_workers():CODE
LOWtests/test_protocol_on_cpu.py249def test_concat_with_empty_and_non_list_meta_info():CODE
LOWtests/test_protocol_on_cpu.py272def test_concat_first_worker_missing_metrics():CODE
LOWtests/test_protocol_on_cpu.py295def test_concat_non_list_metrics():CODE
LOWtests/test_protocol_on_cpu.py315def test_concat_merge_different_non_metric_keys():CODE
LOWtests/test_protocol_on_cpu.py339def test_concat_conflicting_non_metric_keys():CODE
LOWtests/test_protocol_on_cpu.py447def test_dataproto_fold_unfold():CODE
LOWtests/test_protocol_on_cpu.py470def test_torch_save_data_proto():CODE
LOWtests/test_protocol_on_cpu.py570def test_old_vs_new_from_single_dict():CODE
LOWtests/test_protocol_on_cpu.py642def test_dataproto_unfold_column_chunks():CODE
LOWtests/test_protocol_on_cpu.py708def test_dataproto_chunk_after_index():CODE
LOWtests/test_protocol_on_cpu.py785def test_to_tensordict_with_nested_lists():CODE
LOWtests/test_protocol_on_cpu.py810def test_to_tensordict_with_nested_dicts():CODE
LOWtests/test_protocol_on_cpu.py834def test_to_tensordict_with_complex_nested_structures():CODE
LOWtests/test_protocol_on_cpu.py862def test_to_tensordict_and_back_with_nested_data():CODE
LOWtests/test_protocol_on_cpu.py926def test_to_tensordict_agent_loop_scenario():CODE
LOWtests/test_protocol_on_cpu.py993def test_serialize_deserialize_single_tensor():CODE
LOWtests/test_protocol_on_cpu.py1010def test_serialize_deserialize_tensordict_regular_tensors():CODE
LOWtests/test_protocol_on_cpu.py1039def test_serialize_deserialize_tensordict_nested_tensors():CODE
LOWtests/test_protocol_on_cpu.py1092def test_serialize_deserialize_tensordict_mixed_types():CODE
LOWtests/test_protocol_on_cpu.py1177def test_serialize_deserialize_tensordict_with_device():CODE
LOWtests/test_protocol_on_cpu.py1208def test_numpy_dataproto_serialization_skips_tensordict_consolidation(monkeypatch):CODE
LOWtests/test_protocol_on_cpu.py1232def test_serialize_dataproto_with_empty_tensordict():CODE
LOW…l/fully_async_policy/test_async_genrm_config_on_cpu.py76 def _validate_async_rm_config(config):CODE
LOW…l/fully_async_policy/test_async_genrm_config_on_cpu.py92 def test_rm_enabled_standalone_passes(self):CODE
LOW…l/fully_async_policy/test_async_genrm_config_on_cpu.py98 def test_rm_enabled_colocate_fails(self):CODE
LOWtests/experimental/vla/test_sim_envs.py37def test_sim_env_creation_and_step(simulator_type):CODE
LOW…xperimental/reward_loop/run_determinism_e2e_with_rm.py226def parse_reward_curve_from_stdout(stdout: str):CODE
LOW…ts/experimental/reward_loop/test_reward_model_disrm.py107def test_reward_model_manager():CODE
LOW…reward_loop/test_rate_limited_reward_manager_on_cpu.py71def mock_sync_reward_function(CODE
LOW…reward_loop/test_rate_limited_reward_manager_on_cpu.py83async def mock_async_reward_function(CODE
LOW…reward_loop/test_rate_limited_reward_manager_on_cpu.py106async def mock_failing_api_function(CODE
LOW…reward_loop/test_rate_limited_reward_manager_on_cpu.py114async def mock_dict_result_function(CODE
LOW…reward_loop/test_rate_limited_reward_manager_on_cpu.py169 async def test_basic_reward_computation(self, tokenizer):CODE
LOW…reward_loop/test_rate_limited_reward_manager_on_cpu.py258 async def test_concurrency_limiting(self, tokenizer):CODE
LOW…reward_loop/test_rate_limited_reward_manager_on_cpu.py351 async def test_sync_reward_function(self, tokenizer):CODE
LOW…reward_loop/test_rate_limited_reward_manager_on_cpu.py366 async def test_combined_rate_limits(self, tokenizer):CODE
LOW…reward_loop/test_rate_limited_reward_manager_on_cpu.py402 async def test_correct_vs_incorrect_answers(self, tokenizer):CODE
2228 more matches not shown…
Decorative Section Separators362 hits · 1384 pts
SeverityFileLineSnippetContext
MEDIUMtests/experimental/agent_loop/test_basic_agent_loop.py413# ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/experimental/agent_loop/test_basic_agent_loop.py415# ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/tools/test_function_tool_on_cpu.py52# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/tools/test_function_tool_on_cpu.py54# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/tools/test_function_tool_on_cpu.py331# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/tools/test_function_tool_on_cpu.py333# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/tools/test_function_tool_on_cpu.py491# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/tools/test_function_tool_on_cpu.py493# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/tools/test_function_tool_on_cpu.py586# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/tools/test_function_tool_on_cpu.py588# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/utils/test_bucketed_weight_transfer.py122# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/utils/test_bucketed_weight_transfer.py124# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/utils/test_bucketed_weight_transfer.py158# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/utils/test_bucketed_weight_transfer.py160# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/utils/test_bucketed_weight_transfer.py208# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/utils/test_bucketed_weight_transfer.py210# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/utils/test_bucketed_weight_transfer.py244# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/utils/test_bucketed_weight_transfer.py246# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/utils/test_continuous_token_on_cpu.py1742# =============================================================================COMMENT
MEDIUM⚡tests/utils/test_continuous_token_on_cpu.py1745# =============================================================================COMMENT
MEDIUM⚡tests/utils/test_continuous_token_on_cpu.py1888# =============================================================================COMMENT
MEDIUM⚡tests/utils/test_continuous_token_on_cpu.py1890# =============================================================================COMMENT
MEDIUMtests/utils/test_continuous_token_on_cpu.py1842# =============================================================================COMMENT
MEDIUMtests/utils/test_continuous_token_on_cpu.py1844# =============================================================================COMMENT
MEDIUMtests/utils/test_continuous_token_on_cpu.py2080# =============================================================================COMMENT
MEDIUMtests/utils/test_continuous_token_on_cpu.py2082# =============================================================================COMMENT
MEDIUMtests/utils/test_continuous_token_on_cpu.py2423# =============================================================================COMMENT
MEDIUMtests/utils/test_continuous_token_on_cpu.py2426# =============================================================================COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py317# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py320# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py337# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py341# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py407# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py409# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py474# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py476# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py524# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py530# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py605# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py607# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py639# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py641# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py877# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ts/utils/test_vllm_weight_name_normalization_on_cpu.py882# ---------------------------------------------------------------------------COMMENT
MEDIUM…ts/utils/test_vllm_weight_name_normalization_on_cpu.py691# ---------------------------------------------------------------------------COMMENT
MEDIUM…ts/utils/test_vllm_weight_name_normalization_on_cpu.py694# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py217# ===========================================================================COMMENT
MEDIUM⚡…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py219# ===========================================================================COMMENT
MEDIUM⚡…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py267# ===========================================================================COMMENT
MEDIUM⚡…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py269# ===========================================================================COMMENT
MEDIUM⚡…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py602# ===========================================================================COMMENT
MEDIUM⚡…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py604# ===========================================================================COMMENT
MEDIUM…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py36# ---------------------------------------------------------------------------COMMENT
MEDIUM…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py38# ---------------------------------------------------------------------------COMMENT
MEDIUM…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py66# ---------------------------------------------------------------------------COMMENT
MEDIUM…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py68# ---------------------------------------------------------------------------COMMENT
MEDIUM…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py156# ===========================================================================COMMENT
MEDIUM…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py158# ===========================================================================COMMENT
MEDIUM…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py407# ===========================================================================COMMENT
MEDIUM…/utils/ckpt/test_megatron_checkpoint_manager_on_cpu.py409# ===========================================================================COMMENT
302 more matches not shown…
Over-Commented Block878 hits · 857 pts
SeverityFileLineSnippetContext
LOWmanage_envs.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWmanage_envs.py161import tempfileCOMMENT
LOWmanage_envs.py181# no torch, so it rides on whichever cu130 backend the job synced) andCOMMENT
LOWmanage_envs.py221 "cu130": INFERENCE_BACKENDS + TRAINING_BACKENDS, # torch 2.13 GPU backendsCOMMENT
LOWmanage_envs.py781 # does pin the per-combo cache-warming syncs below.COMMENT
LOWpyproject.toml81# on the training side: `ray.util.collective`'s NCCL backend is cupy-based, soCOMMENT
LOWpyproject.toml121COMMENT
LOWpyproject.toml181COMMENT
LOWpyproject.toml321# combos and every CI invocation are identical on the two arches.COMMENT
LOWpyproject.toml341# convention flash-attn-cu130torch213 / cupy-cu130 use to share a pin):COMMENT
LOWpyproject.toml361]COMMENT
LOWpyproject.toml381# same `flash_attn/cute/` files as flash-attn 2.8.3 (the fsdp / megatron pin),COMMENT
LOWpyproject.toml401 # already searches ("nvidia/cuXX/lib since CUDA 13.0"). SONAME stays .so.0.COMMENT
LOWpyproject.toml441version = "0.3.0"COMMENT
LOWsetup.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/test_protocol_v2_on_cpu.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/test_protocol_v2_on_cpu.py581 # assert result_np_bool.keys() == data.keys()COMMENT
LOWtests/test_base_config_on_cpu.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/__init__.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/test_protocol_on_cpu.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/experimental/__init__.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/experimental/fully_async_policy/__init__.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…l/fully_async_policy/test_async_genrm_config_on_cpu.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/experimental/vla/test_sim_envs.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…xperimental/reward_loop/run_determinism_e2e_with_rm.py1#!/usr/bin/env python3COMMENT
LOW…ts/experimental/reward_loop/test_reward_model_disrm.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…reward_loop/test_rate_limited_reward_manager_on_cpu.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…ental/reward_loop/test_agent_reward_loop_standalone.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/experimental/reward_loop/test_math_verify.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…imental/reward_loop/test_agent_reward_loop_colocate.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…ts/experimental/reward_loop/test_reward_model_genrm.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…rimental/reward_loop/test_async_token_bucket_on_cpu.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/experimental/reward_loop/reward_fn.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/experimental/agent_loop/test_multi_modal.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/experimental/agent_loop/test_call_tool_on_cpu.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/experimental/agent_loop/test_basic_agent_loop.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/experimental/agent_loop/agent_utils.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…sts/experimental/agent_loop/test_standalone_rollout.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/experimental/agent_loop/__init__.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…mental/agent_loop/test_audio_server_contract_on_cpu.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/experimental/agent_loop/function_tool_examples.py1# Copyright 2026 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…ent_loop/test_agent_loop_extra_fields_schema_on_cpu.py1# Copyright 2026 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…ts/experimental/agent_loop/test_tool_call_id_on_cpu.py1# Copyright 2026 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…perimental/agent_loop/test_qwen3_tool_parser_on_cpu.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…ts/experimental/agent_loop/test_gpt_oss_tool_parser.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOW…ntal/agent_loop/test_multimodal_position_ids_on_cpu.py1# Copyright 2026 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/tools/test_mixed_tools_on_cpu.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/tools/__init__.py1# Copyright 2026 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/tools/test_function_tool_on_cpu.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/tools/_stub_search_tools.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/special_sanity/check_docstrings.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/special_sanity/check_device_api_usage.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/special_sanity/check_dataproto_usage.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/special_sanity/test_check_example_naming.py1# Copyright 2026 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/special_sanity/check_license.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/special_sanity/check_api_docs.py1# Copyright 2024 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/special_sanity/check_pr_description.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/special_sanity/validate_imported_docs.py1# Copyright 2025 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/special_sanity/check_uv_gpu_only.py1# Copyright 2026 Bytedance Ltd. and/or its affiliatesCOMMENT
LOWtests/special_sanity/check_example_naming.py1# Copyright 2026 Bytedance Ltd. and/or its affiliatesCOMMENT
818 more matches not shown…
Empty Error Handlers62 hits · 310 pts
SeverityFileLineSnippetContext
HIGHmanage_envs.py316except OSError:CODE
HIGHtests/special_sanity/type_coverage_check.py50except Exception:CODE
HIGHtests/utils/test_rollout_trace_on_cpu.py332except RuntimeError:CODE
HIGHtests/utils/test_timeout_decorator_cpu.py92except RuntimeError:CODE
HIGH…ts/utils/test_vllm_weight_name_normalization_on_cpu.py49except ImportError:CODE
HIGH…orkers/rollout/test_vllm_weight_update_utils_on_cpu.py35except ImportError:CODE
HIGH…kers/rollout/rollout_sglang/test_http_server_engine.py902except Exception:CODE
HIGHverl/__init__.py106except AttributeError:CODE
HIGHverl/experimental/fully_async_policy/detach_utils.py444except asyncio.CancelledError:CODE
HIGHverl/utils/transferqueue_utils.py100except RuntimeError:CODE
HIGHverl/utils/megatron_utils.py252except AttributeError:CODE
HIGHverl/utils/megatron_utils.py717except ImportError:CODE
HIGHverl/utils/groupwise.py146except Exception:CODE
HIGHverl/utils/fs.py221except ImportError:CODE
HIGHverl/utils/import_utils.py138except (ImportError, AttributeError):CODE
HIGHverl/utils/tracking.py278except (AttributeError, KeyError, TypeError):CODE
HIGHverl/utils/checkpoint/megatron_checkpoint_manager.py870except Exception:CODE
HIGHverl/utils/checkpoint/megatron_checkpoint_manager.py1011except Exception:CODE
HIGHverl/utils/checkpoint/fsdp_checkpoint_manager.py475except Exception:CODE
HIGHverl/utils/vllm/patch.py24except ImportError:CODE
HIGHverl/utils/vllm/patch.py31except ImportError:CODE
HIGHverl/utils/vllm/patch.py38except ImportError:CODE
HIGHverl/utils/vllm/patch.py45except ImportError:CODE
HIGHverl/utils/vllm/patch.py52except ImportError:CODE
HIGHverl/utils/vllm/patch.py59except ImportError:CODE
HIGHverl/utils/vllm/patch.py66except ImportError:CODE
HIGHverl/utils/vllm/patch.py73except ImportError:CODE
HIGHverl/utils/vllm/patch.py110except ImportError:CODE
HIGHverl/utils/vllm/vllm_quant_utils.py117except ImportError:CODE
HIGHverl/utils/vllm/vllm_quant_utils.py123except ImportError:CODE
HIGHverl/utils/vllm/vllm_fp8_utils.py87except AttributeError:CODE
HIGHverl/utils/vllm/utils.py148except ImportError:CODE
HIGHverl/utils/veomni/router_replay.py168except ImportError:CODE
HIGHverl/utils/profiler/torch_memory_profile.py170except Exception:CODE
HIGHverl/utils/profiler/torch_memory_profile.py75except Exception:CODE
HIGHverl/utils/profiler/torch_profile.py48except Exception:CODE
HIGHverl/utils/profiler/torch_profile.py62except Exception:CODE
HIGHverl/utils/profiler/torch_profile.py60except Exception:CODE
HIGHverl/utils/kernel/kernels.py96except (ImportError, AttributeError):CODE
HIGHverl/utils/megatron/dist_checkpointing.py69except Exception:CODE
HIGHverl/utils/reward_score/prime_code/__init__.py38except Exception:CODE
HIGHverl/utils/reward_score/prime_code/testing_util.py608except SystemExit:CODE
HIGHverl/utils/reward_score/prime_code/testing_util.py250except Exception:CODE
HIGHverl/utils/reward_score/prime_code/testing_util.py255except Exception:CODE
HIGHverl/utils/reward_score/prime_code/testing_util.py260except Exception:CODE
HIGHverl/utils/reward_score/prime_code/testing_util.py164except Exception:CODE
HIGHverl/utils/reward_score/prime_code/testing_util.py290except Exception:CODE
HIGHverl/utils/reward_score/prime_code/testing_util.py471except Exception:CODE
HIGHverl/utils/reward_score/prime_code/testing_util.py489except Exception:CODE
HIGHverl/utils/reward_score/prime_math/grader.py214except Exception:CODE
HIGHverl/utils/reward_score/prime_math/grader.py347except Exception:CODE
HIGHverl/utils/reward_score/prime_math/grader.py357except Exception:CODE
HIGHverl/utils/reward_score/prime_math/grader.py296except Exception:CODE
HIGHverl/utils/reward_score/prime_math/grader.py318except Exception:CODE
HIGHverl/utils/reward_score/prime_math/__init__.py222except Exception:CODE
HIGHverl/models/mcore/patch.py73except Exception:CODE
HIGHverl/workers/reward_manager/prime.py75except Exception:CODE
HIGHverl/workers/reward_manager/__init__.py36except ImportError:CODE
HIGHverl/workers/rollout/utils.py233except Exception:CODE
HIGHverl/workers/rollout/trtllm_rollout/trtllm_rollout.py73except pynvml.NVMLError:CODE
2 more matches not shown…
Excessive Try-Catch Wrapping269 hits · 294 pts
SeverityFileLineSnippetContext
LOWtests/test_protocol_on_cpu.py1115 except Exception:CODE
LOWtests/test_protocol_on_cpu.py1252 except Exception as e:CODE
LOWtests/experimental/reward_loop/reward_fn.py50 except Exception as e:STRING
LOWtests/experimental/reward_loop/reward_fn.py82 except Exception:CODE
LOWtests/experimental/agent_loop/test_multi_modal.py129 except Exception as e:CODE
LOWtests/experimental/agent_loop/test_basic_agent_loop.py154 except Exception as e:CODE
LOWtests/experimental/agent_loop/test_basic_agent_loop.py186 except Exception as e:CODE
LOWtests/experimental/agent_loop/function_tool_examples.py69 except Exception as e:CODE
LOWtests/special_sanity/check_docstrings.py83 except Exception as e:CODE
MEDIUMtests/special_sanity/check_docstrings.py84 print(f"Error processing {filepath}: {e}")CODE
LOWtests/special_sanity/check_api_docs.py64 except Exception as exc:CODE
LOWtests/special_sanity/check_pr_description.py54 except Exception as e:CODE
LOWtests/special_sanity/check_pr_description.py63 except Exception as e:CODE
MEDIUMtests/special_sanity/check_pr_description.py58def load_pr_body(event_path):CODE
LOWtests/special_sanity/validate_imported_docs.py88 except Exception: # pragma: no cover – wide net for import quirksCODE
MEDIUMtests/special_sanity/check_docs_time_info.py54 print(f"Error: Documentation directory '{DOCS_DIR}' does not exist.", file=sys.stderr)CODE
LOWtests/special_sanity/type_coverage_check.py50 except Exception:CODE
LOWtests/utils/test_shared_memory.py218 except Exception as e:CODE
MEDIUMtests/utils/test_shared_memory.py219 print(f"Error in child process: {e}")CODE
LOW⚡tests/utils/test_timeout_decorator_cpu.py77 except Exception as e:CODE
LOWtests/utils/test_timeout_decorator_cpu.py170 except Exception as e:CODE
LOWtests/utils/test_timeout_decorator_cpu.py182 except Exception as e:CODE
LOWtests/utils/test_timeout_decorator_cpu.py211 except Exception as e:CODE
LOWtests/utils/test_timeout_decorator_cpu.py223 except Exception as e:CODE
MEDIUMtests/utils/test_timeout_decorator_cpu.py164def slow_task_in_thread():CODE
MEDIUMtests/utils/test_timeout_decorator_cpu.py176def thread_target():CODE
MEDIUMtests/utils/test_timeout_decorator_cpu.py205def slow_task_in_thread():CODE
MEDIUMtests/utils/test_timeout_decorator_cpu.py217def thread_target():CODE
LOWtests/utils/test_check_profiler_output.py161 except Exception as e:CODE
LOW⚡tests/utils/megatron/test_muon_optim_realcfg_on_cpu.py39 except Exception as exc: # pragma: no cover - env dependentCODE
LOW…s/special_distributed/test_mcore_probe_differential.py148 except Exception as e: # pragma: no coverCODE
LOW⚡…kers/rollout/rollout_sglang/test_http_server_engine.py902 except Exception:CODE
LOWtests/special_e2e/check_results.py30 except Exception:CODE
LOWtests/trainer/ppo/test_rollout_corr.py458 except Exception as e:CODE
MEDIUMtests/trainer/ppo/v1/test_replay_buffer_on_cpu.py162def run(self) -> None:CODE
MEDIUMtests/trainer/ppo/v1/test_replay_buffer_on_cpu.py212def run(self) -> None:CODE
MEDIUMtests/trainer/ppo/v1/test_replay_buffer_on_cpu.py243def run(self) -> None:CODE
LOWtests/trainer/ppo/v1/test_replay_buffer_on_cpu.py188 except Exception as e: # surfaced to the test via join_and_check()CODE
LOWtests/trainer/ppo/v1/test_replay_buffer_on_cpu.py219 except Exception as e:CODE
LOWtests/trainer/ppo/v1/test_replay_buffer_on_cpu.py250 except Exception as e:CODE
LOWverl/__init__.py75 except Exception as _e:CODE
LOW…rl/experimental/fully_async_policy/fully_async_main.py204 except Exception as e:CODE
LOW…rl/experimental/fully_async_policy/fully_async_main.py212 except Exception as e:CODE
LOWverl/experimental/fully_async_policy/detach_utils.py446 except Exception as e:CODE
LOWverl/experimental/fully_async_policy/message_queue.py159 except Exception:CODE
LOW⚡…perimental/fully_async_policy/fully_async_rollouter.py257 except Exception as e:CODE
LOW…perimental/fully_async_policy/fully_async_rollouter.py202 except Exception as e:CODE
LOW…perimental/fully_async_policy/fully_async_rollouter.py1054 except Exception as e:CODE
LOW…perimental/fully_async_policy/fully_async_rollouter.py1100 except Exception as e:CODE
LOW…experimental/fully_async_policy/fully_async_trainer.py366 except Exception as e:CODE
LOW…l/fully_async_policy/unittest/simple_streaming_demo.py111 except Exception as e:CODE
LOW…ly_async_policy/dynamic_schedule/fixed_ratio_policy.py88 except Exception as e:CODE
LOW…/fully_async_policy/dynamic_schedule/default_policy.py234 except Exception as e:CODE
LOWverl/experimental/reward_loop/reward_loop.py181 except Exception as e:CODE
LOWverl/experimental/reward_loop/reward_manager/limited.py460 except Exception as e:CODE
LOW⚡verl/experimental/reward_loop/router/naive_router.py41 except Exception:CODE
LOW⚡verl/experimental/reward_loop/router/naive_router.py44 except Exception:CODE
LOWverl/experimental/reward_loop/router/naive_router.py168 except Exception as e:CODE
LOWverl/experimental/agent_loop/tool_parser.py123 except Exception as e:CODE
LOWverl/experimental/agent_loop/tool_parser.py180 except Exception as e:CODE
209 more matches not shown…
Unused Imports257 hits · 254 pts
SeverityFileLineSnippetContext
LOWmanage_envs.py152CODE
LOW…mental/agent_loop/test_audio_server_contract_on_cpu.py15CODE
LOW…ent_loop/test_agent_loop_extra_fields_schema_on_cpu.py15CODE
LOWtests/tools/test_mixed_tools_on_cpu.py22CODE
LOWtests/tools/test_function_tool_on_cpu.py16CODE
LOWtests/tools/_stub_search_tools.py18CODE
LOWtests/special_sanity/test_check_example_naming.py17CODE
LOWtests/special_sanity/check_api_docs.py28CODE
LOWtests/special_sanity/validate_imported_docs.py22CODE
LOWtests/special_sanity/check_uv_gpu_only.py47CODE
LOWtests/special_sanity/check_example_naming.py41CODE
LOWtests/special_sanity/validate_structure.py32CODE
LOWtests/utils/test_utils_skip.py17CODE
LOWtests/utils/test_rl_insight_logger_on_cpu.py15CODE
LOW…tils/megatron/test_muon_layerwise_bridge_ddp_on_cpu.py18CODE
LOWtests/utils/megatron/muon_optim_gpu_smoke.py50CODE
LOWtests/special_distributed/test_tensor_dict.py29CODE
LOW…ecial_distributed/test_megatron_dynamic_cp_features.py28CODE
LOWtests/workers/test_engine_workers_lora_sync.py26CODE
LOW…/rollout/test_llm_server_response_length_cap_on_cpu.py32CODE
LOW…/workers/rollout/test_vllm_pd_disaggregation_on_cpu.py27CODE
LOW…rkers/rollout/test_llm_server_routed_experts_on_cpu.py26CODE
LOW…rkers/rollout/test_vision_placeholder_tokens_on_cpu.py21CODE
LOWtests/workers/rollout/test_pd_disaggregation.py16CODE
LOW…/rollout/rollout_sglang/test_lora_merge_mode_on_cpu.py27CODE
LOW…orkers/rollout/rollout_sglang/test_lora_sleep_level.py22CODE
LOWtests/special_e2e/envs/__init__.py15CODE
LOWtests/special_e2e/envs/digit_completion/__init__.py17CODE
LOWtests/special_e2e/envs/digit_completion/__init__.py17CODE
LOWtests/checkpoint_engine/test_sglang_loader.py24CODE
LOWtests/checkpoint_engine/test_sharded_delta.py22CODE
LOWverl/__init__.py32CODE
LOWverl/experimental/teacher_loop/__init__.py15CODE
LOW…mental/fully_async_policy/dynamic_schedule/__init__.py15CODE
LOW…mental/fully_async_policy/dynamic_schedule/__init__.py15CODE
LOW…mental/fully_async_policy/dynamic_schedule/__init__.py15CODE
LOW…mental/fully_async_policy/dynamic_schedule/__init__.py15CODE
LOW…mental/fully_async_policy/dynamic_schedule/__init__.py16CODE
LOW…mental/fully_async_policy/dynamic_schedule/__init__.py17CODE
LOW…mental/fully_async_policy/dynamic_schedule/__init__.py18CODE
LOW…policy/dynamic_schedule/dynamic_resource_controller.py33CODE
LOW…policy/dynamic_schedule/dynamic_resource_controller.py33CODE
LOW…policy/dynamic_schedule/dynamic_resource_controller.py39CODE
LOWverl/experimental/reward_loop/__init__.py15CODE
LOWverl/experimental/reward_loop/__init__.py15CODE
LOWverl/experimental/reward_loop/__init__.py15CODE
LOWverl/experimental/reward_loop/__init__.py16CODE
LOW…rl/experimental/reward_loop/reward_manager/__init__.py15CODE
LOW…rl/experimental/reward_loop/reward_manager/__init__.py15CODE
LOW…rl/experimental/reward_loop/reward_manager/__init__.py16CODE
LOW…rl/experimental/reward_loop/reward_manager/__init__.py17CODE
LOW…rl/experimental/reward_loop/reward_manager/__init__.py18CODE
LOW…rl/experimental/reward_loop/reward_manager/__init__.py19CODE
LOW…rl/experimental/reward_loop/reward_manager/__init__.py20CODE
LOWverl/experimental/agent_loop/__init__.py15CODE
LOWverl/experimental/agent_loop/__init__.py15CODE
LOWverl/experimental/agent_loop/__init__.py15CODE
LOWverl/experimental/agent_loop/__init__.py15CODE
LOWverl/experimental/agent_loop/__init__.py15CODE
LOWverl/experimental/agent_loop/utils.py18CODE
197 more matches not shown…
Deep Nesting264 hits · 230 pts
SeverityFileLineSnippetContext
LOWmanage_envs.py455CODE
LOWmanage_envs.py662CODE
LOWtests/test_protocol_v2_on_cpu.py802CODE
LOWtests/test_protocol_on_cpu.py1092CODE
LOW…xperimental/reward_loop/run_determinism_e2e_with_rm.py65CODE
LOWtests/experimental/agent_loop/test_multi_modal.py83CODE
LOW…mental/agent_loop/test_audio_server_contract_on_cpu.py31CODE
LOWtests/special_sanity/check_pr_description.py40CODE
LOWtests/special_sanity/validate_imported_docs.py63CODE
LOWtests/special_sanity/check_uv_gpu_only.py91CODE
LOWtests/special_sanity/test_config_docs.py19CODE
LOWtests/special_sanity/type_coverage_check.py34CODE
LOWtests/special_sanity/type_coverage_check.py87CODE
LOWtests/utils/test_continuous_token_on_cpu.py397CODE
LOWtests/utils/test_continuous_token_on_cpu.py2110CODE
LOWtests/utils/test_continuous_token_on_cpu.py2180CODE
LOWtests/utils/test_linear_cross_entropy.py113CODE
LOWtests/utils/test_special_linear_cross_entropy_tp.py207CODE
LOWtests/utils/test_fsdp_lora_merge.py37CODE
LOWtests/utils/test_fsdp_lora_merge.py225CODE
LOWtests/utils/test_turn_separator_on_cpu.py117CODE
LOWtests/utils/test_turn_separator_on_cpu.py62CODE
LOWtests/utils/test_turn_separator_on_cpu.py138CODE
LOWtests/utils/test_special_megatron_kl_loss_tp.py55CODE
LOW…sts/utils/dataset/test_multiturn_sft_dataset_on_cpu.py245CODE
LOW…ts/utils/veomni/test_special_export_unfused_experts.py58CODE
LOWtests/utils/megatron/test_optimizer_offload_and_load.py76CODE
LOW…eward_score/reward_score/test_sandbox_fusion_on_cpu.py127CODE
LOW…s/special_distributed/test_mcore_probe_differential.py49CODE
LOW…s/special_distributed/test_mcore_probe_differential.py174CODE
LOW…s/special_distributed/test_mcore_probe_differential.py290CODE
LOWtests/special_distributed/test_tensor_dict.py32CODE
LOWtests/special_distributed/test_sglang_delta_loop.py41CODE
LOWtests/workers/test_engine_detach_tree_on_cpu.py121CODE
LOW…ts/workers/rollout/rollout_trtllm/test_trtllm_abort.py32CODE
LOWtests/workers/rollout/rollout_vllm/test_vllm_abort.py29CODE
LOW…kpoint_engine/test_fsdp_lora_only_checkpoint_on_cpu.py286CODE
LOWtests/checkpoint_engine/test_block_placement.py412CODE
LOWtests/trainer/ppo/v1/test_replay_buffer_on_cpu.py162CODE
LOWverl/protocol.py543CODE
LOWverl/protocol.py914CODE
LOW…rl/experimental/fully_async_policy/fully_async_main.py186CODE
LOWverl/experimental/fully_async_policy/detach_utils.py270CODE
LOW…perimental/fully_async_policy/fully_async_rollouter.py902CODE
LOW…l/fully_async_policy/unittest/simple_streaming_demo.py85CODE
LOWverl/experimental/reward_loop/router/naive_router.py137CODE
LOW…experimental/reward_loop/router/inner_sglang_router.py30CODE
LOWverl/experimental/agent_loop/tool_parser.py211CODE
LOWverl/experimental/agent_loop/tool_parser.py765CODE
LOWverl/experimental/agent_loop/tool_parser.py224CODE
LOWverl/experimental/agent_loop/tool_agent_loop.py131CODE
LOWverl/experimental/agent_loop/tool_agent_loop.py310CODE
LOWverl/experimental/separation/ray_trainer.py502CODE
LOWverl/plugin/platform/platform_rocm.py30CODE
LOWverl/plugin/platform/platform_cuda.py41CODE
LOWverl/model_merger/megatron_model_merger.py108CODE
LOWverl/model_merger/base_model_merger.py220CODE
LOWverl/model_merger/fsdp_model_merger.py167CODE
LOWverl/utils/torch_functional.py514CODE
LOWverl/utils/torch_functional.py1012CODE
204 more matches not shown…
Docstring Block Structure42 hits · 210 pts
SeverityFileLineSnippetContext
HIGHdocs/data/transfer_queue.md243Sample a batch of indices from the ready indices. Args: ready_indexes: List of global indices for which allSTRING
HIGHverl/base_config.py56Implement the [] operator for the class. Allows accessing attributes like dictionary items. Args: kSTRING
HIGHverl/protocol.py673 Slice the DataProto and return a new DataProto object. This is an improved version of direct slicing whSTRING
HIGHverl/experimental/fully_async_policy/detach_utils.py87 Assemble gen_batch_output from RolloutSample objects Assembles batches from RolloutSample objects, similar to tSTRING
HIGH…perimental/fully_async_policy/fully_async_rollouter.py1350Block until the message queue contains at least ``required_count`` samples. Polls ``message_queue_client.get_quSTRING
HIGHverl/experimental/reward_loop/reward_manager/limited.py91Acquire tokens from the bucket, waiting if necessary. This method will block (using asyncio.sleep) until sufficSTRING
HIGHverl/tools/base_tool.py63Execute the tool. Args: instance_id: The instance id of the tool. parameters: The json STRING
HIGHverl/utils/seqlen_balancing.py214 Calculates partitions of indices from seqlen_list such that the sum of sequence lengths in each partition is baSTRING
HIGHverl/utils/torch_functional.py113Compute log-probabilities using Flash Attention's optimized cross-entropy. Uses the Flash Attention library's TritoSTRING
HIGHverl/utils/py_functional.py57 Decorator to add a timeout to a function. Args: seconds: The timeout duration in seconds. use_STRING
HIGHverl/utils/device.py297Check if the given software and CANN versions support IPC. Compares the software version and CANN toolkit version aSTRING
HIGHverl/utils/model.py639 Extract LoRA rank from adapter configuration file. Args: adapter_path: Path to LoRA adapter directory STRING
HIGHverl/utils/import_utils.py92Resolve agent loop configuration file path. In multi-node Ray training, relative paths may not resolve correctly STRING
HIGHverl/utils/import_utils.py265Load a class from its fully qualified name. Args: fqn: Fully qualified class name (e.g., 'mypackage.module.STRING
HIGHverl/utils/tensordict_utils.py186Concatenate multiple nested tensors along the batch dimension. Takes a list of nested tensors with jagged layout anSTRING
HIGHverl/utils/tensordict_utils.py222Handle concatenation of TensorDicts with empty batch size. For TensorDicts that contain only metadata (NonTensorDatSTRING
HIGHverl/utils/tensordict_utils.py248Concatenate multiple TensorDicts along dimension zero. Combines a list of TensorDicts into a single TensorDict by cSTRING
HIGHverl/utils/tensordict_utils.py303Split a TensorDict into equal-sized chunks with special nested tensor handling. Divides a TensorDict into the speciSTRING
HIGHverl/utils/tensordict_utils.py459Select rows from a TensorDict using indices. Creates a new TensorDict containing only the rows specified by indicesSTRING
HIGHverl/utils/tensordict_utils.py514Merge two TensorDicts, adding keys from the second to the first. Performs an in-place union of two TensorDicts. KeySTRING
HIGHverl/utils/tensordict_utils.py560Create an iterator that yields mini-batches from a TensorDict. Wraps a TensorDict in a DataLoader-style iterator thSTRING
HIGHverl/utils/tensordict_utils.py699Extract a subset of keys from a TensorDict into a new TensorDict. Creates a new TensorDict containing only the specSTRING
HIGHverl/utils/tensordict_utils.py773Remove multiple keys from a TensorDict and return them as a new TensorDict. Removes the specified keys from the souSTRING
HIGHverl/utils/tensordict_utils.py814Pad a TensorDict's batch dimension to be divisible by a given divisor. If the TensorDict's length is not evenly divSTRING
HIGHverl/utils/fsdp_utils.py453 Get the full state dict from an FSDP model. Args: model (torch.nn.Module): The FSDP model to get stateSTRING
HIGHverl/utils/dataset/rl_dataset.py515 split the dataset into num_splits sub-datasets Args: num_splits: specified number of splitsSTRING
HIGHverl/utils/tokenizer/continuous_token.py442Render messages with images through the processor. Unlike ``_render_tokens`` which uses only the tokenizer, thiSTRING
HIGHverl/utils/kernel/fp8_kernel.py177High-performance FP8 blockwise quantization using Triton kernel. This is the recommended function to use for FP8 quSTRING
HIGHverl/utils/megatron/router_replay_utils.py606 Reorder and merge per-VPP layer blocks into a contiguous layer dimension. Given a tensor shaped as [bs*vpp_sizSTRING
HIGHverl/utils/reward_score/__init__.py29Compute the score for a given solution based on the data source. Args: data_source (str): The source dataseSTRING
HIGHverl/workers/config/optimizer.py299Build an optimizer based on the configuration. Dynamically imports and instantiates an optimizer class from the speSTRING
HIGHverl/workers/rollout/router.py39Acquire a server for the given request. Args: request_id: Request identifier for sticky session rouSTRING
HIGHverl/workers/rollout/trtllm_rollout/trtllm_rollout.py178Make an async HTTP request with retry logic and consistent error handling. Args: endpoint (str): ThSTRING
HIGH…l/workers/rollout/sglang_rollout/http_server_engine.py117Launch an SGLang HTTP server process and wait for it to be ready. This function starts a new process running an SGLSTRING
HIGH…l/workers/rollout/sglang_rollout/http_server_engine.py303Make a HTTP request with retry logic and consistent error handling. Args: endpoint (str): The API eSTRING
HIGH…l/workers/rollout/sglang_rollout/http_server_engine.py671Make an async HTTP request with retry logic and consistent error handling. Args: endpoint (str): ThSTRING
HIGHverl/workers/engine/base.py433 Function to create a new training engine instance based on the provided config. Args: key: STRING
HIGHverl/workers/engine/fsdp/utils.py57 Determine the appropriate sharding strategy based on the number of dimensions of the device mesh. Args: STRING
HIGHverl/workers/engine/torchtitan/utils.py81Derive torchtitan model name and flavor from a HuggingFace config. The name is mapped from ``hf_config.model_type``STRING
HIGHverl/trainer/ppo/reward.py51Load and return a custom reward function from external file. Dynamically imports a reward function from a specifiedSTRING
HIGHverl/trainer/ppo/core_algos.py194Factory function to create appropriate KL controller based on configuration. Args: kl_ctrl: Configuration oSTRING
HIGHverl/trainer/ppo/core_algos.py2272Compute importance weights for resampling based on scores. Args: scores (torch.Tensor): Tensor of sSTRING
Cross-File Repetition32 hits · 160 pts
SeverityFileLineSnippetContext
HIGHdocs/blog/v0.7.md0send the weights of the model. args: weights: a generator that yields the name of the weight tensor and the tensor itselSTRING
HIGHverl/checkpoint_engine/nccl_checkpoint_engine.py0send the weights of the model. args: weights: a generator that yields the name of the weight tensor and the tensor itselSTRING
HIGHverl/checkpoint_engine/nixl_checkpoint_engine.py0send the weights of the model. args: weights: a generator that yields the name of the weight tensor and the tensor itselSTRING
HIGHverl/checkpoint_engine/kimi_checkpoint_engine.py0send the weights of the model. args: weights: a generator that yields the name of the weight tensor and the tensor itselSTRING
HIGHverl/checkpoint_engine/hccl_checkpoint_engine.py0send the weights of the model. args: weights: a generator that yields the name of the weight tensor and the tensor itselSTRING
HIGHdocs/blog/v0.7.md0receive the weights of the model. yields: a tuple of the name of the weight tensor and the tensor itself.STRING
HIGHverl/checkpoint_engine/nccl_checkpoint_engine.py0receive the weights of the model. yields: a tuple of the name of the weight tensor and the tensor itself.STRING
HIGHverl/checkpoint_engine/nixl_checkpoint_engine.py0receive the weights of the model. yields: a tuple of the name of the weight tensor and the tensor itself.STRING
HIGHverl/checkpoint_engine/kimi_checkpoint_engine.py0receive the weights of the model. yields: a tuple of the name of the weight tensor and the tensor itself.STRING
HIGHverl/checkpoint_engine/hccl_checkpoint_engine.py0receive the weights of the model. yields: a tuple of the name of the weight tensor and the tensor itself.STRING
HIGH…perimental/fully_async_policy/fully_async_rollouter.py0initialize distributed training workers using ray backend. creates: 1. ray resource pools from configuration 2. worker gSTRING
HIGH…experimental/fully_async_policy/fully_async_trainer.py0initialize distributed training workers using ray backend. creates: 1. ray resource pools from configuration 2. worker gSTRING
HIGHverl/experimental/separation/ray_trainer.py0initialize distributed training workers using ray backend. creates: 1. ray resource pools from configuration 2. worker gSTRING
HIGHverl/trainer/ppo/ray_trainer.py0initialize distributed training workers using ray backend. creates: 1. ray resource pools from configuration 2. worker gSTRING
HIGH…experimental/fully_async_policy/fully_async_trainer.py0the training loop of ppo. the driver process only need to call the compute functions of the worker group through rpc to STRING
HIGHverl/experimental/one_step_off_policy/ray_trainer.py0the training loop of ppo. the driver process only need to call the compute functions of the worker group through rpc to STRING
HIGHverl/trainer/ppo/ray_trainer.py0the training loop of ppo. the driver process only need to call the compute functions of the worker group through rpc to STRING
HIGH…experimental/fully_async_policy/fully_async_trainer.py0single-step training template method. handles all logic for one training step. flow: 1. pre-step processing -> 2. get baSTRING
HIGHverl/experimental/separation/ray_trainer.py0single-step training template method. handles all logic for one training step. flow: 1. pre-step processing -> 2. get baSTRING
HIGHverl/experimental/one_step_off_policy/ray_trainer.py0single-step training template method. handles all logic for one training step. flow: 1. pre-step processing -> 2. get baSTRING
HIGHverl/workers/reward_manager/prime.py0we will expand this function gradually based on the available datasetsSTRING
HIGHverl/workers/reward_manager/naive.py0we will expand this function gradually based on the available datasetsSTRING
HIGHverl/workers/reward_manager/dapo.py0we will expand this function gradually based on the available datasetsSTRING
HIGH…/workers/rollout/trtllm_rollout/trtllm_async_server.py0restore kv_cache gpu memory after a weight sync. counterpart to release_kv_cache().STRING
HIGH…/workers/rollout/sglang_rollout/async_sglang_server.py0restore kv_cache gpu memory after a weight sync. counterpart to release_kv_cache().STRING
HIGHverl/workers/rollout/vllm_rollout/vllm_async_server.py0restore kv_cache gpu memory after a weight sync. counterpart to release_kv_cache().STRING
HIGHverl/workers/engine/base.py0whether the current rank is the first rank in model parallel group that contains model outputsSTRING
HIGHverl/workers/engine/veomni/transformer_impl.py0whether the current rank is the first rank in model parallel group that contains model outputsSTRING
HIGHverl/workers/engine/torchtitan/transformer_impl.py0whether the current rank is the first rank in model parallel group that contains model outputsSTRING
HIGHverl/workers/engine/veomni/transformer_impl.py0move model parameters, optimizer states, or both to the specified device. note that this function executes irrespective STRING
HIGHverl/workers/engine/mindspeed/transformer_impl.py0move model parameters, optimizer states, or both to the specified device. note that this function executes irrespective STRING
HIGHverl/workers/engine/megatron/transformer_impl.py0move model parameters, optimizer states, or both to the specified device. note that this function executes irrespective STRING
Modern Structural Boilerplate150 hits · 151 pts
SeverityFileLineSnippetContext
LOWtests/special_e2e/envs/__init__.py17__all__ = ["DigitCompletion"]CODE
LOWtests/special_e2e/envs/digit_completion/__init__.py22__all__ = ["DigitCompletion", "generate_ground_truth_response", "CharTokenizer"]CODE
LOWtests/trainer/ppo/v1/test_replay_buffer_on_cpu.py127def _set_prompt_status(partition_id: str, uid: str, status: str, global_steps: int) -> None:CODE
LOWverl/protocol.py43__all__ = ["DataProto", "union_tensor_dict"]CODE
LOWverl/__init__.py46__all__ = ["DataProto", "__version__"]CODE
LOWverl/experimental/teacher_loop/__init__.py17__all__ = ["MultiTeacherModelManager"]CODE
LOW…rl/experimental/fully_async_policy/fully_async_main.py159 def _setup_hybrid_worker_group(self, config) -> None:CODE
LOWverl/experimental/fully_async_policy/message_queue.py23logger = logging.getLogger(__name__)CODE
LOW…experimental/fully_async_policy/fully_async_trainer.py44logger = logging.getLogger(__name__)CODE
LOW…experimental/fully_async_policy/fully_async_trainer.py302 async def _setup_dynamic_resource_controller(self) -> None:CODE
LOW…ly_async_policy/dynamic_schedule/fixed_ratio_policy.py51 def update_after_step(self, global_steps: int, ctx: DynamicScheduleContext) -> None:CODE
LOW…mental/fully_async_policy/dynamic_schedule/__init__.py20__all__ = [CODE
LOW…policy/dynamic_schedule/dynamic_resource_controller.py41__all__ = [CODE
LOW…c_policy/dynamic_schedule/static_fully_async_policy.py48 def update_after_step(self, global_steps: int, ctx: DynamicScheduleContext) -> None:CODE
LOW…/fully_async_policy/dynamic_schedule/default_policy.py92 def update_after_step(self, global_steps: int, ctx: DynamicScheduleContext) -> None:CODE
LOW…perimental/fully_async_policy/dynamic_schedule/base.py142 def update_after_step(self, global_steps: int, ctx: DynamicScheduleContext) -> None: # noqa: B027CODE
LOWverl/experimental/reward_loop/__init__.py18__all__ = ["RewardModelManager", "RewardLoopWorker", "RewardLoopManager", "migrate_legacy_reward_impl"]CODE
LOW…rl/experimental/reward_loop/reward_manager/registry.py19__all__ = ["register", "get_reward_manager_cls"]CODE
LOW…rl/experimental/reward_loop/reward_manager/__init__.py22__all__ = [CODE
LOW⚡verl/experimental/reward_loop/router/naive_router.py31logger = logging.getLogger(__name__)CODE
LOW…experimental/reward_loop/router/inner_sglang_router.py26logger = logging.getLogger(__name__)CODE
LOWverl/experimental/agent_loop/__init__.py27__all__ = [CODE
LOWverl/experimental/separation/engine_workers.py33__all__ = ["DetachActorWorker"]CODE
LOWverl/plugin/platform/__init__.py19__all__ = ["PlatformBase", "PlatformRegistry", "get_platform", "set_platform"]CODE
LOWverl/plugin/platform/platform_manager.py23logger = logging.getLogger(__name__)CODE
LOWverl/plugin/platform/platform_manager.py150def set_platform(platform: PlatformBase) -> None:CODE
LOW⚡verl/plugin/platform/platform_cuda.py78 def set_device(self, device_index: int) -> None:CODE
LOW⚡verl/plugin/platform/platform_cuda.py98 def set_allocator_settings(self, settings: str) -> None:CODE
LOW⚡verl/plugin/platform/platform_npu.py80 def set_device(self, device_index: int) -> None:CODE
LOW⚡verl/plugin/platform/platform_npu.py100 def set_allocator_settings(self, settings: str) -> None:CODE
LOWverl/plugin/platform/platform_npu.py15logger = logging.getLogger(__name__)CODE
LOW⚡verl/plugin/platform/platform_base.py109 def set_device(self, device_index: int) -> None:CODE
LOW⚡verl/plugin/platform/platform_base.py137 def set_allocator_settings(self, settings: str) -> None:CODE
LOWverl/utils/transferqueue_utils.py68logger = logging.getLogger(__name__)CODE
LOWverl/utils/megatron_peft_utils.py82__all__ = [CODE
LOWverl/utils/config.py20__all__ = ["omega_conf_to_dataclass", "validate_config"]CODE
LOW⚡verl/utils/device.py29logger = logging.getLogger(__name__)CODE
LOW⚡verl/utils/device.py137def set_expandable_segments(enable: bool) -> None:CODE
LOWverl/utils/groupwise.py51__all__ = ["as_torch_index", "group_mean_std"]CODE
LOWverl/utils/fs.py29__all__ = ["copy", "exists", "makedirs"]CODE
LOWverl/utils/tracking.py32logger = logging.getLogger(__name__)CODE
LOWverl/utils/attention_utils.py102__all__ = ["index_first_axis", "pad_input", "rearrange", "unpad_input"]CODE
LOWverl/utils/fsdp_utils.py40logger = logging.getLogger(__name__)CODE
LOWverl/utils/fsdp_utils.py820def set_reshard_after_forward(module: FSDPModule, reshard_after_forward: bool, recurse: bool = True) -> None:CODE
LOWverl/utils/checkpoint/__init__.py17__all__ = ["CheckpointHandler", "OrchestrationMode"]CODE
LOWverl/utils/qat/linear.py27__all__ = ["QATLinear", "QATMode"]CODE
LOWverl/utils/qat/__init__.py46__all__ = [CODE
LOWverl/utils/qat/core.py27logger = logging.getLogger(__name__)CODE
LOWverl/utils/qat/quantizer.py40logger = logging.getLogger(__name__)CODE
LOWverl/utils/qat/quantizer.py306__all__ = [CODE
LOWverl/utils/qat/vllm_patch.py35logger = logging.getLogger(__name__)CODE
LOWverl/utils/qat/vllm_patch.py824__all__ = [CODE
LOWverl/utils/logger/__init__.py25__all__ = [CODE
LOWverl/utils/dataset/__init__.py18__all__ = ["RLHFDataset", "RMDataset"]CODE
LOWverl/utils/dataset/rl_dataset.py38logger = logging.getLogger(__name__)CODE
LOWverl/utils/tokenizer/continuous_token_wiring.py41logger = logging.getLogger(__name__)CODE
LOWverl/utils/tokenizer/continuous_token.py34logger = logging.getLogger(__name__)CODE
LOWverl/utils/tokenizer/__init__.py23__all__ = [CODE
LOWverl/utils/tokenizer/chat_template.py9logger = logging.getLogger(__name__)CODE
LOWverl/utils/tokenizer/tokenizer.py19__all__ = [CODE
90 more matches not shown…
Structural Annotation Overuse76 hits · 129 pts
SeverityFileLineSnippetContext
LOWtests/utils/test_activation_offload.py110 # Step 1: Initial update and save checkpointCOMMENT
LOWtests/utils/test_activation_offload.py123 # Step 2: Second update and forward passCOMMENT
LOW⚡tests/utils/test_activation_offload.py135 # Step 3: wrap module with activation offloading and load checkpointCOMMENT
LOW⚡tests/utils/test_activation_offload.py139 # Step 4: Repeat the second update with same inputCOMMENT
LOWtests/utils/test_activation_offload.py151 # Step 4: Verify outputs matchCOMMENT
LOWtests/special_distributed/test_fsdp_ckpt.py104 # Step 1: Initial update and save checkpointCOMMENT
LOWtests/special_distributed/test_fsdp_ckpt.py118 # Step 2: Second update and forward passCOMMENT
LOWtests/special_distributed/test_fsdp_ckpt.py130 # Step 3: Load checkpoint and repeat second updateCOMMENT
LOWtests/special_distributed/test_fsdp_ckpt.py149 # Step 4: Verify outputs matchCOMMENT
LOWdocs/advance/rl_insight.md17## Step 1: Install and Start RL-InsightCOMMENT
LOWdocs/advance/rl_insight.md68## Step 2: Enable RL-Insight in verlCOMMENT
LOWdocs/advance/rl_insight.md97## Step 3: Monitor Rollout and TransferQueue MetricsCOMMENT
LOWdocs/advance/rl_insight.md111## Step 4: Add Hardware Metrics (Optional)COMMENT
LOWdocs/advance/dynamic_schedule.md413### Step 1: Subclass the base classCOMMENT
LOWdocs/advance/dynamic_schedule.md460### Step 2: Register the importCOMMENT
LOWdocs/advance/dynamic_schedule.md471### Step 3: Reference in configCOMMENT
LOWdocs/advance/dynamic_schedule.md481### Step 4: Use `DynamicScheduleContext` fieldsCOMMENT
LOWdocs/advance/grafana_prometheus.md39### Step 1: Environment Variables and Start Ray ClusterCOMMENT
LOWdocs/advance/grafana_prometheus.md64### Step 2: Start Grafana (Visualization Dashboard)COMMENT
LOWdocs/advance/grafana_prometheus.md80### Step 3: Start Prometheus (Metrics Collection)COMMENT
LOWdocs/advance/grafana_prometheus.md154### Step 6: View Metrics in PrometheusCOMMENT
LOWdocs/advance/grafana_prometheus.md169### Step 7: View Metrics in GrafanaCOMMENT
LOW⚡…perimental/fully_async_policy/fully_async_rollouter.py1239 # Step 1: Clear sticky cache so retried requests use least-loaded routing.COMMENT
LOW⚡…perimental/fully_async_policy/fully_async_rollouter.py1246 # Step 2: Abort in-flight requests on all active replicas.COMMENT
LOW⚡…perimental/fully_async_policy/fully_async_rollouter.py1252 # Step 3: Wait until release_server() from all aborted requests has actuallyCOMMENT
LOW⚡…perimental/fully_async_policy/fully_async_rollouter.py1267 # Step 4: Resume generation so retried requests can be accepted.COMMENT
LOW⚡…experimental/fully_async_policy/fully_async_trainer.py730 # Step 1: NCCL broadcast from trainer to standalone rollout replicas.COMMENT
LOW⚡…experimental/fully_async_policy/fully_async_trainer.py737 # Step 2: When dynamic resource scheduling is enabled, the Trainer GPUsCOMMENT
LOW…experimental/fully_async_policy/fully_async_trainer.py290 # Step 3: Sleep all hybrid replicasCOMMENT
LOW…rimental/fully_async_policy/dynamic_schedule/README.md413### Step 1: Subclass the base classCOMMENT
LOW…rimental/fully_async_policy/dynamic_schedule/README.md460### Step 2: Register the importCOMMENT
LOW…rimental/fully_async_policy/dynamic_schedule/README.md471### Step 3: Reference in configCOMMENT
LOW…rimental/fully_async_policy/dynamic_schedule/README.md481### Step 4: Use `DynamicScheduleContext` fieldsCOMMENT
LOWverl/experimental/reward_loop/reward_manager/limited.py269 # NOTE: This class owns a *global*, class-level set of rate limiters. Once the class has beenCOMMENT
LOW⚡verl/utils/megatron/router_replay_patch.py401 # Step 1: Patch TransformerConfig to include the feature flagCOMMENT
LOW⚡verl/utils/megatron/router_replay_patch.py452 # Step 2: Patch TopKRouter only once to ensure idempotency.COMMENT
LOW⚡verl/utils/megatron/router_replay_patch.py458 # Step 3: Define the new __init__ methodCOMMENT
LOW⚡verl/utils/megatron/router_replay_patch.py465 # Step 4: Apply the patchesCOMMENT
LOW⚡verl/models/transformers/monkey_patch.py414 # Step 3: patch input for multimodal sequence parallelismCOMMENT
LOW⚡verl/models/transformers/monkey_patch.py420 # Step 1: patch model to support image-text mixed dataCOMMENT
LOW⚡verl/models/transformers/monkey_patch.py453 # Step 2: patch input for multimodal sequence parallelismCOMMENT
LOW⚡verl/models/transformers/monkey_patch.py459 # Step 1: patch model to support image-text mixed dataCOMMENT
LOW⚡verl/models/transformers/monkey_patch.py474 # Step 2: patch attention to support ulysses parallelismCOMMENT
LOW⚡verl/models/transformers/monkey_patch.py481 # Step 3: patch input for multimodal sequence parallelismCOMMENT
LOWverl/models/transformers/monkey_patch.py366 # Step 1: patch model to support image-text mixed dataCOMMENT
LOWverl/models/transformers/monkey_patch.py395 # Step 2: patch attention to support ulysses parallelismCOMMENT
LOWverl/models/transformers/monkey_patch.py501 # Step 1: patch model to support image-text mixed dataCOMMENT
LOWverl/models/transformers/monkey_patch.py537 # Step 2: patch vision model to fix fsdp2 cpu_offload bug.COMMENT
LOW⚡verl/trainer/ppo/rollout_corr_helper.py848 # Step 1: Compute log ratio (log(π_train / π_rollout))COMMENT
LOW⚡verl/trainer/ppo/rollout_corr_helper.py852 # Step 2: Compute IS weights (if enabled)COMMENT
LOW⚡verl/trainer/ppo/rollout_corr_helper.py880 # Step 4: Compute off-policy metrics (KL, PPL, χ², etc.)COMMENT
LOW⚡verl/trainer/ppo/rollout_corr_helper.py888 # Step 6: Add "rollout_corr/" prefix to all metrics for logging consistencyCOMMENT
LOW⚡verl/trainer/ppo/rollout_corr_helper.py896 # Step 7: Wrap IS weights in DataProto for consistency with APICOMMENT
LOWverl/trainer/ppo/rollout_corr_helper.py864 # Step 3: Compute rejection mask (if enabled)COMMENT
LOW⚡verl/trainer/ppo/core_algos.py926 # Step 1: Compute w_per_timestep = 1 - 2π_t + Σπ²)COMMENT
LOW⚡verl/trainer/ppo/core_algos.py930 # Step 2: Apply rollout importance sampling correction (if enabled)COMMENT
LOW⚡verl/trainer/ppo/core_algos.py935 # Step 3: Compute cumulative path-variance proxy: W_t = Σ_{j=1}^t w_jCOMMENT
LOW⚡verl/trainer/ppo/core_algos.py1042 # Step 1: Compute w_per_timestep = 1 - 2π_t + Σπ²)COMMENT
LOW⚡verl/trainer/ppo/core_algos.py1046 # Step 2: Apply rollout importance sampling correction (if enabled)COMMENT
LOW⚡verl/trainer/ppo/core_algos.py1051 # Step 3: Compute cumulative path-variance proxy: W_t = Σ_{j=1}^t w_jCOMMENT
16 more matches not shown…
Self-Referential Comments41 hits · 118 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_protocol_v2_on_cpu.py434 # Create a DataProto object with some batch and non-tensor dataCOMMENT
MEDIUMtests/test_protocol_v2_on_cpu.py629 # Create a DataProto object with some batch and non-tensor dataCOMMENT
MEDIUMtests/test_protocol_on_cpu.py133 # Create a circular reference and a non-circular one.COMMENT
MEDIUMtests/test_protocol_on_cpu.py371 # Create a DataProto object with some batch and non-tensor dataCOMMENT
MEDIUMtests/test_protocol_on_cpu.py618 # Create a DataProto object with some batch and non-tensor dataCOMMENT
MEDIUMtests/test_protocol_on_cpu.py1244 # Create a DataProto with an empty TensorDict but with a batch sizeCOMMENT
MEDIUMtests/experimental/agent_loop/test_multi_modal.py94 # Create a simple colored image for testingCOMMENT
MEDIUMtests/experimental/agent_loop/test_multi_modal.py339 # Create a simple test imageCOMMENT
MEDIUMtests/experimental/agent_loop/test_basic_agent_loop.py398 # Initialize the class to set up class-level attributesCOMMENT
MEDIUMtests/utils/test_nvtx_profile.py135 # Create a new ProfilerConfig instanceCOMMENT
MEDIUMtests/utils/test_model_on_cpu.py35 # Create a fresh mock config object for each test caseCOMMENT
MEDIUM⚡tests/utils/test_import_utils_on_cpu.py84 # Create a temporary file with syntax errorsCOMMENT
MEDIUMtests/utils/test_special_linear_cross_entropy_tp.py273 # Create a tensor to hold the gathered weights from all ranksCOMMENT
MEDIUMtests/utils/test_special_linear_cross_entropy_tp.py277 # Create a single contiguous tensor to hold all gathered weightsCOMMENT
MEDIUM…sts/utils/dataset/test_multiturn_sft_dataset_on_cpu.py49 # Create a temporary parquet file with test dataCOMMENT
MEDIUM⚡…eward_score/reward_score/test_sandbox_fusion_on_cpu.py338# Define a low global concurrency limit to test the semaphore's effectSTRING
MEDIUM⚡…eward_score/reward_score/test_sandbox_fusion_on_cpu.py340# Define the number of processes used in the testSTRING
MEDIUM⚡…eward_score/reward_score/test_sandbox_fusion_on_cpu.py342# Define the number of tasks processed by check_correctness in each process (i.e., internalSTRING
MEDIUM…eward_score/reward_score/test_sandbox_fusion_on_cpu.py470 # Create a multiprocessing.Semaphore instance, this is the global semaphore we are testing.STRING
MEDIUM…kers/rollout/rollout_sglang/test_http_server_engine.py17# This file is adapted from multiple sources:COMMENT
MEDIUMtests/single_controller/test_decorator_on_cpu.py38# Define a simple worker for testingCOMMENT
MEDIUMtests/trainer/ppo/test_metric_utils_on_cpu.py297 # Create a mock DataProto objectCOMMENT
MEDIUMtests/trainer/ppo/test_metric_utils_on_cpu.py358 # Create a mock DataProto objectCOMMENT
MEDIUMtests/trainer/ppo/test_metric_utils_on_cpu.py435 # Create a mock DataProto objectCOMMENT
MEDIUMverl/protocol.py700 # Create a slice objectCOMMENT
MEDIUM…perimental/fully_async_policy/fully_async_rollouter.py1093 # Create the main asynchronous taskCOMMENT
MEDIUM⚡verl/experimental/one_step_off_policy/ray_trainer.py221 # Create the initial batch from the data loaderCOMMENT
MEDIUMverl/utils/megatron_utils.py1096 # Create a dummy total_loss_dict to collect MTP metricsCOMMENT
MEDIUMverl/utils/tensordict_utils.py281 # Create a list of tensordicts containing only non-nested tensors for concatenationCOMMENT
MEDIUMverl/utils/tensordict_utils.py287 # Create a new TensorDict with non-nested items without modifying the originalCOMMENT
MEDIUMverl/utils/tracking.py708 # Create a new table with same columns and existing dataCOMMENT
MEDIUMverl/utils/vllm/vllm_fp8_utils.py330 """This function is used to process the weights after loading for a Linear layer, it is used for vllm v0.18-v0.19.STRING
MEDIUMverl/utils/debug/performance.py16# This file is deprecated, for new features please develop in profiler/performance.pyCOMMENT
MEDIUMverl/workers/rollout/trtllm_rollout/trtllm_rollout.py153 # Create a new session for each request to avoid resource competitionCOMMENT
MEDIUM…l/workers/rollout/sglang_rollout/http_server_engine.py17# This file is adapted from multiple sources:COMMENT
MEDIUM…l/workers/rollout/sglang_rollout/http_server_engine.py646 # Create a new session for each request to avoid resource competitionCOMMENT
MEDIUMverl/trainer/main_ppo.py33# Define a function to run the PPO-like training processCOMMENT
MEDIUMverl/trainer/main_ppo.py76 # Create a remote instance of the TaskRunner class, andCOMMENT
MEDIUMverl/trainer/main_ppo.py96 # This file is used for performance analysisCOMMENT
MEDIUMverl/trainer/ppo/reward.py140 # Create a semaphore to control concurrent access to the sandboxCOMMENT
MEDIUM.github/workflows/schedule_doc_translate_ascend.yaml15# This file is a part of the verl project.COMMENT
Verbosity Indicators55 hits · 99 pts
SeverityFileLineSnippetContext
LOWtests/utils/test_activation_offload.py110 # Step 1: Initial update and save checkpointCOMMENT
LOWtests/utils/test_activation_offload.py123 # Step 2: Second update and forward passCOMMENT
LOW⚡tests/utils/test_activation_offload.py135 # Step 3: wrap module with activation offloading and load checkpointCOMMENT
LOW⚡tests/utils/test_activation_offload.py139 # Step 4: Repeat the second update with same inputCOMMENT
LOWtests/utils/test_activation_offload.py151 # Step 4: Verify outputs matchCOMMENT
LOWtests/special_distributed/test_fsdp_ckpt.py104 # Step 1: Initial update and save checkpointCOMMENT
LOWtests/special_distributed/test_fsdp_ckpt.py118 # Step 2: Second update and forward passCOMMENT
LOWtests/special_distributed/test_fsdp_ckpt.py130 # Step 3: Load checkpoint and repeat second updateCOMMENT
LOWtests/special_distributed/test_fsdp_ckpt.py149 # Step 4: Verify outputs matchCOMMENT
LOW⚡…perimental/fully_async_policy/fully_async_rollouter.py1239 # Step 1: Clear sticky cache so retried requests use least-loaded routing.COMMENT
LOW⚡…perimental/fully_async_policy/fully_async_rollouter.py1246 # Step 2: Abort in-flight requests on all active replicas.COMMENT
LOW⚡…perimental/fully_async_policy/fully_async_rollouter.py1252 # Step 3: Wait until release_server() from all aborted requests has actuallyCOMMENT
LOW⚡…perimental/fully_async_policy/fully_async_rollouter.py1267 # Step 4: Resume generation so retried requests can be accepted.COMMENT
LOW⚡…experimental/fully_async_policy/fully_async_trainer.py730 # Step 1: NCCL broadcast from trainer to standalone rollout replicas.COMMENT
LOW⚡…experimental/fully_async_policy/fully_async_trainer.py737 # Step 2: When dynamic resource scheduling is enabled, the Trainer GPUsCOMMENT
LOW…experimental/fully_async_policy/fully_async_trainer.py290 # Step 3: Sleep all hybrid replicasCOMMENT
LOW⚡verl/utils/megatron/router_replay_patch.py401 # Step 1: Patch TransformerConfig to include the feature flagCOMMENT
LOW⚡verl/utils/megatron/router_replay_patch.py452 # Step 2: Patch TopKRouter only once to ensure idempotency.COMMENT
LOW⚡verl/utils/megatron/router_replay_patch.py458 # Step 3: Define the new __init__ methodCOMMENT
LOW⚡verl/utils/megatron/router_replay_patch.py465 # Step 4: Apply the patchesCOMMENT
LOW⚡verl/models/transformers/monkey_patch.py414 # Step 3: patch input for multimodal sequence parallelismCOMMENT
LOW⚡verl/models/transformers/monkey_patch.py420 # Step 1: patch model to support image-text mixed dataCOMMENT
LOW⚡verl/models/transformers/monkey_patch.py453 # Step 2: patch input for multimodal sequence parallelismCOMMENT
LOW⚡verl/models/transformers/monkey_patch.py459 # Step 1: patch model to support image-text mixed dataCOMMENT
LOW⚡verl/models/transformers/monkey_patch.py474 # Step 2: patch attention to support ulysses parallelismCOMMENT
LOW⚡verl/models/transformers/monkey_patch.py481 # Step 3: patch input for multimodal sequence parallelismCOMMENT
LOWverl/models/transformers/monkey_patch.py366 # Step 1: patch model to support image-text mixed dataCOMMENT
LOWverl/models/transformers/monkey_patch.py395 # Step 2: patch attention to support ulysses parallelismCOMMENT
LOWverl/models/transformers/monkey_patch.py501 # Step 1: patch model to support image-text mixed dataCOMMENT
LOWverl/models/transformers/monkey_patch.py537 # Step 2: patch vision model to fix fsdp2 cpu_offload bug.COMMENT
LOW⚡verl/trainer/ppo/rollout_corr_helper.py848 # Step 1: Compute log ratio (log(π_train / π_rollout))COMMENT
LOW⚡verl/trainer/ppo/rollout_corr_helper.py852 # Step 2: Compute IS weights (if enabled)COMMENT
LOW⚡verl/trainer/ppo/rollout_corr_helper.py880 # Step 4: Compute off-policy metrics (KL, PPL, χ², etc.)COMMENT
LOW⚡verl/trainer/ppo/rollout_corr_helper.py888 # Step 6: Add "rollout_corr/" prefix to all metrics for logging consistencyCOMMENT
LOW⚡verl/trainer/ppo/rollout_corr_helper.py896 # Step 7: Wrap IS weights in DataProto for consistency with APICOMMENT
LOWverl/trainer/ppo/rollout_corr_helper.py864 # Step 3: Compute rejection mask (if enabled)COMMENT
LOW⚡verl/trainer/ppo/core_algos.py926 # Step 1: Compute w_per_timestep = 1 - 2π_t + Σπ²)COMMENT
LOW⚡verl/trainer/ppo/core_algos.py930 # Step 2: Apply rollout importance sampling correction (if enabled)COMMENT
LOW⚡verl/trainer/ppo/core_algos.py935 # Step 3: Compute cumulative path-variance proxy: W_t = Σ_{j=1}^t w_jCOMMENT
LOW⚡verl/trainer/ppo/core_algos.py1042 # Step 1: Compute w_per_timestep = 1 - 2π_t + Σπ²)COMMENT
LOW⚡verl/trainer/ppo/core_algos.py1046 # Step 2: Apply rollout importance sampling correction (if enabled)COMMENT
LOW⚡verl/trainer/ppo/core_algos.py1051 # Step 3: Compute cumulative path-variance proxy: W_t = Σ_{j=1}^t w_jCOMMENT
LOW⚡verl/trainer/ppo/core_algos.py1055 # Step 4: Concatenate returns and w_cumulative for each trajectoryCOMMENT
LOW⚡examples/data_preprocess/tinyllava_video_r1.py23 # Step 1: DownloadSTRING
LOW⚡examples/data_preprocess/tinyllava_video_r1.py28 # Step 2: Extract videosSTRING
LOW⚡examples/data_preprocess/tinyllava_video_r1.py31 # Step 3: PreprocessSTRING
LOW⚡.github/workflows/schedule_doc_translate_ascend.yaml121 # Step 1: Checkout the fork private repo's main branch.COMMENT
LOW⚡.github/workflows/schedule_doc_translate_ascend.yaml135 # Step 2: Sync the fork's main with the latest upstream verl sourceCOMMENT
LOW⚡.github/workflows/schedule_doc_translate_ascend.yaml157 # Step 3: Setup Python and install dependencies.COMMENT
LOW⚡.github/workflows/schedule_doc_translate_ascend.yaml168 # Step 4: Clean stale translation memory for full translation.COMMENT
LOW⚡.github/workflows/schedule_doc_translate_ascend.yaml178 # Step 5: Detect whether to translate (full vs incremental).COMMENT
LOW⚡.github/workflows/schedule_doc_translate_ascend.yaml198 # Step 6: Translate via LLM API.COMMENT
LOW⚡.github/workflows/schedule_doc_translate_ascend.yaml257 # Step 7: Process translated files.COMMENT
LOW⚡.github/workflows/schedule_doc_translate_ascend.yaml309 # Step 8: Create clean branch and commit.COMMENT
LOW⚡.github/workflows/schedule_doc_translate_ascend.yaml381 # Step 9: Create Pull Request to the upstream verl source repo.COMMENT
Redundant / Tautological Comments44 hits · 65 pts
SeverityFileLineSnippetContext
LOWtests/test_protocol_on_cpu.py1073 # Check if it's a nested tensorCOMMENT
LOWtests/experimental/agent_loop/test_multi_modal.py430 # Check if this sample should have image pads (samples with index 1 and 2 in each repeat have images)COMMENT
LOWtests/special_sanity/test_config_docs.py35 # Check if there's a comment aboveCOMMENT
LOWtests/utils/test_special_linear_cross_entropy_tp.py494 # Check if running with torchrun (distributed mode)COMMENT
LOWtests/models/test_tiled_mlp_accuracy.py95 # Check if within tolerance (1e-2 for bf16)COMMENT
LOWverl/protocol.py386 # Check if batch is empty to avoid torch.cat error in consolidateCOMMENT
LOW…perimental/fully_async_policy/fully_async_rollouter.py877 # Check if have reached the last stepCOMMENT
LOW…experimental/fully_async_policy/fully_async_trainer.py816 # Check if validation is neededCOMMENT
LOW…experimental/fully_async_policy/fully_async_trainer.py878 # Check if the ESI (Elastic Server Instance)/training plan is close to expiration.COMMENT
LOW…experimental/fully_async_policy/fully_async_trainer.py883 # Check if the conditions for saving a checkpoint are met.COMMENT
LOWverl/experimental/reward_loop/reward_manager/limited.py267 # Check if already initialized before calling parent.COMMENT
LOWverl/experimental/separation/ray_trainer.py688 # Check if the ESI (Elastic Server Instance)/training plan is close to expiration.COMMENT
LOWverl/experimental/separation/ray_trainer.py693 # Check if the conditions for saving a checkpoint are met.COMMENT
LOWverl/utils/transferqueue_utils.py245 # Check if collect_fn is a functools.partial and handle gracefullyCOMMENT
LOWverl/utils/fp8_utils.py56 # Check if matches exclude patternsCOMMENT
LOWverl/utils/fp8_utils.py76 # Check if matches include patternsCOMMENT
LOWverl/utils/fp8_utils.py106 # Check if quantization is neededCOMMENT
LOWverl/utils/fsdp_utils.py1038 # Check if module is a PEFT modelCOMMENT
LOWverl/utils/qat/vllm_patch.py130 # Check if we have metadata for this layerCOMMENT
LOWverl/utils/qat/vllm_patch.py138 # Check if this param needs rebuildCOMMENT
LOWverl/utils/qat/vllm_patch.py182 # Check if can rebuild from metadataCOMMENT
LOWverl/utils/dataset/multiturn_sft_dataset.py334 # Check if all tensors in the list have the same shapeCOMMENT
LOWverl/utils/dataset/rl_dataset.py580 # Check if a custom dataset class is specified in the data configurationCOMMENT
LOWverl/utils/kernel/fp8_kernel.py22# Check if Triton is availableCOMMENT
LOWverl/models/mcore/mtp_patch.py272 # Check if GPTModel has MTP and find the layersCOMMENT
LOWverl/models/mcore/mtp_patch.py278 # Check if any layer in the model is MultiTokenPredictionLayerCOMMENT
LOWverl/models/mcore/mtp_patch.py311 # Check if GPTModel has MTP and find the layersCOMMENT
LOWverl/models/mcore/mtp_patch.py317 # Check if any layer in the model is MultiTokenPredictionLayerCOMMENT
LOWverl/models/mcore/mtp_patch.py356 # Check if GPTModel has MTP and find the layersCOMMENT
LOWverl/models/mcore/mtp_patch.py362 # Check if any layer in the model is MultiTokenPredictionLayerCOMMENT
LOWverl/models/mcore/mtp_patch.py394 # Check if GPTModel has MTP and find the layersCOMMENT
LOWverl/models/mcore/mtp_patch.py400 # Check if any layer in the model is MultiTokenPredictionLayerCOMMENT
LOW…third_party/torch/distributed/checkpoint/state_dict.py479 # Verify if the model_state_dict and optim_state_dict are valid. This APICOMMENT
LOWverl/workers/rollout/router.py182 # Check if server is still in the active poolCOMMENT
LOW…kers/rollout/trtllm_rollout/trtllm_worker_extension.py153 # Check if model supports partial loading and use appropriate strategyCOMMENT
LOWverl/workers/rollout/vllm_rollout/utils.py401 # Check if FP8 quantization is enabled and apply appropriate weight loadingCOMMENT
LOWverl/workers/engine/veomni/utils.py87 # Check if this is a MultiOptimizer (for ep and non-ep parameters when ep+fsdp2 is enabled)COMMENT
LOWverl/workers/engine/veomni/utils.py107 # Check if this is a MultiOptimizer (for ep and non-ep parameters when ep+fsdp2 is enabled)COMMENT
LOWverl/trainer/main_ppo.py56 # Check if Ray is not initializedCOMMENT
LOWverl/trainer/ppo/metric_utils.py708 # Check if we have the necessary data (sum_pi_squared is required for W-score)COMMENT
LOWverl/trainer/ppo/ray_trainer.py266 # Check if sum_pi_squared is availableCOMMENT
LOWverl/trainer/ppo/ray_trainer.py1692 # Check if the ESI (Elastic Server Instance)/training plan is close to expiration.COMMENT
LOWverl/trainer/ppo/ray_trainer.py1697 # Check if the conditions for saving a checkpoint are met.COMMENT
LOWexamples/tutorial/skypilot/verl-ppo.yaml22 # Check if the script exists and use absolute pathCOMMENT
Hallucination Indicators4 hits · 50 pts
SeverityFileLineSnippetContext
CRITICAL⚡tests/trainer/ppo/test_core_algos_on_cpu.py42 verl.trainer.ppo.core_algos.ADV_ESTIMATOR_REGISTRY.clear()CODE
CRITICAL⚡tests/trainer/ppo/test_core_algos_on_cpu.py50 verl.trainer.ppo.core_algos.ADV_ESTIMATOR_REGISTRY.clear()CODE
CRITICALverl/trainer/ppo/v1/trainer_base.py730 sync_refill_failed_groups = bool(self.config.trainer.v1.sampler.get("sync_refill_failed_groups", False))CODE
CRITICALverl/trainer/ppo/v1/trainer_base.py1848 self.config.actor_rollout_ref.actor.policy_loss.get("rollout_correction", {}).get("score_centering", False)CODE
AI Structural Patterns54 hits · 46 pts
SeverityFileLineSnippetContext
LOW…perimental/agent_loop/test_qwen3_tool_parser_on_cpu.py55CODE
LOWtests/single_controller/test_worker_group_basics.py103CODE
LOWtests/special_e2e/envs/digit_completion/task.py136CODE
LOWtests/trainer/ppo/test_score_centering_on_cpu.py461CODE
LOWtests/trainer/ppo/v1/test_replay_buffer_on_cpu.py51CODE
LOW…ainer/ppo/v1/test_separate_async_step_switch_on_cpu.py85CODE
LOWverl/protocol.py1123CODE
LOWverl/protocol.py1192CODE
LOWverl/experimental/agent_loop/agent_loop.py676CODE
LOWverl/experimental/separation/ray_trainer.py59CODE
LOWverl/utils/torch_functional.py70CODE
LOWverl/utils/torch_functional.py645CODE
LOWverl/utils/torch_functional.py673CODE
LOWverl/utils/torch_functional.py1008CODE
LOWverl/utils/checkpoint/megatron_checkpoint_manager.py307CODE
LOWverl/utils/qat/linear.py345CODE
LOWverl/utils/dataset/rm_dataset.py41CODE
LOWverl/utils/megatron/tensor_parallel.py233CODE
LOWverl/utils/megatron/router_replay_utils.py652CODE
LOWverl/utils/reward_score/rlla.py248CODE
LOWverl/models/mcore/patch.py374CODE
LOWverl/models/mcore/model_forward_fused.py300CODE
LOWverl/models/mcore/model_forward.py116CODE
LOWverl/models/mcore/mtp_patch.py97CODE
LOWverl/models/transformers/dense_common.py29CODE
LOWverl/models/transformers/dense_common.py71CODE
LOWverl/models/transformers/dense_common.py139CODE
LOWverl/models/transformers/qwen3_5.py335CODE
LOWverl/models/transformers/npu_patch.py103CODE
LOWverl/third_party/torch/distributed/_state_dict_utils.py394CODE
LOWverl/third_party/torch/distributed/_state_dict_utils.py526CODE
LOWverl/workers/utils/padding.py141CODE
LOWverl/workers/rollout/hf_rollout.py51CODE
LOW…l/workers/rollout/sglang_rollout/http_server_engine.py221CODE
LOW…l/workers/rollout/sglang_rollout/http_server_engine.py429CODE
LOW…l/workers/rollout/sglang_rollout/http_server_engine.py592CODE
LOW…l/workers/rollout/sglang_rollout/http_server_engine.py883CODE
LOW…l/workers/rollout/sglang_rollout/http_server_engine.py848CODE
LOW…l/workers/rollout/sglang_rollout/http_server_engine.py885CODE
LOW…l/workers/rollout/sglang_rollout/http_server_engine.py964CODE
LOWverl/workers/engine/utils.py219CODE
LOWverl/single_controller/ray/base.py434CODE
LOWverl/single_controller/base/worker.py348CODE
LOWverl/trainer/ppo/metric_utils.py857CODE
LOWexamples/data_preprocess/full_hh_rlhf.py118CODE
LOWexamples/data_preprocess/gsm8k.py85CODE
LOWexamples/data_preprocess/gsm8k_multiturn_w_tool.py106CODE
LOWexamples/data_preprocess/openr1mm.py75CODE
LOWexamples/data_preprocess/gsm8k_multiturn_sft.py79CODE
LOWexamples/data_preprocess/math_dataset.py78CODE
LOWexamples/data_preprocess/gsm8k_tool_agent_loop.py107CODE
LOWexamples/data_preprocess/geo3k.py83CODE
LOWexamples/data_preprocess/hellaswag.py81CODE
LOWexamples/data_preprocess/geo3k_multiturn_w_tool.py102CODE
AI Slop Vocabulary13 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_protocol_on_cpu.py98 # 4D object array to ensure deep recursion is robustCOMMENT
MEDIUM…fully_async_policy/config/fully_async_ppo_trainer.yaml95# And it can be used in conjunction with other rollout_correction algorithms.COMMENT
MEDIUM…nc_policy/config/fully_async_ppo_megatron_trainer.yaml94# And it can be used in conjunction with other rollout_correction algorithms.COMMENT
MEDIUM…f_policy/config/one_step_off_ppo_megatron_trainer.yaml28# And it can be used in conjunction with other rollout_correction algorithms.COMMENT
MEDIUM…e_step_off_policy/config/one_step_off_ppo_trainer.yaml28# And it can be used in conjunction with other rollout_correction algorithms.COMMENT
MEDIUMverl/utils/vllm/vllm_fp8_utils.py427 # robust than version string comparison, especially for dev/pre-release versions.COMMENT
MEDIUMverl/utils/reward_score/math_dapo.py14# Adapted from https://github.com/EleutherAI/lm-evaluation-harness/blob/main/lm_eval/tasks/hendrycks_math/utils.pyCOMMENT
MEDIUMverl/utils/reward_score/math_reward.py14# Adapted from https://github.com/EleutherAI/lm-evaluation-harness/blob/main/lm_eval/tasks/hendrycks_math/utils.pyCOMMENT
MEDIUMverl/utils/reward_score/math_reward.py31# string normalization from https://github.com/EleutherAI/lm-evaluation-harness/blob/master/lm_eval/tasks/hendrycks_mathCOMMENT
LOW…third_party/torch/distributed/checkpoint/state_dict.py1180 >>> # if we simply call ddp_model.state_dict() and fsdp_model.state_dict(),STRING
MEDIUMverl/single_controller/ray/base.py216 # that can utilize different WorkerGroup for differnt modelsCOMMENT
MEDIUMverl/trainer/ppo/rollout_corr_helper.py669 """Compute comprehensive metrics for truncated importance sampling weights.STRING
MEDIUMverl/trainer/ppo/utils.py156 # Use a sampler to facilitate checkpoint resumption.COMMENT
Modern AI Meta-Vocabulary10 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md292- [DART-GUI](https://github.com/Computer-use-agents/dart-gui): a decoupled agentic RL framework for Computer Use Agents,CODE
MEDIUMtests/utils/test_turn_separator_on_cpu.py39# Thinking model (e.g. Qwen3): assistant turns are wrapped in ``<think></think>`` scaffolding. TheCOMMENT
MEDIUMtests/utils/test_turn_separator_on_cpu.py41# the scaffold, which is why the helper probes user turns instead.COMMENT
MEDIUM⚡tests/utils/test_turn_separator_on_cpu.py200 # The template really does inject scaffolding, so a naive assistant-turn probe is wrong: this isCOMMENT
MEDIUM⚡tests/utils/test_turn_separator_on_cpu.py209 # The real helper avoids the scaffold and recovers the true separator.COMMENT
MEDIUMverl/utils/tokenizer/continuous_token.py718 # Gemma4's generation scaffold depends on the preceding message type andCOMMENT
MEDIUMverl/utils/tokenizer/continuous_token.py1357 # The processor template always appends the scaffold; strip it unless aCOMMENT
MEDIUM…les/grpo_trainer/run_kimi_k2_6_glm5_1_megatron_lite.sh4# Megatron Lite is Megatron's agentic experimental path. Its upstream home isCOMMENT
MEDIUMexamples/grpo_trainer/run_qwen3_5_35b_megatron_lite.sh4# Megatron Lite is Megatron's agentic experimental path. Its upstream home isCOMMENT
MEDIUMexamples/sft/gsm8k/run_deepseek_v4_megatron_lite.sh4# Megatron Lite is Megatron's agentic experimental path. Its upstream home isCOMMENT
Cross-Language Confusion4 hits · 12 pts
SeverityFileLineSnippetContext
HIGHtests/special_sanity/check_uv_gpu_only.py25 RAY=(ray_kwargs.ray_init.runtime_env.py_executable=null)STRING
HIGHverl/trainer/ppo/rollout_corr_helper.py922 - kl: Direct KL divergence estimator KL(π_rollout || π_training)STRING
HIGHverl/trainer/ppo/checkpoint_callback.py69 Returns a no-op :class:`CheckpointCallback` when the key is unset or null, soSTRING
HIGHverl/trainer/ppo/v1/replay_buffer.py172 "[V1ReplayBuffer] off-policy version control disabled (max_off_policy_threshold is null): "CODE
Slop Phrases3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMverl/models/mcore/mtp_patch.py472 # embedding computation - you can modify this partCOMMENT
MEDIUMverl/trainer/config/rollout/rollout.yaml59# you can use smaller batch size to save memory used in cuda graph, eg: [1 ,2, 4, 8, 16, 32]COMMENT
MEDIUMexamples/grpo_trainer/run_gpt_oss_20b_fsdp.sh63# or you can use lmsys/gpt-oss-20b-bf16COMMENT
Overly Generic Function Names4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/utils/test_rollout_trace_on_cpu.py86 async def my_method(self, a, b="default"):CODE
LOWtests/utils/test_rollout_trace_on_cpu.py109 async def my_method(self, x):CODE
LOWtests/utils/_test_module.py30def test_function():CODE
LOWverl/utils/activation_offload.py457 def my_function(*inputs):CODE
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWverl/experimental/separation/ray_trainer.py741 # TODO: implement actual tflpo and theoretical tflpoCOMMENT
LOWverl/trainer/ppo/ray_trainer.py1784 # TODO: implement actual tflpo and theoretical tflpoCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…ples/ascend_extras/grpo_trainer/run_glm5_2_megatron.sh3# Usage:COMMENT