Build Model Image
To build a model image for Model, follow these steps:
- Install the latest Python 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:
instill build {NAMESPACE_ID}/{MODEL_ID}:{VERSION_TAG}
The image name follows standard Docker image naming conventions, where NAMESPACE_ID
is the user or organization ID, MODEL_ID
is the model ID, and VERSION_TAG
is the image version tag. Note that the model version tag will default to latest
if not provided.
If you are building on a different architecture (i.e.,
arm64
oramd64
) than 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 output similar to the following, the image building process has finished successfully:
2024-05-28 01:54:44,404.404 INFO [Instill Builder] {NAMESPACE_ID}/{MODEL_ID}:{VERSION_TAG} built
2024-05-28 01:54:44,423.423 INFO [Instill Builder] Done
Updated about 6 hours ago