Seeed-Jetson-DevelopTool / gpt-oss-live
CLAUDE.md57 starsChanged 4 months agoMITView on GitHub
Deploy GPT-OSS-20B on Jetson Orin using llama.cpp with CUDA. Builds llama.cpp from source, converts and quantizes the model to Q4_K, and runs inference. Optional OpenWebUI frontend. Requires Jetson Orin with ≥16GB RAM.
- Installs packages
In this repository297 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-nvrAGENTS.md
- allxon-ota-updateAGENTS.md
- allxon-setupAGENTS.md
- alwaysai-setupAGENTS.md
- backup-restoreAGENTS.md
- bsp-source-buildAGENTS.md
- clawdbot-developmentAGENTS.md
- cochl-sense-setupAGENTS.md
- cvedia-setupAGENTS.md
- dashcamnet-xavier-nx-multicameraAGENTS.md
- deciai-setupAGENTS.md
- deepseek-quick-deployAGENTS.md
- deploy-deepseek-mlcAGENTS.md
- deploy-depth-anything-v3AGENTS.md
- deploy-diaAGENTS.md
- deploy-efficient-vision-engineAGENTS.md
- deploy-frigateAGENTS.md
- deploy-live-vlm-webuiAGENTS.md
- deploy-nvbloxAGENTS.md
- deploy-ollama-anythingllmAGENTS.md
- deploy-riva-llama2AGENTS.md
- developtool-deviceAGENTS.md
- disk-encryptionAGENTS.md
- diy-bsp-buildAGENTS.md
- ethercat-communicationAGENTS.md
- ethercat-setupAGENTS.md
- finetune-llm-llama-factoryAGENTS.md
- fix-browser-snap-jetsonAGENTS.md
- gapi-setupAGENTS.md
- generative-ai-introAGENTS.md
- gpt-oss-liveAGENTS.md
- gr00t-n1-5-deploy-thorAGENTS.md
- gr00t-n1-6-deploy-agxAGENTS.md
- hardhat-setupAGENTS.md
- hybrid-bsp-dk-to-recomputerAGENTS.md
- imx477-a603-setupAGENTS.md
- j501-viola-fruit-sortingAGENTS.md
- jetpack5-ssd-boot-fixAGENTS.md
- jetpack-flash-wsl2AGENTS.md
- jetpack-jetson-overviewAGENTS.md
- jetpack-ota-updateAGENTS.md
- jetson-ai-toolsAGENTS.md
- jetson-docker-setupAGENTS.md
- jetson-faqAGENTS.md
- jetson-pc-wired-shareAGENTS.md
- jetson-project-galleryAGENTS.md
- jetson-resource-indexAGENTS.md
- jetson-tutorial-exercisesAGENTS.md
- ko-module-buildAGENTS.md
- l4t-differencesAGENTS.md
- langchain-output-formattingAGENTS.md
- lerobot-env-setupAGENTS.md
- llama-cpp-rpc-distributedAGENTS.md
- llm-interface-controlAGENTS.md
- local-chatbot-multimodalAGENTS.md
- local-chatbot-physicalAGENTS.md
- local-llm-text-to-imageAGENTS.md
- local-rag-llamaindexAGENTS.md
- lumeo-setupAGENTS.md
- The first 60 shown.
The file
We split this CLAUDE.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Run one phase at a time. After each phase:
- Very specific: line 21
If output contains [STOP] → stop immediately, consult the failure decision tree.
- Very specific: line 22
If output ends with [OK] → tell the user "Phase N complete" and proceed to the next phase.
- Distinctive: line 69
Create the conda environment and convert to GGUF:
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GPT-OSS-20B on Jetson Orin
Runs OpenAI's GPT-OSS-20B open-weight model on a Jetson Orin device using llama.cpp compiled with CUDA support. The model is converted from HuggingFace format to GGUF and quantized to Q4_K for on-device inference. An optional OpenWebUI frontend is included.
Hardware: reComputer Super J4012 or other Jetson Orin Prerequisites: JetPack 6.x, Miniconda installed, ~40GB free disk space
Execution model
Run one phase at a time. After each phase:
- Relay all output lines to the user.
- If output contains
[STOP]→ stop immediately, consult the failure decision tree. - If output ends with
[OK]→ tell the user "Phase N complete" and proceed to the next phase.
Phase 1 — deps (~5 min)
Install Miniconda (skip if already installed) and system build dependencies.
# Only if Miniconda is not yet installed:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh
chmod +x Miniconda3-latest-Linux-aarch64.sh
./Miniconda3-latest-Linux-aarch64.sh
source ~/.bashrcsudo apt update
sudo apt install -y build-essential cmake gitExpected: cmake --version and gcc --version both return successfully. [OK]
Phase 2 — build (~2 hours)
Clone and build llama.cpp with CUDA enabled. This step is long — expect roughly 2 hours on Jetson Orin. Do not interrupt the build.
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build -DGGML_CUDA=ON
cmake --build build --parallelExpected: ./build/bin/llama-cli --version prints a version string. [OK]
Phase 3 — model (varies)
Download the GPT-OSS-20B weights from HuggingFace, upload to Jetson, then convert and quantize.
- Download from: https://huggingface.co/openai/gpt-oss-20b/tree/main
- Transfer the downloaded model directory to the Jetson (e.g. via
scpor USB drive). - Create the conda environment and convert to GGUF:
conda create -n gpt-oss python=3.10
conda activate gpt-oss
cd llama.cpp
pip install .
python convert_hf_to_gguf.py --outfile <path_of_output> <path_of_input_model>- Quantize to Q4_K:
./build/bin/llama-quantize <f16_gguf> <output_q4_gguf> Q4_KReplace <path_of_input_model>, <path_of_output>, <f16_gguf>, and <output_q4_gguf> with your actual paths.
Expected: Q4_K .gguf file created, size roughly 10–12 GB. [OK]
Phase 4 — run
Launch inference with the quantized model. -ngl 40 offloads 40 layers to GPU.
cd llama.cpp
./build/bin/llama-cli -m <model_path> -ngl 40Expected: model loads and accepts prompts interactively. [OK]
Optional — WebUI
Serve a browser-based chat interface on port 8080, backed by llama.cpp on port 8081.
conda create -n open-webui python=3.11
conda activate open-webui
pip install open-webui
open-webui serveThen open http://<jetson-ip>:8080 in a browser and set the OpenAI connection URL to http://127.0.0.1:8081.
Failure decision tree
| Symptom | Action |
cmake — CUDA not found / DGGML_CUDA=ON has no effect | Confirm CUDA toolkit is on PATH: nvcc --version. On JetPack 6 it should be at /usr/local/cuda. Re-run cmake: cmake -B build -DGGML_CUDA=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc. |
| build fails — compiler OOM / killed | Reduce parallelism: replace --parallel with --parallel 2. If it still fails, try --parallel 1. |
convert_hf_to_gguf.py fails — missing module | Ensure you ran pip install . inside the llama.cpp directory with the gpt-oss conda env active. |
convert_hf_to_gguf.py fails — unrecognised model architecture | Check that the downloaded model directory is complete and matches the expected GPT-OSS-20B structure. Re-download if files are missing. |
llama-cli crashes on load — CUDA OOM | Reduce GPU layers: try -ngl 20 or -ngl 10. Confirm no other GPU workloads are running. |
llama-cli crashes mid-generation | Model file may be corrupt. Re-run quantization step or re-download source weights. |
Reference files
references/source.body.md— original tutorial article (background reading, not required for execution)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

