Skip to content

Add OpenReward example to the list of examples - #5752

Merged
sergiopaniego merged 2 commits into
mainfrom
openreward-docs
May 12, 2026
Merged

Add OpenReward example to the list of examples#5752
sergiopaniego merged 2 commits into
mainfrom
openreward-docs

Conversation

@sergiopaniego

@sergiopaniego sergiopaniego commented May 12, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Adds OpenReward example to the list of examples with a new section.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline, Pull Request section?
  • Was this discussed/approved via a GitHub issue? Please add a link to it if that's the case.
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

AI writing disclosure

We welcome the use of AI tools to help with contributions. For transparency and to help us improve our review process, please indicate the level of AI involvement in this PR.

  • No AI usage: the PR was written entirely by a human.
  • AI-assisted: some parts were suggested or improved by AI, but the PR was written and reviewed by a human.
  • AI-generated: the PR was mostly or fully generated by an AI tool.

Who can review?

@adithya-s-k @qgallouedec


Note

Low Risk
Low risk documentation-only change that just adds a missing example link and description; no runtime or API behavior is modified.

Overview
Adds the examples/scripts/openreward/seta.py OpenReward example to docs/source/example_overview.md, linking to the script and pointing readers to the OpenReward Integration guide for setup and usage.

Reviewed by Cursor Bugbot for commit e80402a. Bugbot is set up for automated code reviews on this repo. Configure here.

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@sergiopaniego
sergiopaniego merged commit c8c364c into main May 12, 2026
4 checks passed
@sergiopaniego
sergiopaniego deleted the openreward-docs branch May 12, 2026 12:59
adithya-s-k added a commit to adithya-s-k/trl that referenced this pull request Jun 11, 2026
Train on Harbor agentic task suites with GRPOTrainer via environment_factory.
HarborSpec maps one task suite to the three trainer slots (train_dataset /
environment_factory / reward_funcs), mirroring the OpenReward integration
(huggingface#5752, huggingface#5729, huggingface#5696). HarborEnv wraps a Harbor sandbox + verifier; the base
agent (harness) is pluggable — built-in `bash`, plus `jupyter` and
`terminal_notes` example harnesses (folder-per-harness, each with a README).

HarborEnv follows Harbor's *external agent* pattern (the policy drives the loop
and tool methods exec into the sandbox); Harbor's *installed agents* are not
supported, since RL needs the trainer to drive generation and capture the
policy's tokens/log-probs, which an opaque in-container agent can't expose.

- trl/experimental/harbor: HarborEnv (+ HarborBashEnv) and HarborSpec
- examples/scripts/harbor: data_agent.py + harnesses/
- docs/source/harbor.md (+ toctree, example_overview entries)
- tests/experimental/test_harbor.py (require_harbor + is_harbor_available)
- pyproject: add `harbor` extra; relax vllm cap to >=0.22.0 (0.19 pins
  transformers<5, which breaks environment_factory; it needs transformers>=5.2)

E2B's from_dockerfile build honors RUN but silently drops COPY'd build-context
files, so HarborEnv replicates the Dockerfile's COPY directives at runtime
(upload as the sandbox user, mv into place as root) — healthchecks that run
those files (e.g. a data-pull hook) then work. Verified end-to-end: gpt-4.1
over the bash harness lands reward=1.0 on a data-agent task.
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.

3 participants