Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
milocress committed Jun 8, 2024
1 parent 78998ef commit b76b484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llmfoundry/data/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"""Dataloader builder utilities."""

from typing import Any, Dict
from typing import Any, Dict, Union

from composer import DataSpec
from transformers import PreTrainedTokenizerBase
Expand All @@ -19,7 +19,7 @@
def build_dataloader(
cfg: Dict[str, Any],
tokenizer: PreTrainedTokenizerBase,
device_batch_size: int,
device_batch_size: Union[int, float],
) -> DataSpec:
"""Builds a dataloader from a config.
Expand Down

0 comments on commit b76b484

Please sign in to comment.