Count downloads of the weight files

#1
by yeyingjin - opened
YeyingLab org

Hugging Face counts model downloads through a root-level config.json. This repo has none, so the model page shows "Downloads are not tracked" (or stays at 0). This PR adds a small metadata-only config.json. Weights and code are unchanged; downloads are counted from the merge on.

HF 通过根目录的 config.json 统计模型下载量。这个 PR 只加一个元数据文件,不改权重和代码,合并后开始计数。

README: the download command now also fetches config.json, so each download is counted.
README 里的下载命令加上了 config.json,这样每次下载都会被计数。

yeyingjin changed pull request title from Add root config.json so Hugging Face counts downloads to Count downloads of the weight files
YeyingLab org

Most people download one backbone (--include "wan2.2-ti2v-5b/*"), which skips config.json, so the first version of this PR would still count 0. Updated: the PR now sets library_name: diffusion-single-file, whose rule counts .safetensors downloads (one file per backbone), removes config.json, and leaves the download command as it was. Downloading all four backbones counts 4.

大多数人只下载一个主干(--include "wan2.2-ti2v-5b/*"),会跳过 config.json,原来的改法合并后还是 0。已更新:改成 library_name: diffusion-single-file(按 .safetensors 的下载计数,每个主干一个文件),删掉 config.json,下载命令保持原样。四个主干全下算 4 次。

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment