SparkRun, part 1: install and run
Here's how to install SparkRun on a DGX Spark and run a model. Part two covers our app.
Chapters
- 0:00Introduction
- 0:08Where this fits: The AI stack
- 0:15What it does: A recipe starts a model
- 0:25Read this first: Recipes can run commands
- 0:41Install: Install, without the wizard
- 0:53The setup wizard: It changes your system
- 1:10Run a model: Read, preview, run
- 1:25Wrap up
Read the transcript
Introduction
Here's how to install SparkRun on a DGX Spark and run a model. Part two covers our app.
Where this fits: The AI stack
Start at the bottom: the machine. SparkRun starts the software that runs models on it.
What it does: A recipe starts a model
A recipe is a file naming a model, a container and settings. SparkRun reads it, and starts the container. Then the model answers requests.
Read this first: Recipes can run commands
A recipe can run commands, in the container or on your own machine. SparkRun says the registries it ships with are trusted, so those commands run without asking. That includes community recipes, which anyone can propose. So read first.
Install: Install, without the wizard
With uv installed, run this. It installs SparkRun, and sends no usage data for this run. To keep usage data off, run this too. Then check the version.
SPARKRUN_NO_TELEMETRY=1 uvx sparkrun setup install
sparkrun setup telemetry --disable
sparkrun --versionThe setup wizard: It changes your system
Preview the wizard first. It can add SSH keys. With two Sparks, it can write network settings. Keep another way in. It can add you to the Docker group, and add some sudo rules. And it can install a tool that ends processes when memory runs short.
Run a model: Read, preview, run
Save a copy of the recipe, then open it and read every line. Preview with a dry run. Starting uses the GPU and memory, so check what's already running. Then run it. Control C closes your view, not the model.
sparkrun export recipe RECIPE --save my-recipe.yaml
less my-recipe.yaml
sparkrun run ./my-recipe.yaml --dry-run
sparkrun status
sparkrun run ./my-recipe.yamlWrap up
Check status, and stop by job ID. Stopping ends service for everyone using it.
Sources
- sparkrun.dev
- sparkrun.dev/getting-started/installation
- sparkrun.dev/getting-started/setup-wizard
- sparkrun.dev/cli/run
- sparkrun.dev/advanced/security
- sparkrun.dev/getting-started/updates
- github.com/spark-arena/sparkrun