Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxisawesome committed Jan 18, 2024
1 parent ca4f7b8 commit 9628d19
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/datasets/test_in_context_learning_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def test_qa_get_max_answer_length(tiny_gpt2_tokenizer, tmp_path):
destination_path=str(Path(gathered_paths[0]) / 'icl.jsonl'),
)
# empirical number from the small test dataset
assert dl.max_answer_length == 9
assert dl.max_answer_length == 7


def test_qa_get_answer_from_example_with_no_cot(tmp_path, tiny_gpt2_tokenizer):
Expand Down Expand Up @@ -1875,7 +1875,7 @@ def test_qa_task_evaluation_opt_tokenizer(device, world_size, tiny_opt_tokenizer
tokenizer = tiny_opt_tokenizer

# TODO: check this
batch_size = 10
batch_size = 4
tmp_path_to_broadcast = str(os.path.abspath(tmp_path))
gathered_paths = dist.all_gather_object(tmp_path_to_broadcast)
dl = get_icl_task_dataloader(
Expand Down Expand Up @@ -1925,6 +1925,7 @@ def test_qa_task_evaluation_with_cot_opt_tokenizer(device, world_size, tiny_opt_
dataset_uri = f'{local_data}/{dataset_uri}'
tokenizer = tiny_opt_tokenizer

batch_size = 4
tmp_path_to_broadcast = str(os.path.abspath(tmp_path))
gathered_paths = dist.all_gather_object(tmp_path_to_broadcast)
dl = get_icl_task_dataloader(
Expand Down Expand Up @@ -2082,7 +2083,7 @@ def test_code_eval_microbatching(monkeypatch, device, world_size, tiny_opt_token
local_data = os.path.join(os.path.dirname(__file__), 'local_data')
dataset_uri = f'{local_data}/{dataset_uri}'
tokenizer = tiny_opt_tokenizer
batch_size = 8
batch_size = 4

tmp_path_to_broadcast = str(os.path.abspath(tmp_path))
gathered_paths = dist.all_gather_object(tmp_path_to_broadcast)
Expand Down

0 comments on commit 9628d19

Please sign in to comment.