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 只加一个元数据文件,不改权重和代码,合并后开始计数。

It also changes library_name: diffusers to library_name: reactivegwm in README.md. Repos tagged diffusers are counted only through a root model_index.json or root-level weights, and the weights here are all in subfolders.
同时把 README 里的 library_name: diffusers 改成 reactivegwm:diffusers 仓库只认根目录的 model_index.json 或根目录的权重,这里的权重都在子文件夹里。

YeyingLab org

Updated: the checkpoints are loaded one by one from SF2/ and SF3/, which never requests a root config.json, so the first version of this PR would still count 0. The PR now sets library_name: diffusion-single-file, whose rule counts .safetensors downloads, and removes config.json. Each checkpoint file counts once.

已更新:模型是从 SF2/、SF3/ 里逐个加载的,不会请求根目录的 config.json,原来的改法合并后还是 0。现在改成 library_name: diffusion-single-file(按 .safetensors 的下载计数),并删掉 config.json。每个权重文件各算一次。

yeyingjin changed pull request title from Add root config.json so Hugging Face counts downloads to Count downloads of the weight files
INV-WZQ changed pull request status to merged

Sign up or log in to comment