FutureWarning: This implementation of AdamW is deprecated and will be removed in a future version. Use the PyTorch implementation torch.optim.AdamW instead

I got the same error but i didnt import adam in the first place please help me im a beginner

training_args = TrainingArguments(
output_dir=‘/content/drive/MyDrive/models/results’,
num_train_epochs=5,
per_device_train_batch_size=16,
save_steps=500,
logging_steps=100,
evaluation_strategy=‘steps’,
eval_steps=500,
save_total_limit=1
)

trainer = Trainer(
model=model,
args=training_args,
train_dataset={‘input_ids’:torch.tensor(input_ids,dtype=float),‘attention_mask’:torch.tensor(attention_mask,dtype=float)},
eval_dataset={‘input_ids’:torch.tensor(input_ids_test,dtype=float),‘attention_mask’:torch.tensor(attention_mask_test,dtype=float)},
tokenizer=tokenizer
)

trainer.train()