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

Map rag model to device in eval rag script #75

Merged
merged 3 commits into from
Dec 4, 2023

Conversation

sagorbrur
Copy link
Contributor

Hi,
According to our discussion on issue #73 , here I have added device mapping in eval_rag.py.
I have tested and no device mismatch error raising now.

Please have a look and merge if everything is okay.

Thanks and regards

Copy link
Member

@shamanez shamanez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

Copy link
Member

@shamanez shamanez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sagorbrur
Maybe let's add this code snippet here:

Also let's add a comment above this line
rag_model.attach_pre_trained_peft_layers(retriever_peft_model_path, generator_peft_model_path, device)

Something like - "we only wrap this with PEFT layers if there are any ... :

Thanks a lot :)

@sagorbrur
Copy link
Contributor Author

HI @shamanez ,

@sagorbrur Maybe let's add this code snippet here:

Also let's add a comment above this line rag_model.attach_pre_trained_peft_layers(retriever_peft_model_path, generator_peft_model_path, device)

Something like - "we only wrap this with PEFT layers if there are any ... :

Thanks a lot :)

The line you refer I am a little bit confused about where to put it.
It would be great if you clarify a bit.

regards

@metric-space
Copy link
Collaborator

Hey @sagorbrur is the comment part unclear or is the request to move the code to the specified location unclear?

@sagorbrur
Copy link
Contributor Author

Hey @sagorbrur is the comment part unclear or is the request to move the code to the specified location unclear?

Hi @metric-space ,
I am unclear about moving the part to the specified location.
I am requesting maintainers to apply that.
Please if possible add the modification in desired location.

Kind regards

@metric-space metric-space merged commit bf094df into arcee-ai:main Dec 4, 2023
1 check passed
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.

3 participants