미세 튜닝하는 데 사용할 데이터셋을 준비합니다. 그다음 훈련 스크립트를 실행해 모델을 미세
튜닝하고, 미세 튜닝된 모델을 허깅 페이스에 업로드합니다. 그리고
LoRA
층이 적용된 베이스
모델로 추론을 수행합니다. 이 과정이 완료되면 [그림
20
-
1
]과 같은 이미지를 생성할 수 있습
니다. 각 단계를 하나씩 살펴보겠습니다.
20.1.1
diffusers
다운로드하기
LoRA
미세 튜닝을 위해 가장 좋은 방법은 훈련 스크립트가 포함되어 있는
diffusers
라이브
러리를 다운로드하는 것입니다.
다음처럼 간단히 깃허브 저장소를 복제한 다음 해당 디렉터리로 이동해
pip
install
을 실행
합니다.
gitclonehttps ...
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.