Skip to content

Commit

Permalink
Fix coverage [release]
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayP13 committed Mar 18, 2024
1 parent 8f3b065 commit ad3dd9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "DataDreamer"
version = "0.24.0"
version = "0.25.0"
description = "Prompt. Generate Synthetic Data. Train & Align Models."
license = "MIT"
authors= [
Expand Down
6 changes: 4 additions & 2 deletions src/tests/trainers/test_trainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ def test_hf_chat_template(self, create_datadreamer):
)
with create_datadreamer():
trainer = TrainHFFineTune(
"Zephyr Trainer", model_name="HuggingFaceH4/zephyr-7b-beta"
"Zephyr Trainer",
model_name="HuggingFaceH4/zephyr-7b-beta",
chat_prompt_template="<|system|>\n</s>\n<|user|>\n{{prompt}}</s>\n<|assistant|>\n",
)
assert (
trainer.tokenizer.apply_chat_template(
Expand All @@ -179,7 +181,7 @@ def test_hf_chat_template(self, create_datadreamer):
],
tokenize=False,
)
== "<s><|system|>\nYou are a helpful assistant.</s>\n<|user|>\nA</s>\n<|assistant|>\nB</s>"
== "<s><|system|>\n</s>\n<|user|>\nA</s>\n<|assistant|>\nB</s>"
)
with create_datadreamer():
trainer = TrainHFFineTune(
Expand Down

0 comments on commit ad3dd9c

Please sign in to comment.