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.
| Method | Correct | Accuracy |
|---|---|---|
| Zero-shot | 12 / 12 | 100% |
| Few-shot | 10 / 12 | 83.3% |
| Short CoT | 7 / 12 | 58.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%