
VERL 是火山引擎开发的强化学习(RL)平台,主打高性能和易用性,核心特点包括:
安装
bash# 从源码安装(推荐) git clone [***] cd verl && pip install -e .
简单示例(训练 PPO 模型)
pythonfrom verl.algorithms import PPO from verl.environments import GymEnv # 初始化环境和算法 env = GymEnv("CartPole-v1") agent = PPO(env.observation_space, env.action_space, lr=3e-4) # 训练 100 个回合 for episode in range(100): obs = env.reset() total_reward = 0 while True: action = agent.select_action(obs) next_obs, reward, done, _ = env.step(action) agent.store_transition(obs, action, reward, next_obs, done) total_reward += reward if done: agent.update() # 每回合更新策略 print(f"Episode {episode}, Reward: {total_reward}") break obs = next_obs
EasyR1 是针对 R1 任务(一种检索增强生成任务,结合检索和生成的混合 NLP 任务)的轻量级实现,特点如下:
安装
bash# 克隆仓库并安装依赖 git clone [***] cd EasyR1 && pip install -r requirements.txt
简单示例(运行 R1 推理)
pythonfrom easyr1 import R1Pipeline # 初始化 R1 流程(指定模型和检索库) pipeline = R1Pipeline( model_name_or_path="lmsys/vicuna-7b-v1.5", # 选用 Vicuna-7B 模型 retriever_type="faiss", # 使用 FAISS 检索器 corpus_path="data/sample_corpus.txt" # 检索库文本文件 ) # 输入问题,获取 R1 生成结果 question = "强化学习和监督学习的核心区别是什么?" response = pipeline.generate(question, top_k=3) # 检索 top 3 相关文本 print(f"Answer: {response}")
VERL 聚焦强化学习全流程开发,适合需要高性能训练和工业级部署的场景;EasyR1 则专注于 R1 任务的轻量化落地,适合学习和小规模 RAG 应用。两者均提供开源代码和详细示例,降低了对应领域的上手门槛。
以下是 hiyouga/verl 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 版本下载页面。




探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务