LoRA: Implementing kernels using CUBE computation unit#384
LoRA: Implementing kernels using CUBE computation unit#384RuixuanZhang06 merged 5 commits intosgl-project:mainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances LoRA kernel performance by migrating key operations from the VECTOR computation unit to the more specialized CUBE computation unit. This involves introducing new Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces new LoRA kernels (sgemmc) that leverage the CUBE computation unit for better performance, which is a solid architectural improvement. The refactoring of existing kernels to use a common BlockIterator is also a good move for code maintainability. However, my review uncovered several critical issues in the new host-side and kernel-side implementations. These include incorrect variable initializations, swapped function arguments, use of uninitialized variables, and missing template parameters, which will likely cause compilation errors or incorrect runtime behavior. I've also noted some medium-severity issues related to code quality, such as improper error handling and dead code. The BlockIterator refactoring is also flawed as it's used incorrectly. I've provided specific suggestions to address these critical problems.
ba1b713 to
573bb5d
Compare
b82a7ca to
9cc6799
Compare
9cc6799 to
27a056c
Compare
d455c9b to
8d51c08
Compare
8d51c08 to
a7455c6
Compare
This reverts commit 7b93364.
Implementing kernels using CUBE computation unit instead of using VECTOR computation unit