Skip to content

Conversation

@burtenshaw
Copy link
Collaborator

@burtenshaw burtenshaw commented Oct 28, 2025

This PR adds an example for using OpenEnv and the wordle environment.

@burtenshaw burtenshaw marked this pull request as ready for review October 28, 2025 12:12
Copy link
Member

@sergiopaniego sergiopaniego left a comment

Choose a reason for hiding this comment

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

Thanks!!

Some thoughts:

  • We could link the wordle.py script somewhere in the explanation so the reader knows where to look for it. Same for the wordle_prompt.txt.
  • This integration guide would live under Integrations in the left menu. We could maintain the new example (this PR) here or move it to a new file so it lives under Examples. what do you think?

The rollout function runs one full Wordle episode, prompting the model for a guess each turn and capturing both environment rewards and auxiliary signals such as letter coverage and repetition penalties.
```python
def rollout_once(
Copy link
Member

Choose a reason for hiding this comment

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

Since the function is large, we could maybe add some comments explaining the different parts.

@HuggingFaceDocBuilderDev

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
Copy link
Member

The code quality test is failing.
Running make precommit will give you details about how to solve it 😄

Copy link
Member

@qgallouedec qgallouedec left a comment

Choose a reason for hiding this comment

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

I think it's mostly ready for merging right?

@sergiopaniego
Copy link
Member

The code quality test is still failing. I can update it if needed

@burtenshaw
Copy link
Collaborator Author

I think it's mostly ready for merging right?

Correct. I'm just waiting for the env to be merged on the hub to the OpenEnv org.

Co-authored-by: Sergio Paniego Blanco <[email protected]>
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.

5 participants