mirror of
https://github.com/AvaLovelace1/LegoGPT.git
synced 2026-05-01 04:19:44 -05:00
Fix: add correct create_instruction to prepare_finetuning_dataset.py
This commit is contained in:
@@ -6,6 +6,8 @@ from pathlib import Path
|
||||
from datasets import load_dataset
|
||||
from transformers import HfArgumentParser
|
||||
|
||||
from brickgpt.models import create_instruction
|
||||
|
||||
|
||||
@dataclass
|
||||
class PrepareDatasetArguments:
|
||||
@@ -44,7 +46,7 @@ def main():
|
||||
"""
|
||||
messages = [
|
||||
{'role': 'system', 'content': 'You are a helpful assistant.'},
|
||||
{'role': 'user', 'content': caption},
|
||||
{'role': 'user', 'content': create_instruction(caption)},
|
||||
{'role': 'assistant', 'content': bricks},
|
||||
]
|
||||
return messages
|
||||
|
||||
Reference in New Issue
Block a user