跳转至

__init__.py — PPO 子模块的包初始化文件

文件概述

模块路径: verl.trainer.ppo.__init__

PPO 子模块的包初始化文件。与 trainer/__init__.py 类似,仅包含 Apache 2.0 许可声明,不导出任何类或函数。

关键代码

# Copyright 2024 Bytedance Ltd. and/or its affiliates
# Licensed under the Apache License, Version 2.0

小结

空初始化文件,将 verl/trainer/ppo/ 声明为 Python 包。PPO 相关的类和函数需要从具体的模块(如 core_algos、ray_trainer 等)显式导入。