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 #5

Open
MattCremeens opened this issue Nov 26, 2024 · 6 comments
Open

No such file or directory #5

MattCremeens opened this issue Nov 26, 2024 · 6 comments

Comments

@MattCremeens
Copy link

Receiving an error: "No such file or directory"

checkpoint = torch.load('simcse_result/' + model_name + '/pytorch_model.bin', map_location=torch.device('cpu'))

Is it possible that is should be simcse_models and not simcse_result?

I'm assuming I can use your demonstration selector and just run python LLM_R2.py. Is that correct?

@LZ12DH
Copy link
Collaborator

LZ12DH commented Nov 26, 2024

Hi,

Yes, you are right! This is a typo and the directory should be 'simcse_models' instead of 'simcse_result'. Thanks for pointing this out and we will edit this typo.

For the demonstration selector, yes you can directly use it by running python LLM_R2.py.

We hope this clarifies the issue and look forward to your further feedback!

@MattCremeens
Copy link
Author

Brilliant. Thank you. So far this looks to be the correct fix. Are you open to pull requests for this project? I'm very much looking forward to trying this out. By all appearances, it looks promising!

@LZ12DH
Copy link
Collaborator

LZ12DH commented Nov 27, 2024 via email

@MattCremeens
Copy link
Author

MattCremeens commented Nov 30, 2024

Thanks, Zhaodonghui. Do you need to grant my account (MattCremeens) permission to make pull requests? I just want to push to a new branch.

@LZ12DH
Copy link
Collaborator

LZ12DH commented Dec 1, 2024 via email

@MattCremeens
Copy link
Author

OK, thanks. I think you could have made me a collaborator and I could push directly to a new branch, but I opted to fork your repo instead and will push to new branches that way. I think you then have the option to merge or reject the changes. I just made a new branch that creates the "results" directory if the user doesn't have it created yet. Otherwise, I believe they'll get an error like I did.

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