MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / n_embd_v_s

Method n_embd_v_s

smallthinker/src/llama-hparams.cpp:85–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85uint32_t llama_hparams::n_embd_v_s() const {
86 if (wkv_head_size != 0) {
87 // corresponds to RWKV's wkv_states size
88 return n_embd * wkv_head_size;
89 }
90
91 // corresponds to Mamba's ssm_states size
92 return ssm_d_state * ssm_d_inner;
93}
94
95bool llama_hparams::is_swa(uint32_t il) const {
96 if (il < n_layer) {

Callers 9

build_mamba_layerMethod · 0.80
build_rwkv6_time_mixMethod · 0.80
build_rwkv7_time_mixMethod · 0.80
state_write_dataMethod · 0.80
state_read_dataMethod · 0.80
state_write_dataMethod · 0.80
state_read_dataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected