To build a model image for ⚗️ Instill 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 Instill Cloudinstill build USER_ID/MODEL_ID -t VERSION_TAG --target-arch amd64# for a local Instill Core instanceinstill build USER_ID/MODEL_ID -t VERSION_TAG
Note that the model version tag will default to latest
if not supplied.
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. For example, if you are building on an ARM machine and
deploying on ☁️ Instill Cloud, which uses the AMD64 architecture, you must
pass --target-arch amd64
when running instill build
. 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.