Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated readme to clarify this is CPU only #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# arm64-docker-pytorch-tensorflow

Dockerfile of a Deep Learning development environment with PyTorch and Tensorflow for arm64 architecture, especially Applie Silicon (M1+) Macs.
Dockerfile of a Deep Learning development environment with PyTorch and Tensorflow for arm64 architecture, especially Apple Silicon (M1/M2) Macs.
This Docker image is configured for deep learning tasks on CPUs and is optimized for use on Apple Silicon (M1/M2) Macs.

Please note that this image is based on the Ubuntu operating system, which, at least currently, does not support Apple's Metal Performance Shaders (MPS). MPS is a technology designed specifically for Apple's hardware and software ecosystem, and it relies on Apple's Metal framework and GPU architecture. Docker containers on Linux do not natively support Metal Performance Shaders because they are not designed to run macOS or iOS applications, which is where Metal and MPS are typically used.

As per the official PyTorch guide, MPS is supported exclusively on the latest macOS, and its functionality is not extended to Ubuntu-based systems. This means that even when running this PyTorch Docker image on the latest macOS, the image itself cannot harness the power of Apple's custom GPU architecture.

For GPU-accelerated deep learning tasks on Apple Silicon Macs, the only available current option is to use the macOS environment, which provides the necessary support for MPS and GPU acceleration.

* Docker image: https://hub.docker.com/r/sonoisa/deep-learning-coding
* ```docker pull sonoisa/deep-learning-coding:pytorch1.6.0_tensorflow2.3.0```
Expand All @@ -12,7 +19,7 @@ https://community.arm.com/developer/tools-software/tools/b/tools-software-ides-b

## How to build

### To build on 16GB M1 MacBook Pro
### To build on 16GB M1/M2 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.
Expand All @@ -22,7 +29,7 @@ $ ./build.sh --build-type full --jobs 2
```


### To build on 64GB M1 Max MacBook Pro
### To build on 64GB M1/M2 Max MacBook Pro

- Make sure to allocate 48GB of memory and 8 cpu to Docker.

Expand Down