MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / n_gqa

Method n_gqa

subprojects/llama.cpp/src/llama-hparams.cpp:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54uint32_t llama_hparams::n_gqa(uint32_t il) const {
55 const uint32_t n_head = this->n_head(il);
56 const uint32_t n_head_kv = this->n_head_kv(il);
57
58 if (n_head_kv == 0) {
59 return 0;
60 }
61
62 return n_head/n_head_kv;
63}
64
65uint32_t llama_hparams::n_embd_inp() const {
66 uint32_t n_embd_inp = n_embd;

Callers 2

print_infoMethod · 0.80
llama_tensor_get_typeFunction · 0.80

Calls 2

n_headMethod · 0.95
n_head_kvMethod · 0.95

Tested by

no test coverage detected