LxMLS / lxmls-toolkit

Machine Learning applied to Natural Language Processing Toolkit used in the Lisbon Machine Learning Summer School
Other
222 stars 216 forks source link

Transformer day #181

Closed gonmelo closed 1 year ago

bpopeters commented 1 year ago

I have just a couple of comments about the tokenization section.

pedrobalage commented 1 year ago

Exercise 4.5 - Suggest to check for the backend 'mps' or 'cuda' and alternatively run in GPU.

torch.backends.mps.is_available()

pedrobalage commented 1 year ago

Let's change exercise 4.5 to model.prompt("The best part of traveling to Lisbon is", ...) :)

pedrobalage commented 1 year ago

There are some differences in the guide and notebooks. Please, check if the code is the same.