Skip to content

NVIDIA DGX Spark - Primary Compute Pattern

The DGX Spark is a compact GPU workstation well suited as the primary inference and orchestration node for an agent platform. It handles model inference, cron scheduling, memory management, and the majority of operational workloads.

Hardware

NVIDIA GPU with CUDA support. Local inference eliminates API latency and cost for lightweight tasks. The machine runs 24/7 with automatic recovery for any agent process failures.

Software Stack

Layer Component Purpose
OS Ubuntu Linux Base system, NVIDIA drivers
Runtime Python 3.11+ (3.13 in the current runtime) Agent and script execution
Inference vLLM, OpenAI-compatible Serves the routed small model (Qwen3-8B) on 127.0.0.1:8100 with an 8K context window for routine tasks
Embeddings Ollama Local embedding model for retrieval and memory
Scheduling cron + systemd 24/7 job execution
Process guard systemd Restart=always + StartLimitIntervalSec=0 Auto-recovery that keeps retrying instead of giving up after a restart burst

Workloads

Model Routing

One served small model on the local vLLM endpoint handles routine execution at zero API cost. Complex reasoning escalates to premium APIs. This hybrid approach keeps the monthly API bill low while preserving quality on hard tasks, and the router - not the model - owns the decision to escalate.

Cron Scheduling

All recurring jobs run from the primary node. Each cron references standalone wrapper scripts - never inline shell with complex quoting.

Memory Management

Session state and knowledge stores live on local disk. Regular pruning keeps databases lean.

Multi-Profile Isolation

Multiple agent profiles run on one machine. Each profile gets its own directory tree, environment, and token storage.

Lessons Learned

  1. Wrapper scripts over inline cron commands. A cron Script field that points to a script file survives environment changes; inline pipelines break silently.
  2. Watchdog everything. If the agent goes dark, something must notice. A watchdog cron that checks gateway health catches silent failures.
  3. Token expiry is a silent killer. JWT/API tokens expire without warning. Schedule proactive refresh checks rather than waiting for failures.

All Pages

AI answers on your data. See where every number comes from.

Connect your tools and ask in ChatGPT, Claude, or Perplexity. Enterprise-grade answers in minutes. From $29.95/month.

Start free, no credit card
Contact Terms Privacy Pricing