Open Mahmedturk opened 3 years ago
Which version of transformers do you use? Try to update to the latest version.
Faced the exact the same error, any tips or advice would be great
I am cloned the 3.5 version from the the GitHub. What is the latest version?
I reinstalled transformer and reloaded my Jupiter notebook error is no longer shows up.
Any solution for this issue?
Hi, When i run semantic search example i get the below error.
File ".../sentence_transformers/models/Transformer.py", line 79, in get_sentence_features return self.tokenizer.prepare_for_model(tokens, max_length=pad_seq_length, padding='max_length', return_tensors='pt', truncation=True, prepend_batch_axis=True) TypeError: prepare_for_model() got an unexpected keyword argument 'padding'
is there a way to fix this?