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

[Quick question]: How do I turn off FSDP? #703

Open
candygocandy opened this issue Aug 15, 2024 · 1 comment
Open

[Quick question]: How do I turn off FSDP? #703

candygocandy opened this issue Aug 15, 2024 · 1 comment
Labels
type/question An issue that's a question

Comments

@candygocandy
Copy link

candygocandy commented Aug 15, 2024

❓ The question

quick question, is there any example script and yaml file that turn off FSDP completely? (I want to use DDP)

I am running it on a 7B model. I have A100 80GB. I guess this will fit onto the GPU right?

@candygocandy candygocandy added the type/question An issue that's a question label Aug 15, 2024
@2015aroras
Copy link
Collaborator

You can look at https://github.com/allenai/OLMo/blob/main/configs/tiny/OLMo-20M.yaml for a ddp example. You just need the following from there:

ddp:
  grad_sync_mode: batch
  find_unused_params: false
...
distributed_strategy: ddp

With just 1 GPU, FSDP doesn't do anything special and so there shouldn't be a need to turn it off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question An issue that's a question
Projects
None yet
Development

No branches or pull requests

2 participants