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

How can I adjust only specific layers and not all reranker and bi encoder layers in your project (e.g. adjust only the classifier layer) #770

Open
Lahaina936 opened this issue May 12, 2024 · 1 comment

Comments

@Lahaina936
Copy link

No description provided.

@staoxiao
Copy link
Collaborator

The implementation is very simple. You only need to add some code in run.py.
Here are the code we used to freeze the position embedding:
https://github.com/FlagOpen/FlagEmbedding/blob/master/FlagEmbedding/baai_general_embedding/finetune/run.py#L79-L84

You can use the same method to freeze the parameters of other layers.

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