How to push extra files to Hugginface model hub?

Hi, I am using model.push_to_hub(private=True) but it’s not pushing training_args and a few acc files. How can I include those files too?

Something like this should work

import os
from huggingface_hub import CommitOperationAdd, HfApi

hf_api = HfApi()

operations = [CommitOperationAdd(path_in_repo="pytorch_model.bin", path_or_fileobj="models/pytorch_model.bin")]

TOKEN = os.getenv("TOKEN")

commit = hf_api.create_commit(
            repo_id="my_repo",
            operations=operations,
            commit_message="Upload files...",
            token=TOKEN,
            revision="main",
)