Skip to content
RED SAGSkills
hard20 pts · first answer countstransformersattention

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