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

Added fix in model eval to move RAG generator and retriever to current device #77

Closed
wants to merge 1 commit into from

Conversation

a172166
Copy link

@a172166 a172166 commented Nov 27, 2023

When not using peft, the evaluate_rag function fails with an error stating that the the model is not on the correct device('cuda', 'cpu')

This fix verifies that the model's generator and retriever are both on the same device
cc @shamanez

@metric-space
Copy link
Contributor

Hey @a172166
Thank you for the PR

I believe this same problem is being addressed here: #75

@a172166 a172166 closed this Nov 28, 2023
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.

2 participants