diff --git a/otherarch/utils.cpp b/otherarch/utils.cpp index 352bac182..1cbdb72b1 100644 --- a/otherarch/utils.cpp +++ b/otherarch/utils.cpp @@ -426,7 +426,7 @@ gpt_vocab::id gpt_sample_top_k_top_p( return logits_id[idx].second; } -static bool should_transpose_layer(std::string name) +bool should_transpose_layer(std::string name) { if(name.find(".mlp.fc_in.weight")!=std::string::npos || diff --git a/otherarch/utils.h b/otherarch/utils.h index 479a364c8..32a26cb10 100644 --- a/otherarch/utils.h +++ b/otherarch/utils.h @@ -76,4 +76,4 @@ bool utils_gpt_params_parse(int argc, char ** argv, gpt_params & params); void utils_gpt_print_usage(int argc, char ** argv, const gpt_params & params); std::string utils_gpt_random_prompt(std::mt19937 & rng); -static bool should_transpose_layer(std::string name); \ No newline at end of file +bool should_transpose_layer(std::string name); \ No newline at end of file