microsoft/PhiCookBook
This is a Phi Family of SLMs book for getting started with Phi Models. Phi a family of open sourced AI models developed by Microsoft. Phi models are the most capable and cost-effective small language models (SLMs) available, outperforming models of the same size and next size up across a variety of language, reasoning, coding, and math benchmarks
What it solves
This repository provides a comprehensive collection of resources, tutorials, and code samples for working with Microsoft's Phi family of small language models (SLMs). It addresses the challenge of building and deploying powerful AI applications—including text, vision, audio, and reasoning tasks—on devices with limited computing power, such as edge devices or local PCs.
How it works
The cookbook acts as a central hub for developers to learn how to integrate Phi models into various environments. It covers the entire lifecycle of an AI project: from setting up your development environment and running inference locally or in the cloud, to fine-tuning models for specific tasks and evaluating their performance using responsible AI principles. It provides hands-on code samples for popular frameworks like ONNX Runtime, .NET, and various cloud-based AI platforms.
Who it’s for
This resource is designed for developers and AI engineers who want to build generative AI applications using efficient, high-performance small language models. It is suitable for those looking to deploy AI on everything from mobile devices and local servers to cloud-based infrastructure.
Highlights
- Extensive library of hands-on code samples for text, chat, vision, audio, and advanced reasoning.
- Guides for deploying Phi models across diverse platforms, including iOS, Android, NVIDIA Jetson, and local PCs.
- Practical tutorials on model quantization and fine-tuning using tools like Microsoft Olive, Apple MLX, and Azure Machine Learning.
- End-to-end examples for building RAG (Retrieval-Augmented Generation) pipelines and function-calling agents.
- Support for multiple languages and integration with major AI ecosystems like Hugging Face, Ollama, and NVIDIA NIM.
Related
- Project
- Project
- Project
- Project