Skip to content

Commit

Permalink
type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
eitanturok committed Sep 27, 2024
1 parent 86992f9 commit 24ffeb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llmfoundry/data/finetuning/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ def build_finetuning_dataloader(

# Get the preprocessing function.
proto_preprocessing_fn = dataset_cfg.get('preprocessing_fn')
assert proto_preprocessing_fn is not None
if isinstance(proto_preprocessing_fn, (dict, DictConfig)):
preprocessing_fn = dataset_constructor.get_preprocessing_fn_from_dict(
dict(proto_preprocessing_fn),
Expand Down

0 comments on commit 24ffeb4

Please sign in to comment.