NVIDIAShara TibkenTutorial
Run AI Models for Edge Application Development with Just a Few Commands
Summary
NVIDIA DGX Spark, now available in a 64GB configuration, provides a platform for prototyping and testing AI models for edge applications such as robotics and autonomous systems. The TensorRT Edge-LLM runtime offers a lightweight C++ inference engine for embedded workloads, allowing developers to use the same framework on Spark and deployment platforms like Jetson Thor. With the trtedge CLI, users can download models and build optimized TensorRT engines in a few commands. The tutorial demonstrates running Nemotron-3.5 Lightning on Spark, testing prompts in the terminal, and serving the model through an OpenAI-compatible API. Performance benchmarks show that enabling DSpark speculative decoding increases generation speed from around 73 tokens/s to over 105 tokens/s on SpeedBench workloads.
Context
NVIDIA DGX Spark is a compact AI supercomputer for edge development. TensorRT Edge-LLM is a lightweight inference runtime for embedded systems. This tutorial shows how to set up and run models on Spark using the trtedge CLI.
Approach / What changed
Install TensorRT Edge-LLM in a virtual environment, use trtedge chat to run Nemotron-3.5 Lightning interactively, then serve it via an OpenAI-compatible API with trtedge serve. Optionally enable DSpark speculative decoding to accelerate generation by specifying a draft model and number of speculative tokens.
Takeaways
TensorRT Edge-LLM provides a lightweight C++ inference runtime for embedded workloads, allowing the same framework to be used on DGX Spark for development and on Jetson Thor, DRIVE AGX Thor, and IGX Thor for deployment.
With DSpark speculative decoding enabled using three draft tokens, generation speed on SpeedBench 1K increased from 73.3 tokens/s to 108.5 tokens/s, while time to first token remained similar.
The trtedge CLI downloads models and builds optimized TensorRT engines automatically on first use, caching them in ~/.cache/tensorrt-edgellm for reuse.
FAQ
What are the prerequisites for using TensorRT Edge-LLM on DGX Spark?
You need a DGX Spark with NVIDIA CUDA 13, TensorRT 10.16.1.11 or newer within the 10.x series, and Python 3.10 to 3.12. The tutorial uses TensorRT Edge-LLM 0.11.1 and TensorRT 10.16.1.11.
How do I enable DSpark speculative decoding?
Restart the trtedge serve command with the --speculative-config flag, specifying the method as 'dspark', the draft model (e.g., nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-NVFP4-DSpark), and the number of speculative tokens (e.g., 3).
What performance improvement does DSpark speculative decoding provide?
On SpeedBench 1K, DSpark increased mean generation speed from 73.3 tokens/s to 108.5 tokens/s, a 48% improvement, while median TTFT remained nearly unchanged at 203 ms.
Source and freshness
- Source
- developer.nvidia.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.