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

Rename datasets to avoid hf conflict #175

Merged
merged 4 commits into from
May 19, 2023
Merged

Rename datasets to avoid hf conflict #175

merged 4 commits into from
May 19, 2023

Conversation

hanlint
Copy link
Collaborator

@hanlint hanlint commented May 19, 2023

The datasets.py file has:

> import datasets as hf_datasets

which leads to circular imports. To reproduce the error, run:

import llmfoundry.data

This PR renames datasets.py -> data. Moreover, external scripts should import from the top-level package llmfoundry.data.

Fixes: #137 and #127

@hanlint hanlint merged commit a4bae28 into main May 19, 2023
6 checks passed
@hanlint hanlint deleted the hanlin/data branch May 26, 2023 19:49
bmosaicml pushed a commit that referenced this pull request Jun 6, 2023
* upgrade to torch 13

* remove cd

* fix tests, force 113
bmosaicml pushed a commit that referenced this pull request Jun 6, 2023
* rename datasets to avoid hf conflict

* consistent HF datasets import

---------

Co-authored-by: Daniel King <43149077+dakinggg@users.noreply.github.com>
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.

Circular import error when using data/packing.py
2 participants