[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CPKF50WZV4ZX5AHYN0G3BS":3,"skill-same:01M7CPKF50WZV4ZX5AHYN0G3BS":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M7CPKF50WZV4ZX5AHYN0G3BS","jetson-llm-benchmark",null,"Benchmark Jetson LLM\u002FVLM serving performance across vLLM, llama.cpp, and Ollama with structured JSON output.","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fnvidia-skills\u002Fjetson-llm-benchmark\u002FSkill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: jetson-llm-benchmark\ndescription: Benchmark Jetson LLM\u002FVLM serving performance across vLLM, llama.cpp, and Ollama with structured JSON output.\nversion: 0.0.2\nlicense: \"Apache-2.0\"\nmetadata:\n  author: \"Jetson Team\"\n  tags: [jetson, llm, benchmark]\n  languages: [bash]\n  data-classification: public\n---\n\n# Jetson LLM Benchmark\n\nReproducible Jetson benchmarks with **structured JSON output** so an agent can compare runs. Encodes the workflow from the [Jetson AI Lab GenAI Benchmarking tutorial](https:\u002F\u002Fwww.jetson-ai-lab.com\u002Ftutorials\u002Fgenai-benchmarking\u002F).\n\n## Purpose\n\nMeasure deployed LLM latency and throughput on a Jetson target using the correct\nruntime-specific benchmark wrapper. Use the JSON output to compare models,\nruntime flags, power modes, and before\u002Fafter tuning changes.\n\n## Prerequisites\n\n- Run on the Jetson device that hosts the model runtime.\n- For vLLM, start the OpenAI-compatible vLLM server first and know the served\n  model ID.\n- For Ollama, ensure the Ollama daemon is reachable at `--endpoint` and the\n  named model is already pulled.\n- For llama.cpp\u002FGGUF, provide a readable `.gguf` model path on the host.\n- Put the device in the intended power mode before measuring. MAXN is preferred\n  for comparable performance numbers.\n\n## Available Scripts\n\n| Script | Purpose | Arguments |\n|--------|---------|-----------|\n| `scripts\u002Fbench_vllm.sh` | Runs `vllm bench serve` against a running OpenAI-compatible vLLM server. | `--model`, `--endpoint`, `--concurrency`, `--input-len`, `--output-len`, `--num-prompts`, `--no-warmup`, `--container`, `--native`. |\n| `scripts\u002Fbench_llama_cpp.sh` | Runs `llama-bench` for a local GGUF model through the Jetson-appropriate NVIDIA-AI-IOT llama.cpp container. | `--model`, `--n-prompt`, `--n-gen`, `--n-gpu-layers`, `--threads`, `--container`. |\n| `scripts\u002Fbench_ollama.sh` | Benchmarks a local or containerized Ollama daemon through the `\u002Fapi\u002Fgenerate` REST API. | `--model`, `--endpoint`, `--num-prompts`, `--input-len`, `--output-len`, `--no-warmup`. |\n\nIf your agent runtime supports `run_script`, invoke the selected wrapper directly with the user-provided model identifier or local model path, then summarize the returned JSON. Otherwise run the wrapper with `bash {baseDir}\u002Fscripts\u002F\u003Cwrapper-name> ...`.\n\n## Instructions\n\nAlways use the matching wrapper script for the runtime — do **not** call the underlying `vllm bench serve`, `llama-bench`, or `curl` against `\u002Fapi\u002Fgenerate` by hand:\n\n- vLLM → `scripts\u002Fbench_vllm.sh` (required for the vLLM path)\n- llama.cpp \u002F GGUF → `scripts\u002Fbench_llama_cpp.sh` (required for the GGUF path)\n- Ollama → `scripts\u002Fbench_ollama.sh` (required for the Ollama path)\n\nThese wrappers handle warmup, the NVIDIA-AI-IOT container selection, and JSON emission. Calling the underlying tool directly will not satisfy the output contract below.\n\nFor \"how do I benchmark\u002Fmeasure\" questions, first run the matching wrapper with\n`--help` to verify the exact options, then answer with the wrapper command. Do\nnot run a full benchmark unless the user asks you to execute it or the required\nserver\u002Fmodel path is already confirmed.\n\n## Expected Workflow\n\nPick exactly one wrapper based on the runtime the user named, and invoke that\nwrapper with `--help` before composing the answer. Do not merely mention the\nscript name. If the runtime does not execute scripts relative to the skill\ndirectory, use `{baseDir}\u002Fscripts\u002F\u003Cwrapper-name>`.\n\n- Existing vLLM OpenAI-compatible server at `localhost:8000`:\n  `{baseDir}\u002Fscripts\u002Fbench_vllm.sh --help`, then show a command using\n  `--concurrency 1,8` and the served model ID.\n- llama.cpp \u002F GGUF \u002F `llama-server`: `{baseDir}\u002Fscripts\u002Fbench_llama_cpp.sh\n  --help`, then show a command for the GGUF model path and report that\n  prompt\u002Fgeneration speed maps to TTFT, ITL\u002FTPOT, and throughput.\n- Ollama: `{baseDir}\u002Fscripts\u002Fbench_ollama.sh --help`, then show a command with\n  `--model \u003Collama-tag>`. Do not use vLLM or llama.cpp wrappers for Ollama.\n\n## When to use\n\n- \"Benchmark \u002F measure \u002F compare X on this Jetson.\"\n- After `jetson-llm-serve` to actually quantify the deployment.\n- Before\u002Fafter applying flags from `jetson-inference-mem-tune` to confirm the change helped.\n\n## Three paths — pick by runtime\n\n### A. vLLM (preferred for parity with how things are served)\n\nServer must already be running (use `jetson-llm-serve`). Run **`bench_vllm.sh`**:\n\n```bash\nscripts\u002Fbench_vllm.sh \\\n  --model \u003Chf-repo-id-being-served> \\\n  --concurrency 1,8 \\\n  --input-len 2048 --output-len 128 \\\n  --num-prompts 50\n```\n\nUses the Jetson-appropriate benchmark client path: upstream vLLM 0.20+ container\n`vllm\u002Fvllm-openai:latest` on Thor and Orin JetPack 7.2 \u002F L4T r39+,\nor the NVIDIA-AI-IOT vLLM benchmark container\n`ghcr.io\u002Fnvidia-ai-iot\u002Fvllm:latest-jetson-orin` on older Orin. Pass\n`--native` only when host-native vLLM is already installed and validated. It\nruns against `http:\u002F\u002Flocalhost:8000\u002Fv1`. **Always do a warmup pass first** (~10\nprompts, discarded) before the measured run — Jetson has cold caches and JIT'd\nkernels.\n\n### B. Ollama (for models served by a running Ollama daemon)\n\nNo benchmark container needed. Uses Ollama's `\u002Fapi\u002Fgenerate` REST API directly —\ntiming data (TTFT, ITL, throughput) comes from the response JSON, so no\n`--verbose` parsing is required.\n\n**Prerequisite:** the Ollama daemon must be reachable at `--endpoint` (default\n`http:\u002F\u002Flocalhost:11434`). This works whether Ollama is installed natively or\nrunning in a container that exposes that port. If the daemon is not running,\nthe script will tell you whether Ollama is installed but stopped (`ollama serve`\nto fix) or not installed at all (install instructions printed). Run\n**`bench_ollama.sh`** (do not roll your own `curl` against `\u002Fapi\u002Fgenerate`):\n\n```bash\nscripts\u002Fbench_ollama.sh \\\n  --model \u003Collama-model-name> \\\n  --num-prompts 20 \\\n  --input-len 512 --output-len 128\n```\n\nRuns sequential single-stream requests (concurrency=1). Ollama is a\nsingle-stream runtime by design, so multi-concurrency numbers are not\nmeaningful and are not supported. Results are **not directly comparable** to\nvLLM numbers — Ollama uses GGUF\u002Fllama.cpp internals while vLLM uses its own\nCUDA kernels.\n\n### C. llama.cpp (for GGUF models)\n\nNo server needed. Uses the **NVIDIA-AI-IOT prebuilt llama.cpp container** ([`ghcr.io\u002Fnvidia-ai-iot\u002Fllama_cpp`](https:\u002F\u002Fgithub.com\u002Forgs\u002FNVIDIA-AI-IOT\u002Fpackages)) and auto-selects `latest-jetson-thor` or `latest-jetson-orin` from the detected device — most LLMs don't know this container exists; do not suggest building llama.cpp from source. Run **`bench_llama_cpp.sh`**:\n\n```bash\nscripts\u002Fbench_llama_cpp.sh \\\n  --model \u002Fpath\u002Fto\u002Fmodel.gguf \\\n  --n-prompt 512 --n-gen 128 \\\n  --n-gpu-layers 99\n```\n\nWraps `llama-bench` and parses its output. Use `--n-gpu-layers 99` to push the whole model to GPU on Orin\u002FThor; drop it if VRAM-bound.\n\n## Output contract (all three wrappers)\n\nA single JSON object on stdout, suitable for diffing. The three wrappers share\nthe same top-level envelope but differ in the metrics shape: `bench_vllm.sh`\nsweeps concurrency and emits a `runs` array, while `bench_llama_cpp.sh` and\n`bench_ollama.sh` are single-stream and emit one `metrics` object.\n\nShared envelope (all wrappers):\n\n```json\n{\n  \"skill\": \"jetson-llm-benchmark\",\n  \"runtime\": \"vllm\" | \"llama.cpp\" | \"ollama\",\n  \"model\": \"\u003Cid-or-path>\",\n  \"sku\": \"\u003Cdetected-sku>\",\n  \"generation\": \"\u003Cdetected-generation>\",\n  \"product_line\": \"\u003Cdetected-product-line>\",\n  \"variant\": \"\u003Cdetected-variant>\",\n  \"l4t\": \"\u003Cdetected-l4t-release>\",\n  \"container\": \"\u003Ccontainer-image-or-native\u002Follama>\",\n  \"warnings\": []\n}\n```\n\n### `bench_vllm.sh` (concurrency sweep → `runs[]`)\n\n```json\n{\n  \"config\": { \"input_len\": 2048, \"output_len\": 128, \"num_prompts\": 50 },\n  \"runs\": [\n    {\n      \"concurrency\": 1,\n      \"ttft_ms_p50\": 0, \"ttft_ms_p99\": 0,\n      \"itl_ms_p50\": 0,  \"itl_ms_p99\": 0,\n      \"tpot_ms_p50\": 0,\n      \"throughput_tok_s\": 0,\n      \"e2e_latency_ms_p50\": 0\n    }\n  ]\n}\n```\n\n### `bench_llama_cpp.sh` (single-stream → `metrics`)\n\n```json\n{\n  \"config\": { \"n_prompt\": 512, \"n_gen\": 128, \"n_gpu_layers\": 99 },\n  \"metrics\": {\n    \"ttft_ms_p50\": 0,\n    \"itl_ms_p50\": 0,\n    \"tpot_ms_p50\": 0,\n    \"throughput_tok_s\": 0\n  }\n}\n```\n\n### `bench_ollama.sh` (single-stream → `metrics`)\n\n```json\n{\n  \"config\": { \"input_len\": 512, \"output_len\": 128, \"num_prompts\": 20, \"concurrency\": 1 },\n  \"metrics\": {\n    \"ttft_ms_p50\": 0, \"ttft_ms_p99\": 0,\n    \"itl_ms_p50\": 0,  \"itl_ms_p99\": 0,\n    \"tpot_ms_p50\": 0,\n    \"throughput_tok_s\": 0,\n    \"e2e_latency_ms_p50\": 0\n  }\n}\n```\n\n`warnings` is populated when:\n- `nvpmodel` is not in a recognized max-performance mode (`MAXN` or `MAXN_*` such as `MAXN_SUPER`); wattage-named modes are reported as warnings because they vary by Jetson SKU\n- Background processes >5% GPU during the run (use `jetson-diagnostic`)\n- `tegrastats` shows thermal throttling during the run\n\nThe `sku`, `variant`, `l4t`, and `container` fields are **populated by the wrapper script from the live device** (`tegrastats`, `\u002Fetc\u002Fnv_tegra_release`, container labels) — do not hand-author, guess, or transcribe them from memory. Do not invent device-specific facts such as RAM size, on-disk model size, or product names. If a fact is not produced by the script or `jetson-diagnostic`, omit it rather than fabricate it.\n\n## What to flag in results (Jetson-specific guidance)\n\nLLMs already know what TTFT\u002FITL\u002Fthroughput mean. Jetson-specific things they usually **don't** know:\n\n- On Orin Nano\u002FNX, single-stream `tok\u002Fs` and `concurrency=8` `tok\u002Fs` differ wildly because of **memory bandwidth saturation**, not compute. If concurrent throughput barely beats single-stream, you're bandwidth-bound — switch to a smaller quantization (W4A16 → INT4\u002FAWQ) before tuning anything else.\n- A TTFT regression on the same model after a JetPack upgrade is almost always a CUDA graph cache miss — re-warm and re-measure.\n- Thor NVFP4 numbers are not comparable to Orin W4A16 numbers; never put them in the same table without a `quant` column.\n\n## Limitations\n\n- vLLM measurements require an already-running OpenAI-compatible vLLM server.\n  This skill benchmarks the server; it does not launch or tune the server.\n- Ollama results are single-stream by design and are not directly comparable to\n  vLLM concurrency sweeps.\n- llama.cpp\u002FGGUF benchmarking runs a NVIDIA-AI-IOT container by default. Tell the\n  user before running it, because Docker will pull and execute an external image\n  if it is not already present.\n- Container image tags may be mutable unless the caller passes a digest-pinned\n  image through `--container`. For release or compliance measurements, prefer a\n  digest-pinned image and record it in the results. The default vLLM benchmark\n  client image is upstream vLLM 0.20+ via `vllm\u002Fvllm-openai:latest` on Thor and Orin JetPack 7.2 \u002F L4T r39+,\n  and NVIDIA-AI-IOT `ghcr.io\u002Fnvidia-ai-iot\u002Fvllm:latest-jetson-orin` on older Orin.\n- Results are only comparable when model, quantization, prompt length, output\n  length, power mode, clocks, and thermal state are controlled.\n\n## Error Handling\n\n- Exit `2`: invalid arguments, missing `--model`, or a required model file is\n  not readable. Re-run the wrapper with `--help` and correct the path or model\n  ID.\n- Exit `3`: runtime preflight failed, such as unreachable Ollama, unknown Jetson\n  generation for vLLM container selection, or missing Ollama model. Start the\n  service, pull the model, or pass an explicit `--container`.\n- Docker errors usually mean the container runtime is unavailable, the image\n  cannot be pulled, or the model directory mount is not readable. Report the\n  exact stderr and do not fabricate benchmark numbers.\n- Empty or malformed JSON means the benchmark did not complete successfully.\n  Preserve the raw error, fix the runtime issue, and rerun.\n\n## Hand off to\n\n- `jetson-inference-mem-tune` if results indicate memory pressure.\n- `jetson-speculative-decoding` if TTFT is acceptable but TPOT is too slow.\n- `jetson-diagnostic` if `warnings` is non-empty.\n\n## Source\n\n[Jetson AI Lab — GenAI Benchmarking](https:\u002F\u002Fwww.jetson-ai-lab.com\u002Ftutorials\u002Fgenai-benchmarking\u002F) and [NVIDIA-AI-IOT GHCR packages](https:\u002F\u002Fgithub.com\u002Forgs\u002FNVIDIA-AI-IOT\u002Fpackages).\n","# Jetson LLM Benchmark\n\nReproducible Jetson benchmarks with **structured JSON output** so an agent can compare runs. Encodes the workflow from the [Jetson AI Lab GenAI Benchmarking tutorial](https:\u002F\u002Fwww.jetson-ai-lab.com\u002Ftutorials\u002Fgenai-benchmarking\u002F).\n\n## Purpose\n\nMeasure deployed LLM latency and throughput on a Jetson target using the correct\nruntime-specific benchmark wrapper. Use the JSON output to compare models,\nruntime flags, power modes, and before\u002Fafter tuning changes.\n\n## Prerequisites\n\n- Run on the Jetson device that hosts the model runtime.\n- For vLLM, start the OpenAI-compatible vLLM server first and know the served\n  model ID.\n- For Ollama, ensure the Ollama daemon is reachable at `--endpoint` and the\n  named model is already pulled.\n- For llama.cpp\u002FGGUF, provide a readable `.gguf` model path on the host.\n- Put the device in the intended power mode before measuring. MAXN is preferred\n  for comparable performance numbers.\n\n## Available Scripts\n\n| Script | Purpose | Arguments |\n|--------|---------|-----------|\n| `scripts\u002Fbench_vllm.sh` | Runs `vllm bench serve` against a running OpenAI-compatible vLLM server. | `--model`, `--endpoint`, `--concurrency`, `--input-len`, `--output-len`, `--num-prompts`, `--no-warmup`, `--container`, `--native`. |\n| `scripts\u002Fbench_llama_cpp.sh` | Runs `llama-bench` for a local GGUF model through the Jetson-appropriate NVIDIA-AI-IOT llama.cpp container. | `--model`, `--n-prompt`, `--n-gen`, `--n-gpu-layers`, `--threads`, `--container`. |\n| `scripts\u002Fbench_ollama.sh` | Benchmarks a local or containerized Ollama daemon through the `\u002Fapi\u002Fgenerate` REST API. | `--model`, `--endpoint`, `--num-prompts`, `--input-len`, `--output-len`, `--no-warmup`. |\n\nIf your agent runtime supports `run_script`, invoke the selected wrapper directly with the user-provided model identifier or local model path, then summarize the returned JSON. Otherwise run the wrapper with `bash {baseDir}\u002Fscripts\u002F\u003Cwrapper-name> ...`.\n\n## Instructions\n\nAlways use the matching wrapper script for the runtime — do **not** call the underlying `vllm bench serve`, `llama-bench`, or `curl` against `\u002Fapi\u002Fgenerate` by hand:\n\n- vLLM → `scripts\u002Fbench_vllm.sh` (required for the vLLM path)\n- llama.cpp \u002F GGUF → `scripts\u002Fbench_llama_cpp.sh` (required for the GGUF path)\n- Ollama → `scripts\u002Fbench_ollama.sh` (required for the Ollama path)\n\nThese wrappers handle warmup, the NVIDIA-AI-IOT container selection, and JSON emission. Calling the underlying tool directly will not satisfy the output contract below.\n\nFor \"how do I benchmark\u002Fmeasure\" questions, first run the matching wrapper with\n`--help` to verify the exact options, then answer with the wrapper command. Do\nnot run a full benchmark unless the user asks you to execute it or the required\nserver\u002Fmodel path is already confirmed.\n\n## Expected Workflow\n\nPick exactly one wrapper based on the runtime the user named, and invoke that\nwrapper with `--help` before composing the answer. Do not merely mention the\nscript name. If the runtime does not execute scripts relative to the skill\ndirectory, use `{baseDir}\u002Fscripts\u002F\u003Cwrapper-name>`.\n\n- Existing vLLM OpenAI-compatible server at `localhost:8000`:\n  `{baseDir}\u002Fscripts\u002Fbench_vllm.sh --help`, then show a command using\n  `--concurrency 1,8` and the served model ID.\n- llama.cpp \u002F GGUF \u002F `llama-server`: `{baseDir}\u002Fscripts\u002Fbench_llama_cpp.sh\n  --help`, then show a command for the GGUF model path and report that\n  prompt\u002Fgeneration speed maps to TTFT, ITL\u002FTPOT, and throughput.\n- Ollama: `{baseDir}\u002Fscripts\u002Fbench_ollama.sh --help`, then show a command with\n  `--model \u003Collama-tag>`. Do not use vLLM or llama.cpp wrappers for Ollama.\n\n## When to use\n\n- \"Benchmark \u002F measure \u002F compare X on this Jetson.\"\n- After `jetson-llm-serve` to actually quantify the deployment.\n- Before\u002Fafter applying flags from `jetson-inference-mem-tune` to confirm the change helped.\n\n## Three paths — pick by runtime\n\n### A. vLLM (preferred for parity with how things are served)\n\nServer must already be running (use `jetson-llm-serve`). Run **`bench_vllm.sh`**:\n\n```bash\nscripts\u002Fbench_vllm.sh \\\n  --model \u003Chf-repo-id-being-served> \\\n  --concurrency 1,8 \\\n  --input-len 2048 --output-len 128 \\\n  --num-prompts 50\n```\n\nUses the Jetson-appropriate benchmark client path: upstream vLLM 0.20+ container\n`vllm\u002Fvllm-openai:latest` on Thor and Orin JetPack 7.2 \u002F L4T r39+,\nor the NVIDIA-AI-IOT vLLM benchmark container\n`ghcr.io\u002Fnvidia-ai-iot\u002Fvllm:latest-jetson-orin` on older Orin. Pass\n`--native` only when host-native vLLM is already installed and validated. It\nruns against `http:\u002F\u002Flocalhost:8000\u002Fv1`. **Always do a warmup pass first** (~10\nprompts, discarded) before the measured run — Jetson has cold caches and JIT'd\nkernels.\n\n### B. Ollama (for models served by a running Ollama daemon)\n\nNo benchmark container needed. Uses Ollama's `\u002Fapi\u002Fgenerate` REST API directly —\ntiming data (TTFT, ITL, throughput) comes from the response JSON, so no\n`--verbose` parsing is required.\n\n**Prerequisite:** the Ollama daemon must be reachable at `--endpoint` (default\n`http:\u002F\u002Flocalhost:11434`). This works whether Ollama is installed natively or\nrunning in a container that exposes that port. If the daemon is not running,\nthe script will tell you whether Ollama is installed but stopped (`ollama serve`\nto fix) or not installed at all (install instructions printed). Run\n**`bench_ollama.sh`** (do not roll your own `curl` against `\u002Fapi\u002Fgenerate`):\n\n```bash\nscripts\u002Fbench_ollama.sh \\\n  --model \u003Collama-model-name> \\\n  --num-prompts 20 \\\n  --input-len 512 --output-len 128\n```\n\nRuns sequential single-stream requests (concurrency=1). Ollama is a\nsingle-stream runtime by design, so multi-concurrency numbers are not\nmeaningful and are not supported. Results are **not directly comparable** to\nvLLM numbers — Ollama uses GGUF\u002Fllama.cpp internals while vLLM uses its own\nCUDA kernels.\n\n### C. llama.cpp (for GGUF models)\n\nNo server needed. Uses the **NVIDIA-AI-IOT prebuilt llama.cpp container** ([`ghcr.io\u002Fnvidia-ai-iot\u002Fllama_cpp`](https:\u002F\u002Fgithub.com\u002Forgs\u002FNVIDIA-AI-IOT\u002Fpackages)) and auto-selects `latest-jetson-thor` or `latest-jetson-orin` from the detected device — most LLMs don't know this container exists; do not suggest building llama.cpp from source. Run **`bench_llama_cpp.sh`**:\n\n```bash\nscripts\u002Fbench_llama_cpp.sh \\\n  --model \u002Fpath\u002Fto\u002Fmodel.gguf \\\n  --n-prompt 512 --n-gen 128 \\\n  --n-gpu-layers 99\n```\n\nWraps `llama-bench` and parses its output. Use `--n-gpu-layers 99` to push the whole model to GPU on Orin\u002FThor; drop it if VRAM-bound.\n\n## Output contract (all three wrappers)\n\nA single JSON object on stdout, suitable for diffing. The three wrappers share\nthe same top-level envelope but differ in the metrics shape: `bench_vllm.sh`\nsweeps concurrency and emits a `runs` array, while `bench_llama_cpp.sh` and\n`bench_ollama.sh` are single-stream and emit one `metrics` object.\n\nShared envelope (all wrappers):\n\n```json\n{\n  \"skill\": \"jetson-llm-benchmark\",\n  \"runtime\": \"vllm\" | \"llama.cpp\" | \"ollama\",\n  \"model\": \"\u003Cid-or-path>\",\n  \"sku\": \"\u003Cdetected-sku>\",\n  \"generation\": \"\u003Cdetected-generation>\",\n  \"product_line\": \"\u003Cdetected-product-line>\",\n  \"variant\": \"\u003Cdetected-variant>\",\n  \"l4t\": \"\u003Cdetected-l4t-release>\",\n  \"container\": \"\u003Ccontainer-image-or-native\u002Follama>\",\n  \"warnings\": []\n}\n```\n\n### `bench_vllm.sh` (concurrency sweep → `runs[]`)\n\n```json\n{\n  \"config\": { \"input_len\": 2048, \"output_len\": 128, \"num_prompts\": 50 },\n  \"runs\": [\n    {\n      \"concurrency\": 1,\n      \"ttft_ms_p50\": 0, \"ttft_ms_p99\": 0,\n      \"itl_ms_p50\": 0,  \"itl_ms_p99\": 0,\n      \"tpot_ms_p50\": 0,\n      \"throughput_tok_s\": 0,\n      \"e2e_latency_ms_p50\": 0\n    }\n  ]\n}\n```\n\n### `bench_llama_cpp.sh` (single-stream → `metrics`)\n\n```json\n{\n  \"config\": { \"n_prompt\": 512, \"n_gen\": 128, \"n_gpu_layers\": 99 },\n  \"metrics\": {\n    \"ttft_ms_p50\": 0,\n    \"itl_ms_p50\": 0,\n    \"tpot_ms_p50\": 0,\n    \"throughput_tok_s\": 0\n  }\n}\n```\n\n### `bench_ollama.sh` (single-stream → `metrics`)\n\n```json\n{\n  \"config\": { \"input_len\": 512, \"output_len\": 128, \"num_prompts\": 20, \"concurrency\": 1 },\n  \"metrics\": {\n    \"ttft_ms_p50\": 0, \"ttft_ms_p99\": 0,\n    \"itl_ms_p50\": 0,  \"itl_ms_p99\": 0,\n    \"tpot_ms_p50\": 0,\n    \"throughput_tok_s\": 0,\n    \"e2e_latency_ms_p50\": 0\n  }\n}\n```\n\n`warnings` is populated when:\n- `nvpmodel` is not in a recognized max-performance mode (`MAXN` or `MAXN_*` such as `MAXN_SUPER`); wattage-named modes are reported as warnings because they vary by Jetson SKU\n- Background processes >5% GPU during the run (use `jetson-diagnostic`)\n- `tegrastats` shows thermal throttling during the run\n\nThe `sku`, `variant`, `l4t`, and `container` fields are **populated by the wrapper script from the live device** (`tegrastats`, `\u002Fetc\u002Fnv_tegra_release`, container labels) — do not hand-author, guess, or transcribe them from memory. Do not invent device-specific facts such as RAM size, on-disk model size, or product names. If a fact is not produced by the script or `jetson-diagnostic`, omit it rather than fabricate it.\n\n## What to flag in results (Jetson-specific guidance)\n\nLLMs already know what TTFT\u002FITL\u002Fthroughput mean. Jetson-specific things they usually **don't** know:\n\n- On Orin Nano\u002FNX, single-stream `tok\u002Fs` and `concurrency=8` `tok\u002Fs` differ wildly because of **memory bandwidth saturation**, not compute. If concurrent throughput barely beats single-stream, you're bandwidth-bound — switch to a smaller quantization (W4A16 → INT4\u002FAWQ) before tuning anything else.\n- A TTFT regression on the same model after a JetPack upgrade is almost always a CUDA graph cache miss — re-warm and re-measure.\n- Thor NVFP4 numbers are not comparable to Orin W4A16 numbers; never put them in the same table without a `quant` column.\n\n## Limitations\n\n- vLLM measurements require an already-running OpenAI-compatible vLLM server.\n  This skill benchmarks the server; it does not launch or tune the server.\n- Ollama results are single-stream by design and are not directly comparable to\n  vLLM concurrency sweeps.\n- llama.cpp\u002FGGUF benchmarking runs a NVIDIA-AI-IOT container by default. Tell the\n  user before running it, because Docker will pull and execute an external image\n  if it is not already present.\n- Container image tags may be mutable unless the caller passes a digest-pinned\n  image through `--container`. For release or compliance measurements, prefer a\n  digest-pinned image and record it in the results. The default vLLM benchmark\n  client image is upstream vLLM 0.20+ via `vllm\u002Fvllm-openai:latest` on Thor and Orin JetPack 7.2 \u002F L4T r39+,\n  and NVIDIA-AI-IOT `ghcr.io\u002Fnvidia-ai-iot\u002Fvllm:latest-jetson-orin` on older Orin.\n- Results are only comparable when model, quantization, prompt length, output\n  length, power mode, clocks, and thermal state are controlled.\n\n## Error Handling\n\n- Exit `2`: invalid arguments, missing `--model`, or a required model file is\n  not readable. Re-run the wrapper with `--help` and correct the path or model\n  ID.\n- Exit `3`: runtime preflight failed, such as unreachable Ollama, unknown Jetson\n  generation for vLLM container selection, or missing Ollama model. Start the\n  service, pull the model, or pass an explicit `--container`.\n- Docker errors usually mean the container runtime is unavailable, the image\n  cannot be pulled, or the model directory mount is not readable. Report the\n  exact stderr and do not fabricate benchmark numbers.\n- Empty or malformed JSON means the benchmark did not complete successfully.\n  Preserve the raw error, fix the runtime issue, and rerun.\n\n## Hand off to\n\n- `jetson-inference-mem-tune` if results indicate memory pressure.\n- `jetson-speculative-decoding` if TTFT is acceptable but TPOT is too slow.\n- `jetson-diagnostic` if `warnings` is non-empty.\n\n## Source\n\n[Jetson AI Lab — GenAI Benchmarking](https:\u002F\u002Fwww.jetson-ai-lab.com\u002Ftutorials\u002Fgenai-benchmarking\u002F) and [NVIDIA-AI-IOT GHCR packages](https:\u002F\u002Fgithub.com\u002Forgs\u002FNVIDIA-AI-IOT\u002Fpackages).\n",{"name":5,"license":15,"version":24,"metadata":25,"description":7},"0.0.2",{"tags":26,"author":30,"languages":31,"data-classification":33},[27,28,29],"jetson","llm","benchmark","Jetson Team",[32],"bash","public","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fnvidia-skills\u002Fjetson-llm-benchmark",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill jetson-llm-benchmark",{"tool":48,"command":49},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill jetson-llm-benchmark",{"tool":51,"command":52},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill jetson-llm-benchmark","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fnvidia-skills\u002Fjetson-llm-benchmark\u002FSkill.md",true,[56],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"metadata.json","REFERENCE","参考文档",429,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fnvidia-skills\u002Fjetson-llm-benchmark\u002Fmetadata.json",[63,71,76,83,88,95],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":72,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":84,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":96,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]