Part 2 lesson 11 wiki

(Jeremy Howard) #1

(This is a wiki - feel free to edit.)

<<< Wiki: Lesson 10Wiki: Lesson 12 >>>

Lesson resources

Lesson papers

Timeline (incomplete)

  • (0:00:00) 1 cycle policy blog
  • (0:03:58) Google demo of seq to seq
  • (0:05:40) seq to seq models - machine translation
  • (0:07:20) Why are we learning about seq to seq?
  • (0:08:40) Four big wins of neural Machine translation
  • (0:09:20) BiDirectional GRU with attention
  • (0:09:55) Introducing the problem
  • (0:13:15) Think about language modeling vs neural translation
  • (0:13:35) neural translation from seq to seq model
  • (0:14:22) concat pooling
  • (0:18:00) seq to general purpose seq
  • (0:18:20) Pre-requisite Lesson 6
  • (0:19:50) Char Loop concat model
  • (0:21:40) Stacking RNN on another
  • (0:22:46) Translation start
  • (0:23:25) French to English questions instead of language translation

Other resources

Helpful stuff

Additional papers

Other libraries

  • Tensor2Tensor - A google DL mini-library with many datasets and tutorials for various Seq2Seq tasks

Useful function to transform Pytorch nn.module Class to fastai Learner Class

rnn = Seq2SeqRNN(fr_vecd, fr_itos, dim_fr_vec, en_vecd, en_itos, dim_en_vec, nh, enlen_90) learn = RNN_Learner(md, SingleModel(to_gpu(rnn)), opt_fn=opt_fn)

About the Part 2 & Alumni category
Lesson Index
(Jeremy Howard) #2

(Brian Holland) #17

For the acronym-obsessed like myself: BiLingual Evaluation Understudy (BLEU)

(yinterian) #19

How long are the sequences used to train translation models? Sentences?

(Aza Raskin) #20

There are two cool papers from Oct of last year that show how to do neural machine translation w/o parallel sentences!

(Hamel Husain) #21

Was an attention layer tried in the language model? Do you think it would be a good idea to try to add one and see what happens?

(Aza Raskin) #22

How would we start with pre-trained models of French and English and then fine-tune in this case (I.e., use the “Jeremey special” method)?

(Sharwon Pius) #23

Google’s neural machine translation system.

(Amrit ) #24

Here is the link to my notes from lesson 6 if anyone is interested in a refresher.

(William Horton) #25

Just heard him mention that we divide num_cpus by 2 because with hyperthreading we don’t get a speedup using all the hyperthreaded cores. Is that just based on practical experience, or is there some underlying reason why we wouldn’t get additional speedup from hyperthreading?

(rachana) #26

Why are we not starting with language model of English and French then starting the translation from scratch.

(rachana) #27

How should we tokenize audio or video files.

(Divyansh Jha) #28

why he didn’t add bos token?

(unknown) #29

How would you keep the pip- installed git version of fastai up-to-date? Would you just rerun the pip install command, or would you do some git pull command?

(Emil) #30

Do dimensions of both language embeddings have to be equal?

(Daniel Hunter) #31

Perhaps pip install [library name here] --upgrade?

(Nafiz Hamid) #32

pytorch official examples are not as good as the Keras official examples. Because most users of pytorch are researchers, I think they did not put too much importance on the best practices there assuming people know these.

(unknown) #33

So install would be ! pip install git+
and would update be: ! pip install git+ --upgrade

(Daniel Hunter) #34

I’m not sure – I was just guessing, but that may work.

(Bart Fish) #35

why bs=bs*1.6?