Skip to content

Commit

Permalink
Fix bug when using pretokenized datasets (axolotl-ai-cloud#652)
Browse files Browse the repository at this point in the history
* fix pretokenized datasets readme

* check if dataset type is not set to handle pretokenized datasets
  • Loading branch information
ein-ich committed Sep 29, 2023
1 parent 22a3fe9 commit 16c136a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ Using file:
#### How to use your custom pretokenized dataset

- Do not pass a `type:`
- Dataset must contain `input_ids`, `attention_mask`, `labels` in columns
- Columns in Dataset must be exactly `input_ids`, `attention_mask`, `labels`


### Config
Expand Down
2 changes: 2 additions & 0 deletions src/axolotl/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ def validate_config(cfg):

if cfg.datasets:
for idx, ds_cfg in enumerate(cfg.datasets):
if not ds_cfg.type:
continue
if ds_cfg.type == "sharegpt:chat":
LOG.warning(
PendingDeprecationWarning(
Expand Down

0 comments on commit 16c136a

Please sign in to comment.