# 模型文件与仓库抓取教程 (Model & Repository Download Guide)

> Canonical HTML: https://downman.sbs/guides/model-download.html
> English: https://downman.sbs/en/guides/model-download.html | 繁體中文: https://downman.sbs/zh-tw/guides/model-download.html

DownMan 同时支持单文件直链与整库批量抓取：直接粘贴 Hugging Face 模型/数据集仓库、GitHub Release 或多行链接，按扩展名筛选文件并自动完成 SHA-256 校验与断点续传。

DownMan supports both direct file links and repository batch grabbing: paste a Hugging Face repo, GitHub Release or multi-line URL list to filter files by extension, verify SHA-256 digests and resume safely.

## 批量抓取 Hugging Face 仓库与 GitHub Release / Batch-grab Hugging Face repositories and GitHub Releases

在“新建下载”中直接粘贴 Hugging Face 仓库地址（含 /tree/ 子目录）、GitHub Release 地址或多行下载链接文本，点击“解析”即可拉取完整文件列表与大小。

Paste a Hugging Face repository URL (including /tree/ paths), a GitHub Release URL, or multi-line links into New Download and click Parse to list every file and size.

使用顶部的扩展名筛选按钮（例如 .gguf、.safetensors、.zip）快速定位需要的权重分片，一键批量入队；受限或私有仓库请在“设置 → 高级”中配置 Hugging Face Access Token。

Use the extension filter chips (such as .gguf, .safetensors or .zip) to pick exact weight shards and queue them in one click. For gated repositories, configure your Hugging Face Access Token in Settings → Advanced.

## 自动 SHA-256 校验与手动哈希核验 / Automatic SHA-256 and custom checksum verification

从 Hugging Face LFS 与 GitHub Release（含 SHA256SUMS）抓取的文件会自动附带官方 SHA-256；普通下载也可在响应头带摘要或“高级选项”手填校验值（支持 SHA-256 / SHA-512 / SHA-1 / MD5 / CRC32）时自动校验。

Files grabbed from Hugging Face LFS and GitHub Releases (including SHA256SUMS) carry official SHA-256 hashes automatically. Ordinary downloads also verify server digest headers or a checksum entered under Advanced options (SHA-256, SHA-512, SHA-1, MD5, CRC32).

所有下载数据先写入独立临时 .part 文件，校验通过后才原子重命名为最终文件；如校验不匹配会明确报错并阻止坏文件覆盖成品目录。

Transfers write into an isolated .part file and promote atomically only after verification succeeds; mismatches fail cleanly so corrupt files never slip through.

## 大文件防篡改续传与过期换链 / Tamper-safe resume and URL refresh for large files

开始前 DownMan 会预检磁盘余量与 FAT32 单文件 4GB 限制。暂停后续传会同时校验强 ETag / Last-Modified 与 64 字节重叠内容，远端文件变更时自动干净重下，防止静默拼接损坏模型权重。

DownMan checks free disk space and FAT32 4 GB limits before starting. Resumes validate strong ETag/Last-Modified headers plus 64-byte overlap bytes, restarting cleanly if the remote file changed.

若临时签名直链在下载中途过期，可在主列表右键选择“刷新下载地址”替换新链接，继续保留全部已下载进度。魔搭 ModelScope 等平台同样支持 HTTP / HTTPS 直链高速续传。

If a signed download URL expires mid-transfer, right-click the task and choose Refresh download URL to swap in a fresh link without losing progress. ModelScope direct HTTP/HTTPS links are supported the same way.
