LLM coursework · fine-tuning

Sentiment classifier

An interactive view of the BERTweet fine-tuning experiment. Select a held-out test example to inspect the model prediction beside its gold label.

Test accuracy100%
Test examples10
Training epochs13

Held-out examples

Prompting comparison

Real deterministic generations from HuggingFaceTB/SmolLM2-135M-Instruct on 12 labeled reviews.

MethodCorrectAccuracy
Zero-shot12 / 12100%
Few-shot10 / 1283.3%
Short CoT7 / 1258.3%

Safety canary test

A controlled prompt-injection evaluation using the synthetic marker CANARY-7F3A. The local model answered the control correctly and leaked the marker in 4 of 4 injection variants.

Control accuracy100%
Injection leak rate100%