
Krauncher analyzer
io.github.Ilya-a-sergeyev-ger由 GitHub 帳號 Ilya-a-sergeyev-ger 發布v0.5.0更新於 Nov 10, 2026
How long a GPU job will run and cost, before running it — static code analysis, never executed.
概覽
透過靜態分析 Python 程式碼(不執行),在執行前估算遠端 GPU 任務的耗時與費用。
- 可以做什麼
- 靜態分析 Python 訓練腳本,估算 GPU 執行時間與費用,無需送出任務
- 對程式碼進行分類,選擇 VRAM 等級或 GPU 型號,並比較各 GPU 的預測時間與費用
- 檢視已完成任務的狀態、各階段耗時、分類、費用、GPU 規格、峰值 VRAM 與使用率
- 在遠端 GPU 上執行程式碼或裝飾函式,取回結果、日誌與產出檔案
- 將相關任務歸到同一台熱機,並在任務間傳入或取回資料集與檔案
- 適用情境
- 當你已有可執行的本機 Python 訓練或推論腳本,想在花錢使用遠端 GPU 前先了解耗時與費用,或希望由助理為任務挑選合適的 GPU 時適用。
- 執行需求
- 以本機 Python 程序執行(需 Python 3.11+)。可透過環境變數 KRAUNCHER_API_KEY 提供選用的 Krauncher API 金鑰;未提供時使用公開分析器,依 IP 有每日配額。需要連線至 Krauncher 服務的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Krauncher analyzer,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Krauncher
Run your training script on a remote GPU. Nothing more.
Krauncher is a minimal Python library for researchers who have a working local script and need a GPU — not a platform.
Website & API keys: krauncher.com
Quickstart
Requires Python 3.11+.
The decorated function becomes async: calling it submits the task and
returns a TaskHandle; awaiting the handle (or await handle.wait(...))
returns a TaskResult.
Using an LLM / coding agent? Read AGENTS.md — a single accurate reference of the API, parameters, result fields, errors and constraints. Runnable examples live in tutorial/.
The problem with serverless ML platforms
Serverless orchestration platforms are genuinely impressive pieces of infrastructure. They handle container builds, secret management, artifact storage, scheduling, persistent volumes, and team dashboards.
They also charge you for all of it — whether you use it or not.
If you're fine-tuning a small model, running ablations, or iterating on a research experiment with a dataset under 2 GB, you're likely paying for an orchestration layer you don't need.
Krauncher does less, on purpose. It runs your existing Python function on a remote GPU, returns the result, and gets out of the way.
What Krauncher is (and isn't)
Good fit:
- Fine-tuning, LoRA, small-scale experiments with training datasets up to ~2 GB
- Researchers who already have a working local script
- Anyone tired of rewriting their code to fit a platform's abstractions
- Teams where "infrastructure" means one person and a credit card
Not the right tool if:
- You need managed versioned artifact storage
- Your team requires persistent shared volumes across runs
- Your dataset is hundreds of GBs with complex multi-node sharding
- You want a UI dashboard for experiment tracking
How it works
Add a decorator. Await your function. Get a result. Your existing code doesn't change — no base images, no volume mounts, no platform imports.
The decorated function is async — always call it from an
asynccontext andawaitthe handle (which submits and waits). See the Quickstart for the canonical shape.
Choosing a GPU
Leaving vram_gb unset is the recommended default — Krauncher analyzes your
code statically and sizes the GPU automatically.
Security model
Krauncher doesn't store anything. Your API key and training code are encrypted on your machine before leaving it, and decrypted only inside the ephemeral worker. The relay that routes your jobs cannot read the payload — it doesn't have the keys.
Storage keys are part of that: the S3 / HuggingFace credentials a task needs
(AWS_*, HF_TOKEN) are read from your environment and travel sealed inside
the same payload as the code, straight to the worker. Set
CAS_SEND_CREDENTIALS=false to attach none.
This isn't a feature we added. It's a consequence of not wanting to be in the data custody business. E2E encryption is mandatory — there is no opt-out.
Data locality
Tasks with the same group_id are routed to the same physical host, so
whatever your first run downloaded to local NVMe is still there for the next.
For larger or registered datasets, use the data bridge (data_urls= /
data=), which downloads into /data inside the sandbox — see
tutorial/06 and
tutorial/15.
Beyond a single function
- Notebook / editor cells.
await client.run_code(code, inputs={...}, outputs=[...])runs a code string instead of a decorated function: named local values go in, named variables come back (JSON-safe, 16 MB budget). This is the primitive thekrauncher-jupyter%%kraunchermagic is built on. See tutorial/50. - Multi-phase runs.
group = await client.group(task_a, task_b)derives a shared-requirements envelope (VRAM floor, GPU pins, disk) from the tasks and keeps them on one warm worker; submit withawait group.submit(task, ...). See tutorial/52. - Files in, files out. Pass
files={"input.csv": b"..."}when calling the task and setartifacts=Trueto get back what it wrote beside itself (result.artifacts,result.download("received")). Both directions ride the encrypted payload — no storage to configure. See tutorial/54. - Price it before you run it. Analysis and execution are separate phases:
await client.estimate_code(code, ...)returns the classification without submitting, andrun_code(code, ..., classification=...)then executes without a second analysis.CAS_ESTIMATE_ONLY=truedoes the same for decorated tasks;POST /api/estimatereturns per-GPU predicted time and cost.
Inspecting a finished task
After a task completes, the broker keeps a structured record — the same one the web UI renders on the task detail page.
get_task returns status, timing breakdown (queue / download / pip / setup /
execution), classification, costs, GPU and worker specs, and the result.
get_task_report adds an extended report field: peak/average GPU
utilization, peak VRAM, the actual GPU's hardware specs, and an estimated
time/cost comparison across all known GPUs at the worker's measured host
capabilities. It is intended as feedback for an LLM author of the user
code — pure data, no interpretation.
Examples
Numbered, runnable tutorials in tutorial/:
Install
Requires Python 3.11+.
License
MIT
來源:README.md,提交 d933b59
工具
0版本歷史
1- v0.5.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分