Chuyển đến nội dung
Skillpedia
Agent9.8k · #12212

kev-finetune

Skill này làm gì

Skill này huấn luyện mô hình quyết định Kev trên các ví dụ của bạn để câu trả lời khớp với câu hỏi chính xác của bạn, rồi triển khai và đo lường. Dành cho các nhóm muốn một mô hình quyết định được điều chỉnh theo dữ liệu của họ.

Khi nào nên dùng

  • ✓Khi bạn có các ví dụ quyết định đã gắn nhãn mà bạn muốn tự động hóa.
  • ✓Khi một mô hình được host sẵn có không khớp tốt với dữ liệu của bạn.
  • ✓Khi bạn muốn một so sánh có đo lường cho thấy việc tinh chỉnh có thực sự giúp ích không.

Liên kết skill

https://github.com/jaredpalmer/kev/blob/main/skills/kev-finetune/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/jaredpalmer/kev/blob/main/skills/kev-finetune/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi có một thư mục các yêu cầu hỗ trợ trước đây được gắn nhãn theo kết quả. Hãy tinh chỉnh Kev trên chúng và cho tôi biết nó có vượt mô hình mặc định không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill tìm các câu hỏi hoặc dữ liệu đã gắn nhãn hiện có và biến chúng thành bản ghi huấn luyện, có thể tùy chọn sinh thêm ví dụ. Skill huấn luyện và hiệu chỉnh trên Modal, chấm điểm kết quả so với mô hình đã phát hành, triển khai một endpoint, rồi dọn dẹp.

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.

Fine-tune Kev on the user's workload

Jev (TypeSafe's System One model) answers typed questions about a text without generating tokens, but it is a fixed hosted model: on the user's data it is out of distribution and its probabilities cannot be recalibrated. Kev is the open reconstruction; because it can be trained, you can fine-tune it on a few hundred to a few thousand labelled examples of the user's exact questions and fit its temperature on a held-out slice, so the probabilities it serves are calibrated for their data. This skill takes a user from "I have this decision to automate" to a deployed, measured endpoint, then cleans up. Nothing needs a local GPU or a clone of the Kev repo.

Scripts (scripts/) are short, standard-library Python plus one Modal app. If the user's case does not fit them, read the script and change it; they are meant to be edited, not worked around.

Script Purpose
extract_workload.py scan a codebase for Jev / TypeSafe / System One calls and labelled data; draft workload.json
convert_data.py CSV / JSONL of existing labelled examples -> Kev records (column mapping)
generate_data.py workload spec -> balanced labelled records via any OpenAI-compatible model; --dry-run prints the prompt
plan_size.py how many records make the fine-tune vs baseline comparison statistically meaningful
split_data.py validate records, split by state into train / calibration / development
kev_modal.py Modal: validate, train, evaluate, compare, pull, publish, teardown, and the Serve endpoint

Run modal as uvx modal ... if it is not installed. Commands below run from the skill directory.

Phase 0: interview

Do not generate anything before you can answer these. Ask what you cannot infer; keep it to one round if possible.

  1. The decision. What is being decided, about what input, and what happens with the answer (route, escalate, score, block)? One sentence each. If they mention automating a share of the volume, note the error rate they can tolerate: that becomes the coverage-at-error target.
  2. Where it lives today. Run python3 scripts/extract_workload.py <their repo> --out workload.json. It lists files that call Jev / TypeSafe / /v1/systemone (Python SDK Noul/Choice/Score, AI SDK experimental_evaluate, raw request bodies), extracts question literals with _source file:line, and lists CSV/JSON/JSONL files that look labelled. Read the sources it points at and fix every _todo. If there is no such code, write the questions with the user in the System One shape (assets/workload.example.json, rules in references/data-format.md).
  3. Labelled data they already have. Tickets with their routing, logs with outcomes, a spreadsheet of judgments. Even 50 real rows matter: they become the development set or the style reference for generation. If yes, plan to use convert_data.py.
  4. Data source for the rest. Offer, in this order: (a) convert existing labels; (b) an LLM writes records from the spec (generate_data.py; ask which endpoint and key they want to use: OpenAI, Vercel AI Gateway, Ollama, or any OpenAI-compatible URL); (c) you write records yourself from the --dry-run prompt in batches of 20 (fine for the first 100, slow beyond).
  5. Base size. Recommend jaredpalmer/kev-4b (~12 min and ~$1 per run for 400 records, ~15 min for 1000). kev-0.8b for fast loops, kev-9b for the final model. Same recipe on all three; a run transfers unchanged.
  6. Deployment and money. Modal account ready (modal setup)? Budget: each train prints a cost bound before it starts. Where will the model be called from (so you can wire the endpoint in at the end)? Should the checkpoint stay on the Modal volume (default), be pulled locally, or be published to a private Hub repo?

Record the answers in workload.json (domain, state, state_example if inputs are objects, questions, guidance with the labelling rules, variety). The questions must be the exact instructions and option names production will send: the fine-tune binds those strings.

Phase 1: data

python3 scripts/plan_size.py workload.json --baseline-acc 0.75 --min-gain 0.05        # how many records
python3 scripts/convert_data.py workload.json their.csv --state body --label team=dept --out data/x.real.jsonl   # if they have labels
export KEV_GEN_API_KEY=...   # or OPENAI_API_KEY / A
Câu hỏi thường gặp

Tôi cần bao nhiêu ví dụ?

Skill nói cần vài trăm đến vài nghìn ví dụ có nhãn, và có thể tính kích cỡ cần thiết để so sánh công bằng.

Tôi có cần GPU hay mã nguồn của Kev không?

Không. Việc huấn luyện chạy trên Modal, và bạn không cần GPU cục bộ hay bản sao của kho mã.

Nó có làm xác suất chính xác hơn không?

Skill điều chỉnh một tham số nhiệt độ (temperature) trên tập giữ lại, nên xác suất được hiệu chỉnh cho dữ liệu của bạn.

Chi tiết

Mô tả gốc của tác giả

Fine-tune a Kev decision model (open Jev-style System One model) on a user's own workload and serve it with calibrated probabilities. Interviews the user, finds existing Jev/TypeSafe questions or labelled data in their codebase, generates enough synthetic training data to measure a gain, trains and calibrates on Modal, scores against the released checkpoint, deploys a TypeSafe-compatible endpoint, and tears everything down. Use when someone wants noul/choice/score questions answered on their own domain (routing, triage, moderation, classification, scoring), wants calibrated confidence for auto

repo: jaredpalmer/kev

Độ phổ biến

Sao GitHub
9.8k
Vị trí xếp hạng
#12212
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự