Seeed-Jetson-DevelopTool / deploy-riva-llama2
CLAUDE.md57 starsChanged 4 months agoMITView on GitHub
Build a local voice chatbot on Jetson AGX Orin using NVIDIA Riva (ASR + TTS) and Meta Llama2 via text-generation-inference. Sets up NGC, Riva server, Llama2-7b-chat, and a Python voice chatbot demo with speaker/microphone. Requires JetPack 5.1.1+ and 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 14
Run one phase at a time. After each phase:
- Very specific: line 16
If output contains [STOP] → stop, consult the failure decision tree.
- Very specific: line 17
If output ends with [OK] → tell the user "Phase N complete" and proceed.
- Distinctive: line 91
Keep this terminal alive.
≈ “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
Local Voice Chatbot — Riva + Llama2 on Jetson
Combines NVIDIA Riva for speech recognition/synthesis with Llama2 for conversational AI, all running locally on Jetson for privacy and low latency.
Execution model
Run one phase at a time. After each phase:
- Relay all output to the user.
- If output contains
[STOP]→ stop, consult the failure decision tree. - If output ends with
[OK]→ tell the user "Phase N complete" and proceed.
Prerequisites
| Requirement | Detail |
| Hardware | Jetson AGX Orin 32GB+ (e.g. AGX Orin H01 Kit) |
| JetPack | 5.1.1 or later |
| Audio | Speaker + microphone (e.g. ReSpeaker USB Mic Array) |
| NGC account | Required for Riva model download |
| HuggingFace token | Required for Llama2 model access |
| Docker | Installed with NVIDIA runtime |
Phase 1 — Configure NGC CLI (~3 min)
cd ~ && mkdir -p ngc_setup && cd ngc_setup
wget --content-disposition https://api.ngc.nvidia.com/v2/resources/nvidia/ngc-apps/ngc_cli/versions/3.36.0/files/ngccli_arm64.zip
unzip ngccli_arm64.zip
chmod u+x ngc-cli/ngc
echo "export PATH=\"\$PATH:$(pwd)/ngc-cli\"" >> ~/.bash_profile
source ~/.bash_profile
ngc config setEnter your NGC API Key when prompted (obtain from NGC → Account → Setup → Get API Key).
[OK] when ngc config set completes. [STOP] if download or auth fails.
Phase 2 — Install and start Riva server (~20–30 min)
cd ~ && mkdir -p riva_setup && cd riva_setup
ngc registry resource download-version nvidia/riva/riva_quickstart_arm64:2.13.1
cd riva_quickstart_v2.13.1Edit config.sh to disable unused services:
sed -i 's/service_enabled_nlp=true/service_enabled_nlp=false/' config.sh
sed -i 's/service_enabled_nmt=true/service_enabled_nmt=false/' config.shConfigure Docker for NVIDIA runtime:
sudo bash -c 'cat > /etc/docker/daemon.json << EOF
{
"default-runtime": "nvidia",
"runtimes": {
"nvidia": {
"path": "nvidia-container-runtime",
"runtimeArgs": []
}
}
}
EOF'
sudo systemctl restart dockerInitialize and start Riva:
sudo bash riva_init.sh
sudo bash riva_start.shKeep this terminal alive.
[OK] when Riva server starts and shows "Riva server is ready". [STOP] if init or start fails.
Phase 3 — Install and run Llama2 via text-generation-inference (~15–20 min)
Open a new terminal:
cd ~
git clone https://github.com/dusty-nv/jetson-containers.git
cd jetson-containers
pip install -r requirements.txt
./run.sh $(./autotag text-generation-inference)Inside the container:
export HUGGING_FACE_HUB_TOKEN=<your-huggingface-token>
text-generation-launcher --model-id meta-llama/Llama-2-7b-chat-hf --port 8899Keep this terminal alive.
[OK] when the model loads and the server is listening on port 8899. [STOP] if OOM or auth fails.
Phase 4 — Run the voice chatbot demo (~3 min)
Open a third terminal:
cd ~
git clone https://github.com/yuyoujiang/Deploy-Riva-LLama-on-Jetson.git
cd Deploy-Riva-LLama-on-JetsonList audio devices:
python3 local_chatbot.py --list-input-devices
python3 local_chatbot.py --list-output-devicesLaunch the chatbot with your device IDs:
python3 local_chatbot.py --input-device <INPUT_ID> --output-device <OUTPUT_ID>[OK] when the chatbot responds to voice input with spoken output.
Failure decision tree
| Symptom | Action |
| NGC CLI download fails | Check internet. Retry wget. Verify arm64 architecture. |
ngc config set auth error | Regenerate API key at https://ngc.nvidia.com. |
riva_init.sh fails | Check Docker is running with NVIDIA runtime. Verify /etc/docker/daemon.json. |
| Riva server won't start | Check GPU memory: jtop. Stop other GPU processes. |
| text-generation-inference OOM | Llama2-7b needs ~16GB. Use AGX Orin 32GB+ or try a smaller model. |
| HuggingFace token rejected | Ensure you accepted the Llama2 license on HuggingFace. Regenerate token. |
| No audio devices found | Check USB mic/speaker: aplay -l and arecord -l. |
| Chatbot no response | Verify Riva (port 50051) and LLM (port 8899) are both running. |
Reference files
references/source.body.md— Full Seeed Wiki tutorial with Riva config.sh details, screenshots, and demo video (reference only)
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.

