Build.nvidia.com Model Target#
The following target references the NVIDIA Llama 3.1 Nemotron Nano 8B V1 model from build.nvidia.com.
Refer to garak.generators.nim.NVOpenAIChat for the parameters to specify in the options.nim field.
The options override the default values from the DEFAULT_PARAMS in the API reference.
Important
Export the NIM_API_KEY environment variable with your API key when you start the microservice container.
Set the AUDITOR_BASE_URL environment variable to the NeMo Auditor service endpoint.
Refer to Accessing the Microservice for more information.
import os
from nemo_microservices import NeMoMicroservices
client = NeMoMicroservices(base_url=os.getenv("AUDITOR_BASE_URL"))
target = client.beta.audit.targets.create(
namespace="default",
name="demo-build-nvidia-com-target",
type="nim.NVOpenAIChat",
model="nvidia/llama-3.1-nemotron-nano-8b-v1",
options={
"nim": {
"skip_seq_start": "<think>",
"skip_seq_end": "</think>",
"max_tokens": 3200,
"uri": "https://integrate.api.nvidia.com/v1/"
}
}
)
print(target.model_dump_json(indent=2))
curl -X POST "${AUDITOR_BASE_URL}/v1beta1/audit/targets" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"namespace": "default",
"name": "demo-build-nvidia-com-target",
"type": "nim.NVOpenAIChat",
"model": "nvidia/llama-3.1-nemotron-nano-8b-v1",
"options": {
"nim": {
"skip_seq_start": "<think>",
"skip_seq_end": "</think>",
"max_tokens": 3200,
"uri": "https://integrate.api.nvidia.com/v1/"
}
}
}' | jq
Example Output
{
"model": "nvidia/llama-3.1-nemotron-nano-8b-v1",
"type": "nim.NVOpenAIChat",
"id": "audit_target-M5pVmPDkHEzMjF9m4Gnqmw",
"created_at": "2025-10-23T18:08:50.802966",
"custom_fields": {},
"description": null,
"entity_id": "audit_target-M5pVmPDkHEzMjF9m4Gnqmw",
"name": "demo-build-nvidia-com-target",
"namespace": "default",
"options": {
"nim": {
"skip_seq_start": "<think>",
"skip_seq_end": "</think>",
"max_tokens": 3200,
"uri": "https://integrate.api.nvidia.com/v1/"
}
},
"ownership": null,
"project": null,
"schema_version": "1.0",
"type_prefix": null,
"updated_at": "2025-10-23T18:08:50.802972"
}
{
"schema_version": "1.0",
"id": "audit_target-ER2Tf3qztdckfnJb6zARFY",
"description": null,
"type_prefix": null,
"namespace": "default",
"project": null,
"created_at": "2025-10-22T20:15:04.416121",
"updated_at": "2025-10-22T20:15:04.416124",
"custom_fields": {},
"ownership": null,
"name": "demo-build-nvidia-com-target",
"entity_id": "audit_target-ER2Tf3qztdckfnJb6zARFY",
"type": "nim.NVOpenAIChat",
"model": "nvidia/llama-3.1-nemotron-nano-8b-v1",
"options": {
"nim": {
"skip_seq_start": "<think>",
"skip_seq_end": "</think>",
"max_tokens": 3200,
"uri": "https://integrate.api.nvidia.com/v1/"
}
}
}