interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / bridge / ggml / kernels / swi.om

8 lines · 264 bytes Raw Blame History
1note swi_@T@: swiglu d = silu(a) * b with silu(x) = x/(1 + expf(-x)) in f32, as ggml_vec_swiglu_f32.
2fn swi_@T@ a view f32 @T@ b view f32 @T@ d edit f32 @T@ to void
3for i ulong @T@
4x = get a i
5e = f32 ex64 f64 neg x
6put d i mul div x add f32 1.0 e get b i
7end
8end