deploy-fine-tuning-workflow — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited deploy-fine-tuning-workflow (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
az extension add -n mlaz ml workspace create --name $WORKSPACE --resource-group $RG --location eastus2
az ml compute create --name gpu-cluster --type amlcompute \
--size Standard_NC24ads_A100_v4 --min-instances 0 --max-instances 2Training data format (JSONL — conversational):
{"messages": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "What's our refund policy?"}, {"role": "assistant", "content": "Our refund policy allows returns within 30 days..."}]}
{"messages": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "How do I cancel?"}, {"role": "assistant", "content": "To cancel your subscription, go to Settings > Billing..."}]}Data requirements:
| Aspect | Minimum | Recommended | Maximum |
|---|---|---|---|
| Training samples | 10 | 50-500 | 100,000 |
| Validation samples | 5 | 20% of training | — |
| Max tokens per sample | — | 4096 | Model context length |
| Data quality | No duplicates | Diverse, balanced | — |
python scripts/validate_data.py --input data/training.jsonl --output data/validated.jsonlChecks: JSON validity, message format, token count, duplicate detection, class balance.
// config/training.json
{
"method": "lora",
"base_model": "gpt-4o-mini-2024-07-18",
"lora_rank": 16,
"lora_alpha": 32,
"learning_rate": 1e-4,
"epochs": 3,
"batch_size": 4,
"warmup_steps": 100,
"weight_decay": 0.01,
"seed": 42
}# Azure OpenAI fine-tuning
az openai fine-tune create --model gpt-4o-mini-2024-07-18 \
--training-file data/training.jsonl --validation-file data/validation.jsonl \
--hyperparameters '{"n_epochs": 3, "batch_size": 4, "learning_rate_multiplier": 1.0}'
# Azure ML fine-tuning (open-source models)
az ml job create --file jobs/fine-tune.yml --workspace-name $WORKSPACE# Check training status
az openai fine-tune show --fine-tune-id $JOB_ID
# MLflow experiment tracking
mlflow ui --port 5000Watch for: training loss decreasing, validation loss not increasing (overfitting).
az openai deployment create --model $FINE_TUNED_MODEL --name ft-deployment \
--sku-name Standard --sku-capacity 10| Issue | Cause | Fix |
|---|---|---|
| Training fails immediately | Invalid JSONL format | Run data validation script |
| Loss not decreasing | Learning rate too low | Increase LR by 2-5x |
| Overfitting (val loss increases) | Too many epochs or too few samples | Reduce epochs, add more data |
| OOM during training | Batch size too large | Reduce batch_size, use gradient accumulation |
| Fine-tuned model worse | Bad training data or too few samples | Audit data quality, add 50+ samples |
| Deployment fails | Quota exceeded | Request additional TPM quota |
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.