Skip to Content
잘되는 머신러닝 팀엔 이유가 있다
book

잘되는 머신러닝 팀엔 이유가 있다

by 데이비드 탄, 에이다 양, 데이비드 콜스, 라인 AI Lab
June 2025
Beginner to intermediate
484 pages
10h 52m
Korean
Hanbit Media, Inc.
Content preview from 잘되는 머신러닝 팀엔 이유가 있다
151
Chapter 3
효과적인 의존성 관리: 원칙과 도구
이점
4
: 캐시를 활용한 빠른 빌드
ML
프로젝트에서 도커를 사용할 때 주의해야 할 주요 문제 중 하나는 큰 파이썬 패키지
(
torch==1.13.1
500MB
)
, 대형 사전 훈련 모델
(
llama
-
2
-
7b
13GB
)
, 대형 데이터셋
을 다운로드하고 설치하는 데 시간이 오래 걸린다는 것입니다.
도커는 빌드 시간 캐싱 메커니즘
39
을 제공하여 각 새 빌드마다 시간을 절약할 수 있습니다.
아래 굵은 줄을 추가하면 불필요한 다운로드와 설치를 피하고 이미지 빌드 시간을 줄일 수 있
습니다. 이 예제에서 사용한 비교적 단순한 종속성만으로도 빌드 시간을
3
분에서
2
분 미만으
로 단축했습니다. 더 큰 종속성, 사전 훈련 모델, 데이터셋을 다운로드하는 프로젝트에서는
시간 절약이 더 클 것입니다.
FROMpython:3.10-slim-bookworm
WORKDIR/code
RUN--mount=type=cache,target=/var/cache/apt \
  apt-getupdate&&apt-get-yinstallgcc
RUNpipinstallpoetry
ADDpyproject.toml/code/
RUNpoetryconfiginstaller.max-workers10
RUN--mount=type=cache,target=/root/.cache/pypoetry ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

AI를 위한 필수 수학

AI를 위한 필수 수학

할라 넬슨
개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에

Publisher Resources

ISBN: 9791169213875