Skip to content

v2.0.0

Latest

Choose a tag to compare

@farshidtz farshidtz released this 26 Nov 10:10
· 13 commits to main since this release
41c51df

This major release reworks model handling, renames the CLI to modelctl, and moves its source from canonical/inference-snaps-cli into this repository under modelctl/. Some v1 interfaces were removed or changed. Read the breaking changes before upgrading.

⚠️ Breaking changes

These changes affect anyone upgrading from v1.0.0.

User-facing

Developer-facing

These changes affect people who build inference snaps or use the modelctl Go module.

  • The CLI is now modelctl. The binary is now modelctl instead of cli, and the release artifacts are now modelctl-linux-<arch>.tar.xz instead of inference-snaps-cli-linux-<arch>.tar.xz (canonical/inference-snaps-cli#380).
  • The Go module path changed from github.com/canonical/inference-snaps-cli to github.com/canonical/inference-snaps/modelctl/v2 (canonical/inference-snaps-cli#379, #401).
  • component.yaml was replaced by runtime.yaml and model.yaml. Each component used to have its own component.yaml under $SNAP_COMPONENTS. That file is no longer read. Engine settings are now split into two kinds of manifest inside the snap (canonical/inference-snaps-cli#362):
    • Runtime manifests at $SNAP/runtimes/<runtime>/runtime.yaml define the servers, environment, layout, and components of an inference runtime.
    • Model manifests at $SNAP/models/<model>/model.yaml define a model's metadata, capabilities, disk and memory requirements, environment, layout, and components.
  • The engine manifest schema changed (canonical/inference-snaps-cli#362, canonical/inference-snaps-cli#364, canonical/inference-snaps-cli#365):
    • Removed components, memory, and disk-space. Components and resource requirements now come from the referenced runtime and models.
    • Added runtime, which references a runtime manifest, and model, which sets a default model and the model options.
    • Replaced grade with an optional experimental boolean.
    • Added a required summary field of up to 56 characters.
  • Removed the deprecated run --wait-for-components flag. run already waited for components in v1 (canonical/inference-snaps-cli#458).
  • Removed the serve-webui --capabilities flag. The web UI now reads capabilities from the active model's metadata (canonical/inference-snaps-cli#395).

Added

Model management

Engine selection and hardware detection

Commands

Changed

Fixed

Project and tooling

Full changelog: canonical/inference-snaps-cli v1.0.0...main, up to the repository merge, followed by the modelctl/ history in this repository.