I used this dataset (psychology) for finetuning
#1
by
Israr-dawar
- opened
But facing a problems :
trainer = SFTTrainer(
model=model,
train_dataset=dataset,
peft_config=peft_config,
dataset_text_field="text",
max_seq_length=max_seq_length,
tokenizer=tokenizer,
args=training_arguments,
packing=True,
)
How I modify my code in SFTTrainer