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

[perf] feat: support ref/rm offload #121

Merged
merged 11 commits into from
Jan 24, 2025
Merged

[perf] feat: support ref/rm offload #121

merged 11 commits into from
Jan 24, 2025

Conversation

vermouth1992
Copy link
Collaborator

@vermouth1992 vermouth1992 commented Jan 21, 2025

  • Force ref/rm to use CPUOffload. Fix root FSDP unit not reshard weights after forward
  • HSDP support is on hold and assert False right now.

@@ -838,8 +869,9 @@ def _build_model(self, config):
device_id=torch.cuda.current_device(),
sharding_strategy=ShardingStrategy.FULL_SHARD, # zero3
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should use HybridShard when the device mesh is 2D

@vermouth1992 vermouth1992 marked this pull request as ready for review January 22, 2025 09:37
@vermouth1992 vermouth1992 changed the title WIP [ppo] feat: hsdp and offload [ppo] feat: hsdp and offload Jan 22, 2025
@vermouth1992 vermouth1992 changed the title [ppo] feat: hsdp and offload [perf] feat: hsdp and offload Jan 22, 2025
@vermouth1992 vermouth1992 marked this pull request as draft January 22, 2025 11:27
@vermouth1992 vermouth1992 changed the title [perf] feat: hsdp and offload [perf] feat: support ref/rm offload Jan 24, 2025
@vermouth1992 vermouth1992 marked this pull request as ready for review January 24, 2025 09:13
@PeterSH6 PeterSH6 merged commit fefca41 into main Jan 24, 2025
8 checks passed
@PeterSH6 PeterSH6 deleted the chi/feat/hsdp branch January 24, 2025 09:29
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