Skip to content

Commit

Permalink
chore: changed mask token id and pad token id to be int
Browse files Browse the repository at this point in the history
  • Loading branch information
hh-space-invader authored and joein committed Nov 13, 2024
1 parent d0db6d8 commit d9f6b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastembed/late_interaction/colbert.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ def __init__(
self._model_dir = self.download_model(
self.model_description, self.cache_dir, local_files_only=self._local_files_only
)
self.mask_token_id = None
self.pad_token_id = None
self.mask_token_id = int()
self.pad_token_id = int()
self.skip_list = set()

if not self.lazy_load:
Expand Down

0 comments on commit d9f6b64

Please sign in to comment.