Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move embedding quantization kernels to fbgemm for better sharing betw…
…een C2/PT (pytorch#419) Summary: Pull Request resolved: pytorch#419 Moves the kernel to fbgemm that quantizes embedding to 8, 4 or 2 bits with half scale/bias. ``` bit_rate, rows, cols, elems_per_usec, GB/Sec 2, 100, 16, 94.28, 0.38 2, 100, 64, 593.92, 2.38 2, 100, 128, 777.68, 3.11 2, 100, 256, 976.79, 3.91 2, 100, 512, 1146.61, 4.59 2, 100, 1024, 1314.89, 5.26 2, 100, 2048, 1312.45, 5.25 2, 120, 16, 94.59, 0.38 2, 120, 64, 584.89, 2.34 2, 120, 128, 809.44, 3.24 2, 120, 256, 1019.32, 4.08 2, 120, 512, 1137.77, 4.55 2, 120, 1024, 1156.94, 4.63 2, 120, 2048, 1321.16, 5.28 2, 1000, 16, 96.18, 0.38 2, 1000, 64, 612.17, 2.45 2, 1000, 128, 776.04, 3.10 2, 1000, 256, 981.44, 3.93 2, 1000, 512, 1117.79, 4.47 2, 1000, 1024, 1262.67, 5.05 2, 1000, 2048, 1397.23, 5.59 4, 100, 16, 93.90, 0.38 4, 100, 64, 607.12, 2.43 4, 100, 128, 817.09, 3.27 4, 100, 256, 1034.85, 4.14 4, 100, 512, 1251.44, 5.01 4, 100, 1024, 1414.89, 5.66 4, 100, 2048, 1413.13, 5.65 4, 120, 16, 93.74, 0.37 4, 120, 64, 612.77, 2.45 4, 120, 128, 847.48, 3.39 4, 120, 256, 1110.61, 4.44 4, 120, 512, 1265.75, 5.06 4, 120, 1024, 1239.66, 4.96 4, 120, 2048, 1433.69, 5.73 4, 1000, 16, 93.94, 0.38 4, 1000, 64, 664.46, 2.66 4, 1000, 128, 819.37, 3.28 4, 1000, 256, 1055.88, 4.22 4, 1000, 512, 1217.72, 4.87 4, 1000, 1024, 1374.96, 5.50 4, 1000, 2048, 1522.50, 6.09 8, 100, 16, 98.71, 0.39 8, 100, 64, 169.60, 0.68 8, 100, 128, 196.60, 0.79 8, 100, 256, 212.97, 0.85 8, 100, 512, 223.10, 0.89 8, 100, 1024, 226.54, 0.91 8, 100, 2048, 231.72, 0.93 8, 120, 16, 99.22, 0.40 8, 120, 64, 161.74, 0.65 8, 120, 128, 188.89, 0.76 8, 120, 256, 213.85, 0.86 8, 120, 512, 224.18, 0.90 8, 120, 1024, 226.87, 0.91 8, 120, 2048, 231.60, 0.93 8, 1000, 16, 97.97, 0.39 8, 1000, 64, 172.09, 0.69 8, 1000, 128, 196.11, 0.78 8, 1000, 256, 213.29, 0.85 8, 1000, 512, 222.82, 0.89 8, 1000, 1024, 225.41, 0.90 8, 1000, 2048, 231.66, 0.93 ``` Reviewed By: supriyar Differential Revision: D23320018 fbshipit-source-id: a12ec2bec80f77b7c3e15aadee6da94a2b7182fd
- Loading branch information