You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"⚠️ Found {file_count} files to upload, which exceeds the 200 file limit for a single commit. Deleting old build files and re-uploading the whole build folder to avoid hitting file limits."
82
+
)
83
+
kernel_root_dir=build_dir.parent
84
+
api.upload_large_folder(
85
+
repo_id=repo_id,
86
+
folder_path=kernel_root_dir,
87
+
revision=branch,
88
+
repo_type="model",
89
+
allow_patterns=["build/torch*"],
90
+
)
91
+
else:
92
+
api.upload_folder(
93
+
repo_id=repo_id,
94
+
folder_path=build_dir,
95
+
revision=branch,
96
+
path_in_repo="build",
97
+
delete_patterns=list(delete_patterns),
98
+
commit_message="Build uploaded using `kernels`.",
99
+
allow_patterns=["torch*"],
100
+
)
101
+
82
102
print(f"✅ Kernel upload successful. Find the kernel in: https://hf.co/{repo_id}")
0 commit comments