- 강의 질문
- AI TECH
PART 4 CH 9 4번 실행시
2025.09.16 18:43 작성
reasoning_conversations = tokenizer.apply_chat_template(
reasoning_dataset.map(convert_to_conversations, batched = True)["conversations"],
tokenize = False,
)
실행하면
UndefinedError Traceback (most recent call last)
/tmp/ipython-input-935784993.py in <cell line: 0>()
----> 1 reasoning_conversations = tokenizer.apply_chat_template(
2 reasoning_dataset.map(convert_to_conversations, batched = True)["conversations"],
3 tokenize = False,
4 )
/usr/local/lib/python3.12/dist-packages/jinja2/environment.py in handle_exception(self, source)
940 from .debug import rewrite_traceback_stack
941
--> 942 raise rewrite_traceback_stack(source=source)
943
944 def join_path(self, template: str, parent: str) -> str:
<template> in top-level template code()
UndefinedError: 'list object' has no attribute 'content'
라는 오류가 뜹니다. AI에게 질문해도 명확한 해결책이 나오지 않고 코드가 계속 산으로 가는 느낌입니다. 유독 파인튜닝 강의자료에서 이런 에러가 많이 발생하는 것 같은데, 빠른 답변 부탁드리겠습니다.