-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[AMD][ROCm][CI] unit tests fixes or skip #5323
[AMD][ROCm][CI] unit tests fixes or skip #5323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have used Hongxia's branch and built on MI300X, and the changes in build scripts fixed the issue. Thanks.
Thank you @hliuca for verifying the change on MI300x. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have verified the build and things look good..
@WoosukKwon As discussed in our last meeting, this is a critical fix. Please review this. Thank you very much ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hongxiayang Huge thanks for the PR! Didn't know that the current docker file has such a critical bug.
Left minor comments on the code style. Please take a look!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing the comment!
@hongxiayang Also, please resolve the merge conflicts so that I can merge :) |
Resolved the merge conflicts. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the PR!
@hongxiayang The AMD CI failed. Could you please take a look? |
@WoosukKwon Fixed several CI failures. |
def test_compressed_tensors_no_enforce_eager(vllm_runner): | ||
model_path = "nm-testing/tinyllama-oneshot-w8a8-static-v2" | ||
with vllm_runner(model_path) as llm: | ||
sampling_params = SamplingParams() | ||
output = llm.generate("Hello world!", sampling_params=sampling_params) | ||
assert output | ||
|
||
|
||
def test_compressed_tensors_w8a8_dynanmic_per_token(vllm_runner): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hongxiayang Is it safe to delete these tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, I only add a decorator to skip. Need to look at why it is deleted.
@hongxiayang Thanks for update the PR! I will merge it once it passes the AMD CI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes here don't seem to have fixed the AMD distributed test, if they don't help we should remove them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it worked on my local env. Again, we should revisit unit tests when we introduce a new feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The quantization test errors are unrelated to ROCm. We should not unilaterally skip tests that are also broken in upstream: when these are fixed we will lose tests for no reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(1) I got this error when I ran this test: "ValueError: compressed-tensors quantization is currently not supported in ROCm.".
ROCm did not support it right now.
(2) we should revisit the test if this is supported by ROCm. We will need to borrow pytorch practice eventually to book keep all the skip tests and do parity review periodically.
it seems the @skipIfRocm is broken in this CI even it works fine in my local env if I ran it locally, and expecttest package was inside the container.
and test
|
@hongxiayang It seems there are 3 failed tests in the AMD CI. Is this expected? |
@WoosukKwon I am looking. Seems each rebase will bring out something new. |
Now the AMD CI finally ran, but the tests failed because of the new Numpy 2.0 release 😭 |
6267596
to
0142d1f
Compare
@WoosukKwon thanks. I rebased my branch which picked up the change requiring numpy < 2.0. Now the CI is failing on some ssl errors, for example: |
@hongxiayang Just restarted the tests with SSL errors and it seems they work now. However, the PR still has failures in the AMD CI tests. Could you please take a look? |
@WoosukKwon Our customers are still waiting for this fix. The longer we wait, the more unit tests I may have to fix since more people are adding more unit tests. To make the build fix easier to merge, I will split this PR to two or more small PRs. Hope this is ok for you. The first splited PR will just contain the cmake fix. That will at least enable the customers build their own docker image correctly on MI300x with ROCm 6.1 or 6.1.2. cc @hliuca |
@hongxiayang Sounds good. Please go ahead. Or, do you think it makes sense to merge the current PR? |
I think there are two types of error: 1. A Ray related error and 2. a correctness error. I think the correctness error could be because the new ROCm release might include changes in its libraries like hipBLAS, which in turn causes small numerical differences. |
Thanks. For (1) I did some research/investigations related to test_utils.py in tests/distributed. It may need to wait until a newer ROCm/pytorch release. |
Thanks. The first split PR is #5641. |
Since cmake fix (#5641) is merged, I am repurposing this PR to only include changes to skip or fix failed unit tests. |
@hongxiayang Sounds great! Could you please update the PR to resolve the merge conflicts? |
This pull request has the following changes:
FIX #xxxx (link existing issues this PR will resolve)
BEFORE SUBMITTING, PLEASE READ THE CHECKLIST BELOW AND FILL IN THE DESCRIPTION ABOVE
PR Checklist (Click to Expand)
Thank you for your contribution to vLLM! Before submitting the pull request, please ensure the PR meets the following criteria. This helps vLLM maintain the code quality and improve the efficiency of the review process.
PR Title and Classification
Only specific types of PRs will be reviewed. The PR title is prefixed appropriately to indicate the type of change. Please use one of the following:
[Bugfix]
for bug fixes.[CI/Build]
for build or continuous integration improvements.[Doc]
for documentation fixes and improvements.[Model]
for adding a new model or improving an existing model. Model name should appear in the title.[Frontend]
For changes on the vLLM frontend (e.g., OpenAI API server,LLM
class, etc.)[Kernel]
for changes affecting CUDA kernels or other compute kernels.[Core]
for changes in the core vLLM logic (e.g.,LLMEngine
,AsyncLLMEngine
,Scheduler
, etc.)[Hardware][Vendor]
for hardware-specific changes. Vendor name should appear in the prefix (e.g.,[Hardware][AMD]
).[Misc]
for PRs that do not fit the above categories. Please use this sparingly.Note: If the PR spans more than one category, please include all relevant prefixes.
Code Quality
The PR need to meet the following code quality standards:
format.sh
to format your code.docs/source/
if the PR modifies the user-facing behaviors of vLLM. It helps vLLM user understand and utilize the new features or changes.Notes for Large Changes
Please keep the changes as concise as possible. For major architectural changes (>500 LOC excluding kernel/data/config/test), we would expect a GitHub issue (RFC) discussing the technical design and justification. Otherwise, we will tag it with
rfc-required
and might not go through the PR.What to Expect for the Reviews
The goal of the vLLM team is to be a transparent reviewing machine. We would like to make the review process transparent and efficient and make sure no contributor feel confused or frustrated. However, the vLLM team is small, so we need to prioritize some PRs over others. Here is what you can expect from the review process:
action-required
label on the PR if there are changes required. The contributor should address the comments and ping the reviewer to re-review the PR.Thank You
Finally, thank you for taking the time to read these guidelines and for your interest in contributing to vLLM. Your contributions make vLLM a great tool for everyone!