Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SunMarc committed Aug 31, 2023
1 parent 539c4be commit 102ad89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimum/gptq/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ def get_dataset(
"ptb": get_ptb,
"ptb-new": get_ptb_new,
}
if split not in ["train", "test"]:
if split not in ["train", "validation"]:
raise ValueError(f"The split need to be 'train' or 'validation' but found {split}")
if dataset_name not in get_dataset_map:
raise ValueError(f"Expected a value in {list(get_dataset_map.keys())} but found {dataset_name}")
get_dataset_fn = get_dataset_map[dataset_name]
return get_dataset_fn(tokenizer=tokenizer, nsamples=nsamples, seqlen=seqlen)
return get_dataset_fn(tokenizer=tokenizer, nsamples=nsamples, seqlen=seqlen, split=split)

0 comments on commit 102ad89

Please sign in to comment.