Skip to content

ValueError: Invalid pattern: '**' can only be an entire path component #237

@amrzv

Description

@amrzv

Hi.
When running finetune_modernbert_on_glue.ipynb notebook in colab on line raw_datasets = load_dataset("glue", task) the ValueError raised

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
[<ipython-input-7-0b52e8a97011>](https://localhost:8080/#) in <cell line: 0>()
----> 1 raw_datasets = load_dataset("glue", task)
      2 
      3 print(f"{raw_datasets}\n")
      4 print(f"{raw_datasets[train_ds_name][0]}\n")
      5 print(f"{raw_datasets[train_ds_name].features}\n")

11 frames
[/usr/local/lib/python3.11/dist-packages/fsspec/utils.py](https://localhost:8080/#) in glob_translate(pat)
    729             continue
    730         elif "**" in part:
--> 731             raise ValueError(
    732                 "Invalid pattern: '**' can only be an entire path component"
    733             )

ValueError: Invalid pattern: '**' can only be an entire path component

Image

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