Skip to content

Notebook and Colab

Sudhanshu edited this page Nov 11, 2026 · 1 revision

Jupyter notebook and Google Colab

The actual notebook filename in the uploaded ZIP is:

DistilBERT_Colab_Fixed_2026.ipynb

The original README refers to a differently named .ipynb file that is not present. This Wiki and the new root README correct that mismatch.

Start locally

python -m pip install -r requirements-classifier.txt
jupyter lab

Open DistilBERT_Colab_Fixed_2026.ipynb, select the right kernel, and run cells sequentially. Later code relies on earlier variables.

Colab

Upload the notebook, select a CPU/GPU runtime as needed, and install packages in a notebook cell:

%pip install "transformers>=4.46,<6" "datasets>=3,<6" "accelerate>=1,<2" "scikit-learn>=1.4,<2" "pandas>=2.2,<4"

After changing packages, restart the runtime if required. A GPU is helpful but not required. No completed Colab training run was verified in creating this Wiki.

Clone this wiki locally