Comments (2)
E:\Python\python.exe C:/Users/Bing/PycharmProjects/AGGCN-master/train.py --id 1 --seed 0 --hidden_dim 300 --lr 0.7 --rnn_hidden 300 --num_epoch 100 --pooling max --mlp_layers 1 --num_layers 2 --pooling_l2 0.002
Vocab size 375 loaded from file
Loading data_dir from dataset/tacred with batch size 50...
1 batches created for dataset/tacred/train.json
1 batches created for dataset/tacred/dev.json
Config saved to file ./saved_models/01/config.json
Overwriting old vocab_dir file at ./saved_models/01/vocab_dir.pkl
Running with the following configs:
data_dir : dataset/tacred
vocab_dir : dataset/vocab_dir
emb_dim : 300
ner_dim : 30
pos_dim : 30
hidden_dim : 300
num_layers : 2
input_dropout : 0.5
gcn_dropout : 0.5
word_dropout : 0.04
topn : 10000000000.0
lower : False
heads : 3
sublayer_first : 2
sublayer_second : 4
pooling : max
pooling_l2 : 0.002
mlp_layers : 1
no_adj : False
rnn : True
rnn_hidden : 300
rnn_layers : 1
rnn_dropout : 0.5
lr : 0.7
lr_decay : 0.9
decay_epoch : 5
optim : sgd
num_epoch : 100
batch_size : 50
max_grad_norm : 5.0
log_step : 20
log : logs.txt
save_epoch : 100
save_dir : ./saved_models
id : 1
info :
seed : 0
cuda : False
cpu : False
load : False
model_file : None
num_class : 42
vocab_size : 375
model_save_dir : ./saved_models/01
Finetune all embeddings.
E:\Python\lib\site-packages\torch\nn\modules\rnn.py:38: UserWarning: dropout option adds dropout after all but last recurrent layer, so non-zero dropout expects num_layers greater than 1, but got dropout=0.5 and num_layers=1
"num_layers={}".format(dropout, num_layers))
THCudaCheck FAIL file=..\src\THC\THCGeneral.cpp line=70 error=38 : no CUDA-capable device is detected
Traceback (most recent call last):
File "C:/Users/Bing/PycharmProjects/AGGCN-master/train.py", line 119, in
trainer = GCNTrainer(opt, emb_matrix=emb_matrix)
File "C:\Users\Bing\PycharmProjects\AGGCN-master\model\trainer.py", line 67, in init
self.model = GCNClassifier(opt, emb_matrix=emb_matrix)
File "C:\Users\Bing\PycharmProjects\AGGCN-master\model\aggcn.py", line 22, in init
self.gcn_model = GCNRelationModel(opt, emb_matrix=emb_matrix)
File "C:\Users\Bing\PycharmProjects\AGGCN-master\model\aggcn.py", line 47, in init
self.gcn = AGGCN(opt, embeddings)
File "C:\Users\Bing\PycharmProjects\AGGCN-master\model\aggcn.py", line 129, in init
self.layers.append(GraphConvLayer(opt, self.mem_dim, self.sublayer_first))
File "C:\Users\Bing\PycharmProjects\AGGCN-master\model\aggcn.py", line 205, in init
self.weight_list = self.weight_list.cuda()
File "E:\Python\lib\site-packages\torch\nn\modules\module.py", line 249, in cuda
return self._apply(lambda t: t.cuda(device))
File "E:\Python\lib\site-packages\torch\nn\modules\module.py", line 176, in _apply
module._apply(fn)
File "E:\Python\lib\site-packages\torch\nn\modules\module.py", line 182, in _apply
param.data = fn(param.data)
File "E:\Python\lib\site-packages\torch\nn\modules\module.py", line 249, in
return self._apply(lambda t: t.cuda(device))
RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected at ..\src\THC\THCGeneral.cpp:70
Process finished with exit code 1
from aggcn.
THCudaCheck FAIL file=..\src\THC\THCGeneral.cpp line=70 error=38 : no CUDA-capable device is detected
Traceback (most recent call last):
Which means you did not run the model on a device with GPU. Our model requires Pytorch with the GPU version. Maybe you can consider running it by using AWS or other similar services.
from aggcn.
Related Issues (20)
- 请问我怎么在semeval数据集上运行您的代码? HOT 5
- code discussion HOT 1
- some error about:"RuntimeError: cuda runtime error (100) : " HOT 4
- About "M identical blocks" HOT 8
- Why the number of classes on the SemEval2010-Task 8 is only 10? HOT 2
- some question about your paper HOT 2
- 请问代码中的mlp output layer 是用来干嘛的 HOT 1
- About replacing data sets HOT 9
- I found an error: train.py: error: argument --id: expected one argument
- RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /tmp/pip-req-build-ufslq_a9/aten/src/THC/THCGeneral.cpp:50 HOT 1
- how to get standford_head and stanford_deprel for cross-sentence data HOT 3
- F1=0 HOT 1
- the Final Score HOT 2
- how to preprocess the dataset HOT 5
- 关于AGGCN模型细节的问题 HOT 1
- Why did you configure the first densely connected layer with GraphConvLayer? HOT 1
- What is the function of tensor "denom" ? HOT 3
- environment error
- How to test the n-ary relation extraction part of the experiment?
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 aggcn.