pytorch_bert_vec
pytorch_bert_vec copied to clipboard
一条命令产生bert、albert句向量,用于相似度计算和文本分类等。
Bumps [certifi](https://github.com/certifi/python-certifi) from 2019.11.28 to 2022.12.7. Commits 9e9e840 2022.12.07 b81bdb2 2022.09.24 939a28f 2022.09.14 aca828a 2022.06.15.2 de0eae1 Only use importlib.resources's new files() / Traversable API on Python ≥3.11 ... b8eb5e9 2022.06.15.1...
Bumps [joblib](https://github.com/joblib/joblib) from 0.14.1 to 1.2.0. Changelog Sourced from joblib's changelog. Release 1.2.0 Fix a security issue where eval(pre_dispatch) could potentially run arbitrary code. Now only basic numerics are supported....
Bumps [numpy](https://github.com/numpy/numpy) from 1.18.1 to 1.22.0. Release notes Sourced from numpy's releases. v1.22.0 NumPy 1.22.0 Release Notes NumPy 1.22.0 is a big release featuring the work of 153 contributors spread...
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.25.8 to 1.26.5. Release notes Sourced from urllib3's releases. 1.26.5 :warning: IMPORTANT: urllib3 v2.0 will drop support for Python 2: Read more in the v2.0 Roadmap Fixed...
config报错
你好,我从提示位置下载了Albert的预训练模型,并尝试直接运行文件/albert/albert_total.py,得到报错 AttributeError: 'BertConfig' object has no attribute 'ln_type'。看起来问题是是缺少In_type参数。我查看了albert模型的config文件也没有这个In_type参数。请问如何解决呢?
无法加载模型
使用的都是官方链接下载的pytorch版本的bert和albert模型(各3个文件) transformer版本是跟要求吻合的2.4.1 运行报错: "Unable to load weights from pytorch checkpoint file. " OSError: Unable to load weights from pytorch checkpoint file. If you tried to load a PyTorch model from...
跑不起来啊