This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
[WIP, Kernel] (1/N) Machete - Hopper Optimized Mixed Precision Linear Kernel #386
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Notes
This PR is a work in progress and based off of: vllm-project#6396 so that will have to land before this.
Description
This PR introduces a spiritual successor to the Marlin kernel but optimized for Hopper architectures and based off of cutlass.
Motivation
The motivation for this kernel is multifold:
mma
instructions, which are fastest tensor core instructions available on Ampere but with Hopper Nvidia release a set of newwgmma
instructions which are required to hit the peak FLOPs reported by Nvidia, without them i.e. usingmma
instructions you can expect to achieve at best ~75% of peak [1, 2]mma
instructions, we want to adopt a more flexible/dynamic way of defining these layouts so we can accommodate new instructions more rapidly, i.e.wgmma
and new instructions Blackwell introduces if anyTODO:
Current Performance
Float16
BFloat16