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

Function llama_mlp_hidden_dim

src/models/heartmula/codec.cpp:60–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 value *= 2;
59 }
60 return value;
61}
62
63int64_t llama_mlp_hidden_dim(int64_t dim) {
64 const int64_t multiple_of = 256;
65 int64_t hidden_dim = 4 * dim;
66 hidden_dim = 2 * hidden_dim / 3;
67 return multiple_of * ((hidden_dim + multiple_of - 1) / multiple_of);
68}

Callers 1

load_transformer_blocksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected