mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 01:24:36 +00:00
new gpt2 format supported
This commit is contained in:
parent
1369b46bb7
commit
d8e37bfe75
12 changed files with 962 additions and 51 deletions
|
@ -433,7 +433,11 @@ bool should_transpose_layer(std::string name)
|
|||
name.find(".attn.out_proj.weight")!=std::string::npos ||
|
||||
name.find(".attn.q_proj.weight")!=std::string::npos ||
|
||||
name.find(".attn.k_proj.weight")!=std::string::npos ||
|
||||
name.find(".attn.v_proj.weight")!=std::string::npos)
|
||||
name.find(".attn.v_proj.weight")!=std::string::npos ||
|
||||
name.find("/attn/c_attn/w")!=std::string::npos ||
|
||||
name.find("/attn/c_proj/w")!=std::string::npos ||
|
||||
name.find("/mlp/c_fc/w")!=std::string::npos ||
|
||||
name.find("/mlp/c_proj/w")!=std::string::npos)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue