8000 verl/verl/models at main · tongyx361/verl · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

models

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Model integrations

The FSDP and FSDP2 engines load Hugging Face model implementations directly. Do not copy complete files from transformers into this directory to add a checkpoint. Start with the FSDP model extension guide, which describes the training, rollout, and weight-synchronization compatibility boundaries.

Directory ownership

  • transformers/ contains narrow verl-specific patches and optimized implementations for features such as remove-padding execution, Ulysses sequence parallelism, multimodal inputs, and fused kernels.
  • mcore/ contains Megatron model integration and Hugging Face/Megatron checkpoint conversion. See the model engine guide for backend-level architecture.

For model code outside the installed transformers package, use the trust_remote_code or external_lib model settings described in the FSDP guide. Add in-tree code only when verl needs behavior that cannot be provided by the upstream or external implementation.

Tests

Place model construction, patched-forward, and numerical comparison tests under tests/models/. Exercise FSDP and FSDP2 integration through tests/special_e2e/sft/run_sft_engine.sh, and validate actor-to-rollout weight synchronization with the intended rollout backend.

0