No sentence-transformers model found with name dangvantuan/sentence-camembert-large. Creating a new one with MEAN pooling.

#12
by mehdixlabetix - opened

this is my code :
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("dangvantuan/sentence-camembert-large")

persist_directory = 'docs/chroma/'
vectordb = Chroma.from_documents(
documents=chunks,
embedding=model,
persist_directory=persist_directory
)

vectordb.persist()
print(vectordb._collection.count());
it says that the model cannot be found
image_2024-04-08_044931555.png

i have the same error, did you find a solution ?

@Leamon @mehdixlabetix :Please update new version of transformers

still the same error

Hey @Leamon i gave up on using SentenceTransformer and i used HuggingFaceEmbeddings and it works perfectly.

@mehdixlabetix even with HaggingFaceEmbeddings he doesn't work please help me, i need this model

please send me your screen of code and their error?

@Leamon , @mehdixlabetix This is only a warning, you need to install sentencepiece

@Leamon try like this.

image.png

Hello ! same issue here =)
on Python model = SentenceTransformer("dangvantuan/sentence-camembert-large") raises the error: No sentence-transformers model found with name dangvantuan/sentence-camembert-large.

On the other hand it works fine with the base model model = SentenceTransformer("dangvantuan/sentence-camembert-base)

I have the same problem, maybe because of sentence-transformer V3 ?

I also have the same problem, but I may have found the beginnings of an answer. It looks like dangvantuan/sentence-bert-large is missing some Sentence Transformers-specific files, such as the modules.json and config_sentence_transformers.json. But I am not sure about how to resolve this, maybe only the creator can resolve this? @dangvantuan

Hi there.
I'm using the dangvantuan/sentence-camembert-large model to generate embeddings, and I'm facing the same issue.
Did any one have any updates or find a workaround ?

Sign up or log in to comment