TrainingArguments 설정하기
고객 지원 상호작용을 토크나이즈한 후, 사전 학습된 모델을 미세 조정하려면 먼저 학습 인자를 설정해야 합니다.
TrainingArguments는 미리 로드되어 있습니다.
이 연습은 강의의 일부입니다
Python으로 배우는 LLM 입문
연습 안내
TrainingArguments()인스턴스를 설정하세요.- 평가 전략을
"epoch"로 설정하세요. - 학습 epoch을 3으로 지정하세요.
- 학습과 평가 모두의 배치 크기를 3으로 설정하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Set up an instance of TrainingArguments
training_args = ____(
output_dir="./finetuned",
# Set the evaluation strategy
____,
# Specify the number of epochs
____=3,
learning_rate=2e-5,
# Set the batch sizes
____=3,
____=3,
weight_decay=0.01
)