된 어댑터 모델의 종단점이 자동으로 만들어진다. 이후 그 종단점을 기초 모델의 종단점과 동
일한 방식으로 사용하면 된다.
여기서는 오픈
AI
의
GPT
계열 모델을 예로 들어 설명하겠지만, 아마존 베드록
Amazon
Bedrock
에
서 앤트로픽 클로드를 미세조정하거나
GCP
의 버텍스
AI
Vertex
AI
에서 제미나이를 미세조정하는
과정도 매우 비슷하다. 우선, 훈련용 데이터 쌍들을 마련해서(최소
100
쌍이 필요하고, 수천 쌍
이면 더욱 좋다)
JSONL
(
JSON
Lines
) 형식의 파일로 저장해야 한다. 그런 식으로 준비한 훈
련 데이터셋 파일이
training
_
data
.
jsonl
이라고 하자. 이제 파이썬에서 다음과 같이 그 훈
련 데이터셋을 불러온다.
training_file = client.files.create(
file=open("training_data.jsonl", "rb"),
purpose="fine-tune"
)
훈련 데이터셋을 불러온 ...
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.