finetuning

Fine-tune AI models on Azure AI Foundry with supervised, preference, or reinforcement learning.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/anishi1222/multi-agent-code-reviewer --skill finetuning-anishi1222
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finetuning
Source: https://github.com/anishi1222/multi-agent-code-reviewer/tree/main/.agents/skills/microsoft-foundry/finetuning
Command: npx skills add https://github.com/anishi1222/multi-agent-code-reviewer --skill finetuning-anishi1222

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires azure-identity, azure-ai-projects, openai, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users fine-tune AI models on Azure AI Foundry using supervised (SFT), preference (DPO), or reinforcement (RFT) learning, making it easier to customize models for specific tasks and datasets.

Core Features & Use Cases

  • Supervised Fine-Tuning (SFT): Customize models using labeled datasets, ideal for tasks like classification and information retrieval.
  • Preference Fine-Tuning (DPO): Optimize models based on human feedback, useful for ranking, search, and recommendation systems.
  • Reinforcement Fine-Tuning (RFT): Train models with human feedback and external tool calls, enabling more complex tasks and decision-making.
  • Use Case: Imagine you want to build a model that can classify images of animals. Use this Skill to fine-tune a pre-trained model using a labeled dataset of animal images.

Quick Start

Run the 'finetuning' skill with the following command:

finetuning --dataset path/to/your/dataset --model your_pretrained_model --method sft

Frequently Asked Questions about finetuning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fine-tune an AI model on Azure AI Foundry?

To fine-tune a model on Azure AI Foundry, you submit training jobs using supervised, preference, or reinforcement learning techniques. This process requires preparing your dataset, configuring the training job, deploying the model, and evaluating the results.

What is the difference between supervised, preference, and reinforcement fine-tuning?

Supervised fine-tuning (SFT) uses labeled datasets for tasks like classification, preference fine-tuning (DPO) optimizes models based on human feedback for ranking, and reinforcement fine-tuning (RFT) trains models with external tool calls for complex decision-making.

Do I need Azure AI Foundry access to use reinforcement fine-tuning?

Yes, Azure AI Foundry access is required to run reinforcement fine-tuning. You also need compatible Python libraries like azure-identity, azure-ai-projects, and openai to successfully execute the training and deployment workflows.

Can I use human feedback to optimize a model for search and recommendation tasks?

Yes, you can use preference fine-tuning (DPO) to optimize models based on human feedback. This approach is specifically useful for improving ranking, search, and recommendation systems by aligning model outputs with user preferences.

What Python dependencies are required to submit a fine-tuning job?

The azure-identity, azure-ai-projects, and openai Python libraries are required to submit a fine-tuning job. These dependencies enable authentication, project management, and model interaction within the Azure AI Foundry environment.

What's the best way to customize a pre-trained model for a specific classification task?

Supervised fine-tuning (SFT) is the best way to customize a pre-trained model for classification. By providing a labeled dataset, you train the model for specific tasks like information retrieval and image classification.