MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / swiglu_hidden_dim

Function swiglu_hidden_dim

src/models/miocodec/weights.cpp:363–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363int64_t swiglu_hidden_dim(int64_t dim) {
364 int64_t hidden = static_cast<int64_t>(2 * (4 * dim) / 3);
365 constexpr int64_t multiple_of = 256;
366 return multiple_of * ((hidden + multiple_of - 1) / multiple_of);
367}
368
369MioCodecTransformerWeights bind_transformer(
370 MioCodecWeights & weights,

Callers 1

bind_transformerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected