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

Package versions missing in next_sentence #9

Open
bkbroz opened this issue Sep 13, 2024 · 1 comment
Open

Package versions missing in next_sentence #9

bkbroz opened this issue Sep 13, 2024 · 1 comment

Comments

@bkbroz
Copy link

bkbroz commented Sep 13, 2024

When trying to run:

python train.py task=open_webtext_gpt2 device=gpu

I get the following error:

Traceback (most recent call last):
File "/workspace/gfn-lm-tuning/next_sentence/train.py", line 19, in
from lightning_data import PromptDataModule
File "/workspace/gfn-lm-tuning/next_sentence/lightning_data.py", line 2, in
from torchdata.datapipes.map import MapDataPipe
File "/usr/local/lib/python3.10/dist-packages/torchdata/datapipes/init.py", line 11, in
from . import iter, map, utils
File "/usr/local/lib/python3.10/dist-packages/torchdata/datapipes/iter/init.py", line 79, in
from torchdata.datapipes.iter.util.cacheholder import (
File "/usr/local/lib/python3.10/dist-packages/torchdata/datapipes/iter/util/cacheholder.py", line 24, in
from torch.utils._import_utils import dill_available
ModuleNotFoundError: No module named 'torch.utils._import_utils'

I think this is due to a dependency issue, since the packages in the requirements.txt doesn't have the version numbers.
Please run
pip freeze > requirements.txt

@MJ10
Copy link
Contributor

MJ10 commented Nov 5, 2024

Hi @bkbroz sorry for the delayed response. Here is the requirements.txt
requirements.txt

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

No branches or pull requests

2 participants