서빙 인스턴스에 텐서플로 서빙을 설치하는 쉬운 방법이 두 가지 있습니다. 도커에서 텐서플로
서빙을 실행하거나, 서빙 인스턴스에서 우분투
Ubuntu
OS
를 실행할 때는 우분투 패키지를 설치
할 수 있습니다.
8.8.1
도커 설치
텐서플로 서빙을 설치하는 가장 쉬운 방법은 미리 작성된 도커 이미지
19
를 다운로드하는 것입
니다.
2
장에서 보았듯이 다음을 실행하여 이미지를 얻을 수 있습니다.
$
docker pull tensorflow/serving
사용할 수 있는
GPU
가 있는 인스턴스에서 도커 컨테이너를 실행한다면
GPU
를 지원하는 최
신 빌드를 다운로드해야 합니다.
$
docker pull tensorflow/serving:latest-gpu
GPU
를 지원하는 도커 이미지를 사용하려면 엔비디아
Nvidia
의 도커가
GPU
를 지원해야 합니
다. 설치 단계는 회사 웹 사이트(
https
://
oreil
.
ly
/
7N5uv
)에서 확인할 수 있습니다.
8.8.2
기본 우분투 설치
도커 실행 오버헤드 없이 텐서플로 서빙을 실행하려면 우분투 배포에 사용할 수 있는 리눅스
이진 패키지를 설치하면 됩니다. 설치 단계는 다른 비표준 우분투 패키지와 유사합니다. 먼저
리눅스 터미널에서 다음을 실행하여 배포 소스 목록에
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.
O’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
I 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
I’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
I'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.