Skip to content
#

pytorch-nlp

Here are 62 public repositories matching this topic...

bloodwass
bloodwass commented Jun 17, 2019

Expected Behavior

I want to convert torch.nn.Linear modules to weight drop linear modules in my model (possibly big), and I want to train my model with multi-GPUs. However, I have RuntimeError in my sample code. First, I have _weight_drop() which drops some part of weights in torch.nn.Linear (see the code below).

Actual Behavior

RuntimeError: arguments are located on different GPUs at /

TomasAndersonFang
TomasAndersonFang commented Mar 24, 2020

I add a function(according the code in the tutorial4) to calculate the bleu score, but i get the vey low score(0.09), could you tell me why?
This is code to calculate bleu:

def translate_sentence(sentence, src_field, trg_field, model, device, max_len = 50):
    
    model.eval()
        
    if isinstance(sentence, str):
        nlp = spacy.load('de')
        tokens = [token.te
sumeetsk
sumeetsk commented Oct 20, 2019

I'm studying 5_3_Document_Classification_with_CNN.

The make_embedding_matrix helper docs say that it should be fed in a list of words in the dataset. However, for the embedding matrix to return the correct embedding of a word from pretrained embeddings, the word list should be fed in the same order as in the vocabulary. Furthermore, there should be no gaps in the word indices in the vocabulary

Its a social networking chat-bot trained on Reddit dataset . It supports open bounded queries developed on the concept of Neural Machine Translation. Beware of its being sarcastic just like its creator 😝 BDW it uses Pytorch framework and Python3.

  • Updated Feb 19, 2020
  • Python

深度学习与PyTorch入门实战教程 基本的数学理论,线性回归,逻辑回归,梯度及梯度下降,损失函数,多分类问题,BatchNorm,卷积神经网络CNN/ResNet,循环神经网络RNN/LSTM,对抗生成网络GAN/WGAN等等,以及对应的PyTorch的实现方式讲解。通过理论与实践相结合的教学方式,学员可以最大程度理解并掌握算法。

  • Updated Apr 4, 2019

Improve this page

Add a description, image, and links to the pytorch-nlp topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the pytorch-nlp topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.