kev-deploy
O que ela faz
Esta skill configura o modelo de decisão Kev como um endpoint web privado no Modal, com um único comando, e o conecta ao seu código. É para desenvolvedores que querem rodar esse modelo por conta própria em vez de usar um serviço hospedado.
Quando usar
- ✓Quando você quer hospedar o Kev como sua própria API, em vez de usar um serviço hospedado.
- ✓Quando precisa escolher o tamanho do modelo ou a GPU de uma implantação do Kev.
- ✓Quando quer adicionar uma chave de API, manter o endpoint aquecido, ou parar e remover uma implantação.
Link da skill
https://github.com/jaredpalmer/kev/blob/main/skills/kev-deploy/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Implante o modelo Kev no Modal como meu próprio endpoint e me mostre como chamá-lo a partir do meu app.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill verifica se o Modal está configurado, escolhe um tamanho de modelo da lista por velocidade e custo e implanta um pequeno app que serve a API de decisão padrão. Você faz login no Modal por conta própria, e a skill então informa o endereço do endpoint e os passos para conectar seu código.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Quem precisa fazer login no Modal?
Você. A skill pede que você rode a etapa de login por conta própria.
O endpoint custa dinheiro quando fica ocioso?
O app foi projetado para escalar a zero quando fica ocioso, e o guia informa o custo por hora enquanto estiver rodando.
Posso mantê-lo rápido o tempo todo?
Sim. A skill pode manter um endpoint aquecido, o que evita inícios lentos, mas o deixa rodando.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 9,8 mil
- Posição no ranking
- #12211
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
unslop
9,8 milRemove padrões de cara de IA de qualquer texto, como frases prontas, travessões em excesso e afirmações vagas. Reescreve de forma simples, mantendo o sentido.
kev-finetune
9,8 milAjuda seu agente a fazer ajuste fino do modelo de decisão aberto Kev com seus exemplos rotulados, implantar um endpoint calibrado e medir o ganho.
Skills parecidas
add-model-provider
394 milPermite que seu agente conecte um novo provedor de modelos de IA ao OpenClaw com comandos seguros, guarde as chaves de API com segurança e faça um teste ao vivo.
acp-router
394 milAjuda seu agente a enviar uma tarefa a um assistente de programação, como Claude Code ou Cursor, pelo OpenClaw, para que o trabalho rode nessa ferramenta.
browser-automation
394 milEnsina seu agente a controlar páginas web passo a passo, incluindo logins, abas e recuperação quando uma página para de responder.