Deploy Kev on Modal
Your own Kev endpoint, speaking TypeSafe's System One protocol, in three commands. It scales to zero when idle, so an unused endpoint costs nothing.
pip install modal==1.5.5 && modal setup # once: sign in to Modal in the browser
curl -LO https://raw.githubusercontent.com/jaredpalmer/kev/main/skills/kev-deploy/scripts/kev_serve.py
KEV_API_KEY=$(openssl rand -hex 24) modal deploy kev_serve.pyThe deploy prints https://<your-workspace>--kev-api.modal.run. Keep the key: requests need
Authorization: Bearer <key>. Point any TypeSafe client at the URL:
client = TypeSafeClient(api_key=KEV_API_KEY, base_url="https://<your-workspace>--kev-api.modal.run", model="kev-latest")| Model | Set | GPU ($/h while up) | Warm model time, 6 questions (new / repeated state) | First request after idle |
|---|---|---|---|---|
| Kev-0.8B | KEV_MODEL=jaredpalmer/kev-0.8b |
L4 (0.80) | 23 / 16 ms | ~40 s |
| Kev-4B (default) | nothing | L40S (1.95) | 42 / 28 ms | ~35 s |
| Kev-9B | KEV_MODEL=jaredpalmer/kev-9b |
H100 (3.95) | 24 / 17 ms | ~55 s |
| Kev-27B | KEV_MODEL=jaredpalmer/kev-27b |
B200 (6.25) | 47 / 32 ms | ~50 s |
Concurrent requests are batched in each container (Kev-4B: about 100 requests/s on an H100 in-process). Modal's ordinary
web endpoint retains its 64-request limit and 32-request autoscaling target: raising its limit or scaling target
reduced throughput in the HTTP pilot. KEV_FLASH=1 (with KEV_REGION=us-east,
or another supported routing region) uses a Modal Server to bypass the Function input plane, targeting 64 concurrent
requests per container (formerly 32). It remains opt-in and keeps at least one paid GPU warm; it does not scale to zero.
Bearer authentication and the System One API are unchanged. See the paired HTTP measurements
and deployment details. Increasing a concurrency limit alone is not a latency guarantee.
The round trip adds the network and Modal's proxy (about 80-100 ms on the ordinary web endpoint from a US client with a
kept-alive connection; direct mode can be lower); KEV_REGION=us keeps the ordinary web endpoint near US callers. The very first deploy also downloads the weights and
compiles kernels (1-2 minutes; several minutes for Kev-27B's 51 GB); later cold starts reuse the cache.
KEV_MIN_CONTAINERS=1 keeps it warm; modal app stop kev takes it down. With an agent, npx skills add jaredpalmer/kev@kev-deploy and ask it to deploy Kev; it follows SKILL.md. modal skills install adds
Modal's own agent skill and docs alongside it, for anything beyond this file (GPUs, secrets, logs, billing).