Skip to content

Commit e4c38d2

Browse files
authored
Update common/common.h
1 parent 33d9591 commit e4c38d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,11 +739,11 @@ const char * const LLM_KV_SPLIT_TENSORS_COUNT = "split.tensors.count";
739739

740740
const char * const LLM_FFN_EXPS_REGEX = "\\.ffn_(up|down|gate)_exps";
741741

742-
inline std::string llm_ffn_exps_block_regex(int idx) {
742+
static std::string llm_ffn_exps_block_regex(int idx) {
743743
return string_format("blk\\.%d%s", idx, LLM_FFN_EXPS_REGEX);
744744
}
745745

746-
inline llama_model_tensor_buft_override llm_ffn_exps_cpu_override() {
746+
static llama_model_tensor_buft_override llm_ffn_exps_cpu_override() {
747747
return { LLM_FFN_EXPS_REGEX, ggml_backend_cpu_buffer_type() };
748748
}
749749

0 commit comments

Comments
 (0)