TypeError: Repository.__init__() got an unexpected keyword argument 'token'

Hi, I have a related issue: after logging in with HF CLI I am not able to push my model to the hub only tokenizer and processor could be pushed the model not

training_args = Seq2SeqTrainingArguments(
        num_train_epochs=5, 
        learning_rate=1e-5,
        predict_with_generate=True,
        evaluation_strategy="steps",
        per_device_train_batch_size=8,
        per_device_eval_batch_size=8,
        fp16=True,
        push_to_hub= True,
        output_dir= 'test_pushing_to_hu',
        logging_steps=10, 
        save_steps=15,
        eval_steps=15,
        save_total_limit=1,
        gradient_checkpointing=True,
        load_best_model_at_end=True,
    )

    trainer.train()
    processor.push_to_hub("test_pushing_to_hu")
    processor.tokenizer.push_to_hub('test_pushing_to_hu')
    trainer.push_to_hub() 

The issue I am seeing :

  self.init_git_repo(at_init=True)
  File "/home/user/venv/lib/python3.8/site-packages/transformers/trainer.py", line 3275, in init_git_repo
    self.repo = Repository(
  File "/home/user/venv/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 120, in _inner_fn
    return fn(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'private'

I am using my won server

ubuntu 
transformers                 4.22.2  
torch                        1.7.1+cu110 
tensorflow                   2.11.0 
datasets                     2.5.1 
huggingface-hub              0.13.4