Optimizing Small Language Models on a Free T4 GPU

Comprehensive Guide to Fine-Tuning Phi-2 using Direct Preference Optimization

Yanli Liu
Towards Data Science
11 min readJan 30, 2024

--

Photo by Donald Wu on Unsplash

“Small” Large Language Models (LLMs) are rapidly becoming a game-changer in the field of artificial intelligence.

Unlike the traditional LLMs which require significant computational resources, these models are much smaller and…

--

--

Daytime finance practitioner based in Luxembourg, seasoned coder, and passionate about anything AI-related!