-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[Misc] LoRA - Refactor Punica ops tests #12970
[Misc] LoRA - Refactor Punica ops tests #12970
Conversation
Signed-off-by: Varun Sundar Rabindranath <varun@neuralmagic.com>
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
tests/lora/test_punica_ops.py
Outdated
hidden_sizes included in the LoRA models currently supported by vLLM. It tests | ||
whether the corresponding Triton kernel can run normally when tensor parallelism | ||
is set to [1, 2, 4, 8, 16, 32, 64]. | ||
""" |
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 think this comment is unused now
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.
My bad ! Thanks for catching this 👍
DTYPES = [torch.float16, torch.bfloat16] | ||
DEVICES = [f"cuda:{0}"] | ||
SEED = [0] | ||
|
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.
NIT: Can we move these configurations before the function?
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.
do you mean before the utility functions (before line 27) ? I thought this was good as it is just before the pytest functions where they are used - what do you think ?
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.
Ok, let's keep this
Signed-off-by: Varun Sundar Rabindranath <varun@neuralmagic.com>
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 clean up, LGTM
It appears that LoRA Test 3 is failing now. |
The tests are running out-of-memory. Ill look into it 👍 |
Signed-off-by: Varun Sundar Rabindranath <varun@neuralmagic.com>
@DarkLight1337 - I expanded the tests to test bigger batch sizes. These tests triggered the OOM. I have reverted it now. I think it should be good now 🤞 |
Signed-off-by: Varun Sundar Rabindranath <varun@neuralmagic.com> Co-authored-by: Varun Sundar Rabindranath <varun@neuralmagic.com> Signed-off-by: SzymonOzog <szymon.ozog@aleph-alpha.com>
Signed-off-by: Varun Sundar Rabindranath <varun@neuralmagic.com> Co-authored-by: Varun Sundar Rabindranath <varun@neuralmagic.com>
Signed-off-by: Varun Sundar Rabindranath <varun@neuralmagic.com> Co-authored-by: Varun Sundar Rabindranath <varun@neuralmagic.com>
Signed-off-by: Varun Sundar Rabindranath <varun@neuralmagic.com> Co-authored-by: Varun Sundar Rabindranath <varun@neuralmagic.com>
Cleanup/Refactor punica kernel tests - No functional change.
Specifically, merge
tests/lora/test_punica_ops_sizes.py
andtests/lora/test_punica_ops_variation.py
into a single file.