AnswerDotAI / AnswerDotAI/ModernBERT

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

Open
#237 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
145
PR merge metrics
No merged PRs in 30d

Description

Hi.
When running [finetune_modernbert_on_glue.ipynb](https://colab.research.google.com/github/AnswerDotAI/ModernBERT/blob/master/examples/finetune_modernbert_on_glue.ipynb#scrollTo=JJm1HiJrW2dC) notebook in colab on line `raw_datasets = load_dataset("glue", task)` the `ValueError` raised
```python
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
----> 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](https://github.com/user-attachments/assets/ad705e75-18f4-44b5-b250-28c708597f26)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.