Skip to content

DSYZayn/gopeed-extension-huggingface

Repository files navigation

Gopeed Extension Huggingface

Feature

  • ✅ 支持Huggingface的模型和数据集整个文件夹解析
  • ✅ 支持解析huggingface.co || hf-mirror.com || www.modelscope.cn 上同名的模型和数据集, 并自由指定源站
  • ✅ 支持递归解析,并自动创建文件夹
  • ...

Installation

在插件页面输入https://github.com/DSYZayn/gopeed-extension-huggingface.git下载即可安装

Usage

满足以下格式的链接即可解析该文件夹下所有文件

https://<baseUrl>/<user>/<repoType>/<repo>/tree/main/<path>

  • baseUrl: huggingface.co || hf-mirror.com || www.modelscope.cn

  • user: 用户名(组织名), 如deepseek-ai

  • repoType: models || datasets

  • path: 文件夹路径, 如果是根目录则不填, 连同main/最后的/一起去掉

  • ❌ 不支持递归解析,因为gopeed不支持自动创建文件夹 (正在跟进处理中)

  • 🔴 若要使用modelscope, 则需要该模型或数据集在huggingface中存在,否则无法解析。(modelscope缺少高效简洁的仓库元信息API接口,如确有需要的欢迎PR)

  • ❗ 对于仓库内的单文件,则直接输入你手动获取的链接即可, 本插件不对单文件进行任何解析。

Example

使用hf-mirror或modelscope下载则替换 huggingface.cohf-mirror.comwww.modelscope.cn, 参考 baseUrl

  1. 下载unsloth/DeepSeek-R1-GGUF的根目录文件:https://huggingface.co/models/unsloth/DeepSeek-R1-GGUF/tree/main
  2. 下载unsloth/DeepSeek-R1-GGUF的Deepseek-R1-BF16文件夹:https://huggingface.co/models/unsloth/DeepSeek-R1-GGUF/tree/main/Deepseek-R1-BF16

tips: 以上两个链接中models/可以省略

  1. 下载open-thoughts/OpenThoughts-114k的根目录文件:https://huggingface.co/datasets/open-thoughts/OpenThoughts-114k/tree/main
  2. 下载open-thoughts/OpenThoughts-114k的data文件夹:https://huggingface.co/datasets/open-thoughts/OpenThoughts-114k/tree/main/data

tips: 以上两个链接中datasets/绝对不能省略

Demo

  1. Input https://hf-mirror.com/models/unsloth/DeepSeek-R1-GGUF/tree/main

unsloth-DeepSeek-R1-GGUF

  1. Input https://hf-mirror.com/unsloth/DeepSeek-R1-GGUF/tree/main/DeepSeek-R1-BF16

unsloth-DeepSeek-R1-GGUF-BF16

  1. Input https://hf-mirror.com/datasets/rubenroy/GammaCorpus-CoT-Math-170k/tree/main

datasets-rubenroy-cot

  1. Input https://hf-mirror.com/datasets/ServiceNow-AI/R1-Distill-SFT/tree/main/v1

datasets-servicenow-r1sft-v1