Implements Module H for AGE OS: open-source model fine-tuning engine
that runs in parallel with existing RAG training system.
Tools:
- finetuneExportDataset: Convert TCS corpus to JSONL fine-tuning format
- finetuneSubmitJob: Submit jobs to DeepSeek/Qwen fine-tuning APIs
- finetuneCheckStatus: Query job progress from provider APIs
- finetuneRegisterModel: Register completed fine-tuned models
- finetuneListModels: List registered models per persona
- finetuneCallModel: Inference with fallback to base model
- finetuneCompareModels: A/B test finetuned vs base model
- finetuneGetCostEstimate: Estimate training cost in RMB
Follows existing training-agent-ops.js patterns: raw https module,
crypto.randomBytes for IDs, COS bucket storage, LLM_CONFIGS structure.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>