


























We now expose the following metadata as environment variables in a running container.
They can be used to identify the image, version, deployment, when debugging or instrumenting your model.
REPLICATE_USERNAME - username, e.g. my-unicorn-ai-startupREPLICATE_MODEL_NAME - model name, e.g. pony-generatorREPLICATE_DOCKER_IMAGE_URI - Docker image URI, e.g. r8.im/<username>/<model_name>@<image_hash>REPLICATE_VERSION_ID - model version, usually the same as image hashREPLICATE_DEPLOYMENT_NAME - deployment name, if running as a deploymentThese environment variables are accessible to your code in public models, private models, and deployments.
For more details, see the model documentation.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。