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

Speed benchmarks vs FSDP2 #3

Open
152334H opened this issue Jun 12, 2024 · 4 comments
Open

Speed benchmarks vs FSDP2 #3

152334H opened this issue Jun 12, 2024 · 4 comments

Comments

@152334H
Copy link

152334H commented Jun 12, 2024

Are the benchmarks conducted against FSDP or FSDP2?

see speed/memory differences

@antony-frolov
Copy link
Contributor

The benchmarks were conducted against FSDP1, we used an early version of PyTorch 2.3.0 of November 2023 in our experiments

@awgu
Copy link

awgu commented Jun 13, 2024

@antony-frolov Exciting project! Maybe it would help if you published some absolute performance numbers like tokens per second? I think right now I see % speedups only.

(Also, FSDP2 does extra device copies compared to FSDP1/YaFSDP, so we would not really expect FSDP2 to be faster.)

@antony-frolov
Copy link
Contributor

antony-frolov commented Jun 14, 2024

@awgu thanks! just added absolute iteration time numbers for all the runs, hope that might help. though as measurements were done in a pretty vanilla distributed training setup (mostly for the ease of reproducibility) absolute numbers might not look too convincing when compared to frameworks more optimized for LLM pre-training

@antony-frolov
Copy link
Contributor

@awgu here are the traces of Llama 2 34B runs on 256 devices with sequence length of 2048 for both FSDP and YaFSDP (these are the runs we compare in Advantages over FSDP section of the README).

llama-2-34b_256_2048_ya-fsdp.json
llama-2-34b_256_2048_fsdp.json

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

No branches or pull requests

3 participants