Skip to content

Commit

Permalink
fix: normalize config
Browse files Browse the repository at this point in the history
  • Loading branch information
NanoCode012 committed Mar 25, 2024
1 parent 1d347d9 commit 4abac4f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/core/test_trainer_builder.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
"""
unit tests for axolotl.core.trainer_builder
"""

import pytest

from axolotl.core.trainer_builder import HFDPOTrainerBuilder
from axolotl.utils.config import normalize_config
from axolotl.utils.dict import DictDefault
from axolotl.utils.models import load_model, load_tokenizer


@pytest.fixture(name="cfg")
def fixture_cfg():
return DictDefault(
cfg = DictDefault(
{
"base_model": "TinyLlama/TinyLlama-1.1B-Chat-v0.6",
"model_type": "AutoModelForCausalLM",
Expand All @@ -34,6 +36,10 @@ def fixture_cfg():
}
)

normalize_config(cfg)

return cfg


@pytest.fixture(name="tokenizer")
def fixture_tokenizer(cfg):
Expand Down

0 comments on commit 4abac4f

Please sign in to comment.