/pytorch-nlp-notebooks

Learn how to use PyTorch to solve some common NLP problems with deep learning.

Primary LanguageJupyter Notebook

A Deep Dive into NLP with PyTorch

Learn how to use PyTorch to solve some common NLP problems with deep learning. View these notebooks on nbviewer.

View the slides for the presentation.

Setup

Make sure you have a Google account and visit Google Colab. You should see a list of notebooks pop up:

colab_notebook_selection

If you have trouble with that, you can also save the notebook you want to run from this repo to your local filesystem, and then upload it to Google Colab with File -> Open Notebook -> Upload.

Basic Navigation

You can run cells with <SHIFT> + <ENTER>.

Missing packages

If you find that you are missing a necessary package, you can prepend ! to a bash command. For example, to install googledrivedownloader, you would run in a cell:

!pip install googledrivedownloader

Using a GPU

To use a GPU (for free!), select from the top menu from Colab Runtime -> Change Runtime Type -> Hardware Accelerator -> GPU. Pay attention to how much memory the GPU is currently using by clicking Runtime -> Manage Sessions.

Contributing

Feel free to submit a PR for cleanups, error-fixing, or adding new (relevant) content!