What is mean 'TypeError: __init__() got an unexpected keyword argument 'private' '?

i can’t use model because of this error
i can’t found any this case. please let me know!

1 Like

I am also facing the same issue.Can some one help me here.Below are the details

I am running below code from NLP with transformers book Chapter-8

distilbert_trainer = DistillationTrainer(model_init=student_init,
teacher_model=teacher_model, args=student_training_args,
train_dataset=clinc_enc[‘train’], eval_dataset=clinc_enc[‘validation’],
compute_metrics=compute_metrics, tokenizer=student_tokenizer)

distilbert_trainer.train()

Above code is giving below error


TypeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 distilbert_trainer = DistillationTrainer(model_init=student_init,
2 teacher_model=teacher_model, args=student_training_args,
3 train_dataset=clinc_enc[‘train’], eval_dataset=clinc_enc[‘validation’],
4 compute_metrics=compute_metrics, tokenizer=student_tokenizer)
5

3 frames
/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py in _inner_fn(*args, **kwargs)
118 kwargs = smoothly_deprecate_use_auth_token(fn_name=fn.name, has_token=has_token, kwargs=kwargs)
119
→ 120 return fn(*args, **kwargs)
121
122 return _inner_fn # type: ignore

TypeError: init() got an unexpected keyword argument ‘private’

Same issue as above… I thought it was my HH token but I changed it three times and still get the same issue?

Does it have to do with GitHub provisions?