Skip to content

Commit

Permalink
fixes for dpo and orpo template loading (#1424)
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian authored Mar 20, 2024
1 parent dd449c5 commit 7803f09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
fail-fast: false
matrix:
python_version: ["3.10", "3.11"]
timeout-minutes: 10
timeout-minutes: 20

steps:
- name: Check out repository code
Expand Down
2 changes: 1 addition & 1 deletion src/axolotl/prompt_strategies/dpo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

from ..base import load as load_base

load = partial(load_base, module="axolotl.prompt_strategies.dpo")
load = partial(load_base, module_base="axolotl.prompt_strategies.dpo")
1 change: 1 addition & 0 deletions src/axolotl/prompt_strategies/orpo/chat_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def load(
chat_template = chat_templates(chat_template)
except ValueError:
pass
tokenizer.chat_template = chat_template

return ORPOTokenizingStrategy(
ORPOPrompter(chat_template, tokenizer),
Expand Down

0 comments on commit 7803f09

Please sign in to comment.