omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / bridge / ggml / 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 |