Google Colab (free) with Hugging Face transformers and scikit-learn
Colab is Google's free hosted Jupyter notebook. Python runs on a Google machine and notebooks save to your own Google Drive, so it works on any computer with a browser, Chromebooks included. transformers, PyTorch, scikit-learn, NumPy, and matplotlib come preinstalled, and models download from the Hugging Face Hub onto the Colab machine. The free CPU runtime is enough for every lesson; a free T4 GPU runtime is optional and only makes transformer cells faster.
Google Colab (free) with Hugging Face transformers and scikit-learn
FreeColab is Google's free hosted Jupyter notebook. Python runs on a Google machine and notebooks save to your own Google Drive, so it works on any computer with a browser, Chromebooks included. transformers, PyTorch, scikit-learn, NumPy, and matplotlib come preinstalled, and models download from the Hugging Face Hub onto the Colab machine. The free CPU runtime is enough for every lesson; a free T4 GPU runtime is optional and only makes transformer cells faster. Every lesson is readable text with copyable code, keyboard-friendly quizzes and step-throughs, and videos with YouTube captions.
- Go to colab.research.google.com and sign in with a Google account (a personal account is the safe choice if your school account blocks Colab).
- Choose File > New notebook in Drive, then click the Untitled name at the top left and rename the notebook.
- Run the version-check cell from the first lesson; if transformers or scikit-learn is missing or too old, run %pip install -q -U transformers (or scikit-learn) and choose Runtime > Restart session.
- Run the first-lesson check cell, which downloads the dslim/distilbert-NER model and confirms it finds a person and a place in a test sentence.