Skip to content

carlamao/language_modelling

Repository files navigation

language_modelling

To run LSTM with the original hyperparameters:

python main.py --cuda --epochs 10 --model LSTM

To run the Transformer with the original hyperparameters:

python main.py --cuda --epochs 10 --model Transformer --lr 5

To run LSTM with the hyperparameters in the assignment:

python main.py --cuda --epochs 10 --model LSTM --nhid 1024 --nlayers 6 --emsize 512

To run the Transformer with the hyperparameters in the assignment:

python main.py --cuda --epochs 10 --model Transformer --lr 5 --nhid 1024 --nlayers 6 --emsize 512 --nhead 8

the models are already trained and available in model.pt

~

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors