179 questions
No questions match those filters.
A model uses embedding dimension d = 4097. Profiling sh...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansThe first hazard is discretization waste: because 4097 is not a multiple of the tile size T=128, the last column-tile is only 1/128th wide, leaving 127 threads idle. The fix is to pad the dimension to 4224 (33 * 128). The second hazard is wave quantization: after padding, the tile count is 1089, which results in 11 waves where the last wave has very low SM utilization. The fix is to select a dimension that is a multiple of T and yields a tile count that fits efficiently into the SMs. For this case, padding to d=4608 (36 * 128) results in 1296 tiles, which is a perfect multiple of 108, ensuring clean wave execution.