fix: imported name incorrectly updated on merge
This commit is contained in:
@@ -8,7 +8,7 @@ from axolotl.prompt_strategies.chat_template import (
|
|||||||
ChatTemplatePrompter,
|
ChatTemplatePrompter,
|
||||||
ChatTemplateStrategy,
|
ChatTemplateStrategy,
|
||||||
)
|
)
|
||||||
from axolotl.utils.chat_templates import chat_templates
|
from axolotl.utils.chat_templates import get_chat_template
|
||||||
|
|
||||||
|
|
||||||
class BTChatTemplateStrategy(ChatTemplateStrategy):
|
class BTChatTemplateStrategy(ChatTemplateStrategy):
|
||||||
@@ -56,7 +56,7 @@ def load(tokenizer, cfg, ds_cfg: Optional[Dict[str, Any]] = None):
|
|||||||
|
|
||||||
prompter_params = {
|
prompter_params = {
|
||||||
"tokenizer": tokenizer,
|
"tokenizer": tokenizer,
|
||||||
"chat_template": chat_templates(ds_cfg.get("chat_template", "chatml")),
|
"chat_template": get_chat_template(ds_cfg.get("chat_template", "chatml")),
|
||||||
"message_field_role": ds_cfg.get("message_field_role", "from"),
|
"message_field_role": ds_cfg.get("message_field_role", "from"),
|
||||||
"message_field_content": ds_cfg.get("message_field_content", "value"),
|
"message_field_content": ds_cfg.get("message_field_content", "value"),
|
||||||
"message_field_training": ds_cfg.get("message_field_training", "training"),
|
"message_field_training": ds_cfg.get("message_field_training", "training"),
|
||||||
|
|||||||
Reference in New Issue
Block a user