From 7a80bfb07dd488126f8c23e4ce626b737c70841d Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Fri, 19 Jan 2024 00:03:45 -0500 Subject: [PATCH] fix tests for falcon --- tests/e2e/test_falcon.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/e2e/test_falcon.py b/tests/e2e/test_falcon.py index 146596e14d..21e23ca11e 100644 --- a/tests/e2e/test_falcon.py +++ b/tests/e2e/test_falcon.py @@ -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|>", @@ -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(