AI炼丹师

Results 32 comments of AI炼丹师

链接: https://pan.baidu.com/share/init?surl=itZ_wdU6JdpXx2saK_zQhw 提取码: ysg3 更多的权重链接: https://github.com/lonePatient/NeZha_Chinese_PyTorch

大部分项目应该都没啥要求吧。。 torch是1.0版以上都行吧。

> 在您的config.py中发现有model_path = './bert_pretrain/pytorch_model.bin',但是文件中并没有这个 对呀 你需要下载 这个模型要三四百兆 所以 没上传

> > 终于跑起来了 > > bert的预训练模型可以这样下载 > > ``` > > from transformers import BertForMaskedLM > > > > model = BertForMaskedLM.from_pretrained("bert-base-cased") > > ``` > > > > >...

OK 我大概知道啥意思了。 如果我没猜错的话,你的torch版本很低。至少低于1.5

那可能就是模型本身转化有问题。 去下面链接 https://huggingface.co/hfl/chinese-bert-wwm-ext/tree/main 下载 pytorch_model.bin config.json vocab.txt 这几个文件。 然后放在一个文件里。 BertMode.from_pretrained('文件名') 就ok了。

https://github.com/shawroad/NLP_pytorch_project/tree/master/Text_Similarity

就是一个分类数据集。当时那个实验是公司的数据,不方便公开。

你没有gpu 所以报错了。。

> 如题,简单提供一两条数据就好。 训练数据 就是对bert进行预训练的数据格式。 如果项目中需纠错 不建议用bert直接进行纠错。效果不好。