You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also DDP has some extra overhead since you must synchronize gradients at the end of each step, hence it's slower a bit. Interestingly, if batch sizes are large enough, using multi GPUs don't really speed up QLoRA training that much, since the FLOP utilization is mainly in the matrix multiplies of dC/dX and not dC/dLoras
thanks @danielhanchen - Could you please post benchmarks on an A100/H100. Also, could you please run the huggingface code with Flash-attention2 enabled (I don't know of any group that doesn't use flash-attention, it's standard). thanks!
Activity
danielhanchen commentedon Dec 1, 2023
Hiya - so weirdly from our benchmarks it seems like HF's DDP is not optimally loading data for each GPU - you can replicate our results on Kaggle notebooks which has 2 Tesla T4s by running the official QLoRA example: https://colab.research.google.com/drive/1VoYNfYDKcKRQRor98Zbf2-9VQTtGJ24k?usp=sharing - it needs changes, but it should run.
danielhanchen commentedon Dec 1, 2023
Also DDP has some extra overhead since you must synchronize gradients at the end of each step, hence it's slower a bit. Interestingly, if batch sizes are large enough, using multi GPUs don't really speed up QLoRA training that much, since the FLOP utilization is mainly in the matrix multiplies of dC/dX and not dC/dLoras
vgoklani commentedon Dec 2, 2023
Hey @danielhanchen - can you please be more precise here:
HF's DDP is not optimally loading data for each GPUWhat do you mean by
not optimally? What about using DDP directly?Thanks!
danielhanchen commentedon Dec 3, 2023
@vgoklani You'll have to ask the HF team about this - I'm not sure why myself
vgoklani commentedon Dec 3, 2023
Thanks for the response @danielhanchen
I'm confused about why you said
HF's DDP is not optimally loading data for each GPUCan you describe what you observed that led to that hypothesis?
Thanks!
danielhanchen commentedon Dec 4, 2023
@vgoklani #13 has the benchmarking notebooks if you're interested.
vgoklani commentedon Dec 5, 2023
thanks @danielhanchen - Could you please post benchmarks on an A100/H100. Also, could you please run the huggingface code with Flash-attention2 enabled (I don't know of any group that doesn't use flash-attention, it's standard). thanks!
danielhanchen commentedon Dec 5, 2023
@vgoklani I'll post it in a new blog - closing for now - you can reopen once the new blog comes out
Chat-template repair: warn-by-default, AST classification, dict suppo…
perf: low-effort pretraining throughput wins
studio: load cached GGUF models when fully offline (#5505)
Fix/adjust diffusion: round 12 local-path GGUF + per-variant delete +…
Fix/adjust diffusion: round 18 P1+P2 batch for PR #5754
Fix/adjust diffusion: round 19 P1+P2 batch for PR #5754
3 remaining items
Fix/adjust diffusion: round 23 P1+P2 batch for PR #5754
Fix/adjust diffusion: round 24 P1 batch for PR #5754
Fix/adjust diffusion: round 27 P1 + P2 batch for PR #5754
Fix/adjust diffusion: round 27 follow-up P1 batch for PR #5754
Fix/adjust diffusion: round 30 P1 + P2 batch for PR #5754
Fix/adjust diffusion: round 30 follow-up P1 batch for PR #5754
Fix/adjust diffusion: round 31 P1 batch for PR #5754
Fix/adjust diffusion: round 32 P1 batch for PR #5754
Fix/adjust diffusion: round 33 P1 batch for PR #5754
feat(chat): render on-disk sandbox images in chat markdown (#10361)
Studio: initialise the CUDA driver off the GIL so load-progress polls…
Studio: Z-Image CFG split under static step skip and CFG-parallel (#1…
Studio: the SDXL background compile runs only while no render runs (u…
Studio LTX-2.5: read the hosted int8 checkpoint as native Linears whe…
Native FSDP2 resume: memory-map the full optimizer.pt (unslothai#19019)