File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5638,7 +5638,7 @@ def set_vocab(self):
5638
5638
special_vocab .add_to_gguf (self .gguf_writer )
5639
5639
# FIX - Kimi-K2 does not add a BOS
5640
5640
self .gguf_writer .add_bos_token_id (163584 ) # [BOS]
5641
- self .gguf_writer .add_bos_token (False )
5641
+ self .gguf_writer .add_add_bos_token (False )
5642
5642
# FIX - Kimi-K2's EOS token is wrong - should be <|im_end|>
5643
5643
self .gguf_writer .add_eos_token_id (163586 ) # <|im_end|>
5644
5644
else :
@@ -7060,7 +7060,7 @@ def set_vocab(self):
7060
7060
# FIX for BOS token: Overwrite incorrect id read from config.json
7061
7061
self .gguf_writer .add_bos_token_id (127959 ) # <|bos|>
7062
7062
# FIX - Hunyuan does not add a BOS
7063
- self .gguf_writer .add_bos_token (False )
7063
+ self .gguf_writer .add_add_bos_token (False )
7064
7064
7065
7065
def set_gguf_parameters (self ):
7066
7066
super ().set_gguf_parameters ()
You can’t perform that action at this time.
0 commit comments