kev-deploy
하는 일
이 스킬은 명령 하나로 Kev 판단 모델을 Modal의 비공개 웹 엔드포인트로 설정하고, 여러분의 코드와 연결합니다. 호스팅 서비스를 쓰는 대신 이 모델을 직접 운영하려는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓호스팅된 서비스 대신 Kev를 자체 API로 호스팅하고 싶을 때.
- ✓Kev 배포에 쓸 모델 크기나 GPU를 골라야 할 때.
- ✓API 키를 추가하거나, 엔드포인트를 따뜻하게 유지하거나, 배포를 중지하고 제거하고 싶은 경우.
스킬 링크
https://github.com/jaredpalmer/kev/blob/main/skills/kev-deploy/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Kev 모델을 Modal에 제 엔드포인트로 배포하고, 앱에서 호출하는 방법을 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 Modal이 설정되어 있는지 확인하고, 속도와 비용 기준으로 목록에서 모델 크기를 고른 뒤, 표준 판단 API를 제공하는 작은 앱을 배포합니다. Modal 로그인은 여러분이 직접 하며, 이후 엔드포인트 주소와 코드를 연결하는 단계를 알려 줍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Deploy Kev on Modal
scripts/kev_serve.py is a single self-contained Modal app. modal deploy on it builds an image with the kev package at
a pinned commit, loads a Kev checkpoint from the Hugging Face Hub on a GPU sized for it, and serves TypeSafe's System One
protocol (POST /v1/systemone, GET /v1/models) at https://<workspace>--kev-api.modal.run. It scales to zero when idle.
The file is short on purpose: if the user's case does not fit, read it and edit it.
1. Check the prerequisites
pip install modal==1.5.5
modal profile current 2>/dev/null || modal setup # opens a browser to sign in; the user must do this step
modal skills install -y # optional: Modal's own agent skill + docs (into .agents/, or -g for home)
If modal setup is needed, tell the user and wait; do not try to authenticate for them. modal skills install gives you
Modal's official skill and documentation, which helps with anything beyond this file: GPUs, secrets, volumes, logs, billing.
2. Pick the model
KEV_MODEL |
GPU (automatic; fallbacks in parentheses) | $/h while up | Model time, 6 questions (new / repeated state) | Cold start (cached weights) | When |
|---|---|---|---|---|---|
jaredpalmer/kev-0.8b |
L4 (L40S) | 0.80 | 23 / 16 ms | ~40 s | cheapest, prototyping |
jaredpalmer/kev-4b (default) |
L40S (H100) | 1.95 | 42 / 28 ms (H100: 18 / 13 ms) | ~35 s | the default: best quality per dollar |
jaredpalmer/kev-9b |
H100 (H200, L40S) | 3.95 | 24 / 17 ms | ~55 s | accuracy on smaller GPUs |
jaredpalmer/kev-27b |
B200 (H200, H100) | 6.25 | 47 / 32 ms (H200: 67 / 50 ms) | ~50 s | best released accuracy; 51 GB of full weights |
Model time is the latency_ms the API returns (median of 20 requests, measured in the Kev repo: runs/serve-*,
runs/grouping-4b-h100, runs/fused-27b-* and runs/serving-27b-r23; Kev-27B's B200 and H100 figures were measured on its
previous version, the same architecture in bf16). A new state is the normal call, since every ticket is a
new state; a repeated state is served from a prefix cache. The very first cold start of an account also downloads the
weights and compiles kernels (1-2 minutes); both are cached on the kev-hf-cache volume afterwards. Other GPUs work with
KEV_GPU but are worse picks: an L4 runs out of compute on Kev-4B, and an A100 is slower than an L40S here and costs more.
Kev-27B is compute-bound under load: a B200 serves ~57 mixed requests/s at 64 concurrent clients (H200 ~40, H100 ~36) for
about the same cost per request, with the lowest latency. Its first cold start downloads 51 GB of weights (several minutes).
A warm container costs the GPU's hourly rate only while it is up; after five idle minutes it scales to zero.
KEV_MIN_CONTAINERS=1 keeps one warm (no cold starts, pays the hourly rate all the time). @revision pins a checkpoint
revision (jaredpalmer/kev-4b@v7-base).
3. Deploy
Always set an API key unless the user explicitly wants a public URL; without one, anyone with the URL can spend their GPU time.
curl -LO https://raw.githubusercontent.com/jaredpalmer/kev/main/skills/kev-deploy/scripts/kev_serve.py # or use the skill's copy
export KEV_API_KEY=$(openssl rand -hex 24) # save it: it is the endpoint's bearer token
KEV_MODEL=jaredpalmer/kev-4b modal deploy kev_serve.py # prints the URL
Settings are read at deploy time; redeploying with other values replaces the model behind the same URL.
KEV_APP_NAME=kev-9b gives a second, independent endpoint (https://<workspace>--kev-9b-api.modal.run).
KEV_GPU=H100 overrides the GPU list (comma-separated). KEV_REGION=us (or us-east, eu, ...) pins where the container
runs: without it Modal takes the first region with a free GPU, which can be another continent (an unpinned Kev-4B landed in
Frankfurt and added ~150 ms to every round trip from the US). A pinned region costs 1.15-1.75x on Modal; pin it near the
callers for latency-sensitive use. KEV_TRUNCATE_STATES=1 reads the first 65,536 tokens of a longer document instead
of refusing it (see Long documents under Troubleshooting).
Throughput
A container answers concurrent requests in batches: its model thread takes everything waiting and runs it through shared
passes. In-process, Kev-4B on an H100 serves about 95 six-question requests/s (120 on mixed short records); an L40S about
45. Over HTTP the front door matters too: KEV_FLASH=1 uses a Modal
자주 묻는 질문
Modal에 누가 로그인해야 하나요?
여러분이 해야 합니다. 스킬은 로그인 단계를 직접 실행하라고 요청합니다.
유휴 상태일 때도 엔드포인트에 비용이 드나요?
앱은 유휴 시 0으로 줄어들도록 설계되어 있으며, 가이드는 실행 중의 시간당 비용을 나열합니다.
항상 빠르게 유지할 수 있나요?
예. 스킬은 엔드포인트를 따뜻하게 유지할 수 있습니다. 느린 시작은 피하지만, 계속 실행된 상태로 둡니다.
상세 정보
작성자의 원본 설명
Deploy a Kev decision model (the open Jev-style System One model) as the user's own TypeSafe-compatible HTTPS endpoint on Modal with one command, wire it into their code, and take it down. Use when someone wants to host Kev, get a Kev API URL, replace Jev / TypeSafe calls with a self-hosted model, pick a Kev size or GPU, add an API key, keep an endpoint warm, or stop and remove a Kev deployment.
repo: jaredpalmer/kev
인기도
- GitHub 스타
- 9.8k
- 순위
- #12211
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
unslop
9.8k정해진 표현, 과다한 엠대시, 모호한 주장처럼 AI가 쓴 듯한 패턴을 글에서 없애고, 뜻은 유지한 채 평이하게 다시 씁니다.
kev-finetune
9.8k에이전트가 라벨된 예시로 Kev 모델을 미세 조정하고, 보정된 엔드포인트를 배포해 개선 효과를 측정하도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.