Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No sentence-transformers model found #100

Open
tfka opened this issue Sep 18, 2023 · 2 comments
Open

No sentence-transformers model found #100

tfka opened this issue Sep 18, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@tfka
Copy link

tfka commented Sep 18, 2023

🐛 bug 说明

No sentence-transformers model found with name ./finetuned-model/model. Creating a new one with MEAN pooling.
基于m3e finetune模型但是得到这样的提示,是我的训练代码设置问题吗?

df = pd.read_json('train_m3e.jsonl', lines=True)
dataset = Dataset.from_pandas(df)
dataset = dataset.train_test_split(test_size=0.1, seed=42)
dataset['validation'] = dataset.pop('test')
# 指定训练的模型为 m3e-small
finetuner = FineTuner.from_pretrained('moka-ai/m3e-large', dataset=dataset)
fintuned_model = finetuner.run(epochs=5)

Python Version

3.10

@tfka tfka added the bug Something isn't working label Sep 18, 2023
@ChinesePainting
Copy link

一样的问题,解决了吗

@wangyuxinwhy
Copy link
Owner

升级 uniem 试试,我这边没有办法复现这个 bug

python -m pip install -U uniem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants