forked from pytorch/FBGEMM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add INT8 and INT4 support to P2P benchmark. (pytorch#918)
Summary: Pull Request resolved: pytorch#918 Add two options: 1) default, which transfers quantized tensor directly; 2) --include_quantization, which start with FP16 tensor, quantize, transfer, and finally dequantize to FP16 tensor. Also, add a option to sweep through data types and shapes. Caveat: INT4 dequantization is not numerically correct, but adding as a proxy for performance measurement. Reviewed By: brad-mengchi Differential Revision: D31098854 fbshipit-source-id: 7e4e4ca7f81f537c0fe37c91a36e46b862c28cdd
- Loading branch information
1 parent
e385d02
commit 501dfa7
Showing
1 changed file
with
245 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters