Skip to main content

Model catalogue

Version
since 2.x, describes 2.52.14
Feature flag
model_catalog
For
Workspace user, Platform operator

Operators curate a catalogue of open-source models from a model source (the Hugging Face Hub or a mirror of it). The platform downloads each model's files once into a cache it owns and shows the catalogue to workspace users, who attach a cached model to a project either as a read-only mount (ready at once, no storage quota used) or as a writable copy on the project's storage (quota-counted, for fine-tuning). Licences are recorded per model; a gated model must be accepted in the app before first use. Ready models open in notebook sessions and can be served as Inference endpoints.

What it does​

  • Lets operators add a model by its source repository id. The platform reads the size, the licence identifier and the gated flag from the source, defaults the display name to the repository name and pins the source revision (commit) so that what is cached stays reproducible. An entry moves draft, then available (visible to users), then deprecated (hidden from the catalogue, existing grants keep working).
  • Downloads a model into the cache on request (Cache now): a platform service streams every file listed in the source manifest into one directory per entry and revision on a shared filesystem, resumes interrupted downloads, checks each file's size against the manifest and reports progress. Cache states are not_cached, queued, caching, cached and error.
  • Shows users the catalogue of available entries with family, parameter count, task type, size, licence, a Gated marker and the cache state (Ready when cached). Only cached entries can be attached.
  • Attaches a model to a project in one of two modes. Use in project creates a read-only mount: ready immediately, path equal to the cache directory, no storage quota used. Copy to project storage materialises a writable copy under models/<name>/ on the project's share through the states pending, copying, ready (or error), and deleting on removal; before the copy starts, the platform checks that the model's size, rounded up to whole GB, fits the project's storage quota alongside its existing volumes.
  • Records a licence per model (the SPDX identifier from the source; an operator can set or change the identifier, a URL to the terms and a reference to the licence text over the API) and a gated flag (from the source, or set by an operator). A gated model requires the user to accept the licence in the app once; the acceptance (user, workspace, entry, licence text reference, time) is recorded and applies to that user across the platform.
  • Holds one operator token for the model source per deployment, in the API's environment, for gated or private repositories. The token is never stored in the database, never shown in any interface and never used on behalf of a user; users never contact the source themselves.
  • Hands ready models to the other capabilities: Open in notebook starts an interactive session with the model's path preset; Serve opens the endpoint creation dialog of Inference endpoints.
  • Is switched on per deployment with the model_catalog feature flag.

Where it is​

SurfacePath
Web app (catalogue)Models in the workspace sidebar: one card per model with Use in project and Copy to project storage
Web app (project)Project page, storage tab, Models section: the project's mounts and copies with status, size and path, plus Open in notebook, Serve and remove
Operator consoleCatalog, then Models: the list, Add model, and per entry Refresh metadata, Publish or Deprecate, Cache now, Remove cache, Delete
API (workspace)GET /api/v1/workspaces/{workspace_id}/models; POST .../models/{entry_id}/accept-license; GET, POST /api/v1/workspaces/{workspace_id}/projects/{project_id}/models; DELETE .../projects/{project_id}/models/{model_id}
API (operators)GET /admin/models?status=, POST /admin/models; PATCH, DELETE /admin/models/{id}; POST /admin/models/{id}/refresh-metadata; POST, DELETE /admin/models/{id}/cache
CLInone

How to use it​

Curate, cache and publish a model (operator)​

  1. Switch on model_catalog under Platform, then Feature flags. Unlike most capabilities, the operator routes of the catalogue are also behind the flag; there is no bring-up exemption because curation needs nothing registered first.
  2. Open Catalog, then Models, and press Add model. Enter the Source repository id in the form org/name (no whitespace); display name, family, parameters and task type are optional. On Create the platform reads the source metadata, pins the current revision and fills size, licence and the gated flag. If the source cannot be read, the entry is still created as a draft with a warning and an unpinned revision; once the source is reachable, use Refresh metadata and Pin latest revision to pin it (size and licence are then set over the API), or delete the draft and add the model again. A second entry for the same repository is refused with 409 model_exists while the draft is unpinned.
  3. On the entry's page press Cache now. The entry goes queued, then caching with a progress bar (the page polls every 5 seconds), then cached with the cache path, or error with the message shown on the page. A failed download is retried by pressing Cache now again; the download resumes from the files already on disk.
  4. Press Publish to move the entry from draft to available. It now appears in every workspace's catalogue. Deprecate hides it again while grants keep working; a deprecated entry does not come back (re-offer the model as a new entry).
  5. To follow a new upstream revision, press Refresh metadata: the dialog shows the pinned and the latest revision and offers Pin latest revision. Pinning only changes the pin; press Remove cache and Cache now afterwards to fetch the new files.
  6. Remove cache deletes the cached files; the console warns that existing project mounts of this model will break. Delete removes the entry and its licence acceptances, and is refused with 409 model_in_use while any project still holds a mount or copy of it.

Use a model on a project (user)​

  1. Open Models in the workspace sidebar. Every workspace member can browse the catalogue and accept licences; adding or removing a model on a project requires the ManageProjects workspace permission (see Permissions).
  2. On a card marked Ready, press Use in project for a read-only mount or Copy to project storage for a writable copy. For a model marked Gated whose licence you have not accepted, the licence dialog opens first: it shows the licence identifier and a link to the terms; press Accept license to record your acceptance and continue.
  3. Choose the project. A mount is available at once. A copy is checked against the project's storage quota (see Quotas and capacity) using the catalogue size rounded up to whole GB, then transferred in the background; the project's Models section polls every 5 seconds until it is ready.
  4. In the project's Models section, copy the path, press Open in notebook to start an interactive session with the model path preset (the session's launch script exports it as the environment variable CEREBRO_MODEL_PATH before JupyterLab starts; see Jobs and scheduling), or press Serve to create an inference endpoint on it.
  5. Removing a mount is immediate and leaves the cache untouched. Removing a copy requests deletion: the grant shows deleting until the platform has removed the files and the row.

On-demand and on-prem​

  • On-demand (web): switched on. We curate the catalogue and keep the model cache; you browse the published models and use them in your projects, as a read-only mount or as a copy on project storage.
  • Licensed on-prem: your operators create the cache area on the platform's shared filesystem, mount it read-only on the compute nodes that run sessions and jobs, run the fetcher service on a host where the cache and the project shares are mounted, configure the model source and, when gated repositories are needed, the operator token, and then switch on model_catalog; see Deployment and integration for the order and Configuration for the flag. Your operators curate the catalogue.

Numbers​

WhatValueWhere it is set
Fetcher work loopone pass every 10 seconds by default; one cache job and one copy job are claimed per passper deployment
Stalled download or copya caching entry or copying grant with no progress for 30 minutes (default) is marked error with an interrupted messageper deployment
Progress reportingwritten every 64 MiB downloaded; shown as a progress bar against the catalogue sizeplatform
Download verificationeach file's size against the source manifest; a mismatch fails the downloadplatform
Resumean interrupted file resumes from the bytes already on disk (HTTP range request); complete files are not downloaded againplatform
Retrynone automatic; the operator presses Cache now again (a failed copy is removed and requested again)platform
Cache size limitnone set by the platform; curation is the control and the filesystem's capacity is monitored by the deploymentper deployment
Storage quota check for a copythe catalogue size rounded up to whole GB (a 1-byte model counts as 1 GB) must fit the project's storage quota alongside its volumes at the time of the request; the copied files then live inside the project shareplatform
Storage quota check for a mountnoneplatform
Grantsone per project, entry and mode (409 model_already_added)platform
Entriesone per source repository and pinned revision (409 model_exists)platform
Licence acceptanceone per user and entry, platform-wide, kept when the entry is un-gated, deleted with the entryplatform
Page refreshentry page every 5 seconds while queued or caching; project Models section every 5 seconds while a grant is pending, copying or deletingplatform
Copy directory namethe display name lower-cased and reduced to a-z, 0-9 and - under models/ on the project shareplatform

Limits and known behaviour​

  • Only curated models are offered. Users cannot add arbitrary source repositories, cannot supply their own source tokens and never reach the model source directly; the platform's cache is the only path.
  • The catalogue does not synchronise itself with the source. Revisions are pinned at creation; Refresh metadata offers a newer revision and never applies it silently. Re-pinning does not touch the cache: remove and re-cache to fetch the new files.
  • File verification is by size only in 2.48.6; checksums are not checked. The catalogue size is a lower bound: files whose size the source does not report count as 0.
  • Copies on real project storage need a deployment-level step. The fetcher writes copies into a directory tree with one entry per project under a single root; where project shares exist as separately addressed volumes, the deployment must provide that layout before offering copies, otherwise copy grants land in error with a path failure. Mounts need none of this, and a deployment can run with mounts only.
  • Isolation is deliberately soft: compute nodes mount the whole cache read-only, so any process on a node can read any cached model. Per-model access control is a deployment hardening measure, not a platform feature.
  • Remove cache breaks existing mounts of that model; grants are not updated. A Delete of the entry is refused while grants exist (409 model_in_use); remove the grants first.
  • Right after Remove cache the entry can show not_cached while still carrying a cache path: that is the removal-pending state until the fetcher has deleted the files.
  • A gated model refuses Use in project and Copy to project storage with 403 model_license_not_accepted until the user has accepted; the app opens the licence dialog and retries once. Acceptance is per user, not per workspace, and is recorded for audit.
  • Attaching anything but an available and cached entry answers 409 model_not_ready; an entry that is not available reads as 404 model_not_found to users. A copy of an entry with no known size is refused with 409 model_not_ready as well, because the quota cannot be accounted.
  • Removing a copy that is still pending, copying or deleting answers 409 model_grant_busy.
  • Source failures surface as 400 model_source_unauthorized (the operator token cannot read the repository; accept the vendor's terms at the source under that token), 404 model_source_repo_not_found or 400 model_source_unavailable. A download that fails at once with an access error has the same cause; a size mismatch means the source moved under a non-pinned reference.
  • Switching model_catalog off makes the workspace and operator routes answer 404 feature_disabled and hides the Models page, the sidebar item and the project Models sections. The fetcher keeps draining removals (cache removals, copy deletions) and the stall sweep but claims no new downloads or copies. Cached files, grants and licence acceptances are kept; mounts in running sessions keep working; re-enabling resumes where it left off. Cached files are only ever removed by Remove cache.
  • Planned: checksum verification of downloaded files. Tenant-supplied source tokens, automatic catalogue synchronisation and per-model isolation are not in 2.48.6 and are not promised.