A step of the mistr_native implementation. Called by mistr_grouped_query_attention.
See the file header for the source the module follows.
Examples
mistr_apply_rope(c(1, 0, 1, 0), pos = 3)
#> [1] -0.9899925 0.1411200 0.9995500 0.0299955
A step of the mistr_native implementation. Called by mistr_grouped_query_attention.
See the file header for the source the module follows.
mistr_apply_rope(c(1, 0, 1, 0), pos = 3)
#> [1] -0.9899925 0.1411200 0.9995500 0.0299955