candle_transformers
0.5.0
Module utils
Functions
In crate candle_transformers
?
Settings
Module
candle_transformers
::
utils
Copy item path
source
·
[
−
]
Functions
§
apply_repeat_penalty
repeat_kv
Repeats a key or value tensor for grouped query attention The input tensor should have a shape
(batch, num_kv_heads, seq_len, head_dim)
,