Skip to content

Commit

Permalink
add main test file
Browse files Browse the repository at this point in the history
  • Loading branch information
jshuadvd committed Jun 10, 2024
1 parent d90c718 commit d14436d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@
progressive_extension,
short_context_recovery,
)


def test_load_data():
tokenizer = GPT2Tokenizer.from_pretrained("gpt2")
data = load_data("data/raw/enwik8.gz", tokenizer, 65536)
assert len(data) > 0
assert isinstance(data[0], torch.Tensor)

0 comments on commit d14436d

Please sign in to comment.