Questions tagged [fairseq]
40 questions
0
votes
2 answers
How to predict token for neural machine translation
For example, if I have the words MKIK or "牛逼" (which is artificially created) how can we tell neural networks (transformer model) to keep the same output?
The problem is with using the transformer model on fairseq.
I found fairseq has --replace-unk…

xihajun
- 37
- 4
0
votes
1 answer
How to use fairseq interactive with multiple gpu?
I am trying to generate new prediction for the model, but I found it is not that intuitive to use fairseq. I found fairseq-interactive could help to generate with a good settings of batch_size, however, it seems that it will use 1 GPU at a time, I…

xihajun
- 37
- 4
0
votes
1 answer
Pytorch giving runtimeerror can't be cast to the desired output type Long
The following code is giving runtimeerror "result type Float can't be cast to the desired output type Long".
I already tried to do the following:
FROM:
torch.div(self.indices_buf, vocab_size, out=self.beams_buf)
TO:
torch.div(self.indices_buf,…

Exploring
- 2,493
- 11
- 56
- 97
0
votes
1 answer
How to use/install a GitHub commit?
There is a package I want to use that is implemented based on fairseq toolkit. The package requirement says:
Please use an earlier commit of Apex - NVIDIA/apex@4a8c4ac
Even though I know how to install Apex, I'm not sure if I understand what it…

Pedram
- 2,421
- 4
- 31
- 49
0
votes
1 answer
torch.hub.load() raises HTTPError: HTTP Error 404: Not Found when loading model
I had this simple piece of code found on the fairseq GitHub repository which basically loads the bart.base PyTorch model from torch.hub:
bart = torch.hub.load('pytorch/fairseq', 'bart.base')
This code was working perfectly around two weeks ago, now…

Anwarvic
- 12,156
- 4
- 49
- 69
0
votes
1 answer
Is it possible to debug a fairseq task with vscode or some other tools?
I am using fairseq to run a customized task with command line tool fairseq-train ${data} {args}. Is it possible to enter debug mode?

user16055099
- 1
- 1
0
votes
1 answer
Can FairSeq's speech-to-task model predict punctuations (e.g., sentence boundaries)?
I read their paper, checked out their repo but could not find the answer. Does FairSeq's speech-to-task model predict punctuations (e.g., sentence boundaries)? I just wanted to find out before I invest time and effort for
implementing it.

prony
- 75
- 8
0
votes
2 answers
How to run Tutorial: Simple LSTM on fairseq
While trying to learn fairseq, I was following the tutorials on the website and implementing:
https://fairseq.readthedocs.io/en/latest/tutorial_simple_lstm.html#training-the-model
However, after following all the steps, when I try to train the model…

K C
- 413
- 4
- 15
0
votes
1 answer
Why does the output from VQ-Wav2Vec from FairSeq missing frames?
I am using the fairseq library to run an example code for feature extraction with the VQ-Wav2Vec code as written below:
In [6]: import torch
...: from fairseq.models.wav2vec import Wav2VecModel
In [7]: cp =…

London guy
- 27,522
- 44
- 121
- 179