Use lower-right causal mask alignment consistently (#2967)
Co-authored-by: Awni Hannun <awni.hannun@gmail.com>
This commit is contained in:
@@ -272,6 +272,8 @@ void init_fast(nb::module_& parent_module) {
|
||||
can have at most 4 dimensions and must be broadcast-compatible with
|
||||
the shape ``[B, N, T_q, T_kv]``. If an additive mask is given its
|
||||
type must promote to the promoted type of ``q``, ``k``, and ``v``.
|
||||
The ``"causal"`` mask uses lower-right alignment where the
|
||||
last query aligns with the last key.
|
||||
sinks (array, optional): An optional array of attention sinks.
|
||||
Default: ``None``.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user