@LINUX_DO0920 在 解决 Hugging Face Private Repositories Storage 只增不减问题 中发帖
在部署了多个运用 sync_data.sh 脚本进行备份的 Space 之后, Private Repositories Storage只增不减,检查 sync_data.sh 脚本,发现它似乎仅能删除仓库中的文件,而 LFS Storage 却始终毫无变化。
这时点进 Dataset 库的 Settings 页面时,有个 “List LFS files” 按钮。打开后展现的是从建库之后到现在的所有备份文件。而在文件列表旁边,还有一个 “Remove selected(0)” 按钮。
全选了所有文件,然后反选了最新的备份文件,接着点击 “Remove selected” 按钮。输入库名确认,Rewrite repository history to remove file pointers referencing these file oids (recommended). 打✅
瞬...