Skip to Content
Solution PlaysPlay 13: Play 13 β€” Fine-Tuning Workflow πŸ”¬

Play 13 β€” Fine-Tuning Workflow πŸ”¬

End-to-end fine-tuning with data prep, LoRA training, evaluation, and deployment.

Curate training data, configure LoRA parameters, train on Azure ML or Azure OpenAI, evaluate with automated metrics, then deploy the fine-tuned model. MLflow tracks experiments. Handles data validation, train/val splitting, hyperparameter sweeps, and model versioning.

Quick Start

cd solution-plays/13-fine-tuning-workflow # Provision Azure ML workspace az ml workspace create --name $WORKSPACE --resource-group $RG # Prepare and validate training data python scripts/validate_data.py --input data/training.jsonl code . # Use @builder for data prep/training, @reviewer for quality audit, @tuner for hyperparams

Architecture

πŸ“ Full architecture details

ServicePurpose
Azure ML WorkspaceExperiment tracking, compute management
GPU Compute (NC/ND series)LoRA training compute
Azure OpenAIFine-tuning API (gpt-4o-mini, gpt-4o)
MLflowExperiment tracking, model versioning
Azure StorageTraining data, model artifacts

Key Training Parameters

ParameterDefaultRange
LoRA rank164-128
Learning rate1e-41e-5 to 5e-4
Epochs31-10
Batch size41-32

DevKit (ML Engineering-Focused)

PrimitiveWhat It Does
3 agentsBuilder (data prep + training), Reviewer (overfitting + quality), Tuner (hyperparams + cost)
3 skillsDeploy (111 lines), Evaluate (100 lines), Tune (120 lines)
4 prompts/deploy (ML workspace), /test (pipeline), /review (data quality), /evaluate (base vs fine-tuned)

Note: This is an MLOps/training play. TuneKit covers LoRA hyperparameters, data quality optimization, compute selection (GPU sizing), and cost per training run β€” not inference-time parameters.

Cost Estimate

ServiceDev/PoCProductionEnterprise
Azure OpenAI Fine-Tuning$80/mo$400/mo$1,500/mo
Azure OpenAI Inference$30/mo$250/mo$900/mo
Azure Machine Learning$0/mo$100/mo$300/mo
Blob Storage$3/mo$20/mo$60/mo
Azure AI Foundry$0/mo$50/mo$150/mo
Key Vault$1/mo$3/mo$10/mo
Application Insights$0/mo$25/mo$80/mo
Total$114/mo$848/mo$3,000/mo

πŸ’° Full cost breakdown

πŸ“– Full docs Β· 🌐 frootai.dev/solution-plays/13-fine-tuning-workflowΒ 

FAI Manifest

FieldValue
Play13-fine-tuning-workflow
Version1.0.0
KnowledgeT1-Fine-Tuning-MLOps, F1-GenAI-Foundations
WAF Pillarssecurity, cost-optimization, operational-excellence
Groundednessβ‰₯ 85%
Safety0 violations max
Last updated on