bytedance / bytedance/MegaTTS3

Apple M3 macOS 14.4.1 docker安装失败

Open
#47 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6.1k
Forks
474
PR merge metrics
No merged PRs in 30d

Description

(base) liufakun@MacBook-Pro MegaTTS3 % docker build . -t megatts3:latest

[+] Building 27.6s (11/11) FINISHED docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 360B 0.0s
=> [internal] load metadata for docker.io/pytorch/pytorch:2.3.0-cuda12.1 4.2s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [1/6] FROM docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime@sh 0.0s
=> [internal] load build context 10.5s
=> => transferring context: 1.94GB 10.3s
=> CACHED [2/6] WORKDIR /app 0.0s
=> CACHED [3/6] RUN apt-get update && apt-get install -y curl py 0.0s
=> CACHED [4/6] COPY requirements.txt /app/ 0.0s
=> CACHED [5/6] RUN pip install --no-cache-dir -r requirements.txt 0.0s
=> [6/6] COPY . /app/ 10.6s
=> exporting to image 2.2s
=> => exporting layers 2.1s
=> => writing image sha256:91766f2cde9222a919f2ef7631a3e4fc7ed1ea17f6e56 0.0s
=> => naming to docker.io/library/megatts3:latest 0.0s

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/q8y9o5607ywl4hi8fxjae1pad

1 warning found (use docker --debug to expand):
- InvalidBaseImagePlatform: Base image pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime was pulled with platform "linux/amd64", expected "linux/arm64" for current build (line 1)

What's next:
View a summary of image vulnerabilities and recommendations → docker scout quickview
其实这里就已经有问题,但是我没管,继续往下执行命令

(base) liufakun@MacBook-Pro MegaTTS3 % docker run -it -p 7929:7929 --gpus all -e CUDA_VISIBLE_DEVICES=0 megatts3:latest

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]
依然报错,镜像的平台和我电脑不匹配
请问有遇到类型问题的同学吗?该怎么解决

下面是截图:

![Image](https://github.com/user-attachments/assets/9d6f45cb-6b97-4cb1-85f5-44963c897a54)
![Image](https://github.com/user-attachments/assets/3fc4a233-e8f6-44e9-bb3e-ea11b0ea0ebc)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Dockerfile and its pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime base image, then reproduce the reported docker build and docker run commands on an Apple M3 macOS 14.4.1 host. Determine the project's supported path for the linux/amd64 CUDA image on arm64, and document or validate the resulting installation and run behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python, pytorch
Domain
devops, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.