What exactly this kernel does ? And why this kernel got launched during QKV projection? Are there some internal working which actually deactivate this ReLu parameter of this kernel for matrix multiplication?
aten is a torch library/subsystem for tensor operations
it looks like a kernel naming convention that I have seen before, from time to time, in NVIDIA libraries. In particular CUBLAS, although I am not stating categorically this is a CUBLAS kernel, although the naming convention looks familiar to me.
turing: optimized for cc7.5 (that doesn’t mean that you should only expect to see it if running on a cc7.5 GPU. When you see it being used on a GPU other than a turing GPU, say a newer one like Ampere, it probably means that the optimizations done for Turing were equally valuable on that other architecture, and there is no better alternative available for that other architecture)
fp16: using FP16 data (perhaps FP16 output vs. FP32 output)
s1688: using tensorcore, in particular at least 2nd gen Tensorcore (consistent with cc7.5) because first gen TC ops (cc7.0) kernels used 884 nomenclature - this is probably referring to PTX TC op sizes available
gemm: a matrix-matrix multiply operation
fp16: same, perhaps FP16 input
128x128: probably something to do with tile size
ldg: using global loads
relu: probably applying an additional operation (relu) to some of the calculated outputs
tn: one of the inputs is taken transposed, one of the inputs is taken non-transposed
I suspect OP (and perhaps many folks) already know all of the above, and that is not really the question being asked, probably.
For more general help with pytorch, I usually refer folks to a pytorch forum like discuss.pytorch.org There are NVIDIA experts that visit those forums. Even having said that, getting a precise specification for the behavior of this kernel is unlikely in my opinion. Relevant libraries like CUBLAS and CUDNN are closed-source, and NVIDIA generally doesn’t document or discuss details of internal behavior. OTOH if you trace the the aten library call to the point that it is making a call into CUDNN (fun!!), the CUDNN call and its documentation and parameters may shed some light on what this kernel might be doing or why it is called.