Add custom model versions¶
If you want to update a model due to new package versions, different preprocessing steps, hyperparameters, and more, you can update the file contents to create a new version of the model. To upload a new version of a custom model environment, see Add an environment version.
Create a new minor version¶
When you update the contents of a model, the minor version (1.1, 1.2, etc.) of the model automatically updates. To create a minor custom model version, select the model from the Custom Model Workshop and navigate to the Assemble tab. Under the Model header, click Add files and upload the files or folders you updated. The minor version is also updated if you delete a file.
Create a new major version¶
To create a new major version of a model (1.0, 2.0, etc.):
-
Select the model from the Custom Model Workshop and navigate to the Assemble tab.
-
Under the Model header, click New Version and, in the Create new model version dialog box:
-
Select a custom model version creation strategy:
-
Copy contents of previous version: Bring the contents of the current version to the new version of the custom model.
-
Create empty version: Discard the contents of the current version and add new files for the new version of the custom model.
-
-
Select a Base Environment. The environment of the current version is selected by default.
-
Enter a New version description. The version description is optional.
-
Configure Keep training data from previous version. This setting is enabled by default to bring the training data from the current version to the new custom model version.
Note
The Keep training data from previous version option is only available if your custom model assigns training data at the version level, not the model level. For more information, see Add training data to a custom model.
-
-
Click Create new version.
You can now use a new version of the model in addition to its previous versions. Select the iteration of the model that you want to use from the Version dropdown.