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
466
2
부
모델 사용
0
단계
1
단계
10
단계
40
단계
그림
19-4
프롬프트를 기반으로 이미지에서 점진적으로 잡음 제거하기
[그림
19
-
3
]에 나온 피자를 먹는 곰 인형에 관한 프롬프트로 디퓨전 모델을 실행했습니다. 잠
시 후에 이런 이미지를 만드는 코드를 알아보겠습니다.
0
단계에서는 순수한 잡음만 있습니다.
1
단계 에서 모델은 이미 프롬프트의 주요 특징(화성 표
면)을 파악하여 이미지에 매우 붉은 색을 부여했습니다.
10
단계에서 곰 인형과 피자가 보이
고,
40
단계에 다다르면 곰 인형이 실제로 피자를 먹고 있으며 (아마도 저녁 식사라서) 조명이
바뀌었습니다.
이미지 크기는 모델에 따라 다릅니다. 초기 모델이나 개인용 하드웨어에서 실행되도록 설계
된 모델들은 작은 이미지를 생성한 다음 원하는 크기로 늘립니다. 앞의 이미지는 기본적으로
1024
×
1024
이미지를 생성하는 스테이블 디퓨전
3
.
5
로 생성했습니다.
NOTE
_
이 장에서는 디퓨전 모델에 초점을 맞추지만 이미지를 생성하는 유일한 방법은 아닙니다. 이미지를
설명하는 텍스트 토큰과 이미지의 시각 콘텐츠 간의 매핑을 학습하는
자기회귀 모델
autoregressive
model
도 있습니
다. 많은 매핑 샘플을 사용해 이런 모델을 훈련할 수 있습니다. 그다음 모델에 프롬프트를 전달하면 해당 텍스
트 토큰을 예측하고
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