text2vec icon indicating copy to clipboard operation
text2vec copied to clipboard

模型微调问题

Open CathyKitten opened this issue 2 years ago • 3 comments

您好!想用自己的jsonl文件,微调text2vec-base-multilingual模型,用python training_sup_text_matching_model_jsonl_data.py --model_arch cosent --do_train --do_predict --num_epochs 10 指令。会出现如下报错,OSError: ./outputs/jsonl-model does not appear to have a file named config.json. Checkout 'https://huggingface.co/./outputs/jsonl-model/None' for available files.。请问应该怎么修改指令或代码。 image

CathyKitten avatar Nov 15 '23 08:11 CathyKitten

就是模型保存后,好像没有生成config.json文件 image

CathyKitten avatar Nov 15 '23 08:11 CathyKitten

训练完,会生成config.json

shibing624 avatar Nov 15 '23 09:11 shibing624

我也遇到了这个问题,需要手动创建你要保存的模型目录

lili4cityu avatar Nov 27 '23 08:11 lili4cityu