mirror of
https://github.com/wassname/alignment-handbook.git
synced 2026-07-15 11:20:03 +08:00
🪁 (#129)
* Add Gemma 7B recipe * Use Gemma template * Make it work for dolly lol * Enable cahce * Clean up * DPO to the max * DPO, DPO, DPO * Add openhermes * Add custom configs * Add kwargs * Fix config * Bump deps * Move old recipes * Add doc * Add norte * Renable cache * Nuke * Clean * Apply suggestions from code review Co-authored-by: Alvaro Bartolome <alvaro@argilla.io> * Fix isort * Update README.md * Update config_full.yaml --------- Co-authored-by: Alvaro Bartolome <alvaro@argilla.io> Co-authored-by: Philipp Schmid <32632186+philschmid@users.noreply.github.com>
This commit is contained in:
co-authored by
Alvaro Bartolome
Philipp Schmid
parent
d17fd7cd3b
commit
ff618a4d13
@@ -34,7 +34,7 @@ def maybe_insert_system_message(messages, tokenizer):
|
||||
chat_template = tokenizer.default_chat_template
|
||||
|
||||
# confirm the jinja template refers to a system message before inserting
|
||||
if "system" in chat_template:
|
||||
if "system" in chat_template or "<|im_start|>" in chat_template:
|
||||
messages.insert(0, {"role": "system", "content": ""})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user