Getting close to having language modeling working with the new fastai.text namespace, but running into error …
Can anyone give me some insight as to what I need to investigate or what exactly I may be doing wrong here??? I’m not sure what to make of this exception given the stack trace below.
md = LanguageModelData(PATH, 1, len(trn_ds.vocab), trn_dl, val_dl) opt_fn = partial(optim.Adam, betas=(0.7, 0.99)) learner = md.get_model(opt_fn, em_sz, nh, nl, dropouti=0.05, dropout=0.05, wdrop=0.1, dropoute=0.02, dropouth=0.05) learner.reg_fn = partial(seq2seq_reg, alpha=2, beta=1) learner.clip=0.3 batch_iter = iter(md.val_dl) b = next(batch_iter) # x, y p = learner.model(V(b)) # predictions print(b.size(), b.size(), p.size())b = next(batch_iter) # x, y p = learner.model(V(b)) # predictions print(b.size(), b.size(), p.size())
Throws a CUDA exception on the
p = learner.model(V(b)) line :
RuntimeError: cuda runtime error (48) : no kernel image is available for execution on the device at /opt/conda/conda-bld/pytorch_1518244421288/work/torch/lib/THC/generic/THCTensorMathPairwise.cu:102
Partial stack trace: