Skip to content

Commit

Permalink
pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Jun 13, 2024
1 parent 0285503 commit 9955796
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/data/test_packing.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ def test_auto_packing_with_streaming_dataloader(tmp_path: Path):
assert isinstance(loader, DataLoader)
assert isinstance(loader.dataset, StreamingFinetuningDataset)
assert loader.dataset.packing_ratio is not None
assert isinstance(loader.batch_size, int)
assert loader.dataset.packing_ratio == int(loader.batch_size / 6)

state_dict = loader.dataset.state_dict(num_samples=2, from_beginning=False)
Expand Down

0 comments on commit 9955796

Please sign in to comment.