Skip to content

Commit ab91ab2

Browse files
committed
add_bos
1 parent 46fe5cb commit ab91ab2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

convert_hf_to_gguf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,7 @@ def __init__(self, *args, **kwargs):
17801780

17811781
def set_vocab(self):
17821782
self._set_vocab_gpt2()
1783+
self.gguf_writer.add_add_bos_token(True)
17831784

17841785
def set_gguf_parameters(self):
17851786
super().set_gguf_parameters()

src/llama-model.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4416,6 +4416,7 @@ struct llm_build_llama : public llm_graph_context {
44164416
cb(shexp_out, "ffn_moe_shexp", il);
44174417

44184418
cur = ggml_add(ctx0, moe_out, shexp_out);
4419+
cb(shexp_out, "ffn_moe_out_merged", il);
44194420

44204421
} else {
44214422
// MoE branch

0 commit comments

Comments
 (0)