sdm.nn#
Rotary Positional Embedding (RoPE) from the "RoFormer: Enhanced Transformer with Rotary Position Embedding" paper. |
|
\(\mathrm{FFN}_{\mathrm{SwiGLU}}\) block from the "GLU Variants Improve Transformer" paper. |
|
Apply a learned positive scale to the final input dimension. |
|
Base class for query scaling modules in |
|
Query-Aware Scalable SoftMax (QASSMax). |
|
Logarithmic query scaling. |
|
Gated logarithmic query scaling. |
|
Scaled Dot-Product Attention (SDPA). |
|
Multi-head attention layer with grouped-query attention support. |
|
Transformer block with normalization and feedforward residual modules. |
|
Transformer block using learned inducing points. |