Skip to content
RED SAG Skills
hardStudy question · answer published in Transformers interview questions, so no pointstransformersattention

Subtracting the max in softmax

Production softmax kernels compute exp(x − max(x)) instead of exp(x). Why is this safe and why is it done?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions