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

Update a more user-friendly error message, offering more considerate advice for beginners, when using V100 GPU #1901 #2374

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

chuanzhubin
Copy link
Contributor

For the sake of future beginners, it is suggested to provide guidance in the error message, suggesting users to add --dtype="half" to specify the data type.
in issue #1901

… in the error message, suggesting users to add --dtype="half" to specify the data type.
@simon-mo simon-mo self-assigned this Jan 8, 2024
@simon-mo simon-mo merged commit cb7a1c1 into vllm-project:main Jan 12, 2024
2 of 4 checks passed
@simon-mo
Copy link
Collaborator

🤦‍♂️ i mis-typed the commit message. This is not about OOM, it's about support for bfloat16

@@ -231,4 +231,6 @@ def _check_if_gpu_supports_dtype(torch_dtype: torch.dtype):
raise ValueError(
"Bfloat16 is only supported on GPUs with compute capability "
f"of at least 8.0. Your {gpu_name} GPU has compute capability "
f"{compute_capability[0]}.{compute_capability[1]}.")
f"{compute_capability[0]}.{compute_capability[1]}."
f" You can explicitly specify the data type by using the --dtype option, for example: --dtype=half."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This exceeds our maximum line length. It's unfortunate that our format checker did not detect this.

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.

None yet

3 participants