Comments (4)
你好,针对中文数据集需要将backbone model换成中文的bart,如fnlp/bart-base-chinese. 如果仍然有运行错误,可以将您的错误截图贴出来。
from promptkg.
作者您好,目前运行遇到的错误如下,现在还没把这个报错解决,
$ /bin/sh E:/project/GenKGC/openbg.sh
Global seed set to 7
tokenize the prefix tree: 0%| | 0/269658 [00:00<?, ?it/s]
定妆喷雾 [101, 8335, 7816, 6857, 23292, 102]
普通装 [101, 11072, 21562, 19731, 102]
长袖上衣 [101, 22915, 19684, 4906, 19633, 102]
常规 [101, 8992, 19977, 102]
T恤 [101, 156, 9545, 102]
tokenize the prefix tree: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 269658/269658 [00:27<00:00, 9920.46it/s]
max output length : 128
total 0 cannot be tokenized
Traceback (most recent call last):
File "main.py", line 159, in
main()
File "main.py", line 101, in main
params_dict = torch.load(args.checkpoint, map_location="cpu")['state_dict']
File "D:\Anaconda\anaconda\envs\genkgc\lib\site-packages\torch\serialization.py", line 579, in load
with _open_file_like(f, 'rb') as opened_file:
File "D:\Anaconda\anaconda\envs\genkgc\lib\site-packages\torch\serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "D:\Anaconda\anaconda\envs\genkgc\lib\site-packages\torch\serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'output/epoch=5-Eval/hits10=0.25.ckpt'
from promptkg.
作者您好,在openbg.sh这个脚本文件中,提到的output/epoch=5-Eval/hits10=0.25.ckpt 这个权重文件,没有在项目中找到,请问能否麻烦您发到我的邮箱[email protected],现在不能加载预训练的权重文件,代码无法执行成功。
非常感谢!!
from promptkg.
您好,运行openbg.sh
时只需要使用facebook的中文bart-base的预训练权重,不需要checkpoint这个参数,目前已经修改了对应的代码。
from promptkg.
Related Issues (20)
- 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项目中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
- 运行bash ./scripts/kgc/knnkge.sh时报错AttributeError: 'KNNKGEPretrainLitModel' object has no attribute 'model' HOT 7
- 運行bash ./scripts/metaqa/run.sh 的hist1, hist3, hist10皆為0 HOT 11
- bash ./scripts/kgrec/pretrain_item.sh 沒有ml20m dataset HOT 1
- RetrievalRE复现报错KeyError: -1 HOT 2
- 关于deltaKG运行结果的问题 HOT 3
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.