interplane.Get Omega
Read in your language

ggml

[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)

Brought by drakestapleton

branch master Branches Tags History

ggml / src / ggml-vulkan / vulkan-shaders / swiglu_oai.comp

14 lines · 288 bytes Raw Blame History
1#version 450
2
3#include "glu_head.glsl"
4
5float op(float a, float b) {
6 float xi = min(a, p.limit);
7 float gi = max(min(b, p.limit), -p.limit);
8
9 float out_glu = xi / (1.0f + exp(-xi * p.alpha));
10 out_glu = out_glu * (1.0f + gi);
11 return out_glu;
12}
13
14#include "glu_main.glsl"