Skip to content

Commit

Permalink
fix dict check
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Jan 5, 2024
1 parent 871355a commit 02dc87f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/axolotl/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def prepare_dataset(cfg, tokenizer):
else:
path = cfg.pretraining_dataset
name = None
if isinstance(dict, cfg.pretraining_dataset):
path = cfg.pretraining_dataset.path
name = cfg.pretraining_dataset.name
if isinstance(cfg.pretraining_dataset, dict):
path = cfg.pretraining_dataset["path"]
name = cfg.pretraining_dataset["name"]

train_dataset = load_pretraining_dataset(
path,
Expand Down

0 comments on commit 02dc87f

Please # to comment.