본문으로 건너뛰기
Skillpedia
에이전트9.8k · #12212

kev-finetune

하는 일

이 스킬은 여러분의 예시로 Kev 판단 모델을 학습시켜 답이 여러분의 정확한 질문에 맞도록 하고, 배포해서 결과를 측정합니다. 데이터에 맞게 조정된 판단 모델을 원하는 팀을 위한 스킬입니다.

사용하는 경우

  • ✓자동화하고 싶은 판단에 대해 라벨된 예시가 있을 때.
  • ✓기존 호스팅 모델이 데이터에 잘 맞지 않을 때.
  • ✓튜닝이 실제로 도움이 되었는지 보여 주는 측정된 비교를 원하는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/jaredpalmer/kev/blob/main/skills/kev-finetune/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“과거 지원 티켓 폴더가 있고, 결과별로 라벨이 붙어 있습니다. 이걸로 Kev를 미세 조정하고 기본 모델보다 나은지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 기존 질문이나 라벨된 데이터를 찾아 학습 기록으로 바꾸고, 원하면 예시를 더 생성합니다. Modal에서 학습하고 보정한 뒤, 공개된 모델과 결과를 비교하고, 엔드포인트를 배포한 다음 정리합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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
자주 묻는 질문

예시가 몇 개 필요한가요?

라벨된 예시가 수백 개에서 수천 개 정도 필요하다고 설명하며, 공정한 비교에 필요한 크기도 계산할 수 있습니다.

GPU나 Kev 코드가 필요한가요?

아닙니다. 학습은 Modal에서 실행되며, 로컬 GPU나 저장소 사본이 필요하지 않습니다.

확률을 더 정확하게 만드나요?

보류된 데이터 세트에 온도 값(temperature)을 맞추므로, 확률이 여러분의 데이터에 맞게 보정됩니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
9.8k
순위
#12212
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬