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

v0 param server (using collectives not object store) #2865

Draft
wants to merge 5 commits into
base: gh/mikaylagawarecki/2/base
Choose a base branch
from

Conversation

mikaylagawarecki
Copy link

@mikaylagawarecki mikaylagawarecki commented Mar 21, 2025

Copy link

pytorch-bot bot commented Mar 21, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/rl/2865

Note: Links to docs will display an error until the docs builds have been completed.

❌ 13 New Failures, 10 Unrelated Failures

As of commit 0a265a9 with merge base 7df8317 (image):

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

mikaylagawarecki added a commit that referenced this pull request Mar 21, 2025
ghstack-source-id: 1761493752fe5761519e6060e3b888ca47c8b685
Pull Request resolved: #2865
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 21, 2025
Comment on lines 293 to 297
handle = self.collector._remote_collectors[worker_id].call_policy_method.remote(
"collective_rpc",
("update_weight",),
{'args': (k, v.dtype, v.shape)}
)
Copy link
Author

@mikaylagawarecki mikaylagawarecki Mar 21, 2025

Choose a reason for hiding this comment

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

@vmoens This is one part where I'm trying to call a method on the LLM object to init a process group with the vllm workers, the second part is below on L293

In this case
SyncDataCollector is remote and has an attribute .policy

.policy is the ModuleDict object returned by from_vllm, and the actual llm instance is in the generate key (the LLM instance is local to the SyncDataCollector)

How can I have a handle to the LLM instance within the SyncDataCollector to call remote methods on it without the hacky call_policy_method implementation below?

mikaylagawarecki added a commit that referenced this pull request Mar 22, 2025
ghstack-source-id: f9dabc3b6aa135e056960894ad349413fa50371a
Pull Request resolved: #2865
mikaylagawarecki added a commit that referenced this pull request Mar 22, 2025
ghstack-source-id: b30dce25ddaafb4e9cbb5886b85f5a0904494456
Pull Request resolved: #2865
Comment on lines +158 to +159
# here again, I want to grab the tp size from the vLLM worker... :(
# llm.llm_engine.parallel_config.tensor_parallel_size
Copy link
Author

@mikaylagawarecki mikaylagawarecki Mar 22, 2025

Choose a reason for hiding this comment

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

@vmoens I keep finding that I want to get info off vllm directly :/, what would you do here?

Should this vLLMRemoteWeightUpdaterBase be aware of all the vllm engines and tp size of each owned by its parent RayCollector in its __init__, I already needed to pass separate master_address and master_port I guess

mikaylagawarecki added a commit that referenced this pull request Mar 22, 2025
ghstack-source-id: 74de8e0ef2fe059390e009332daeb688656a11fa
Pull Request resolved: #2865
mikaylagawarecki added a commit that referenced this pull request Mar 22, 2025
ghstack-source-id: 2352b0b24b18277d7af9344b27641e690c75a3ff
Pull Request resolved: #2865
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants