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

Fixing issue with ST 3.1 and bumping version #65

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Fixing issue with ST 3.1 and bumping version #65

merged 1 commit into from
Oct 17, 2024

Conversation

NohTow
Copy link
Collaborator

@NohTow NohTow commented Oct 15, 2024

This PR fixes a compatibility issue introduced in ST 3.1 in this commit.

Basically, this added the possibility add module_kwargs in the config so that the model can leverage them for a specific processing, such as the dataset_embeddings of cde.

This fix allows to bump the version of ST to newer ones and also to handle such custom processing aswell (as we are extending the ST model).

Edit for more information: the load_sbert_model function set the self.modules_kwargs that are then used in the forward pass of the Transformer model if some are set in the config.json

Related issue: #64

@raphaelsty
Copy link
Collaborator

LGTM

@NohTow NohTow merged commit b89517f into main Oct 17, 2024
2 checks passed
@NohTow NohTow deleted the bump_st branch October 17, 2024 15:01
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