UCloud logo UCloud logo UCloud
v2026.7.0-k8s.18
  1. UCloud/Core
  2. 1. Introduction
  3. 2. Projects
  4. 3. API Tokens
    1. 3.1. Platform API Tokens
    2. 3.2. Provider API Tokens
  5. 4. Accounting
  6. 5. Orchestration
  7. 6. Frontend
  8. UCloud/IM for Slurm-based HPC
  9. 7. Installation
  10. 8. Architecture and Networking
  11. 9. User and Project Management
  12. 10. Filesystem Integration
    1. 10.1. Inter-provider file transfers
  13. 11. Slurm Integration
    1. 11.1. Application Management
    2. 11.2. Built-in Applications
  14. 12. Reference
    1. 12.1. Configuration
    2. 12.2. CLI
  15. 13. Appendix
    1. 13.1. Built-in Application Index
  16. UCloud/IM for Kubernetes
  17. 14. Installation
  18. 15. Architecture and Networking
  19. 16. Filesystem Integration
  20. 17. Compute Jobs
    1. 17.1. Networks
    2. 17.2. Public Links
    3. 17.3. Public IPs
    4. 17.4. License Servers
    5. 17.5. SSH Servers
    6. 17.6. Job Audit Log
    7. 17.7. Virtual machines
  21. 18. AI Inference
    1. 18.1. Architecture
    2. 18.2. Chat Middleware
    3. 18.3. Chat Playground
    4. 18.4. Model Discovery and Catalog
    5. 18.5. Dynamo Deployments
    6. 18.6. Usage and Accounting
    7. 18.7. Audit
    8. 18.8. Metrics
    9. 18.9. Security
  22. 19. Integrated applications
    1. 19.1. Syncthing
    2. 19.2. Integrated terminal
    3. 19.3. Kubernetes clusters
      1. 19.3.1. Architecture
      2. 19.3.2. Stacks
      3. 19.3.3. Creating a cluster
      4. 19.3.4. Cluster dashboard
      5. 19.3.5. Networking and storage
      6. 19.3.6. Maintenance and upgrades
      7. 19.3.7. Backup and recovery
      8. 19.3.8. Reference
  23. 20. UCX applications
    1. 20.1. Hello world
    2. 20.2. Data binding
    3. 20.3. UI events
    4. 20.4. Component reference
    5. 20.5. API reference
  24. 21. Reference
    1. 21.1. Configuration
    2. 21.2. CLI
  25. Style guidelines
  26. 22. Branding and identity for UCloud
  27. 23. Documentation
  28. H: Procedures
  29. 24. H: Procedures
  30. 25. H: Introduction
  31. 26. H: Auditing
  32. 27. H: Auditing scenario
  33. 28. H: GitHub actions
  34. 29. H: Deployment
  35. 30. H: 3rd party dependencies (risk assesment)
  36. Glossary
  37. 31. Glossary
  1. Links
  2. Source Code
  3. Releases

Model Discovery and Catalog

The catalog is the list of models that the Integration Module publishes to users. Discovery keeps the catalog in step with the backend, and an operator curates the entries that discovery creates.

flowchart TB
    subgraph backend["Kubernetes namespace<br/>Inference"]
        services["Dynamo services<br/>Frontend | suffix: -frontend"]:::diagram-provider-server
        endpoint["Service endpoint<br/>/v1/models"]:::diagram-provider-globe-alt
    end

    subgraph im["UCloud/IM<br/>Inference module"]
        discovery["Model discovery<br/>Discovery loop | every 60 seconds"]:::diagram-provider-magnifying-glass
        newmodel["Catalog entry<br/>New model | 1 Credit/1M tokens"]:::diagram-provider-document-text
        catalog["Catalog table<br/>inference_model"]:::diagram-provider-circle-stack
        curation["Administrator<br/>Curation | CLI or model page"]:::diagram-provider-user
        visible["Visible models<br/>Public or availableTo"]:::diagram-provider-document-text
    end

    subgraph core["UCloud/Core"]
        usage["Accounting<br/>Usage and billing | Credits"]:::diagram-external-calculator
    end

    class backend diagram-provider-kubernetes
    class im diagram-provider-ucloud
    class core diagram-external-ucloud

    discovery --> backend
    discovery --> newmodel
    newmodel --> catalog
    curation --> catalog
    catalog --> visible
    visible --> usage

The discovery loop and the catalog, and who reads and writes them. It does not show the CLI commands or the pricing rules.

Discovery

Discovery runs when the Integration Module starts, and then every 60 seconds. For the dynamo provider it does the following:

  1. List the services in the namespace from services.compute.inference.dynamo.namespace.
  2. Keep the services whose name ends with -frontend.
  3. Build the endpoint http://<name>-frontend.<namespace>.svc.cluster.local:<port>/v1, where the port is the first port of the service.
  4. Call /v1/models on that endpoint, with a 15 second timeout.

Every entry of the response with an object type of model and a non-empty identifier becomes a catalog entry.

When the same backend model is already in the catalog under another name, discovery only refreshes the context window of that entry. It does not add a second entry.

The development provider has no discovery loop. It reads the single backend from development.server, so each model must be added by hand. See Creating an entry. The exception is the LocalAI bootstrap, which runs in development mode, applies a fallback model, and discovers that model once at startup.

Values applied by discovery

FieldValue
name and titleThe model identifier from the backend.
capabilitiesTextGeneration. Vision, video, and audio are opt in per model.
pricePerMillionOne Credit per million tokens for cached input, input, and output.
availabilityPrivate, and visible to the projects in access.testers.
endpoint.basePathThe endpoint of the service.
endpoint.backendModelNameThe model identifier from the backend.
contextWindowThe value the backend reports, when it reports one.
chatSettings.temperature0.8.
chatSettings.topP0.1.
chatSettings.maxCompletionTokens131072.
chatSettings.disableToolsfalse, and true for the LocalAI bootstrap.

Discovery overwrites none of these values on an existing entry, except the context window. Prices, titles, and visibility stay as the operator set them.

Visibility

A model is either public or private.

  • A public model is visible to every user.
  • A private model is visible to the projects in its availableTo list. A user without a project cannot see a private model at all.

Two configuration lists decide who curates and who tests:

  • access.administrators lists the project IDs that may curate the catalog. An administrator also joins the testers.
  • access.testers lists the project IDs that newly discovered private models are visible to.

An administrator can see every model, including the models that are not visible to the administrator as a user.

Curation

An administrator can change every field of a catalog entry, from the model page in the web interface or from the CLI on the host of the Integration Module. The CLI also creates an entry when the name is not in the catalog.

Model page

Open a model from the Models page, select Edit, and change the price, the capabilities, the reasoning efforts, the endpoint, the chat defaults, and the benchmark scores. The page also holds the datasheet of the model and the API usage section.

Creating an entry

Discovery creates an entry when it finds a model that the catalog does not hold. The dynamo provider does this at startup and every 60 seconds. The LocalAI bootstrap does it once at startup.

A backend that discovery does not cover needs one entry for each model. Give ucloud inference models update a name that the catalog does not hold, and the command creates the entry from the flags:

$ ucloud inference models update my-model \
    --title "My model" \
    --base-path http://my-server:8080/v1 \
    --backend-model-name the-name-the-backend-expects

A create needs --base-path and --backend-model-name, because the catalog cannot guess which backend model the name belongs to.

A new entry starts with the defaults that discovery also applies:

FieldDefault
titleThe name of the model.
capabilitiesTextGeneration.
pricePerMillionOne Credit per million tokens for cached input, input, and output.
availabilityPrivate, and visible to the projects in access.testers.
chatSettings.temperature0.8.
chatSettings.topP0.1.
chatSettings.maxCompletionTokens131072.

The endpoint must follow the rules of the provider. With the development provider, the base path must equal development.server exactly, including the scheme, the host, and the path. See Backends.

An entry is private until an administrator publishes it. Do not pass --name when you create an entry, because that option renames an entry that the catalog already holds.

CLI

All catalog commands run as root on the host of the Integration Module:

$ ucloud inference models ls
$ ucloud inference models update <name> [options]
$ ucloud inference models rm <name>
OptionEffect
--name <name>Rename the model. Only while the model is not public.
--title <title>Set the display title.
--capabilities <list>Set a comma-separated capability list. The allowed value is TextGeneration.
--reasoning-efforts <list>Set the reasoning values, as display=value pairs.
--default-reasoning-effort <value>Set the default reasoning value.
--price-per-million-cached <n>Set the price of cached input.
--price-per-million-input <n>Set the price of input.
--price-per-million-output <n>Set the price of output.
--public=true / --public=falsePublish or withdraw the model.
--available-to <list>Set the project IDs that may use a private model.
--base-path <url>Set the endpoint of the backend.
--backend-model-name <name>Set the model name that the backend receives.
--temperature <n>Set the default temperature, from 0 to 2.
--top-p <n>Set the default top P, from 0 to 1.
--max-completion-tokens <n>Set the default completion limit.
--system-prompt <text>Set the default system prompt. An empty value clears it.

The command creates the entry when the catalog does not hold the name. See Creating an entry.

Pricing

A price is a fixed point integer in Credits per one million tokens. The scale is 1000000, so 1000000 means one Credit per million tokens. Zero is valid and means free.

A model has three prices: cached input, input, and output. The Integration Module reads the reported token usage of each request and reports the cost to the accounting system. See Usage and Accounting.

Review the price of a discovered model before you publish it. The default of one Credit per million tokens is a placeholder.

Rules to remember

  • A public model cannot be renamed. Withdraw it, rename it, and publish it again.
  • Removing a catalog entry stops new requests for that model. It does not stop the backend, and the next discovery pass adds the entry back. To retire a model, remove the backend service first.
  • A chat request for a name that the catalog does not hold fails validation. Curation decides what users may call.
  • The capabilities of a model are advertised to clients in the model list. Set them to match the backend, so that a client knows which modalities the model accepts.

Next steps

  • Architecture describes the request lifecycle and the limits.
  • CLI reference lists every catalog command.
Previous Chat Playground
Next Dynamo Deployments