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

Support forced spreading for multi GPU #4266

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dhiltgen
Copy link
Collaborator

@dhiltgen dhiltgen commented May 8, 2024

Our default behavior today is to try to fit into a single GPU if possible. Some users would prefer the old behavior of always spreading across multiple GPUs even if the model can fit into one. This exposes that tunable behavior.

Fixes #4198

Our default behavior today is to try to fit into a single GPU if possible.
Some users would prefer the old behavior of always spreading across
multiple GPUs even if the model can fit into one.  This exposes that
tunable behavior.
@kungfu-eric
Copy link

This should be good because it's not clear without inferencing a long sequence whether the sequence will fit in memory or not. The model and some default overhead (2k?) might fit but changing the num_ctx parameter to longer may lead to OOM on this single GPU config

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

Successfully merging this pull request may close these issues.

Improving the efficiency of using multiple GPU cards.
2 participants