ggml-omega
aien-dev/ggml-omega
Brought by drakestapleton
ggml-omega / kernels / smwh.om
| 1 | note smwh_@T@: the soft_max input w = x*scale + mask with an f16 mask, on @T@ lanes. |
| 2 | fn smwh_@T@ x view f32 @T@ m view ushort @T@ d edit f32 @T@ sc ulong to void |
| 3 | sf = bitcast f32 uint sc |
| 4 | for i ulong @T@ |
| 5 | put d i add mul get x i sf h2f get m i |
| 6 | end |
| 7 | end |