Skip to content

feat(env): support shards mode for game environment#21

Merged
zhusq20 merged 12 commits intomainfrom
feature/optimize-alfworld-simplified
Dec 30, 2025
Merged

feat(env): support shards mode for game environment#21
zhusq20 merged 12 commits intomainfrom
feature/optimize-alfworld-simplified

Conversation

@lwaekfjlk
Copy link
Collaborator

Closes #

📑 Description

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed
  • Branch name follows type/descript (e.g. feature/add-llm-agents)
  • Ready for code review

ℹ Additional Information

for p in children:
try:
p.terminate()
except Exception:
except Exception:
try:
p.kill()
except Exception:
@lwaekfjlk lwaekfjlk marked this pull request as draft December 28, 2025 09:16
@lwaekfjlk lwaekfjlk changed the title Feature/optimize alfworld simplified feat(env): support shards mode for game environment Dec 28, 2025
@lwaekfjlk
Copy link
Collaborator Author

lwaekfjlk commented Dec 28, 2025

@zhusq20 This PR is designed for supporting shards number setting for game environment engine. Currently, for GRPO/PPO, the server would receive multiple requests in a batch. However, the server can only sequentially run those requests one by one. Therefore, shareds number supports the servers to have one worker on each port and have multiple ports open to recieve the requests and handle them in parallel.

This is important for game environment because it takes time for theenvironment to do "reset" and "step" and we need to handle them in parallel.

lwaekfjlk and others added 3 commits December 28, 2025 17:36
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@lwaekfjlk lwaekfjlk requested a review from zhusq20 December 29, 2025 06:56
@lwaekfjlk lwaekfjlk marked this pull request as ready for review December 29, 2025 06:56
@zhusq20 zhusq20 merged commit 2314e65 into main Dec 30, 2025
3 of 14 checks passed
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.

2 participants