NVIDIA NeMo Fabric Quickstart

View as Markdown

This guide demonstrates how to install and run a simple agent using NeMo Fabric.

Install NeMo Fabric

Using Python 3.11 through 3.13, create a virtual environment and install the NeMo Fabric runtime, Hermes Agent adapter, and supported Hermes Agent dependencies:

python -m venv .venv
source .venv/bin/activate
pip install "nemo-fabric[hermes-agent]"

If the environment already manages Hermes Agent, install the runtime and bare adapter with pip install nemo-fabric nemo-fabric-adapters-hermes. Refer to the installation guide for separate adapter environments and the other supported package combinations.

Obtaining API Keys

The following code example uses an NVIDIA-hosted model and requires an NVIDIA API key defined with the NVIDIA_API_KEY environment variable. An API key can be obtained by creating an account on build.nvidia.com.

Run a Simple Agent

import asyncio
from nemo_fabric import (
Fabric,
FabricConfig,
HarnessConfig,
MetadataConfig,
ModelConfig,
RuntimeConfig,
)
config = FabricConfig(
metadata=MetadataConfig(name="quickstart-agent"),
harness=HarnessConfig(
adapter_id="nvidia.fabric.hermes",
resolution="preinstalled",
),
runtime=RuntimeConfig(max_turns=1),
models={
"default": ModelConfig(
provider="nvidia",
model="nvidia/nemotron-3-nano-omni-30b-a3b-reasoning",
api_key_env="NVIDIA_API_KEY",
base_url="https://integrate.api.nvidia.com/v1",
)
},
)
result = asyncio.run(Fabric().run(config, input="Who are you?"))
print(result.output.response)

A more detailed version of this example is available as a Jupyter Notebook at examples/notebooks/01_quickstart.ipynb.

Next Steps