Skip to content

Commit

Permalink
Setting the prefixes from stanford-nlp
Browse files Browse the repository at this point in the history
  • Loading branch information
NohTow committed Sep 12, 2024
1 parent a9ff1c7 commit 54788cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pylate/models/colbert.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ def __init__(
use_auth_token,
)
)
# Setting the prefixes from stanford-nlp models
self.query_prefix = "[unused0]"
self.document_prefix = "[unused1]"
logger.warning("Loaded the ColBERT model from Stanford NLP.")
else:
# Add a linear projection layer to the model in order to project the embeddings to the desired size
Expand Down

0 comments on commit 54788cf

Please sign in to comment.