Prhub

#6420 Update installation instruction for TransferQueue

原始 PR 作者 emmericp 合并时间 2026-05-21 09:39 文件变更 1 提交数 1 评论 0 代码增减 +1 / -1

执行摘要

更新 TransferQueue 安装指令版本号

Old versions of TransferQueue don't work with the current codebase, as reported in Issue #6407. The PR updates the installation instruction to recommend version 0.1.7, which has been verified to be compatible.

此 PR 变更简单直接,无需精读。但可作为提醒:依赖安装文档应与实际测试通过的依赖版本保持同步,避免误导用户。

讨论亮点

无显著的 review 讨论。gemini-code-assist[bot] 提交了自动化评论,确认 PR 内容无误;tardis-key 直接批准了 PR。

实现拆解

在文件 verl/utils/transferqueue_utils.py 中,将 _MockTQ 类的错误消息中的版本号从 0.1.6 改为 0.1.7。该错误消息在 transfer_queue 未安装时被触发,用于提示用户正确的安装命令。

文件 模块 状态 重要度
verl/utils/transferqueue_utils.py 工具模块 modified 3.55

关键源码片段

verl/utils/transferqueue_utils.py configuration

唯一变更的文件,修改了 TransferQueue 推荐安装版本号。

# verl/utils/transferqueue_utils.py 第 56 行
# 当 transfer_queue 未安装时,MockTQ 类返回此错误消息
# 版本号 0.1.7 是当前经过测试的兼容版本
raise RuntimeError(
    f"transfer_queue is not installed. Cannot use tq.{name}(). "
    "Please install it by calling `pip install TransferQueue==0.1.7`"
)

评论区精华

没有提炼出高价值讨论线程

当前评论区没有形成足够清晰的争议点或结论,后续有更多讨论时会体现在这里。

风险与影响

风险极低。仅修改一行错误消息中的版本号,不影响任何运行时逻辑。但需要注意,如果未来再次升级 TransferQueue,必须同步更新此处的版本推荐。

影响范围极小,仅影响用户在未安装 TransferQueue 时看到的错误消息。用户将看到正确的安装命令,减少因版本不匹配导致的困惑。

关联 Issue

未识别关联 Issue

当前没有检测到明确关联的 Issue 链接,后续同步到相关引用后会出现在这里。

完整报告

参与讨论