Skip to content

Nexus Package Structure Guide

This document defines the folder structure and configuration files for a Nexus package based on the requirements outlined in the Nexus Package requirements document.

1. Overview

A Nexus package is a metadata and configuration package that references an external Python package (released on GitHub or PyPI) and defines the models it supports. Its purpose is validation and integration of Algorithm Stack Packages into the Algorithm Nexus ecosystem.

The Nexus package serves as a registry entry that:

  • References a Python package with versioned releases on GitHub or PyPI
  • Defines which models are supported by that Python package
  • Enables dependency resolution across all packages in the Algorithm Nexus
  • Can optionally register model-specific benchmark submissions for benchmarking workflows

2. Folder Structure

Each Nexus package must be placed under the top-level packages/ directory in the repository. Within packages/, each package directory must contain the following structure:

packages/
└── <nexus-package-name>/
    ├── nexus.yaml               # Required package metadata
    ├── skills/                  # Optional agent skills resources
    └── models/
        ├── <model-1>/
        │   ├── model.yaml       # Required model metadata
        │   └── usage.md         # Optional usage documentation
        ├── <model-2>/
        │   └── ...
        └── ...

The required root file is nexus.yaml, which declares the Nexus package metadata. skills is optional and should only be included when the package provides agent skills to assist users in using the package. The models/ folder is required whenever a Nexus package wants to advertise one or more models, with one sub-folder for each model. Each model folder must contain a model.yaml file describing the model metadata and optional vLLM integration. A usage.md file can also be included to provide users with model-specific usage guidance.

Benchmark experiments and submissions are no longer hosted inside packages/. They live instead under the top-level experiments/ directory — see Section 3.2.3 Benchmarks and the Benchmark Experiments and Submissions.


3. Configuration Files

3.1. Nexus Package Configuration (nexus.yaml)

The nexus.yaml file defines package-level metadata and references the external Python package and its supported models.

3.1.1. Fields Summary

package
Field Type Required Description
name string Yes Python package name used as the Nexus package identifier. The package must publish versioned releases on GitHub or PyPI.

3.1.2. Example

package:
    name: "terratorch"

3.1.3. Agent Skills

Nexus packages can optionally include agent skills to assist users in working with the package. Agent skills must be placed in the skills folder in the package root, with one sub-folder for each skill. Agent skills should follow the agent skills specification to guarantee maximum interoperability across different agents.


3.2. Model Configuration (models/<model-name>/model.yaml)

Each model has its own configuration file defining integration requirements.

3.2.1. Fields Summary

model
Field Type Required Description
id string Yes Hugging Face model repository identifier, for example org/model-name.
owner string No Model owner GitHub identifier. If omitted, ownership defaults to the Nexus package owner.
vllm object No Only required for models that need additional vLLM plugins and belong to a Nexus Package targeting the product or candidate distribution variants.
model.vllm
Field Type Required Description
enabled boolean Yes Must be true to enable vLLM serving for this model.
plugins.general string No General vLLM plugin that loads the model class required in the runtime environment.
plugins.io_processors list[string] No List of vLLM IO processor plugins supported by this model that should be in the runtime environment.

Each model can optionally provide usage documentation in models/<model-name>/usage.md.

3.2.2. Example

model:
    id: "ibm-esa-geospatial/TerraMind-base-Flood"
    owner: "ibm-esa-geospatial-team"

    vllm:
        enabled: true
        plugins:
            io_processors:
                - "terratorch-tm-segmentation"

3.2.3. Benchmarks

Benchmark configuration is kept separate from models/<model-name>/model.yaml and from the packages/ tree entirely. Benchmark experiments and submissions live under the top-level experiments/ directory:

experiments/
└── <experiment-name>/
    ├── experiment_package.yaml  # Required: experiment package specifier
    ├── bindings/                # Optional: benchmark binding YAML files
    └── submissions/
        └── <submission-name>/
            └── space.yaml       # Required: ADO discoveryspace definition

Each experiments/<experiment-name>/experiment_package.yaml declares the Python package(s) (on PyPI or GitHub) that provide the experiment and lists their experiment identifiers and, optionally, versions. Each benchmark submission must have a space.yaml file with the full ADO discoveryspace definition for that run. See the Benchmark Experiments and Submissions for the complete schema and workflow.