CarperAI / CarperAI/trlx

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

Open
#607 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
4.8k
Forks
487
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Describe the bug

When running [trlx_sentiments.ipynb](https://colab.research.google.com/github/CarperAI/trlx/blob/main/examples/notebooks/trlx_sentiments.ipynb#scrollTo=jPFazHi1B6xR) notebook in colab the `ValueError` raised on line `imdb = load_dataset("imdb", split="train+test")`
```python
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
16 return {"sentiments": sentiments}
17
---> 18 imdb = load_dataset("imdb", split="train+test")

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/f978ab28-d758-4284-ab01-29213634521d)

### Which trlX version are you using?

0.7.0

### Additional system and package information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.