from huggingface_hub import HfApi api = HfApi() api.upload_folder( folder_path=".", repo_id="sahil2801/ref_kto_v1", repo_type="model", )