Skip to content

Commit

Permalink
typecast shuffle_block_size because of issue (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
codestar12 committed Sep 6, 2023
1 parent e891c30 commit 9558a40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llmfoundry/data/text_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ def __init__(self,
f'local directory {local} does not contain split {split}'
)

# TODO: discover where yamls are being converted incorrect, but temporary workaround
if isinstance(shuffle_block_size, float):
shuffle_block_size = int(shuffle_block_size)

# Build Dataset
super().__init__(
streams=streams,
Expand Down

0 comments on commit 9558a40

Please sign in to comment.