CodeHistory
Commits on move/encoder_kernel to dev279 - ANuse cublaslt, which fuses bias, and also use tf32 when your GPU supports it (#98)Andrej committed 2 years ago
8822e78 - ESdiv_ceilErik Schultheis committed 2 years ago
e048825 - ESonline softmaxErik Schultheis committed 2 years ago
8e87aac - ESvector loadsErik Schultheis committed 2 years ago
de98a9a - ESrecalculate instead of memory round-tripErik Schultheis committed 2 years ago
baba3cf - LAInclude a parallel kernal of softmax_onlinelancer committed 2 years ago
69d0e5b - LAInclude a parallel kernal of softmax_onlinelancer committed 2 years ago
ca1e5ee - EScooperative groups and fused scale kernelErik Schultheis committed 2 years ago
5f99fb3 - LAImprove the efficiencylancer committed 2 years ago
d6bcc12 - LAImprove the efficiencylancer committed 2 years ago
00010c7 - AKceildiv in layernormAndrej Karpathy committed 2 years ago
00b9fda - AKmake sure we also test correctness of mean and rstd and do it all block sizesAndrej Karpathy committed 2 years ago
089cd5f - AKsmall edits to comments and variablesAndrej Karpathy committed 2 years ago
f28613e - AKMerge branch 'layer-norm' of https://github.com/ngc92/llm.c into ngc92-layer-normAndrej Karpathy committed 2 years ago
2553518 - ESoptionally generate mean and rstdErik Schultheis committed 2 years ago
4e91362 - LAInclude the online softmax CPU code (from the paper "Online normalizer calculation for softmax") and native port to GPU kernel. Both the CPU and GPU kernels' correctness are verified by executing the script.lancer committed 2 years ago
f524a90 - AKmake gelu constant be a #define, speeds up the kernel by 1% or soAndrej Karpathy committed 2 years ago
f26cf00 - ESfixed block size and improved load op hintErik Schultheis committed 2 years ago
afddb1a - ESfully fused layer-norm kernelErik Schultheis committed 2 years ago
466723b - LAfix error in small typos in matmul_forward.culancer committed 2 years ago
68d2ce0 - ANMerge pull request #38 from lancerts/fix_matmulAndrej committed 2 years ago
9f5069d - AKthe full forward pass of GPT-2 in one file of pure CUDAAndrej Karpathy committed 2 years ago
80f52e5 - AKok crossentropy is fairly ez, just have to be careful with logs of negative numbers in debug tests. so this should be all the layers nowAndrej Karpathy committed 2 years ago
d8e2a36 - AKsorry there should be no mallocs inside these functions, have to pass in buffer memory from outside. getting tiredAndrej Karpathy committed 2 years ago
46ee0a3 - AKok attention is now optimized too, by 20X, nice. actually this one was really painful, i had to make sure all the cuBLAS calls take all the right arguments and deal with the fact that cuBLAS is column major instead of row major. i go for nap nowAndrej Karpathy committed 2 years ago
919ae1f - LAfix the consistency of the transpose notationlancer committed 2 years ago
fbd679a - AKintra-warp reductions and inter-warp shared memory reductions for B,T,C parallelism of softmax kernel niceAndrej Karpathy committed 2 years ago
8386e53 - AKadd softmax forward, both a naive parallel over B,T version, and a more optimized parallel over B,T,C version using shared memory for reductionsAndrej Karpathy committed 2 years ago
c29d70a - ANMerge pull request #33 from lancerts/fix_M_PI_undefinedAndrej committed 2 years ago
ea1fad0 - AKadd flash attention, but a naive implementation there ofAndrej Karpathy committed 2 years ago
bb4f04b - LAamendlancer committed 2 years ago
3a4d783 - LAfix error: identifier M_PI is undefinedlancer committed 2 years ago
73c9291 - AKnaive attention kernel only parallelizing over batch,time,heads. have to speed this up a lotAndrej Karpathy committed 2 years ago
03f37cf - AKmight as well push the few kernels that i feel ok about so farAndrej Karpathy committed 2 years ago
41d5f56