Skip to content

[Logging] save generations to a huggingface dataset for online trainers#364

Open
kashif wants to merge 5 commits intothinking-machines-lab:mainfrom
kashif:log-dataset
Open

[Logging] save generations to a huggingface dataset for online trainers#364
kashif wants to merge 5 commits intothinking-machines-lab:mainfrom
kashif:log-dataset

Conversation

@kashif
Copy link
Copy Markdown

@kashif kashif commented Feb 15, 2026

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9869b0004a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


if rows["step"]:
ds = Dataset.from_dict(rows)
path = self.parquet_dir / f"completions_{step:06d}.parquet"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Write trajectory parquet files with unique per-call names

In the streaming and async RL paths, log_trajectories is invoked once per trajectory group (often multiple times for the same step), but this logger always writes to completions_{step:06d}.parquet. That means later calls for the same step overwrite earlier ones instead of appending, so runs with multiple groups per step silently lose most logged generations and produce incomplete HF datasets.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant