Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion unsloth_zoo/dataset_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def _tokenize(example):
map_kwargs["batch_size"] = dataset._ex_iterable.batch_size

if use_desc: map_kwargs["desc"] = f'Unsloth: Tokenizing ["{dataset_text_field}"]'
dataset = dataset.map(_tokenize, batched = True, **map_kwargs)
dataset = dataset.map(_tokenize, batched = True, remove_columns = list(column_names), **map_kwargs)

# If VLM, switch data collator since .pad is needed!
if is_vlm and not hasattr(processing_class, "pad"):
Expand Down