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

what is the most efficient way to do with a 72b model and 8 * A100 ? #3002

Open
Chandler-Bing opened this issue Jan 20, 2025 · 2 comments
Open

Comments

@Chandler-Bing
Copy link

Hi,say my baseline 1 instance and TP=4 , throughput is x

Suppose I have 8*A100 gpu, and I want to deploy a 72b model. I have the following two ways:

method instance TP throughput
baseline 1 4 x
A 2 4 2x (apparently)
B 1 8 1.5x

I am a little confused, option B give bad throughput lesser than 2x, is it normal ?
or How can I get throughput greater than 2x with just 8A100 gpu? (or I can't?)
thanks for helping!

@JohnnyBoyzzz
Copy link

maybe you can try plan C,instance=4, tp=2. One 72b model can server in two a100 gpus.

@zhaochenyang20
Copy link
Collaborator

I think this is normal. If your devices are lacking connectivity, like no NVLink on them. TP introduces overhead of communication between GPUs, thus slowing down the speed and making it less than 2x.

Router is suggested to you:

https://docs.sglang.ai/router/router.html

Better to test dp 4 * tp 2 or dp 2 * tp 4

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