interplane.Get Omega
Read in your language

ggml-omega

aien-dev/ggml-omega

Brought by drakestapleton

branch main Branches Tags History

ggml-omega / kernels / rtsc.om

6 lines · 229 bytes Raw Blame History
1note rtsc: the rope theta scale powf(base, -2/n_dims) as f32 bits (base f32 bits).
2fn rtsc base ulong nd ulong to ulong
3b = bitcast f32 uint base
4ex = div f32 -2.0 f32 nd
5ret ulong bitcast uint f32 ex64 mul f64 ex ln64 f64 b
6end