Deploy Riva Llama2 logo

Deploy Riva Llama2

Organization
Seeed-Projects
deploy-riva-llama2

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.

Overview

PublisherSeeed-Projects
RepositorySeeed-Jetson-DevelopTool
Skill namedeploy-riva-llama2
Stars
58
Forks
9
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Seeed-Projects on GitHub. Read the source before you install it.

Installation

Install the Deploy Riva Llama2 AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/deploy-riva-llama2
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool.git /tmp/Seeed-Jetson-DevelopTool
mkdir -p .claude/skills
cp -r /tmp/Seeed-Jetson-DevelopTool/seeed_jetson_develop/skills/openclaw/deploy-riva-llama2 .claude/skills/deploy-riva-llama2
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Deploy Riva Llama2 in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Deploy Riva Llama2 on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Deploy Riva Llama2 is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

RequirementDetail
HardwareJetson AGX Orin 32GB+ (e.g. AGX Orin H01 Kit)
JetPack5.1.1 or later
AudioSpeaker + microphone (e.g. ReSpeaker USB Mic Array)
NGC accountRequired for Riva model download
HuggingFace tokenRequired for Llama2 model access
DockerInstalled with NVIDIA runtime

Phase 1 — Configure NGC CLI (~3 min)

bash
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 set

Enter 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)

bash
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.1

Edit config.sh to disable unused services:

bash
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.sh

Configure Docker for NVIDIA runtime:

bash
sudo bash -c 'cat > /etc/docker/daemon.json << EOF
{
    "default-runtime": "nvidia",
    "runtimes": {
        "nvidia": {
            "path": "nvidia-container-runtime",
            "runtimeArgs": []
        }
    }
}
EOF'
sudo systemctl restart docker

Initialize and start Riva:

bash
sudo bash riva_init.sh
sudo bash riva_start.sh

Keep 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:

bash
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:

bash
export HUGGING_FACE_HUB_TOKEN=<your-huggingface-token>
text-generation-launcher --model-id meta-llama/Llama-2-7b-chat-hf --port 8899

Keep 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:

bash
cd ~
git clone https://github.com/yuyoujiang/Deploy-Riva-LLama-on-Jetson.git
cd Deploy-Riva-LLama-on-Jetson

List audio devices:

bash
python3 local_chatbot.py --list-input-devices
python3 local_chatbot.py --list-output-devices

Launch the chatbot with your device IDs:

bash
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

SymptomAction
NGC CLI download failsCheck internet. Retry wget. Verify arm64 architecture.
ngc config set auth errorRegenerate API key at https://ngc.nvidia.com.
riva_init.sh failsCheck Docker is running with NVIDIA runtime. Verify /etc/docker/daemon.json.
Riva server won't startCheck GPU memory: jtop. Stop other GPU processes.
text-generation-inference OOMLlama2-7b needs ~16GB. Use AGX Orin 32GB+ or try a smaller model.
HuggingFace token rejectedEnsure you accepted the Llama2 license on HuggingFace. Regenerate token.
No audio devices foundCheck USB mic/speaker: aplay -l and arecord -l.
Chatbot no responseVerify 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)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Deploy Riva Llama2 AI skill do?

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.

Why use Deploy Riva Llama2 on TypingMind?

Because you install it once and use it with any model. Deploy Riva Llama2 is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Deploy Riva Llama2 in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Seeed-Projects/Seeed-Jetson-DevelopTool/tree/main/seeed_jetson_develop/skills/openclaw/deploy-riva-llama2. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Deploy Riva Llama2?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Deploy Riva Llama2?

As many as you like. As long as a model supports skills, you can use Deploy Riva Llama2 with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Deploy Riva Llama2 AI skill free?

Yes. It is published on GitHub by Seeed-Projects under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇