omh-model-finetuning
Skill này làm gì
Skill trước tiên kiểm tra xem prompt tốt hơn hoặc truy xuất đã thu hẹp khoảng cách chưa, rồi chọn phương pháp huấn luyện phù hợp với dữ liệu bạn có. Mô hình đã huấn luyện chỉ được đưa vào sử dụng khi nó vượt qua phiên bản chưa huấn luyện trên các ví dụ giữ lại. Dành cho đội đang cân nhắc tự huấn luyện mô hình riêng.
Khi nào nên dùng
- ✓Khi bạn băn khoăn có nên fine-tune một mô hình cho trường hợp sử dụng của riêng mình không.
- ✓Khi bạn có các ví dụ và muốn biết phương pháp huấn luyện nào phù hợp.
- ✓Khi bạn muốn kiểm tra xem một mô hình đã huấn luyện có thật sự vượt mô hình gốc không.
Liên kết skill
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-model-finetuning/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chúng tôi có nên fine-tune một mô hình cho các câu trả lời hỗ trợ khách hàng, hay một prompt tốt hơn là đủ?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent yêu cầu các ví dụ giữ lại và điểm số hiện tại của prompt, rồi thử các lựa chọn đơn giản trước. Nếu không cách nào thu hẹp được khoảng cách, agent lên kế hoạch phương pháp huấn luyện kèm so sánh với mô hình gốc.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Model Finetuning
This is an OMH model-finetuning workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
model-finetuning exists because producing a model had no owner: inference-serving serves one that exists and llm-app-dev builds on top of one, while an SFT or DPO question had no baseline comparison and no way to answer that training is not needed.
First Steps
- Ask what the untuned model and the best prompt score on the held-out examples before discussing any method.
- Ask what shape the data has -- demonstrations, preference pairs, or answers a program can check.
Do Not Use When
- The ask is onboarding a new model generation into OMH's routing, calibration, or pricing.
- The ask is serving an existing model behind an endpoint or benchmarking that endpoint; use
omh-inference-serving. - The ask is building an application on top of a hosted model -- RAG, structured output, prompt versions; use
omh-llm-app-dev. - The ask is learning from an OMH run, a missed route, or a skill improvement candidate.
Examples
Good example:
- Prompt: should we fine-tune a model for our support replies or is a better prompt enough
- Expected behavior: Ask for the held-out examples and the current prompt's score, try few-shot and retrieval against them, and return
do_not_finetuneif one closes the gap; otherwise pick SFT from the reply demonstrations and gate promotion on beating the untuned baseline. - Why: Most prompt-shaped gaps close without training, and training first hides that the cheaper fix was enough.
Bad example:
- Prompt: the fine-tuned checkpoint got 0.82 on our eval, ship it
- Expected behavior: Refuse to promote on a standalone score: run the same held-out eval on the untuned baseline and compare before promotion.
- Why: A score with no baseline cannot show the training helped at all.
Completion Checklist
- The fine-tune decision is stated, and
do_not_finetunewas considered first. - The method is chosen from the data's shape and its failure mode is named.
- The held-out split was drawn before training and checked for overlap.
- Promotion cites the same eval observed on the untuned baseline and the candidate.
- OMH ran nothing, and every score cites observed output or is marked unverified.
Recovery Notes
- If no held-out eval exists, building one is the first step; say so before any training plan.
- If the candidate does not beat the baseline, keep the baseline serving and report the gap rather than retraining blindly.
When to Use
Use when someone wants to fine-tune a model on their own data, or is deciding whether to: supervised fine-tuning (SFT), preference tuning (DPO), reinforcement learning from verifiable rewards (RLVR), or a LoRA adapter. The output is a decision on whether to train at all, the method chosen from the data available, a training data plan with a held-out split, a comparison against the untuned baseline, and a checkpoint promotion gate; OMH trains nothing and runs no eval.
Strong routing signals: `model-finetuning`, `model finetuning`, `model fine-tuning`, `fine-tune a model`, `fine-tune the model`, `fine tune a model`, `fine tune the model`, `fine-tune`, `fine tune`, `fine-tuning`, `fine tuning`, `fine-tuned model`, `fine-tuned checkpoint`, `finetune`, `finetuning`, `sft`, `supervised fine-tuning`, `dpo`, `direct preference optimization`, `rlvr`, `verifiable rewards`, `lora`, `qlora`, `lora adapter`, `preference data`, `untuned baseline`, `held-out eval`
Catalog Metadata
Category: planning
Phase: model-finetuning
Quality tier: baseline-comparison-gated
Reasoning demand: standard
Quality bar:
- Measure the untuned model and the cheaper fixes on the held-out eval before proposing any training.
- Load
references/finetuning-method.mdfor the decision ladder, the method table, the data checklist, and the promotion procedure instead of recalling them. - Choose the method from the data that exists, not from the method that is fashionable.
- Compare every candidate against the untuned baseline on the same eval, never against its own previous run alone.
- Keep prepared, trained, evaluated, and promoted as separate states for every checkpoint.
Required inputs:
- the task the model fails at, and the held-out examples that show the failure
- what prompting, few-shot examples, or retrieval were already tried, and what they scored
- the data available: demonstrations, ra
Câu hỏi thường gặp
Skill có khuyên huấn luyện nếu prompt đã hiệu quả không?
Không. Skill trả về kết quả không nên fine-tune khi một phương pháp đơn giản hơn đã thu hẹp khoảng cách.
Skill có phục vụ mô hình sau khi huấn luyện không?
Việc phục vụ mô hình thuộc một skill phục vụ suy luận riêng.
Skill có xây dựng ứng dụng trên mô hình không?
Xây dựng tính năng ứng dụng trên một mô hình được lưu trữ thuộc một skill LLM app riêng.
Chi tiết
Mô tả gốc của tác giả
[omh] Fine-tuning a model on your own data -- SFT, DPO, RLVR or a LoRA adapter: decide first whether prompting or retrieval already closes the gap, choose the method from the data you have, and promote a checkpoint only when it beats the untuned baseline on a held-out eval. Use when the user says: model-finetuning, model finetuning, model fine-tuning, fine-tune a model, fine-tune the model, fine tune a model, fine tune the model, fine-tune.
repo: rlaope/oh-my-hermes
Độ phổ biến
- Sao GitHub
- 5.1k
- Vị trí xếp hạng
- #15135
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
omh-accessibility-audit
5.1kGiúp agent của bạn kiểm tra màn hình hoặc luồng có khoảng trống về khả năng truy cập không, như dùng bàn phím, nhãn trình đọc màn hình, tương phản và vùng chạm.
omh-adversarial-consensus
5.1kGiúp agent của bạn tấn công một đề xuất kỹ thuật từ nhiều góc độ độc lập trước khi bạn cam kết, rồi tổng hợp những gì còn đứng vững.
omh-agent-debug
5.1kGiúp agent của bạn tìm hiểu vì sao một agent AI khác bị kẹt, lặp vòng hoặc trôi khỏi nhiệm vụ, và gợi ý cách phục hồi nhỏ nhất an toàn.
omh-agent-instructions
5.1kGiúp agent của bạn viết hoặc cập nhật tệp hướng dẫn, như AGENTS.md hoặc CLAUDE.md, để nói cho các công cụ AI cách làm việc trong một dự án.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.