Coder Social home page Coder Social logo

Comments (2)

 avatar commented on July 23, 2024

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.

Cartus avatar Cartus commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.