Loading...
Loading...
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.
npx skill4agent add nvidia/skills jetson-inference-mem-tunejetson-memory-audit--gpu-memory-utilization--max-model-lenjetson-memory-auditjetson-memory-audit/scripts/audit.shllm-servervlm-serverembeddingrag--target-mb| Script | Purpose | Arguments |
|---|---|---|
| Reads an audit JSON and emits runtime plus launch-flag recommendations. | |
run_scriptrun_script("scripts/recommend.py", ["--audit", "/tmp/audit.json", "--runtime", "auto", "--workload", "llm-server"])python3jetson-memory-audit/scripts/audit.shscripts/recommend.py --audit /tmp/audit.json --runtime auto --workload llm-server --target-mb 6000scripts/recommend.pypython3 {baseDir}/scripts/recommend.py ...--runtime vllm --workload llm-server--gpu-memory-utilization=<0.x>--max-model-len=<number>launch_flags--runtime auto --workload llm-serverllama-cpp--runtime sglang--mem-fraction-static--max-running-requests--runtime llama-cpp-ngl-c--no-mmapjetson-memory-audit2jetson-memory-audit/scripts/audit.sh3--runtime--workloadscripts/recommend.py --helplaunch_flagsrecommend.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."]
}| Runtime | Best for | Key memory knobs | Preferred install path |
|---|---|---|---|
| llama.cpp | Tightest budget; GGUF; Orin Nano-class | | |
| vLLM | High-throughput serving with continuous batching | | Thor and Orin JetPack 7.2 / L4T r39+: upstream vLLM 0.20+ ( |
| SGLang | Programmable workflows (RAG, tool use, structured output) | | Thor: NVIDIA SGLang 26.01 ( |
| TensorRT Edge-LLM | NVIDIA-tuned production serving | Build profile per SKU; paged-KV; KV reuse | Vendor docs for the target JetPack |
For Orin JetPack 7.2 / L4T r39+, upstream vLLM 0.20+ is supported. For older Orin releases, prefer NVIDIA-AI-IOT prebuilt vLLM images where available because they ship the matching CUDA/cuDNN/TensorRT stack for JetPack. For Thor, prefer upstream vLLM 0.20+ () or a validated native vLLM 0.20+ install; for SGLang use NVIDIA SGLang 26.01 (vllm/vllm-openai, SGLang 0.5.5.post2) or newer NVIDIA SGLang release notes that explicitly list Jetson Thor support. Do not force an Orin-specific Jetson container path on Thor, and do not assume native upstream SGLang support on Orin.nvcr.io/nvidia/sglang:26.01-py3
| Runtime family | Jetson family | First choice | Fallback |
|---|---|---|---|
| vLLM / SGLang | Thor | NVFP4 when the model/runtime supports it | W4A16 |
| vLLM / SGLang | Orin Nano / NX | W4A16 | AWQ or GPTQ 4-bit |
| vLLM / SGLang | AGX Orin | W4A16 | AWQ or GPTQ 4-bit |
| llama.cpp / Ollama | Orin and Thor | GGUF INT4 / Q4_K_M | Smaller INT4 GGUF model if memory is tight |
quantrecommend.pylaunch_flagsvllm/vllm-openai:latestdocker run --rm -it --runtime nvidia --network host --name vllm \
-v "$HOME/.cache/huggingface:/root/.cache/huggingface" \
-e HF_TOKEN="$HF_TOKEN" \
ghcr.io/nvidia-ai-iot/vllm:latest-jetson-orin \
vllm serve <hf-model-id-or-local-path> \
--host 0.0.0.0 \
--port 8000 \
--gpu-memory-utilization 0.60 \
--max-model-len 4096 \
--max-num-seqs 8 \
--enable-prefix-cachingvllm/vllm-openai:latestdocker run --rm -it --runtime nvidia --network host --ipc host --name vllm \
-v "$HOME/.cache/huggingface:/root/.cache/huggingface" \
-e HF_TOKEN="$HF_TOKEN" \
vllm/vllm-openai:latest \
vllm serve <hf-model-id-or-local-path> \
--host 0.0.0.0 \
--port 8000 \
--gpu-memory-utilization 0.75 \
--max-model-len 8192 \
--max-num-seqs 32 \
--enable-prefix-cachingnvcr.io/nvidia/sglang:26.01-py30.5.5.post2gpt-ossdocker run --rm -it --runtime nvidia --network host --ipc host --name sglang \
-v "$HOME/.cache/huggingface:/root/.cache/huggingface" \
-e HF_TOKEN="$HF_TOKEN" \
nvcr.io/nvidia/sglang:26.01-py3 \
python3 -m sglang.launch_server \
--model-path <hf-model-id-or-local-path> \
--host 0.0.0.0 \
--port 8000 \
--mem-fraction-static 0.60 \
--max-running-requests 8llama-serverdocker run --rm -it --runtime nvidia --network host --name llama-cpp \
-v "$PWD/models:/models:ro" \
ghcr.io/nvidia-ai-iot/llama_cpp:latest-jetson-<orin-or-thor> \
llama-server \
-m /models/<model>.gguf \
--host 0.0.0.0 \
--port 8000 \
-ngl 28 \
-c 4096 \
--no-mmap \
--flash-attngpu-memory-utilizationn-gpu-layersctx-sizejetson-memory-audit