Skip to content

Commit

Permalink
fix tests for falcon
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Jan 19, 2024
1 parent 912afe2 commit 7a80bfb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/e2e/test_falcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ def test_lora(self, temp_dir):
"lora_alpha": 64,
"lora_dropout": 0.05,
"lora_target_linear": True,
"lora_modules_to_save": [
"word_embeddings",
"lm_head",
],
"val_set_size": 0.1,
"special_tokens": {
"bos_token": "<|endoftext|>",
Expand Down Expand Up @@ -69,6 +73,7 @@ def test_lora(self, temp_dir):
train(cfg=cfg, cli_args=cli_args, dataset_meta=dataset_meta)
assert (Path(temp_dir) / "adapter_model.bin").exists() @ with_temp_dir

@with_temp_dir
def test_lora_added_vocab(self, temp_dir):
# pylint: disable=duplicate-code
cfg = DictDefault(
Expand Down

0 comments on commit 7a80bfb

Please sign in to comment.