Skip to Content
파이토치로 배우는 LLM & AI
book

파이토치로 배우는 LLM & AI

by 로런스 모로니, 박해선
March 2026
Intermediate
504 pages
11h 26m
Korean
Hanbit Media, Inc.
Content preview from 파이토치로 배우는 LLM & AI
387
15
장
트랜스포머와 transformers
이제 방향을 바꾸어 트랜스포머 기반 모델을 손쉽게 사용할 수 있게 도와주는 허깅 페이스의
transformers
API
를 알아보죠.
15.3
transformers
API
transformers
는 파이썬과 파이토치를 사용하는 사전 훈련된 모델을 다루기 위한
API
를 제공
합니다. 이 라이브러리의 성공에는 세 가지 요인이 있습니다. 사전 훈련된 모델을 사용하기 위
한 단순한 인터페이스, 광범위한 사전 훈련된 모델 컬렉션(
14
장 참고 ), 빠른 개선과 새로운 모
델 추가를 위해 기여하는 활발한 커뮤니티입니다.
이 라이브러리는
NLP
를 넘어 발전하고 있으며 컴퓨터 비전, 오디오 처리, 멀티모달 작업과 같
은 다양한 종류의 모델을 지원합니다. 원래 트랜스포머 기반 구조의 목표는 한 토큰 시퀀스 다
음에 또 다른 토큰 시퀀스가 등장하는 방식을 효과적으로 학습하는 것이었습니다. 이 아이디어
를 기반으로 구축된 혁신적인 모델들이 소리와 같은 개념을 토큰 시퀀스로 표현할 수 있게 되
었습니다. 결과적으로 트랜스포머는 소리의 패턴을 학습할 수 있습니다.
개발자를 위해
transformers
는 여러 추상화 수준을 제공합니다.
14
장에서 살펴본 고수준 파
이프라인
API
는 일반적인 작업을 위해 바로 모델을 활용할 수 있도록 만들어 줍니다. 반면 저
수준 인터페이스는 세밀한 제어를 제공하며 사용자 정의 구현을 만들 수 있습니다. 또한 이 라
이브러리는 모듈식으로 설계되어 있어서 개발자가 토크나이저, 모델, 옵티마이저와 ...
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

PyTorch의 코더를 위한 AI 및 ML

PyTorch의 코더를 위한 AI 및 ML

Laurence Moroney
헤드 퍼스트 자바(3판)

헤드 퍼스트 자바(3판)

케이시 시에라, 버트 베이츠

Publisher Resources

ISBN: 9791175790223