Error - RuntimeError

ERROR - Error - RuntimeError: Failed to import transformers.trainer_tf because of the following error (look up to see its traceback): cannot import name ‘check_peft_version’ from ‘transformers.utils’ (C:\Users\abcd\Local\anaconda3\Lib\site-packages\transformers\utils_init_.py)
code - from transformers import TFDistilBertForSequenceClassification, TFTrainer, TFTrainingArguments
training_args = TFTrainingArguments(
num_train_epochs=7,
per_device_train_batch_size=16,
per_device_eval_batch_size=64,
warmup_steps=500,
weight_decay=1e-5,
eval_steps=100
)

with training_args.strategy.scope():
trainer_model = TFDistilBertForSequenceClassification.from_pretrained(‘distilbert-base-uncased’, num_labels = 5 )
trainer = TFTrainer(
model=trainer_model,
args=training_args,
train_dataset=train_dataset,
eval_dataset=val_dataset,
)