Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streaming multipack for pretraining dataset #959

Merged
Prev Previous commit
Next Next commit
fix dict check
  • Loading branch information
winglian committed Jan 5, 2024
commit 680cbe21bb5d7f1ca996301cf9d4130b1566efc7
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