Thanks for info, now my code looks like this for every cuda:
if torch.cuda.is_available():
    model.cuda()
if torch.cuda.is_available():
        labels = Variable(torch.from_numpy(y_train).cuda())
    else:
        labels = Variable(torch.from_numpy(y_train))