jetson-inference-mem-tune
Pick the serving stack and per-runtime memory flags (vLLM, SGLang, llama.cpp, TensorRT Edge-LLM) for an LLM/VLM workload on any NVIDIA Jetson.
от nvidia1 276 установок в других каталогах
Установить jetson-inference-mem-tune в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Jetson Inference Memory Tuning
Recommends an inference runtime and the specific memory-related flags to pass to it, given the Jetson SKU/variant and the user's workload. Does not include quantization recipe selection — that lives in the model-benchmarking skill — but it does point at the precision floor each runtime can serve efficiently.
Purpose
Turn a live jetson-memory-audit snapshot into runtime and launch-flag recommendations for LLM/VLM serving on Jetson. Use this when the user needs to fit a model, reduce OOM risk, or switch to a lower-memory serving stack.
When to use
- "Which serving stack should I use on Orin Nano 8 GB to run a 7B model?"
- "vLLM is OOMing — what should
--gpu-memory-utilizationand--max-model-lenbe?" - "Same model, less memory — can I switch from vLLM to llama.cpp?"
- After
jetson-memory-auditshows a model server is the top NvMap / PSS consumer.
Prerequisites
- Start with a current
jetson-memory-audit/scripts/audit.shJSON snapshot from the target Jetson. - Know the intended workload:
llm-server,vlm-server,embedding, orrag. - If the user gives a desired free-memory target, pass it as
--target-mb; otherwise let the script use SKU defaults.
Available Scripts
| Script | Purpose | Arguments |
|---|---|---|
scripts/recommend.py |
Reads an audit JSON and emits runtime plus launch-flag recommendations. | --audit PATH, --runtime, --workload, --target-mb, --human. |
If your agent runtime supports run_script, invoke run_script("scripts/recommend.py", ["--audit", "/tmp/audit.json", "--runtime", "auto", "--workload", "llm-server"]) and summarize the returned JSON. Otherwise run it with python3 from the repository root.
Instructions
- Run
jetson-memory-audit/scripts/audit.shto capture the device baseline. - Run
scripts/recommend.py --audit /tmp/audit.json --runtime auto --workload llm-server --target-mb 6000to get a JSON of runtime + flag recommendations. - The agent presents the suggested runtime and the exact CLI flags. The user (or an outer agent) launches / restarts the server with those flags.
- Re-run the audit to verify.
Expected workflow
Use scripts/recommend.py for the specific prompt and answer from the JSON it emits. If direct execution is blocked, run it as python3 {baseDir}/scripts/recommend.py ....
- For vLLM OOM prompts, run with
--runtime vllm --workload llm-serverand include concrete--gpu-memory-utilization=<0.x>and--max-model-len=<number>values fromlaunch_flags. - For "lowest memory" or Orin Nano 8 GB prompts, run with
--runtime auto --workload llm-server; prefer the runtime in the JSON and explicitly mention the GGUF / 4-bit tradeoff when it selectsllama-cpp. - For SGLang prompts, run with
--runtime sglangand quote--mem-fraction-static,--max-running-requests, and any context/KV-cache note. - For "switch from vLLM to llama.cpp" prompts, run with
--runtime llama-cppand quote-ngl,-c, and--no-mmap.
Limitations
- Recommendations are only as fresh as the audit JSON. Re-run
jetson-memory-auditafter stopping services, changing power mode, or restarting model servers. - The script estimates memory pressure from SKU defaults and audit totals; model-specific KV-cache, quantization, and tokenizer behavior can still require benchmarking.
- This skill emits flags only. It does not start, stop, or restart model servers.
Error handling
- Exit
2: the audit JSON could not be read, parsed, or did not contain valid numeric memory fields. Ask the user to rerunjetson-memory-audit/scripts/audit.sh. - Exit
3: unsupported runtime or workload request. Re-run with one of the--runtimeand--workloadvalues listed inscripts/recommend.py --help. - Empty or missing
launch_flags: do not invent fallback flags. Report the script failure and ask for a fresh audit or a supported runtime.
Output contract for recommend.py
{
"sku": "orin-nx",
"variant": "orin-nx-16gb",
"mem_total_gb": 16,
"runtime": "vllm",
"rationale": "Highest throughput at this memory budget given continuous batching + paged attention.",
"launch_flags": [
"--gpu-memory-utilization=0.55",
"--max-model-len=4096",
"--max-num-seqs=8",
"--enable-prefix-caching"
],
"alternatives": [
{ "runtime": "llama-cpp", "rationale": "Lower memory floor with GGUF Q4_K_M.", "launch_flags": ["-ngl 28", "-c 4096", "--no-mmap"] }
],
"notes": ["Lower --gpu-memory-utilization further if you also run a small VLM alongside."]
}
Runtimes covered
| Runtime | Best for | Key memory knobs | Preferred install path |
|---|
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл jetson-inference-mem-tune?
Pick the serving stack and per-runtime memory flags (vLLM, SGLang, llama.cpp, TensorRT Edge-LLM) for an LLM/VLM workload on any NVIDIA Jetson.
Как установить скилл jetson-inference-mem-tune?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл jetson-inference-mem-tune запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…