You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sentence-transformer == 3.1.1
torch == 2.4.1+cu121
transformers == 4.44.2
I get this error when I run trainer.train() on colab.
I have a custom_model as described in this doc.
The model I have used: meta-llama/Meta-Llama-3.1-8B-Instruct
and intfloat/e5-large
The full error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-13-596e2e7dce1c>](https://localhost:8080/#) in <cell line: 2>()
----> 2 trainer.train()
2 frames
[/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py](https://localhost:8080/#) in __getattr__(self, name)
1727 if name in modules:
1728 return modules[name]
-> 1729 raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
1730
1731 def __setattr__(self, name: str, value: Union[Tensor, 'Module']) -> None:
AttributeError: 'SentenceTransformer' object has no attribute 'get_input_embeddings'
The text was updated successfully, but these errors were encountered:
@tomaarsen This is the error trace that trainer.train() returned. I was using some training arguments that SentenceTransformers seems to not support!
Here is my earlier training args:
sentence-transformer == 3.1.1
torch == 2.4.1+cu121
transformers == 4.44.2
I get this error when I run
trainer.train()
on colab.I have a custom_model as described in this doc.
The model I have used:
meta-llama/Meta-Llama-3.1-8B-Instruct
and
intfloat/e5-large
The full error:
The text was updated successfully, but these errors were encountered: