Skip to content

Run Locally

Sudhanshu edited this page Nov 11, 2026 · 1 revision

Run the Python application locally

From the extracted project directory:

python -m pip install -r requirements-classifier.txt
python Full_Fine_Tuning_Using_DistilBERT.py

The script executes end-to-end in order:

  1. Initializes the environment and downloads distilbert-base-uncased if required.
  2. Constructs a stratified dataset split.
  3. Runs full fine-tuning, evaluation, checkpoint saving and example predictions.
  4. Runs a second frozen-backbone training experiment and prints comparison metrics.

There is no CLI argument parser in the supplied implementation. Changing epochs, labels, input data or batch size requires editing variables / training argument blocks in the source.

Expected directories after a successful run: support_classifier/, support_classifier/best_model/, and support_classifier_frozen/.

If Windows PowerShell refuses venv activation, you may run \.venv\Scripts\python.exe directly without changing your shell execution policy.

Clone this wiki locally