Comments (2)
I am not able to reproduce the error with datasets 2.19.1:
In [1]: from datasets import load_dataset; ds = load_dataset("stas/c4-en-10k", streaming=True); item = next(iter(ds["train"])); item
Out[1]: {'text': 'Beginners BBQ Class Taking Place in Missoula!\nDo you want to get better at making delicious BBQ? You will have the opportunity, put this on your calendar now. Thursday, September 22nd join World Class BBQ Champion, Tony Balay from Lonestar Smoke Rangers. He will be teaching a beginner level class for everyone who wants to get better with their culinary skills.\nHe will teach you everything you need to know to compete in a KCBS BBQ competition, including techniques, recipes, timelines, meat selection and trimming, plus smoker and fire information.\nThe cost to be in the class is $35 per person, and for spectators it is free. Included in the cost will be either a t-shirt or apron and you will be tasting samples of each meat that is prepared.'}
In [2]: from datasets import load_dataset; ds = load_dataset("stas/c4-en-10k", download_mode="force_redownload"); ds
Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 13.3M/13.3M [00:00<00:00, 18.7MB/s]
Generating train split: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 10000/10000 [00:00<00:00, 78548.55 examples/s]
Out[2]:
DatasetDict({
train: Dataset({
features: ['text'],
num_rows: 10000
})
})
Looking at your error traceback, I notice that the code line numbers do not correspond to the ones of datasets 2.19.1.
Additionally, I can't reproduce the issue with HfFileSystem
:
In [1]: from huggingface_hub import HfFileSystem
In [2]: fs = HfFileSystem()
In [3]: with fs.open("datasets/stas/c4-en-10k/c4-en-10k.py", "rb") as f:
...: data = f.read()
...:
In [4]: data[:20]
Out[4]: b'# coding=utf-8\n# Cop'
Could you please verify the datasets
and huggingface_hub
versions you are indeed using?
import datasets; print(datasets.__version__)
import huggingface_hub; print(huggingface_hub.__version__)
from datasets.
Thanks for your reply! After I update the datasets version from 2.15.0 back to 2.19.1 again, it seems everything work well. Sorry for bordering you!
from datasets.
Related Issues (20)
- ExpectedMoreSplits error when using data_dir
- Enable Sharding to Equal Sized Shards
- Supporting FFCV: Fast Forward Computer Vision
- Import sorting is disabled by flake8 noqa directive after switching to ruff linter
- FileNotFoundError:error when loading C4 dataset HOT 12
- to_tf_dataset: Visible devices cannot be modified after being initialized
- load_dataset error HOT 2
- `Dataset.with_format` behaves inconsistently with documentation HOT 1
- load_dataset() should load all subsets, if no specific subset is specified HOT 2
- Remove canonical datasets from docs
- My Private Dataset doesn't exist on the Hub or cannot be accessed HOT 7
- Manual downloads should count as downloads HOT 1
- Method to load Laion400m
- IndexError during training with Squad dataset and T5-small model HOT 1
- load json file error with v2.20.0 HOT 2
- How can I load partial parquet files only? HOT 12
- Support NumPy 2.0
- cannot split dataset when using load_dataset HOT 1
- Convert polars DataFrame back to datasets
- AttributeError: module 'pyarrow.lib' has no attribute 'ListViewType' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datasets.