kev-finetune
하는 일
이 스킬은 여러분의 예시로 Kev 판단 모델을 학습시켜 답이 여러분의 정확한 질문에 맞도록 하고, 배포해서 결과를 측정합니다. 데이터에 맞게 조정된 판단 모델을 원하는 팀을 위한 스킬입니다.
사용하는 경우
- ✓자동화하고 싶은 판단에 대해 라벨된 예시가 있을 때.
- ✓기존 호스팅 모델이 데이터에 잘 맞지 않을 때.
- ✓튜닝이 실제로 도움이 되었는지 보여 주는 측정된 비교를 원하는 경우.
스킬 링크
https://github.com/jaredpalmer/kev/blob/main/skills/kev-finetune/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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.
- 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.
- 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 SDKNoul/Choice/Score, AI SDKexperimental_evaluate, raw request bodies), extracts question literals with_sourcefile: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 inreferences/data-format.md). - 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. - 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-runprompt in batches of 20 (fine for the first 100, slow beyond). - Base size. Recommend
jaredpalmer/kev-4b(~12 min and ~$1 per run for 400 records, ~15 min for 1000).kev-0.8bfor fast loops,kev-9bfor the final model. Same recipe on all three; a run transfers unchanged. - Deployment and money. Modal account ready (
modal setup)? Budget: eachtrainprints 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.
댓글
- …
이 저장소의 다른 스킬
unslop
9.8k정해진 표현, 과다한 엠대시, 모호한 주장처럼 AI가 쓴 듯한 패턴을 글에서 없애고, 뜻은 유지한 채 평이하게 다시 씁니다.
kev-deploy
9.8k에이전트가 열린 Kev 판단 모델을 Modal에 자체 API 엔드포인트로 호스팅하도록 돕습니다. 크기 선택, 키 추가, 해제를 다룹니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.