kev-deploy
यह क्या करती है
यह स्किल Kev निर्णय मॉडल को एक कमांड से Modal पर निजी वेब एंडपॉइंट के रूप में सेट करती है, और उसे आपके कोड से जोड़ती है। यह उन डेवलपर्स के लिए है जो होस्ट की गई सेवा की बजाय यह मॉडल खुद चलाना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप Kev को होस्ट की गई सेवा की बजाय अपने API के रूप में चलाना चाहें।
- ✓जब आपको Kev डिप्लॉयमेंट के लिए मॉडल का आकार या GPU चुनना हो।
- ✓जब आप API कुंजी जोड़ना, एंडपॉइंट गर्म रखना, या डिप्लॉयमेंट रोककर हटाना चाहें।
Skill का लिंक
https://github.com/jaredpalmer/kev/blob/main/skills/kev-deploy/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Kev मॉडल को Modal पर मेरे अपने एंडपॉइंट के रूप में डिप्लॉय कीजिए, और दिखाइए कि मेरे ऐप से उसे कैसे कॉल करूँ।”
हर हफ़्ते 5 नई skills, 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 में साइन इन कौन करता है?
आप खुद। स्किल आपसे साइन-इन चरण खुद चलाने को कहती है।
क्या निष्क्रिय होने पर एंडपॉइंट का पैसा लगता है?
ऐप निष्क्रिय होने पर शून्य तक स्केल होने के लिए बना है, और गाइड चलने के दौरान का प्रति घंटा खर्च बताती है।
क्या मैं इसे हमेशा तेज़ रख सकता हूँ?
हाँ। स्किल एंडपॉइंट को गर्म रख सकती है, जिससे धीमी शुरुआत नहीं होती, पर वह लगातार चलता रहता है।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
unslop
9.8kकिसी भी टेक्स्ट से AI जैसे पैटर्न हटाती है, जैसे घिसे-पिटे वाक्यांश, ज़रूरत से ज़्यादा डैश और धुंधले दावे। अर्थ वही रखते हुए टेक्स्ट को सादे ढंग से दोबारा लिखती है।
kev-finetune
9.8kआपके एजेंट को आपके अपने लेबल वाले उदाहरणों पर खुले Kev निर्णय मॉडल को फ़ाइन-ट्यून करने में मदद करती है, फिर एक कैलिब्रेटेड एंडपॉइंट डिप्लॉय करके सुधार नापती है।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।