deepspeedai / deepspeedai/DeepSpeed

[BUG] 3 GPUs is not as good as expectation compare with 2 GPUs; NV vs AMD performace; flash attention not support for AMD GPUs

Open
#5,503 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug training
Dominant language
Python
Stars
43.1k
Forks
5k
Avg merge
4d 15h
Merged PRs (30d)
112

Description

I have encountered some challenges when using Deepspeed that we hope to address with your expertise.

  1. During fine-tuning LLM LLama-7b-chat-hf and LLama-13b-chat-hf with multiple GPUs, I observed the following token-per-second speeds: 1 GPU (60 tokens/s), 2 GPUs (178 tokens/s), 3 GPUs (230 tokens/s), and 4 GPUs (300 tokens/s). Surprisingly, the efficiency did not exhibit a proportional increase with the addition of GPUs beyond two. 3 GPUs is not as good as expectation compare with 2 GPUs. Are there any possible technical explanation for this issue?

  2. Under identical conditions using the TRX50 motherboard, we compared the performance of two configurations:
    Case 1: NV RTX 4090 x 2 cards
    Case 2: AMD Radeon Pro W7900 x 2 cards
    Initially, two months ago, the AMD Radeon Pro W7900 outperformed the NV RTX 4090 in terms of speed (tokens/s) for LLama-7b-chat-hf and LLama-13b-chat-hf models. However, in my recent tests, the NV RTX 4090 surpassed the AMD Radeon Pro W7900, both with and without the flash-attn feature enabled.

I seek your insights on these issues. Are there any explanations for these fluctuations in performance? Are certain versions of Deepspeed optimized for specific GPU types, such as the NV RTX 4090 or the AMD W7900?

  1. I also want to ask why flash-attn cannot support for AMD GPUs (Radeon pro W7800, W7900)?

Thank you!
Le

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reproducing the reported Llama-7b-chat-hf and Llama-13b-chat-hf benchmarks with one to four GPUs, recording DeepSpeed and flash-attn versions and the NVIDIA RTX 4090 and AMD Radeon Pro W7900 configurations. Done would require an evidence-based explanation for scaling and performance changes, plus a documented AMD flash-attn support conclusion.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
distributed-systems, machine-learning, performance
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.