mirror of
https://github.com/wassname/alignment-handbook.git
synced 2026-07-11 15:30:24 +08:00
Use ungated models for unit tests (#196)
* Fix unit test * Fix chat template tests * Remove deprecated test * up
This commit is contained in:
@@ -32,7 +32,7 @@ def maybe_insert_system_message(messages, tokenizer):
|
||||
# chat template can be one of two attributes, we check in order
|
||||
chat_template = tokenizer.chat_template
|
||||
if chat_template is None:
|
||||
chat_template = tokenizer.default_chat_template
|
||||
chat_template = tokenizer.get_chat_template()
|
||||
|
||||
# confirm the jinja template refers to a system message before inserting
|
||||
if "system" in chat_template or "<|im_start|>" in chat_template:
|
||||
|
||||
Reference in New Issue
Block a user