[Dev] Dequante SIMT Matmul Implementation. #188
Merged
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.
Introduce efficient (but not the perfect) matmul schedule for int8 simt schedule for T4 Cards.
This pull request includes several changes to the
bitblas/gpu/matmul.pyfile, introducing new scheduling rules and optimizations for GPU operators, as well as updates to thebitblas/gpu/matmul_analysis.pyandintegration/BitNet/eval_correctness.pyfiles. The main changes involve the addition of a new scheduling method for dequantization, type and import adjustments, and version checks for compatibility.New Scheduling Method:
sch_dequantize_in_register_with_configmethod to handle dequantization scheduling without shared memory prefetch for devices lacking async copy. (bitblas/gpu/matmul.py)Type and Import Adjustments:
Listandsuppress, and addedget_coalesced_veclenfrom..base.analysis. (bitblas/gpu/matmul.py)_collect_producersto the list of imports frommatmul_analysis. (bitblas/gpu/matmul.py)Configuration and Typo Fixes:
thread_row_tilesby usingconfig.thread[0]instead ofconfig.thread[1]. (bitblas/gpu/matmul.py)dequantize_infoin theapply_configmethod to call the new dequantization schedule if present. (bitblas/gpu/matmul.py)Analysis Updates:
analysis_tensorcore_tagsto return aUnionofboolandDictand added a check for Tensor Core support based on the SM version. (bitblas/gpu/matmul_analysis.py) [1] [2]bitblas/gpu/matmul_analysis.py)Version Check:
transformerslibrary to ensure compatibility, asserting the version is<= 4.40.0. (integration/BitNet/eval_correctness.py)