Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

RayPPOTrainer._dump_generations() missing gts argument in _train_step call

Đang mở Phù hợp với người mới
#492 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@yunkai-yyk đang làm issue này rồi.

Từ ngày 18/2/2026.

  • #493 của @yunkai-yyk — đang mở
  • #528 của @Alexi5000 — đang mở

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
machine-learning

Hướng nghiên cứu

Mở agentlightning/verl/trainer.py và kiểm tra RayPPOTrainer._train_step cùng với _dump_generations. Tái hiện vấn đề khi đã đặt rollout_data_dir, sau đó điều chỉnh lệnh gọi để đáp ứng đối số gts bắt buộc như được mô tả trong issue. Hoàn tất khi quá trình huấn luyện đạt đến bước dump các generation của rollout mà không phát sinh TypeError do thiếu đối số.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug v0.x verl

Bug Report

Describe the bug

In agentlightning/verl/trainer.py, _train_step calls _dump_generations without passing the required gts argument, causing a TypeError at runtime when trainer.rollout_data_dir is set.

Error message

File "agentlightning/verl/trainer.py", line 421, in _train_step
    self._dump_generations(
TypeError: RayPPOTrainer._dump_generations() missing 1 required positional argument: 'gts'

Steps to Reproduce

  1. Set rollout_data_dir in the trainer config
  2. Run training — the error is triggered at the rollout generation dump step

Root Cause

_dump_generations is defined with gts as a required positional argument:

def _dump_generations(self, inputs, outputs, gts, scores, reward_extra_infos_dict, dump_path):

But the call site in _train_step does not pass gts:

self._dump_generations(
    inputs=inputs,
    outputs=outputs,
    scores=scores,
    reward_extra_infos_dict=reward_extra_infos_dict,
    dump_path=rollout_data_dir,
)

Suggested Fix

Either pass gts=None at the call site, or give gts a default value of None in the function signature to make it optional when ground truth is unavailable.

Environment

  • Version: v0.3.0
  • File: agentlightning/verl/trainer.py
  • Class: RayPPOTrainer
Ngôn ngữ chính
Python
Star
18.8k
Fork
1.7k
Merge trung bình
3 ngày 13 giờ
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/agent-lightning

Tất cả issue của microsoft/agent-lightning

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.