sonoisa / arm64-docker-pytorch-tensorflow

A Deep Learning Docker Image (PyTorch and TensorFlow) for arm64 architecture

Home Page:https://hub.docker.com/repository/docker/sonoisa/deep-learning-coding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

arm64-docker-pytorch-tensorflow

Dockerfile of a Deep Learning development environment with PyTorch and Tensorflow for arm64 architecture, especially Applie Silicon (M1+) Macs.

This Dockerfile is a merged version of the Dockerfile for PyTorch and the Dockerfile for TensorFlow described in the following site. https://community.arm.com/developer/tools-software/tools/b/tools-software-ides-blog/posts/aarch64-docker-images-for-pytorch-and-tensorflow

How to build

To build on 16GB M1 MacBook Pro

  • Make sure to allocate 12GB of memory and 4 cpu to Docker.
  • The build may fail due to lack of memory, so restart the Docker service itself and run the build immediately after that.
$ ./build.sh --build-type full --jobs 2

To build on 64GB M1 Max MacBook Pro

  • Make sure to allocate 48GB of memory and 8 cpu to Docker.
$ ./build.sh --build-type full --jobs 8 --bazel_memory_limit 24576

About

A Deep Learning Docker Image (PyTorch and TensorFlow) for arm64 architecture

https://hub.docker.com/repository/docker/sonoisa/deep-learning-coding

License:Apache License 2.0


Languages

Language:Shell 77.1%Language:Dockerfile 21.1%Language:Makefile 1.8%