ggml-omega
aien-dev/ggml-omega
Brought by drakestapleton
ggml-omega / kernels / rtsc.om
| 1 | note rtsc: the rope theta scale powf(base, -2/n_dims) as f32 bits (base f32 bits). |
| 2 | fn rtsc base ulong nd ulong to ulong |
| 3 | b = bitcast f32 uint base |
| 4 | ex = div f32 -2.0 f32 nd |
| 5 | ret ulong bitcast uint f32 ex64 mul f64 ex ln64 f64 b |
| 6 | end |