Microsoft Corp. today released the code for Phi-4, a small language model that can generate text and solve math problems.