[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M787V8Z6VZCB0DVVMPQMGCJ6":3,"skill-same:01M787V8Z6VZCB0DVVMPQMGCJ6":80},{"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":14,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M787V8Z6VZCB0DVVMPQMGCJ6","jetson-inference-mem-tune",null,"Pick the serving stack and per-runtime memory flags (vLLM, SGLang, llama.cpp, TensorRT Edge-LLM) for an LLM\u002FVLM workload on any NVIDIA Jetson.","Solizardking\u002Ftrain2earn","Solizardking","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108096810?v=4","01M786KDB10AYV042N0F9BD5B5","Clawd","01M786KDC5C3NPE4W44C5641EZ",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-inference-mem-tune\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: jetson-inference-mem-tune\ndescription: Pick the serving stack and per-runtime memory flags (vLLM, SGLang, llama.cpp, TensorRT Edge-LLM) for an LLM\u002FVLM workload on any NVIDIA Jetson.\nversion: 0.0.1\nlicense: \"Apache-2.0\"\nmetadata:\n  author: \"Jetson Team\"\n  tags: [jetson, inference, memory]\n  languages: [python]\n  data-classification: public\n---\n\n# Jetson Inference Memory Tuning\n\nRecommends an inference runtime and the specific memory-related flags to pass to it, given the Jetson SKU\u002Fvariant 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.\n\n## Purpose\n\nTurn a live `jetson-memory-audit` snapshot into runtime and launch-flag recommendations for LLM\u002FVLM serving on Jetson. Use this when the user needs to fit a model, reduce OOM risk, or switch to a lower-memory serving stack.\n\n## When to use\n\n- \"Which serving stack should I use on Orin Nano 8 GB to run a 7B model?\"\n- \"vLLM is OOMing — what should `--gpu-memory-utilization` and `--max-model-len` be?\"\n- \"Same model, less memory — can I switch from vLLM to llama.cpp?\"\n- After `jetson-memory-audit` shows a model server is the top NvMap \u002F PSS consumer.\n\n## Prerequisites\n\n- Start with a current `jetson-memory-audit\u002Fscripts\u002Faudit.sh` JSON snapshot from the target Jetson.\n- Know the intended workload: `llm-server`, `vlm-server`, `embedding`, or `rag`.\n- If the user gives a desired free-memory target, pass it as `--target-mb`; otherwise let the script use SKU defaults.\n\n## Available Scripts\n\n| Script | Purpose | Arguments |\n|--------|---------|-----------|\n| `scripts\u002Frecommend.py` | Reads an audit JSON and emits runtime plus launch-flag recommendations. | `--audit PATH`, `--runtime`, `--workload`, `--target-mb`, `--human`. |\n\nIf your agent runtime supports `run_script`, invoke `run_script(\"scripts\u002Frecommend.py\", [\"--audit\", \"\u002Ftmp\u002Faudit.json\", \"--runtime\", \"auto\", \"--workload\", \"llm-server\"])` and summarize the returned JSON. Otherwise run it with `python3` from the repository root.\n\n## Instructions\n\n1. Run `jetson-memory-audit\u002Fscripts\u002Faudit.sh` to capture the device baseline.\n2. Run `scripts\u002Frecommend.py --audit \u002Ftmp\u002Faudit.json --runtime auto --workload llm-server --target-mb 6000` to get a JSON of runtime + flag recommendations.\n3. The agent presents the suggested runtime and the exact CLI flags. The user (or an outer agent) launches \u002F restarts the server with those flags.\n4. Re-run the audit to verify.\n\n## Expected workflow\n\nUse `scripts\u002Frecommend.py` for the specific prompt and answer from the JSON it emits. If direct execution is blocked, run it as `python3 {baseDir}\u002Fscripts\u002Frecommend.py ...`.\n\n- For vLLM OOM prompts, run with `--runtime vllm --workload llm-server` and include concrete `--gpu-memory-utilization=\u003C0.x>` and `--max-model-len=\u003Cnumber>` values from `launch_flags`.\n- 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 \u002F 4-bit tradeoff when it selects `llama-cpp`.\n- For SGLang prompts, run with `--runtime sglang` and quote `--mem-fraction-static`, `--max-running-requests`, and any context\u002FKV-cache note.\n- For \"switch from vLLM to llama.cpp\" prompts, run with `--runtime llama-cpp` and quote `-ngl`, `-c`, and `--no-mmap`.\n\n## Limitations\n\n- Recommendations are only as fresh as the audit JSON. Re-run `jetson-memory-audit` after stopping services, changing power mode, or restarting model servers.\n- The script estimates memory pressure from SKU defaults and audit totals; model-specific KV-cache, quantization, and tokenizer behavior can still require benchmarking.\n- This skill emits flags only. It does not start, stop, or restart model servers.\n\n## Error handling\n\n- Exit `2`: the audit JSON could not be read, parsed, or did not contain valid numeric memory fields. Ask the user to rerun `jetson-memory-audit\u002Fscripts\u002Faudit.sh`.\n- Exit `3`: unsupported runtime or workload request. Re-run with one of the `--runtime` and `--workload` values listed in `scripts\u002Frecommend.py --help`.\n- Empty or missing `launch_flags`: do not invent fallback flags. Report the script failure and ask for a fresh audit or a supported runtime.\n\n## Output contract for `recommend.py`\n\n```json\n{\n  \"sku\": \"orin-nx\",\n  \"variant\": \"orin-nx-16gb\",\n  \"mem_total_gb\": 16,\n  \"runtime\": \"vllm\",\n  \"rationale\": \"Highest throughput at this memory budget given continuous batching + paged attention.\",\n  \"launch_flags\": [\n    \"--gpu-memory-utilization=0.55\",\n    \"--max-model-len=4096\",\n    \"--max-num-seqs=8\",\n    \"--enable-prefix-caching\"\n  ],\n  \"alternatives\": [\n    { \"runtime\": \"llama-cpp\", \"rationale\": \"Lower memory floor with GGUF Q4_K_M.\", \"launch_flags\": [\"-ngl 28\", \"-c 4096\", \"--no-mmap\"] }\n  ],\n  \"notes\": [\"Lower --gpu-memory-utilization further if you also run a small VLM alongside.\"]\n}\n```\n\n## Runtimes covered\n\n| Runtime              | Best for                                                  | Key memory knobs                                                                           | Preferred install path |\n|----------------------|-----------------------------------------------------------|--------------------------------------------------------------------------------------------|------------------------|\n| **llama.cpp**        | Tightest budget; GGUF; Orin Nano-class                    | `-ngl`, `-c`, `--mlock`, `--no-mmap`                                                       | `ghcr.io\u002Fnvidia-ai-iot\u002Fllama_cpp:latest-jetson-{orin,thor}` |\n| **vLLM**             | High-throughput serving with continuous batching          | `--gpu-memory-utilization`, `--max-model-len`, `--max-num-seqs`, `--enable-prefix-caching` | Thor and Orin JetPack 7.2 \u002F L4T r39+: upstream vLLM 0.20+ (`vllm\u002Fvllm-openai`) container or validated native vLLM 0.20+. Older Orin: NVIDIA-AI-IOT image |\n| **SGLang**           | Programmable workflows (RAG, tool use, structured output) | `--mem-fraction-static`, `--mem-fraction-dynamic`, `--max-running-requests`                | Thor: NVIDIA SGLang 26.01 (`nvcr.io\u002Fnvidia\u002Fsglang:26.01-py3`, SGLang 0.5.5.post2). Orin: JetPack-matched environment |\n| **TensorRT Edge-LLM**| NVIDIA-tuned production serving                           | Build profile per SKU; paged-KV; KV reuse                                                  | Vendor docs for the target JetPack |\n\n> For Orin JetPack 7.2 \u002F 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\u002FcuDNN\u002FTensorRT stack for JetPack. For Thor, prefer upstream vLLM 0.20+ (`vllm\u002Fvllm-openai`) or a validated native vLLM 0.20+ install; for SGLang use NVIDIA SGLang 26.01 (`nvcr.io\u002Fnvidia\u002Fsglang:26.01-py3`, 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.\n\n## Quantization recommendations\n\nUse runtime-specific quantization names. vLLM and SGLang usually consume Hugging Face checkpoints such as W4A16, AWQ, GPTQ, FP16, or NVFP4. llama.cpp and Ollama consume GGUF models, so recommend INT4\u002FQ4_K_M-style GGUF instead.\n\n| Runtime family | Jetson family | First choice | Fallback |\n|----------------|---------------|--------------|----------|\n| vLLM \u002F SGLang | Thor | NVFP4 when the model\u002Fruntime supports it | W4A16 |\n| vLLM \u002F SGLang | Orin Nano \u002F NX | W4A16 | AWQ or GPTQ 4-bit |\n| vLLM \u002F SGLang | AGX Orin | W4A16 | AWQ or GPTQ 4-bit |\n| llama.cpp \u002F Ollama | Orin and Thor | GGUF INT4 \u002F Q4_K_M | Smaller INT4 GGUF model if memory is tight |\n\nDo not describe GGUF Q4_K_M as W4A16\u002FAWQ\u002FGPTQ. Do not compare Thor NVFP4 results with Orin W4A16 results unless the output includes a `quant` field.\n\n## Runtime command guidance\n\nUse `recommend.py` as the source of truth for memory knobs, then place its `launch_flags` into the matching serving command. Keep the command guidance in this skill instead of separate small reference files so agents ingest one complete instruction set.\n\nFor vLLM on Orin with JetPack 7.2 \u002F L4T r39+, use upstream vLLM 0.20+ (`vllm\u002Fvllm-openai:latest`). On older Orin releases, use the NVIDIA-AI-IOT image:\n\n```bash\ndocker run --rm -it --runtime nvidia --network host --name vllm \\\n  -v \"$HOME\u002F.cache\u002Fhuggingface:\u002Froot\u002F.cache\u002Fhuggingface\" \\\n  -e HF_TOKEN=\"$HF_TOKEN\" \\\n  ghcr.io\u002Fnvidia-ai-iot\u002Fvllm:latest-jetson-orin \\\n  vllm serve \u003Chf-model-id-or-local-path> \\\n    --host 0.0.0.0 \\\n    --port 8000 \\\n    --gpu-memory-utilization 0.60 \\\n    --max-model-len 4096 \\\n    --max-num-seqs 8 \\\n    --enable-prefix-caching\n```\n\nFor vLLM on Thor, use upstream vLLM 0.20+ (`vllm\u002Fvllm-openai:latest`) unless host-native vLLM 0.20+ is already installed and validated:\n\n```bash\ndocker run --rm -it --runtime nvidia --network host --ipc host --name vllm \\\n  -v \"$HOME\u002F.cache\u002Fhuggingface:\u002Froot\u002F.cache\u002Fhuggingface\" \\\n  -e HF_TOKEN=\"$HF_TOKEN\" \\\n  vllm\u002Fvllm-openai:latest \\\n  vllm serve \u003Chf-model-id-or-local-path> \\\n    --host 0.0.0.0 \\\n    --port 8000 \\\n    --gpu-memory-utilization 0.75 \\\n    --max-model-len 8192 \\\n    --max-num-seqs 32 \\\n    --enable-prefix-caching\n```\n\nThor vLLM note: do not judge Thor support from pre-0.20 vLLM results; upstream vLLM support starts at vLLM 0.20+.\n\nFor SGLang on Thor, use NVIDIA SGLang 26.01 (`nvcr.io\u002Fnvidia\u002Fsglang:26.01-py3`). NVIDIA SGLang 26.01 contains SGLang `0.5.5.post2` and explicitly lists Jetson Thor support. Avoid judging Thor support from older prerelease SGLang results. Avoid recommending `gpt-oss` or FP8 paths on Thor unless newer NVIDIA SGLang release notes say those known issues are fixed.\n\n```bash\ndocker run --rm -it --runtime nvidia --network host --ipc host --name sglang \\\n  -v \"$HOME\u002F.cache\u002Fhuggingface:\u002Froot\u002F.cache\u002Fhuggingface\" \\\n  -e HF_TOKEN=\"$HF_TOKEN\" \\\n  nvcr.io\u002Fnvidia\u002Fsglang:26.01-py3 \\\n  python3 -m sglang.launch_server \\\n    --model-path \u003Chf-model-id-or-local-path> \\\n    --host 0.0.0.0 \\\n    --port 8000 \\\n    --mem-fraction-static 0.60 \\\n    --max-running-requests 8\n```\n\nFor llama.cpp, use the NVIDIA-AI-IOT llama.cpp image when available, or the `llama-server` binary from a JetPack-matched build. Start with GGUF INT4 \u002F Q4_K_M on both Orin and Thor; choose a smaller INT4 GGUF model if the audit shows tight memory.\n\n```bash\ndocker run --rm -it --runtime nvidia --network host --name llama-cpp \\\n  -v \"$PWD\u002Fmodels:\u002Fmodels:ro\" \\\n  ghcr.io\u002Fnvidia-ai-iot\u002Fllama_cpp:latest-jetson-\u003Corin-or-thor> \\\n  llama-server \\\n    -m \u002Fmodels\u002F\u003Cmodel>.gguf \\\n    --host 0.0.0.0 \\\n    --port 8000 \\\n    -ngl 28 \\\n    -c 4096 \\\n    --no-mmap \\\n    --flash-attn\n```\n\n## Procedure (the script encodes this)\n\n1. Pick the lightest runtime that satisfies the user's required features (continuous batching? structured generation? CPU offload?).\n2. Pick the lowest precision that meets the user's accuracy bar (model-benchmarking skill).\n3. Sweep the runtime's memory knobs (start with `gpu-memory-utilization` for vLLM, `n-gpu-layers` and `ctx-size` for llama.cpp) to find the minimum footprint that sustains target throughput.\n4. Re-measure with `jetson-memory-audit`.\n\n## Safety\n\nRead-only. The skill never starts, stops, or restarts a model server. It emits flags; the user (or an outer orchestration agent) is responsible for invoking the runtime.\n","# Jetson Inference Memory Tuning\n\nRecommends an inference runtime and the specific memory-related flags to pass to it, given the Jetson SKU\u002Fvariant 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.\n\n## Purpose\n\nTurn a live `jetson-memory-audit` snapshot into runtime and launch-flag recommendations for LLM\u002FVLM serving on Jetson. Use this when the user needs to fit a model, reduce OOM risk, or switch to a lower-memory serving stack.\n\n## When to use\n\n- \"Which serving stack should I use on Orin Nano 8 GB to run a 7B model?\"\n- \"vLLM is OOMing — what should `--gpu-memory-utilization` and `--max-model-len` be?\"\n- \"Same model, less memory — can I switch from vLLM to llama.cpp?\"\n- After `jetson-memory-audit` shows a model server is the top NvMap \u002F PSS consumer.\n\n## Prerequisites\n\n- Start with a current `jetson-memory-audit\u002Fscripts\u002Faudit.sh` JSON snapshot from the target Jetson.\n- Know the intended workload: `llm-server`, `vlm-server`, `embedding`, or `rag`.\n- If the user gives a desired free-memory target, pass it as `--target-mb`; otherwise let the script use SKU defaults.\n\n## Available Scripts\n\n| Script | Purpose | Arguments |\n|--------|---------|-----------|\n| `scripts\u002Frecommend.py` | Reads an audit JSON and emits runtime plus launch-flag recommendations. | `--audit PATH`, `--runtime`, `--workload`, `--target-mb`, `--human`. |\n\nIf your agent runtime supports `run_script`, invoke `run_script(\"scripts\u002Frecommend.py\", [\"--audit\", \"\u002Ftmp\u002Faudit.json\", \"--runtime\", \"auto\", \"--workload\", \"llm-server\"])` and summarize the returned JSON. Otherwise run it with `python3` from the repository root.\n\n## Instructions\n\n1. Run `jetson-memory-audit\u002Fscripts\u002Faudit.sh` to capture the device baseline.\n2. Run `scripts\u002Frecommend.py --audit \u002Ftmp\u002Faudit.json --runtime auto --workload llm-server --target-mb 6000` to get a JSON of runtime + flag recommendations.\n3. The agent presents the suggested runtime and the exact CLI flags. The user (or an outer agent) launches \u002F restarts the server with those flags.\n4. Re-run the audit to verify.\n\n## Expected workflow\n\nUse `scripts\u002Frecommend.py` for the specific prompt and answer from the JSON it emits. If direct execution is blocked, run it as `python3 {baseDir}\u002Fscripts\u002Frecommend.py ...`.\n\n- For vLLM OOM prompts, run with `--runtime vllm --workload llm-server` and include concrete `--gpu-memory-utilization=\u003C0.x>` and `--max-model-len=\u003Cnumber>` values from `launch_flags`.\n- 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 \u002F 4-bit tradeoff when it selects `llama-cpp`.\n- For SGLang prompts, run with `--runtime sglang` and quote `--mem-fraction-static`, `--max-running-requests`, and any context\u002FKV-cache note.\n- For \"switch from vLLM to llama.cpp\" prompts, run with `--runtime llama-cpp` and quote `-ngl`, `-c`, and `--no-mmap`.\n\n## Limitations\n\n- Recommendations are only as fresh as the audit JSON. Re-run `jetson-memory-audit` after stopping services, changing power mode, or restarting model servers.\n- The script estimates memory pressure from SKU defaults and audit totals; model-specific KV-cache, quantization, and tokenizer behavior can still require benchmarking.\n- This skill emits flags only. It does not start, stop, or restart model servers.\n\n## Error handling\n\n- Exit `2`: the audit JSON could not be read, parsed, or did not contain valid numeric memory fields. Ask the user to rerun `jetson-memory-audit\u002Fscripts\u002Faudit.sh`.\n- Exit `3`: unsupported runtime or workload request. Re-run with one of the `--runtime` and `--workload` values listed in `scripts\u002Frecommend.py --help`.\n- Empty or missing `launch_flags`: do not invent fallback flags. Report the script failure and ask for a fresh audit or a supported runtime.\n\n## Output contract for `recommend.py`\n\n```json\n{\n  \"sku\": \"orin-nx\",\n  \"variant\": \"orin-nx-16gb\",\n  \"mem_total_gb\": 16,\n  \"runtime\": \"vllm\",\n  \"rationale\": \"Highest throughput at this memory budget given continuous batching + paged attention.\",\n  \"launch_flags\": [\n    \"--gpu-memory-utilization=0.55\",\n    \"--max-model-len=4096\",\n    \"--max-num-seqs=8\",\n    \"--enable-prefix-caching\"\n  ],\n  \"alternatives\": [\n    { \"runtime\": \"llama-cpp\", \"rationale\": \"Lower memory floor with GGUF Q4_K_M.\", \"launch_flags\": [\"-ngl 28\", \"-c 4096\", \"--no-mmap\"] }\n  ],\n  \"notes\": [\"Lower --gpu-memory-utilization further if you also run a small VLM alongside.\"]\n}\n```\n\n## Runtimes covered\n\n| Runtime              | Best for                                                  | Key memory knobs                                                                           | Preferred install path |\n|----------------------|-----------------------------------------------------------|--------------------------------------------------------------------------------------------|------------------------|\n| **llama.cpp**        | Tightest budget; GGUF; Orin Nano-class                    | `-ngl`, `-c`, `--mlock`, `--no-mmap`                                                       | `ghcr.io\u002Fnvidia-ai-iot\u002Fllama_cpp:latest-jetson-{orin,thor}` |\n| **vLLM**             | High-throughput serving with continuous batching          | `--gpu-memory-utilization`, `--max-model-len`, `--max-num-seqs`, `--enable-prefix-caching` | Thor and Orin JetPack 7.2 \u002F L4T r39+: upstream vLLM 0.20+ (`vllm\u002Fvllm-openai`) container or validated native vLLM 0.20+. Older Orin: NVIDIA-AI-IOT image |\n| **SGLang**           | Programmable workflows (RAG, tool use, structured output) | `--mem-fraction-static`, `--mem-fraction-dynamic`, `--max-running-requests`                | Thor: NVIDIA SGLang 26.01 (`nvcr.io\u002Fnvidia\u002Fsglang:26.01-py3`, SGLang 0.5.5.post2). Orin: JetPack-matched environment |\n| **TensorRT Edge-LLM**| NVIDIA-tuned production serving                           | Build profile per SKU; paged-KV; KV reuse                                                  | Vendor docs for the target JetPack |\n\n> For Orin JetPack 7.2 \u002F 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\u002FcuDNN\u002FTensorRT stack for JetPack. For Thor, prefer upstream vLLM 0.20+ (`vllm\u002Fvllm-openai`) or a validated native vLLM 0.20+ install; for SGLang use NVIDIA SGLang 26.01 (`nvcr.io\u002Fnvidia\u002Fsglang:26.01-py3`, 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.\n\n## Quantization recommendations\n\nUse runtime-specific quantization names. vLLM and SGLang usually consume Hugging Face checkpoints such as W4A16, AWQ, GPTQ, FP16, or NVFP4. llama.cpp and Ollama consume GGUF models, so recommend INT4\u002FQ4_K_M-style GGUF instead.\n\n| Runtime family | Jetson family | First choice | Fallback |\n|----------------|---------------|--------------|----------|\n| vLLM \u002F SGLang | Thor | NVFP4 when the model\u002Fruntime supports it | W4A16 |\n| vLLM \u002F SGLang | Orin Nano \u002F NX | W4A16 | AWQ or GPTQ 4-bit |\n| vLLM \u002F SGLang | AGX Orin | W4A16 | AWQ or GPTQ 4-bit |\n| llama.cpp \u002F Ollama | Orin and Thor | GGUF INT4 \u002F Q4_K_M | Smaller INT4 GGUF model if memory is tight |\n\nDo not describe GGUF Q4_K_M as W4A16\u002FAWQ\u002FGPTQ. Do not compare Thor NVFP4 results with Orin W4A16 results unless the output includes a `quant` field.\n\n## Runtime command guidance\n\nUse `recommend.py` as the source of truth for memory knobs, then place its `launch_flags` into the matching serving command. Keep the command guidance in this skill instead of separate small reference files so agents ingest one complete instruction set.\n\nFor vLLM on Orin with JetPack 7.2 \u002F L4T r39+, use upstream vLLM 0.20+ (`vllm\u002Fvllm-openai:latest`). On older Orin releases, use the NVIDIA-AI-IOT image:\n\n```bash\ndocker run --rm -it --runtime nvidia --network host --name vllm \\\n  -v \"$HOME\u002F.cache\u002Fhuggingface:\u002Froot\u002F.cache\u002Fhuggingface\" \\\n  -e HF_TOKEN=\"$HF_TOKEN\" \\\n  ghcr.io\u002Fnvidia-ai-iot\u002Fvllm:latest-jetson-orin \\\n  vllm serve \u003Chf-model-id-or-local-path> \\\n    --host 0.0.0.0 \\\n    --port 8000 \\\n    --gpu-memory-utilization 0.60 \\\n    --max-model-len 4096 \\\n    --max-num-seqs 8 \\\n    --enable-prefix-caching\n```\n\nFor vLLM on Thor, use upstream vLLM 0.20+ (`vllm\u002Fvllm-openai:latest`) unless host-native vLLM 0.20+ is already installed and validated:\n\n```bash\ndocker run --rm -it --runtime nvidia --network host --ipc host --name vllm \\\n  -v \"$HOME\u002F.cache\u002Fhuggingface:\u002Froot\u002F.cache\u002Fhuggingface\" \\\n  -e HF_TOKEN=\"$HF_TOKEN\" \\\n  vllm\u002Fvllm-openai:latest \\\n  vllm serve \u003Chf-model-id-or-local-path> \\\n    --host 0.0.0.0 \\\n    --port 8000 \\\n    --gpu-memory-utilization 0.75 \\\n    --max-model-len 8192 \\\n    --max-num-seqs 32 \\\n    --enable-prefix-caching\n```\n\nThor vLLM note: do not judge Thor support from pre-0.20 vLLM results; upstream vLLM support starts at vLLM 0.20+.\n\nFor SGLang on Thor, use NVIDIA SGLang 26.01 (`nvcr.io\u002Fnvidia\u002Fsglang:26.01-py3`). NVIDIA SGLang 26.01 contains SGLang `0.5.5.post2` and explicitly lists Jetson Thor support. Avoid judging Thor support from older prerelease SGLang results. Avoid recommending `gpt-oss` or FP8 paths on Thor unless newer NVIDIA SGLang release notes say those known issues are fixed.\n\n```bash\ndocker run --rm -it --runtime nvidia --network host --ipc host --name sglang \\\n  -v \"$HOME\u002F.cache\u002Fhuggingface:\u002Froot\u002F.cache\u002Fhuggingface\" \\\n  -e HF_TOKEN=\"$HF_TOKEN\" \\\n  nvcr.io\u002Fnvidia\u002Fsglang:26.01-py3 \\\n  python3 -m sglang.launch_server \\\n    --model-path \u003Chf-model-id-or-local-path> \\\n    --host 0.0.0.0 \\\n    --port 8000 \\\n    --mem-fraction-static 0.60 \\\n    --max-running-requests 8\n```\n\nFor llama.cpp, use the NVIDIA-AI-IOT llama.cpp image when available, or the `llama-server` binary from a JetPack-matched build. Start with GGUF INT4 \u002F Q4_K_M on both Orin and Thor; choose a smaller INT4 GGUF model if the audit shows tight memory.\n\n```bash\ndocker run --rm -it --runtime nvidia --network host --name llama-cpp \\\n  -v \"$PWD\u002Fmodels:\u002Fmodels:ro\" \\\n  ghcr.io\u002Fnvidia-ai-iot\u002Fllama_cpp:latest-jetson-\u003Corin-or-thor> \\\n  llama-server \\\n    -m \u002Fmodels\u002F\u003Cmodel>.gguf \\\n    --host 0.0.0.0 \\\n    --port 8000 \\\n    -ngl 28 \\\n    -c 4096 \\\n    --no-mmap \\\n    --flash-attn\n```\n\n## Procedure (the script encodes this)\n\n1. Pick the lightest runtime that satisfies the user's required features (continuous batching? structured generation? CPU offload?).\n2. Pick the lowest precision that meets the user's accuracy bar (model-benchmarking skill).\n3. Sweep the runtime's memory knobs (start with `gpu-memory-utilization` for vLLM, `n-gpu-layers` and `ctx-size` for llama.cpp) to find the minimum footprint that sustains target throughput.\n4. Re-measure with `jetson-memory-audit`.\n\n## Safety\n\nRead-only. The skill never starts, stops, or restarts a model server. It emits flags; the user (or an outer orchestration agent) is responsible for invoking the runtime.\n",{"name":5,"license":15,"version":24,"metadata":25,"description":7},"0.0.1",{"tags":26,"author":30,"languages":31,"data-classification":33},[27,28,29],"jetson","inference","memory","Jetson Team",[32],"python","public","main","86cc27ffd16af6cb85948f1155578e6f3f61cc4c","skillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-inference-mem-tune","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn","https:\u002F\u002Fgithub.com\u002FSolizardking","https:\u002F\u002Fmusebook.trade","Got a mile high and never came down","2026-10-08 11:52:53",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add Solizardking\u002Ftrain2earn --skill jetson-inference-mem-tune",{"tool":48,"command":49},"bunx","bunx skills add Solizardking\u002Ftrain2earn --skill jetson-inference-mem-tune",{"tool":51,"command":52},"pnpm","pnpm dlx skills add Solizardking\u002Ftrain2earn --skill jetson-inference-mem-tune","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-inference-mem-tune\u002FSKILL.md",true,[56,62,66,72,76],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"BENCHMARK.md","REFERENCE","参考文档",3347,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-inference-mem-tune\u002FBENCHMARK.md",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"metadata.json",367,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-inference-mem-tune\u002Fmetadata.json",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Frecommend.py","SCRIPT","脚本",10255,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-inference-mem-tune\u002Fscripts\u002Frecommend.py",{"path":73,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":74,"sourceHtmlUrl":75},"skill-card.md",3752,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-inference-mem-tune\u002Fskill-card.md",{"path":77,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":78,"sourceHtmlUrl":79},"verification.json",1524,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fjetson-inference-mem-tune\u002Fverification.json",[81,89,97,105,112,120],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M78B94RSCAKMH1QS79VE6DG9","testing","For testing with Light Protocol programs and clients on localnet, devnet, and mainnet validation.","MIT","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Ftesting\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M78B81BKY8RX12HETPG8YKWK","qedgen","Formally verify programs by writing Lean 4 proofs. Trigger this skill whenever the user wants to formally verify code, generate Lean 4 proofs, prove properties about algorithms or smart contracts, verify invariants, convert program logic into formal specifications, or anything involving Lean 4 and formal verification. Also trigger when the user mentions \"qedgen\", \"lean proof\", \"formal proof\", \"verify my code\", \"prove correctness\", \"formal verification\", or wants mathematical guarantees about their implementation.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-formal-verification\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-formal-verification\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":101,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M78B7Q7C5K54E01DN83A60KG","solana-dev","Use when user asks to \"build a Solana dapp\", \"write an Anchor program\", \"create a token\", \"debug Solana errors\", \"set up wallet connection\", \"test my Solana program\", \"deploy to devnet\", or \"explain Solana concepts\" (rent, accounts, PDAs, CPIs, etc.). Also use for quick on-chain lookups via public RPC + curl — \"what's the balance of \u003Cwallet>\", \"look up transaction \u003Csig>\", \"token balance for \u003Caccount>\", \"check this address on mainnet\u002Fdevnet\". End-to-end Solana development playbook covering wallet connection, Anchor\u002FPinocchio programs, Codama client generation, LiteSVM\u002FMollusk\u002FSurfpool testing, security checklists, and JSON-RPC curl lookups against public clusters. Integrates with the Solana MCP server for live documentation search. Prefers framework-kit (@solana\u002Fclient + @solana\u002Freact-hooks) for UI, wallet-standard-first connection (incl. ConnectorKit), @solana\u002Fkit for client\u002FRPC code, and @solana\u002Fweb3-compat for legacy boundaries.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-dev\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-dev\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M78B7HXD6N6GWKSVRQ8F6Q31","solana-common-errors","Diagnose and fix common Solana development errors — GLIBC mismatches, Anchor version conflicts, cargo build-sbf \u002F platform-tools failures, LiteSVM issues, edition2024 crate pins, RPC airdrops, and Anchor 0.29→0.32 migrations. Use when builds fail, Anchor CLI won't install, or CI breaks on Debian\u002FUbuntu.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-common-errors\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":116,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M78B6T7YSYWQ0N4DP40QDXEZ","skill-creator","Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fskill-creator\u002Flicense.txt","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M78B1VFT9X5AND7AE1HZPZGF","phantom-wallet-mcp","Execute wallet operations through the Phantom MCP server. Use when the user wants to interact with their Phantom wallet directly — get addresses, transfer SOL or SPL tokens, buy\u002Fswap tokens, sign transactions, and sign messages across Solana, Ethereum, Bitcoin, and Sui. Requires the @phantom\u002Fmcp-server to be configured as an MCP server.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fphantom-wallet-mcp\u002FSKILL.md",[],[]]