-
Notifications
You must be signed in to change notification settings - Fork 7k
Improve instructions for reading Hugging Face datasets with Ray Data #58492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request updates the documentation for reading Hugging Face datasets, recommending the use of ray.data.read_parquet with HfFileSystem for better performance and scalability. The changes are a good improvement. I've provided a few suggestions to make the code examples more robust and clearer for users. Specifically, I've recommended using os.environ.get() to avoid KeyError when the Hugging Face token is not set, and suggested using a simpler dataset for the examples. For the second example, I've also proposed using a public API from the datasets library instead of internal ones to make the example more stable across library versions.
76d5212 to
4daaab4
Compare
|
tests failing |
55fbcd0 to
b991022
Compare
Signed-off-by: Robert Nishihara <rkn@anyscale.com>
Signed-off-by: Robert Nishihara <rkn@anyscale.com>
b991022 to
4ee1b52
Compare
Signed-off-by: Robert Nishihara <rkn@anyscale.com>
Signed-off-by: Robert Nishihara <rkn@anyscale.com>
648f138 to
d0cf6b5
Compare
…th Ray Data (ray-project#58492) This pull request updates the documentation for reading Hugging Face datasets, recommending the use of ray.data.read_parquet with HfFileSystem for better performance and scalability. --------- Signed-off-by: Robert Nishihara <rkn@anyscale.com>
…th Ray Data (ray-project#58492) This pull request updates the documentation for reading Hugging Face datasets, recommending the use of ray.data.read_parquet with HfFileSystem for better performance and scalability. --------- Signed-off-by: Robert Nishihara <rkn@anyscale.com> Signed-off-by: YK <1811651+ykdojo@users.noreply.github.com>
…th Ray Data (ray-project#58492) This pull request updates the documentation for reading Hugging Face datasets, recommending the use of ray.data.read_parquet with HfFileSystem for better performance and scalability. --------- Signed-off-by: Robert Nishihara <rkn@anyscale.com>
This pull request updates the documentation for reading Hugging Face datasets, recommending the use of ray.data.read_parquet with HfFileSystem for better performance and scalability.