Skip to content

Latest commit

 

History

History
324 lines (261 loc) · 29.7 KB

File metadata and controls

324 lines (261 loc) · 29.7 KB

Phi Cookbook: Hands-On Examples wit Microsoft Phi Models

Open and use the samples in GitHub Codespaces Open in Dev Containers

GitHub contributors GitHub issues GitHub pull-requests PRs Welcome

GitHub watchers GitHub forks GitHub stars

Microsoft Foundry Discord

Phi na series of open source AI models wey Microsoft develop.

Phi na di most powerful and cost-effective small language model (SLM) now, get beta beta benchmarks for multi-language, reasoning, text/chat generation, coding, images, audio and oda scenarios.

You fit deploy Phi go cloud or edge devices, and you fit easy build generative AI applications wit limited computing power.

Make you follow these steps to start use these resource:

  1. Fork di Repository: Click GitHub forks
  2. Clone di Repository: git clone https://github.com/microsoft/PhiCookBook.git
  3. Join Di Microsoft AI Discord Community and meet experts and fellow developers

cover

🌐 Multi-Language Support

Supported via GitHub Action (Automated & Always Up-to-Date)

Arabic | Bengali | Bulgarian | Burmese (Myanmar) | Chinese (Simplified) | Chinese (Traditional, Hong Kong) | Chinese (Traditional, Macau) | Chinese (Traditional, Taiwan) | Croatian | Czech | Danish | Dutch | Estonian | Finnish | French | German | Greek | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Kannada | Khmer | Korean | Lithuanian | Malay | Malayalam | Marathi | Nepali | Nigerian Pidgin | Norwegian | Persian (Farsi) | Polish | Portuguese (Brazil) | Portuguese (Portugal) | Punjabi (Gurmukhi) | Romanian | Russian | Serbian (Cyrillic) | Slovak | Slovenian | Spanish | Swahili | Swedish | Tagalog (Filipino) | Tamil | Telugu | Thai | Turkish | Ukrainian | Urdu | Vietnamese

You prefer to Clone for your machine?

Dis repository get 50+ language translations wey heavy for download size. To clone witout translations, use sparse checkout:

Bash / macOS / Linux:

git clone --filter=blob:none --sparse https://github.com/microsoft/PhiCookBook.git
cd PhiCookBook
git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'

CMD (Windows):

git clone --filter=blob:none --sparse https://github.com/microsoft/PhiCookBook.git
cd PhiCookBook
git sparse-checkout set --no-cone "/*" "!translations" "!translated_images"

Dis one go give you everything wey you need to finish di course with fast download.

Table of Contents

Using Phi Models

Phi on Microsoft Foundry

You fit learn how to use Microsoft Phi and how to build E2E solutions for your different hardware devices. To try Phi by yourself, start by playing wit di models and customize Phi for your own wahala using di Microsoft Foundry Azure AI Model Catalog you fit learn more at Getting Started wit Microsoft Foundry

Playground Each model get im own playground to test am Azure AI Playground.

Phi on GitHub Models

You fit learn how to use Microsoft Phi and how to build E2E solutions for your different hardware devices. To try Phi by yourself, start by playing wit di model and customize Phi for your own wahala using di GitHub Model Catalog you fit learn more at Getting Started wit GitHub Model Catalog

Playground Each model get im own playground to test di model.

Phi on Hugging Face

You fit still find di model on di Hugging Face

Playground Hugging Chat playground

🎒 Other Courses

Our team dey produce other courses! Check am out:

LangChain

LangChain4j for Beginners LangChain.js for Beginners LangChain for Beginners

Azure / Edge / MCP / Agents

AZD for Beginners Edge AI for Beginners MCP for Beginners AI Agents for Beginners


Generative AI Series

Generative AI for Beginners Generative AI (.NET) Generative AI (Java) Generative AI (JavaScript)


Core Learning

ML for Beginners Data Science for Beginners AI for Beginners Cybersecurity for Beginners Web Dev for Beginners IoT for Beginners XR Development for Beginners


Copilot Series

Copilot for AI Paired Programming Copilot for C#/.NET Copilot Adventure

Responsible AI

Microsoft dey committed to help our customers use our AI products responsibly, share our learnings, and build trust-based partnerships through tools like Transparency Notes and Impact Assessments. Plenty of these resources dey for https://aka.ms/RAI. Microsoft approach to responsible AI na based on our AI principles of fairness, reliability and safety, privacy and security, inclusiveness, transparency, and accountability.

Big natural language, image, and speech models - like di ones wey dem use for dis sample - fit behave in ways wey no too fair, no reliable, or fit offend people, wey fit cause wahala. Abeg check di Azure OpenAI service Transparency note to sabi all di risks and limits. Di recommended way wey fit help reduce dese risks na to put one safety system for your architecture wey fit detect and stop bad behavior. Azure AI Content Safety dey provide one independent protection layer wey fit detect bad content wey users or AI generate for different apps and services. Azure AI Content Safety get text and image APIs wey make you fit detect harmful material. Inside Microsoft Foundry, di Content Safety service go allow you see, explore and try sample code wey fit detect bad content for different type modality. Di following quickstart documentation go guide you how to make requests to di service.

Another tin to consider na di general application performance. For multi-modal and multi-models applications, we mean say di system go work as you and your users expect, including say e no go generate bad outputs. E important to check di performance of your whole application using Performance and Quality and Risk and Safety evaluators. You fit also create and evaluate using custom evaluators.

You fit evaluate your AI application inside your development environment using di Azure AI Evaluation SDK. If you get test dataset or target, your generative AI application generations go get quantitative measurement with built-in evaluators or custom evaluators wey you pick. To start with di azure ai evaluation sdk to evaluate your system, you fit follow di quickstart guide. After you run evaluation, you fit visualize di results in Microsoft Foundry.

Trademarks

Dis project fit get trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos mean say you gats follow Microsoft's Trademark & Brand Guidelines.
If you dey use Microsoft trademarks or logos for changed versions of dis project, e no suppose cause confusion or make person think say Microsoft sponsor am. Any use of third-party trademarks or logos go dey under those third-party policies.

Getting Help

If you jam wahala or get any question about how to build AI apps, join:

Microsoft Foundry Discord

If you get product feedback or error while you dey build, visit:

Microsoft Foundry Developer Forum


Disclaimer:
Dis dokment don translate wit AI translation service Co-op Translator. Even though we dey try make am correct, abeg sabi say automated translation fit get errors or mistakes. Di original dokment wey e dey for im own language na di correct source. For important matter, make person wey sabi translate am well translate am. We no go carry any yawa wey fit happen if pesin no understand well or interpret am wrong because of dis translation.