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

No such file or directory #27

Closed
trestad opened this issue Jul 26, 2022 · 2 comments
Closed

No such file or directory #27

trestad opened this issue Jul 26, 2022 · 2 comments

Comments

@trestad
Copy link

trestad commented Jul 26, 2022

I want to finetune qqp and here comes an error:

File "/private-transformers-main/examples/classification/run_classification.py", line 545, in main
train_dataset = FewShotDataset(data_args, tokenizer=tokenizer, mode="train", use_demo=use_demo)
File "/private-transformers-main/examples/classification/src/dataset.py", line 377, in init
with FileLock(lock_path):
File "/home/anaconda3/envs/fuck/lib/python3.8/site-packages/filelock/_api.py", line 214, in enter
self.acquire()
File "/home/anaconda3/envs/fuck/lib/python3.8/site-packages/filelock/_api.py", line 170, in acquire
self._acquire()
File "/home/anaconda3/envs/fuck/lib/python3.8/site-packages/filelock/_unix.py", line 35, in _acquire
fd = os.open(self._lock_file, open_mode)
FileNotFoundError: [Errno 2] No such file or directory: 'classification/data/original/QQP/cached_train_RobertaTokenizer_256_qqp_few_shot.lock'

how can I get this file? thanks.

@lxuechen
Copy link
Owner

lxuechen commented Jul 27, 2022

Thanks for the interest.

Have you run the data downloading commands listed in the README.md file? These commands should be run from the classification folder.

cd data
bash download_dataset.sh

@lxuechen
Copy link
Owner

Closed as I was able to run this by first downloading and processing the dataset.

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