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
480
2
부
모델 사용
Misato
라는 가상의 사이버 인플루언서 데이터를 만드는 전체 과정을 살펴보겠습니다.
LoRA
와
diffusers
를 사용해 스테이블 디퓨전
2
텍스트-투-이미지 모델을 미세 튜닝합니다. 그다
음 텍스트-투-이미지 추론을 수행해 새로운
Misato
이미지를 만듭니다 (그림
20
-
1
).
20.1
diffusers
로
LoRA
미세 튜닝하기
diffusers
에서
LoRA
미세 튜닝하려면 다음과 같은 단계를 수행해야 합니다. 먼저
diffusers
소스 코드를 다운로드해 미리 준비된 훈련 스크립트를 가져옵니다. 그다음 스테이블 디퓨전을
미세 튜닝하는 데 사용할 데이터셋을 준비합니다. 그다음 훈련 스크립트를 실행해 모델을 미세
튜닝하고, 미세 튜닝된 모델을 허깅 페이스에 업로드합니다. 그리고
LoRA
층이 적용된 베이스
모델로 추론을 수행합니다. 이 과정이 완료되면 [그림
20
-
1
]과 같은 이미지를 생성할 수 있습
니다. 각 단계를 하나씩 살펴보겠습니다.
20.1.1
diffusers
다운로드하기
LoRA
미세 튜닝을 위해 가장 좋은 방법은 훈련 스크립트가 포함되어 있는
diffusers
라이브
러리를 다운로드하는 것입니다.
다음처럼 간단히 깃허브 저장소를 복제한 다음 해당 디렉터리로 이동해
pip
install
을 실행
합니다.
git clone https ...
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