pytorch
PyTorch is a deep learning platform that accelerates the transition from research prototyping to production deployment. Bitnami image includes Torchvision for specific computer vision support.
About this chart
PyTorch packaged by Bitnami
PyTorch is a deep learning platform that accelerates the transition from research prototyping to production deployment. Bitnami image includes Torchvision for specific computer vision support.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/pytorch
Introduction
This chart bootstraps a PyTorch deployment on a Kubernetes cluster using the Helm package manager.
Python is built for full integration into Python that enables you to use it with its libraries and main packages.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
- ReadWriteMany volumes for deployment scaling
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/pytorch
These commands deploy PyTorch on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname template (will maintain the release name) | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
fullnameOverride | String to fully override common.names.fullname template | "" |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
PyTorch parameters
| Name | Description | Value |
|---|---|---|
image.registry | PyTorch image registry | docker.io |
image.repository | PyTorch image repository | bitnami/pytorch |
image.tag | PyTorch image tag (immutable tags are recommended) | 1.13.0-debian-11-r0 |
image.digest | PyTorch image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | PyTorch image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
worldSize | Number of nodes that will run the code | 1 |
containerPorts.pytorch | PyTorch master port. MASTER_PORT will be set to this value | 49875 |
livenessProbe.enabled | Enable livenessProbe | true |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 5 |
livenessProbe.periodSeconds | Period seconds for livenessProbe | 5 |
livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
livenessProbe.failureThreshold | Failure threshold for livenessProbe | 5 |
livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
readinessProbe.enabled | Enable readinessProbe | true |
readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 5 |
readinessProbe.periodSeconds | Period seconds for readinessProbe | 5 |
readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 3 |
readinessProbe.failureThreshold | Failure threshold for readinessProbe | 5 |
readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
startupProbe.enabled | Enable startupProbe | true |
startupProbe.initialDelaySeconds | Initial delay seconds for startupProbe | 5 |
startupProbe.periodSeconds | Period seconds for startupProbe | 5 |
startupProbe.timeoutSeconds | Timeout seconds for startupProbe | 3 |
startupProbe.failureThreshold | Failure threshold for startupProbe | 5 |
startupProbe.successThreshold | Success threshold for startupProbe | 1 |
customLivenessProbe | Custom livenessProbe that overrides the default one | {} |
customReadinessProbe | Custom readinessProbe that overrides the default one | {} |
customStartupProbe | Custom startupProbe that overrides the default one | {} |
podSecurityContext.enabled | Enabled Pytorch pods' Security Context | true |
podSecurityContext.fsGroup | Set Pytorch pods' Security Context fsGroup | 1001 |
podSecurityContext.runAsUser | Set Pytorch pods' Security Context runAsUser | 1001 |
containerSecurityContext.enabled | Enabled Pytorch containers' Security Context | true |
containerSecurityContext.runAsUser | Set Pytorch containers' Security Context runAsUser | 1001 |
containerSecurityContext.runAsNonRoot | Set Pytorch containers' Security Context runAsNonRoot | true |
containerSecurityContext.readOnlyRootFilesystem | Set Pytorch containers' Security Context runAsNonRoot | false |
resources.limits | The resources limits for the Pytorch containers | {} |
resources.requests | The requested resources for the Pytorch containers | {} |
entrypoint.file | Main entrypoint to your application | "" |
entrypoint.args | Args required by your entrypoint | [] |
architecture | Run PyTorch in standalone or distributed mode. Possible values: standalone, distributed | standalone |
hostAliases | Deployment pod host aliases | [] |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
podLabels | Extra labels for Pytorch pods | {} |
podAnnotations | Annotations for Pytorch pods | {} |
Deploy pytorch with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pytorch on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartpytorch is pinned at v2.5.8 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply