This workshop provides an in-depth journey into fine-tuning an end-to-end distillation process utilizing DeepSeek V3 as a teacher model and Phi4-mini as a student model. Participants will explore the theoretical underpinnings, practical applications, and engage in hands-on exercises to perfect the art of implementing and optimizing distillation techniques in AI projects.
Key topics include the concept of model distillation and its significance in modern AI, an overview of DeepSeek V3 and Phi4-mini, step-by-step demonstrations of the fine-tuning process, real-world case studies, and discussions of best practices and optimization strategies. Attendees will gain insights into leveraging the Azure AI Foundry, and the Azure AI Foundry Models to streamline model selection, enhance fine-tuning efficiency, and optimize deployment strategies and consumption of Local model with ONNX and Foundry Local.
Tailored for data scientists, machine learning engineers, and AI enthusiasts, this session equips attendees with critical skills to elevate their AI solutions through advanced distillation techniques and Azure-powered tooling.
This workshop provides hands-on experience with model distillation using Microsoft Azure AI Foundry. Learn how to extract knowledge from Large Language Models (LLMs) and transfer it to Smaller Language Models (SLMs) while maintaining good performance and validate the model with the ONNX GenAI Runtime and Foundry Local.
Through a series of notebooks, this workshop demonstrates the complete workflow of model distillation, fine-tuning, and deployment using Azure Machine Learning (AzureML) platform, with a particular focus on optimizing models and deploying them to production environments.
The workshop follows these key steps:
Knowledge Distillation (01.AzureML_Distillation.ipynb):
Model Fine-tuning and Conversion (02.AzureML_FineTuningAndConvertByMSOlive.ipynb):
Model Inference Using ONNX Runtime GenAI (03.AzureML_RuningByORTGenAI.ipynb):
Model Registration to AzureML (04.AzureML_RegisterToAzureML.ipynb):
Local Model Download (05.Local_Download.ipynb):
Local Inference (06.Local_Inference.ipynb):
Local Inference with Foundry Local (07.Local_inference_AIFoundry.ipynb):
| Resources | Links | Description |
|---|---|---|
| Build session page | https://build.microsoft.com/sessions/LAB329 | Event session page with downloadable recording, slides, resources, and speaker bio |
| Microsoft Learn | https://aka.ms/build25/plan/CreateAgenticAISolutions | Official Collection or Plan with skilling resources to learn at your own pace |
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
Jupyter Notebook
94.2%
Bicep
4.6%
Dockerfile
1.2%
This workshop provides an in-depth journey into fine-tuning an end-to-end distillation process utilizing DeepSeek V3 as a teacher model and Phi4-mini as a student model. Participants will explore the theoretical underpinnings, practical applications, and engage in hands-on exercises to perfect the art of implementing and optimizing distillation techniques in AI projects.
Key topics include the concept of model distillation and its significance in modern AI, an overview of DeepSeek V3 and Phi4-mini, step-by-step demonstrations of the fine-tuning process, real-world case studies, and discussions of best practices and optimization strategies. Attendees will gain insights into leveraging the Azure AI Foundry, and the Azure AI Foundry Models to streamline model selection, enhance fine-tuning efficiency, and optimize deployment strategies and consumption of Local model with ONNX and Foundry Local.
Tailored for data scientists, machine learning engineers, and AI enthusiasts, this session equips attendees with critical skills to elevate their AI solutions through advanced distillation techniques and Azure-powered tooling.
This workshop provides hands-on experience with model distillation using Microsoft Azure AI Foundry. Learn how to extract knowledge from Large Language Models (LLMs) and transfer it to Smaller Language Models (SLMs) while maintaining good performance and validate the model with the ONNX GenAI Runtime and Foundry Local.
Through a series of notebooks, this workshop demonstrates the complete workflow of model distillation, fine-tuning, and deployment using Azure Machine Learning (AzureML) platform, with a particular focus on optimizing models and deploying them to production environments.
The workshop follows these key steps:
Knowledge Distillation (01.AzureML_Distillation.ipynb):
Model Fine-tuning and Conversion (02.AzureML_FineTuningAndConvertByMSOlive.ipynb):
Model Inference Using ONNX Runtime GenAI (03.AzureML_RuningByORTGenAI.ipynb):
Model Registration to AzureML (04.AzureML_RegisterToAzureML.ipynb):
Local Model Download (05.Local_Download.ipynb):
Local Inference (06.Local_Inference.ipynb):
Local Inference with Foundry Local (07.Local_inference_AIFoundry.ipynb):
| Resources | Links | Description |
|---|---|---|
| Build session page | https://build.microsoft.com/sessions/LAB329 | Event session page with downloadable recording, slides, resources, and speaker bio |
| Microsoft Learn | https://aka.ms/build25/plan/CreateAgenticAISolutions | Official Collection or Plan with skilling resources to learn at your own pace |
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
Jupyter Notebook
94.2%
Bicep
4.6%
Dockerfile
1.2%