Comments (7)
请问一下transformers和pytorch_lightning的版本,以及模型文件是否成功下载。
from promptkg.
transformers==4.15.0 pytorch_lighting==1.6.0 .模型文件的话,我看knnkge.sh文件中写的是model_name_or_path="bert-base-uncased",就认为应该是下载bert的模型,我就下载到了如下图所示的目录下。
然后bert-base-uncased文件夹下的文件应该也是齐全的(如下图所示)
from promptkg.
请把transformers 版本和requirements.txt 保持一致。
transformers==4.6.0
from promptkg.
请问您的问题是否已解决
from promptkg.
我把transformers和pytorch_lighting都配置成了rquirements中的版本,但是运行时,还是会出现如下错误。
from promptkg.
这个貌似是transformers版本的问题,麻烦您使用python3.8 并且transformers更新到4.6.0.
请先执行
pip install -r requirements.txt
再运行我们的脚本~
from promptkg.
请问您的问题是否已解决?
from promptkg.
Related Issues (20)
- create MidRes.json isn't working HOT 4
- bash ./scripts/metaqa/run.sh 运行中遇到的问题 HOT 3
- Some questions about the Open-book Knowledge-store HOT 3
- dataset access HOT 2
- GenKGC中提供的数据集链接google derive需要权限 HOT 2
- fb15k-237 dataset HOT 5
- GenKGC下的pytorch_lightning==1.3.1 HOT 4
- 请问GenKGC的代码您运行成功了吗 HOT 9
- 在下载完数据集,配置好虚拟环境后,运行脚本文件提示报错如下: HOT 2
- 亲爱的作者您好,请问如果运行GenKGC这个模型代码,需要的最低硬件条件是什么? HOT 1
- 作者您好,我想问一下我在执行openbg.sh这个脚本的时候, --model_name_or_path pretrained_model \ 这个地方需要修改吗,使用的预训练模型是哪个呢? HOT 2
- run gpt3kgc.py error : not found dataset/FB15k-237/MidRes.json
- About implementation of the generation method of lambdaKG HOT 5
- Relation extraction from text. HOT 1
- AttributeError: 'TransformerLitModel' object has no attribute 'num_training_steps' HOT 1
- 作者您好,请问想要使用GenKGC模型来训练给出的阿里中文数据集,在执行openbg.sh脚本文件前还需要做什么其他操作吗,现在两个英文数据集可以正常运行,但是中文数据集运行失败了 HOT 4
- GenKGC项目中data_module.py文件中149行代码是不是有错误,应该是if relations_ids[0] not in self.tokenizer.additional_special_tokens: HOT 1
- Hyper-parameter for GenKGC on FB15k-237 HOT 2
- 运行simKGC时出现TypeError: models.simkgc.ModelOutput is not a dataclasss. This is a subclass of ModelOutput and so must use the @dataclass decorator.报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from promptkg.