phi-2
phi-2
Microsoft’s Phi are compact, high-capability language models designed to punch above their weight class. Phi-1.5 and Phi-2 use a standard transformer decoder architecture (PhiForCausalLM). For Phi-3 and Phi-4 see Phi-3 / Phi-4.
Set up NeMo AutoModel with the latest container or follow the installation instructions.
Fine-Tune phi-2
From the repository root, run: