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
255
8
장
머신러닝으로 텍스트 생성하기
이그리트
YGRITTE
가 존 스노를 배신자로 생각하고 결박하려는 것 (
diswarl
his
body
)이 멋져 보
이지만 ‘
resceins
’의 의미를 모르겠습니다. 여러분이 만약 이 드라마를 본다면 이 부분이 줄거
리 중 일부이므로 셰익스피어가 자기도 모르게 뭔가를 꾸미고 있는 상황인지도 모르겠습니다!
셰익스피어 데이터셋 같은 데이터를 훈련 데이터로 사용하면 익숙하지 않은 언어이므로 조금
관대해지는 경향이 있습니다.
아일랜드 노래 모델처럼 순식간에 이해하기 어려운 텍스트가 출력되지만 재미있는 점도 여전
히 많습니다. 콜랩 노트북 (
https
://
oreil
.
ly
/
cbz9c
)에서 직접 테스트해 보세요. 이 콜랩 노
트북은 파이토치가 아니라 텐서플로 기반입니다. 결과는 다르지만 파이토치로 작성한 예제는
깃허브 저장소(
https
://
oreil
.
ly
/
kQ7aa
)를 참고하세요.
8.8
마치며
이 장에서는 훈련된
LSTM
기반 모델을 사용해 기본적인 텍스트 생성 작업을 알아보았습니다.
단어를 레이블처럼 사용해 텍스트를 특성과 레이블로 나누고, 모델을 만들어 주어진 시드 텍
스트에서 다음 단어를 예측하는 방법을 살펴보았습니다. 아일랜드 전통 노래로 만든 데이터셋
을 사용해 더 나은 결과를 만들도록 모델을 향상시키기 위해 이 과정을 반복했습니다. 이 내용
이 머신러닝 모델이 텍스트를 합성하는 방식을 이해하는 데 흥미로운 입문이 되었고, 생성형
AI
의 기본 원리를 파악하는 데 필요한 지식을 제공했기를 바랍니다. 이러한 ...
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

AI 에이전트 엔지니어링

AI 에이전트 엔지니어링

마이클 알바다
핸즈온 LLM

핸즈온 LLM

제이 알아마르, 마르턴 흐루턴도르스트
만들면서 배우는 생성 AI

만들면서 배우는 생성 AI

데이비드 포스터

Publisher Resources

ISBN: 9791175790223