Skip to content

[BUG] Abnormal progress bar in dataset.map when load_from_cache_file=False #8167

@Jintao-Huang

Description

@Jintao-Huang

Describe the bug

datasets 4.8.5

from datasets import load_dataset, load_from_disk

data = load_from_disk('pretrain_cached_dataset/train')

def dummy_map(example):
    return example

dataset = data.map(dummy_map)
dataset = data.map(dummy_map, load_from_cache_file=True)   # works fine
dataset = data.map(dummy_map, load_from_cache_file=True, num_proc=4)   # works fine
dataset = data.map(dummy_map, load_from_cache_file=False)  # does not work
Image Image

Steps to reproduce the bug

Expected behavior

Environment info

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions