Skip to content
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

wrap prepared_ds_path in str() to avoid TypeError in fsspec package #1548

Merged
merged 2 commits into from
Apr 21, 2024

Conversation

FrankRuis
Copy link
Contributor

Description

fixes #1544

Motivation and Context

fsspec calls if "::" in path on prepared_ds_path, which will throw an error if it is a PosixPath object.

How has this been tested?

just a simple cast to string, but tested through cli preprocessing of a dataset and finetuning a model.

Screenshots (if appropriate)

Types of changes

Social Handles (Optional)

@NanoCode012
Copy link
Collaborator

Hey, could you see if the latest PR #1545 fixes it for you?

@FrankRuis FrankRuis mentioned this pull request Apr 19, 2024
8 tasks
@FrankRuis
Copy link
Contributor Author

Hey, could you see if the latest PR #1545 fixes it for you?

That would probably fix it too, but I feel like it'd be better to fix the error in axolotl than to downgrade a dependency.

FrankRuis and others added 2 commits April 21, 2024 17:01
`fsspec` calls `if "::" in path` on `prepared_ds_path`, which will throw an error if it is a `PosixPath` object.
@winglian winglian merged commit 7477a53 into axolotl-ai-cloud:main Apr 21, 2024
7 checks passed
djsaunde pushed a commit that referenced this pull request Dec 17, 2024
…1548)

* wrap prepared_ds_path in str() to avoid TypeError in fsspec package

`fsspec` calls `if "::" in path` on `prepared_ds_path`, which will throw an error if it is a `PosixPath` object.

* update test too

---------

Co-authored-by: Wing Lian <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preprocess with debug flag fails.
3 participants