Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch Generation with Agents for RL #469

Open
August-murr opened this issue Feb 2, 2025 · 0 comments
Open

Batch Generation with Agents for RL #469

August-murr opened this issue Feb 2, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@August-murr
Copy link
Contributor

follow up on our earlier discussion.

This year seems to be all about AI labs flexing their Agents trained with reinforcement learning. There’s been a lot of request in trl and open r1, especially since smolagents Hugging Face’s Agents library. We'll need to make smolagents work well with RL and simplify the process of training these Agents.

To get started with training agents using GRPO (the RL method for Deepseek R1), we’ll first need to generate Agent responses in batches to maximize GPU utilization. Then, we can integrate that into TRLs GRPO.

We could maybe modify Model

class Model:
or

TransformersModel

class TransformersModel(Model):

to handle batch generation, along with
MultiStepAgent
class MultiStepAgent:

for processing those agent calls sequentially.

Or we could create separate classes for each.
And when the vllm backend is ready, we can do the same thing with vllm for even better efficiency.

@August-murr August-murr added the enhancement New feature or request label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant