inflearn logo
강의

Course

Instructor

Hey, you can also create AI services. [Image AI Service Serverless Full Stack]

안녕하세요 도커파일 빌드 중 오류 질문드립니다.

Resolved

820

dyryu

2 asked

0

안녕하세요 강의 재밌게 잘 듣고 있습니다.

감사합니다.

 

제가 현재 15강 진행 중에 도커파일을 빌드하는 부분에 있는데요.

docker build -t raymong_lecture_serverless_ai .

다음 명령어를 실행시 아래와 같은 에러가 발생합니다.

 

 

[+] Building 113.3s (16/22) docker:desktop-linux

=> [internal] load .dockerignore 0.0s

=> => transferring context: 2B 0.0s

=> [internal] load build definition from Dockerfile 0.0s

=> => transferring dockerfile: 1.70kB 0.0s

=> [internal] load metadata for docker.io/pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime 1.6s

=> [auth] pytorch/pytorch:pull token for registry-1.docker.io 0.0s

=> [ 1/18] FROM docker.io/pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime@sha256:9904a7e081eaca29e3ee46afac87f2879676dd3bf7b5e9b8450454d84e074ef0 0.0s

=> [internal] load build context 0.0s

=> => transferring context: 757B 0.0s

=> CACHED [ 2/18] RUN apt-get update 0.0s

=> CACHED [ 3/18] RUN apt-get install -y git build-essential 0.0s

=> CACHED [ 4/18] RUN pip install -U --pre triton 0.0s

=> CACHED [ 5/18] RUN pip3 install --upgrade pip 0.0s

=> CACHED [ 6/18] ADD requirements.txt requirements.txt 0.0s

=> CACHED [ 7/18] RUN pip3 install -r requirements.txt 0.0s

=> CACHED [ 8/18] RUN pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu113 0.0s

=> CACHED [ 9/18] ADD s3_file_manager.py . 0.0s

=> CACHED [10/18] ADD download.py . 0.0s

=> ERROR [11/18] RUN python3 download.py 111.6s

------

> [11/18] RUN python3 download.py:

2.806 The cache for model files in Transformers v4.22.0 has been updated. Migrating your old cache. This is a one-time only operation. You can interrupt this and resume the migration later on by calling `transformers.utils.move_cache()`.

0it [00:00, ?it/s]downloading reg images...

19.26

Fetching 11 files: 100%|██████████| 11/11 [01:12<00:00, 6.62s/it]

Loading pipeline components...: 83%|████████▎ | 5/6 [00:08<00:02, 2.11s/it]The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.

Loading pipeline components...: 100%|██████████| 6/6 [00:09<00:00, 1.53s/it]

101.2 You have disabled the safety checker for <class 'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline'> by passing `safety_checker=None`. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .

111.6 Killed

------

Dockerfile:31

--------------------

29 | ADD s3_file_manager.py .

30 | ADD download.py .

31 | >>> RUN python3 download.py

32 |

33 | ADD convert_diffusers_to_original_stable_diffusion.py .

--------------------

ERROR: failed to solve: process "/bin/sh -c python3 download.py" did not complete successfully: exit code: 137

 

원인과 해결방법이 어떻게 될까요?

 

aws 서버리스 생성형ai dreambooth runpod

Answer 1

0

entaline

안녕하세요! 캐시되어있는 걸 보니 여러번 시도해보신 것 같은데요, 지금 보내주신 내용으로는 저로썬 정확하게 원인 파악이 어려울 것 같습니다. 다운로드 하는데 꽤나 시간이 걸리는데 2분도 채 지나지 않아 killed 되는 것으로 보아 다운로드 도중에 해당 오류가 나타나는 것 같은데요.

혹시 1. 어떤 운영체제로 하고 계신지(윈도우 or 맥), 2. 하드웨어 램이 어느정도인지, 3. 디스크 여유공간은 어느정도 있으신지 추가적으로 정보를 주실 수 있을까요?

0

dyryu

안녕하세요 빠른 답변 감사합니다.

  1. 맥북 에어 M2 로 작업 중에 있습니다.

  2. 램은 8GB 입니다.

  3. 디스크 사용가능 공간은 350GB 남아있습니다.

추가로 15강 강의자료에 있는 docker 빌드 명령어 실행중 위의 에러가 발생하였고, 도커파일을 빌드할 때 램을 확보해주면 나아질까 싶어 빌드 명령어에 --memory=4g 명령어를 추가하고 진행도 해봤으나, 같은 에러가 발생하였습니다.

0

entaline

저도 비슷한 환경을 구축해서 테스트 해보겠습니다.

추가적으로 101.2 초와 111.6초 Killed 사이에 어떤 작업이 이뤄지는지 알 수 있을까요?

0

dyryu

안녕하세요 방금 전에 네트워크 환경을 바꾼 뒤 다시 빌드를 진행하였더니 이번에는 정상적으로 완료되었습니다. 남은 강의 이어서 잘 수강하도록 하겠습니다. 감사합니다!

Cursor 설정

0

10

1

맥북으로 RDP 연결 질문

0

19

2

라우팅 테이블 설정 중 궁금한게 있습니다.

0

28

1

수강 연장 가능하면 요청 드립니다.

0

16

2

JPA Repository 질문이 있습니다!

1

29

2

수강 기간 연장 요청

1

46

1

7-1 강의부터 안되네요

0

54

1

npx sst dev 후, 웹페이지 미실행

0

224

2

npx sst dev 실행시

0

1554

10

7-3 /createCollections 리퀘스트시 권한에러

0

201

1

컬렉션 데이터베이스 생성시 오류

0

239

1

SES 메일 발송시 Internal Error가 나서 질문드려요~

0

292

1

도커 파일 빌드 오류 문의

0

314

1

전체 소스 다운로드 문의

0

229

1

토스 페이먼츠 관련 문의

0

502

1

huggingface 말고 civtai로 모델 바꿔끼워도되나요?

1

364

2

문의입니다.

0

279

1

어떻게 SST라는 노드 패키지를 알게되셨고 사용하실 생각을 하셨나요?

0

334

2

Lecture 8-2 axios post 관련 오류 질문있습니다

0

328

1

RunPod 실행 이후 Status 변화

0

517

1

강의 자료 다운

-1

426

1

npx sst dev 오류

0

470

1

Lecture 7 내용 진행중 오류

0

425

2

Lecture 5 내용중 heic변환관련..

0

443

1