No sentence-transformers model found with name dangvantuan/sentence-camembert-large. Creating a new one with MEAN pooling.
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
i have the same error, did you find a solution ?
still the same error
Hey @Leamon i gave up on using SentenceTransformer and i used HuggingFaceEmbeddings and it works perfectly.
please send me your screen of code and their error?
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 ?
This function seems to suggests that a model is a sentence-transformers model if and only if it has a modules.json
.
On Mac M1, I also have the same problem, with default code :
'
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("dangvantuan/sentence-camembert-large")
sentences = ["Un avion est en train de décoller.",
"Un homme joue d'une grande flûte.",
"Un homme étale du fromage râpé sur une pizza.",
"Une personne jette un chat au plafond.",
"Une personne est en train de plier un morceau de papier.",
]
embeddings = model.encode(sentences)
'
Install sentencepiece have permit to remove many error:
pip install --upgrade sentencepiece
But i have allways :
No sentence-transformers model found with name dangvantuan/sentence-camembert-large. Creating a new one with MEAN pooling.
I have download and set my code to use model on local:
brew install git-lfs
git install lfs
git clone https://huggingface.co/dangvantuan/sentence-camembert-large ./local-model-dangvantuan
But same message:
No sentence-transformers model found with name ./local-model-dangvantuan. Creating a new one with mean pooling.
With print(embeddings) i have add, we can see, program run, but i m not sure "local-model-dangvantuan" is used :
No sentence-transformers model found with name ./local-model-dangvantuan. Creating a new one with mean pooling.
[[ 0.15515949 0.2297577 -0.64900017 ... 0.21740644 0.16172902
-0.10930447]
[-0.05342611 0.32185176 -0.048369 ... 0.46971962 0.41901234
0.04934499]
[-0.3685707 0.16421556 -0.02879554 ... -0.21878356 -0.38675505
0.27431855]
[ 0.361705 -0.24049377 -0.08993711 ... -0.36112058 -0.01177062
-0.436094 ]
[ 0.453932 -0.13623159 -0.46563175 ... 0.4686667 0.24069776
0.14806151]]
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
To piggyback on this, copying the modules.json
file and the 1_Pooling
folder from the base model cache directory to that of the large model seems to suppress the warning. One can define the cache folder when loading the model like so (path may differ):
model = SentenceTransformer(
"dangvantuan/sentence-camembert-large",
cache_folder="C:/Users/[user]/.cache/huggingface/hub",
local_files_only=True,
)
The results are identical as to when the warning appears though, so it seems the model is loading correctly?