Light Logo
Model versions

Update a model version's configuration

Updates the configuration for a model version. This configuration change only applies to new runs of the model and does not affect existing runs.

PATCH
/models/{model_owner}/{model_name}/versions/{version_number}/configuration
AuthorizationBearer <token>

In: header

Path Parameters

model_ownerModel Owner

The name of the model's owner.

model_nameModel Name

The name of the model.

version_numberVersion Number

The number of the model version.

hardware_identifier?Hardware Identifier

The new identifier of the hardware to attach to the version.

variable_names?Variable Names

The new list of variable names to attach to the version. Replaces all current variable names.

Response Body

from wriftai import Clientwriftai = Client()configuration = wriftai.model_versions.update_configuration(    "jane-doe/kokoro-82m:1",    {        "hardware_identifier": "l40s",        "variable_names": ["my-hf-token"],    },)print(configuration.hardware_identifier)
{
  "hardware_identifier": "l40s",
  "variable_names": [
    "my-hf-token"
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}