To build a model image for Model, follow these steps:
- Install the latest Python 📦 Instill SDK:
pip install instill-sdk
- Within your custom model
directory, run the
build
command with your user ID, model ID and optional model version tag:
# for a local Instill Core instanceinstill build USER_ID/MODEL_ID:VERSION_TAG
The image name follows standard Docker image naming convention, where USER_ID
is the user ID, MODEL_ID
is the model ID, and VERSION_TAG
is the version
tag. Note that the model version tag will default to latest
if not supplied.
INFO
If you are building on a different architecture to the one you are deploying
on, you must explicitly specify the target architecture using the
--target-arch
flag. If unspecified, the target architecture will default to
that of the system you are building on.
- After you see similar outputs as below, the image building process finished successfully:
2024-05-28 01:54:44,404.404 INFO [Instill Builder] USER_ID/MODEL_ID:VERSION_TAG built2024-05-28 01:54:44,423.423 INFO [Instill Builder] Done
The USER_ID
, MODEL_ID
and VERSION_TAG
correspond to the user namespace,
the ID of the model and the version tag of the model.