当前位置: 首页 > news >正文

张家口做网站站长之家网站模板

张家口做网站,站长之家网站模板,建设项目从哪个网站可以查,集团网站建设方案之前文章《Transformer原理》中介绍过,Transformers 是由 Hugging Face 开发的一个包,支持加载目前绝大部分的预训练模型。随着 BERT、GPT 等大规模语言模型的兴起,越来越多的公司和研究者采用 Transformers 库来构建应用。 Hugging Face是一家美国公司…

之前文章《Transformer原理》中介绍过,Transformers 是由 Hugging Face 开发的一个包,支持加载目前绝大部分的预训练模型。随着 BERT、GPT 等大规模语言模型的兴起,越来越多的公司和研究者采用 Transformers 库来构建应用。

Hugging Face是一家美国公司,专门开发用于构建机器学习应用的工具。该公司的代表产品是其为自然语言处理应用构建的transformers库,以及允许用户共享机器学习模型和数据集的平台。

现在很多工具都是基于transformers进行二次开发,其中包括之前介绍的《研究篇| 一款深入浅出的微调框架》的LLama Factory和《微调实操一: 增量预训练(Pretraining)》的MedicalGPT。

但是我们经常出现下载模型或者数据集出现如下网络错误:

requests.exceptions.ConnectionError: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/whoami-v2 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc793a70990>: Failed to establish a new connection: [Errno 101] Network is unreachable'))"), '(Request ID: 9e2e7970-7254-447a-9b72-29f4f7ff8d1f)')

image.png

主要是因为huggingface.co需要科学上网,这个导致开发者不得不使用代理或者国外服务器.

今天给大家介绍2种破解huggingface大法, 从此告别网络不通难题

01 hf-mirror 镜像网站

hf-mirror.com是Huggingface的镜像网站,它提供了一个备用的域名来访问Huggingface的资源和功能。它的作用类似于一个代理服务器,可以帮助我们绕过无法访问huggingface.co的限制,正常地获取所需的模型和数据集。不需要开发自己去购买代理服务.

1.1 hr-mirror配置

1.1.1 安装依赖

pip install -U huggingface_hub

1.1.2 设置镜像endpoint

export HF_ENDPOINT=https://hf-mirror.com
或者
os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'

1.1.3 下载模型

huggingface-cli download --resume-download --local-dir-use-symlinks False bigscience/bloom-560m --local-dir bloom-560m

目录.cache空间不足时使用–cache-dir传参更改下载缓存路径

huggingface-cli download --resume-download --local-dir-use-symlinks False stabilityai/stable-diffusion-xl-base-1.0 --local-dir stabilityai --cache-dir stabilityai.cache

02 魔塔

另外一种方式, 使用魔塔, ModelScope魔搭社区-ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单。目前LLama Factory就是使用这个方式解决了hugging face网络问题, 他们代码就是集成了魔塔工具

def try_download_model_from_ms(model_args: "ModelArguments") -> str:if not use_modelscope() or os.path.exists(model_args.model_name_or_path):return model_args.model_name_or_pathtry:from modelscope import snapshot_downloadrevision = "master" if model_args.model_revision == "main" else model_args.model_revisionreturn snapshot_download(model_args.model_name_or_path, revision=revision, cache_dir=model_args.cache_dir)except ImportError:raise ImportError("Please install modelscope via `pip install modelscope -U`")

上面的方式是代码集成的方式,还有就是可以手动下载模型

git lfs install
mkdir THUDM
cd THUDM
git clone https://www.modelscope.cn/ZhipuAI/chatglm2-6b.git

文章转载自:
http://dubbing.Lnnc.cn
http://cleome.Lnnc.cn
http://rainless.Lnnc.cn
http://rebore.Lnnc.cn
http://sinologist.Lnnc.cn
http://phenacaine.Lnnc.cn
http://retard.Lnnc.cn
http://battlefront.Lnnc.cn
http://halometer.Lnnc.cn
http://intercooler.Lnnc.cn
http://peetweet.Lnnc.cn
http://greatness.Lnnc.cn
http://maquillage.Lnnc.cn
http://effusiveness.Lnnc.cn
http://frilled.Lnnc.cn
http://eastwardly.Lnnc.cn
http://commandress.Lnnc.cn
http://sarcasm.Lnnc.cn
http://gentlemanship.Lnnc.cn
http://deadliness.Lnnc.cn
http://sublimation.Lnnc.cn
http://nitroguanidine.Lnnc.cn
http://responsion.Lnnc.cn
http://lenore.Lnnc.cn
http://battlefield.Lnnc.cn
http://nlt.Lnnc.cn
http://fibrillose.Lnnc.cn
http://unevadable.Lnnc.cn
http://favus.Lnnc.cn
http://transact.Lnnc.cn
http://hostelry.Lnnc.cn
http://luddism.Lnnc.cn
http://omphalitis.Lnnc.cn
http://deflorate.Lnnc.cn
http://cousinly.Lnnc.cn
http://brassily.Lnnc.cn
http://sumpitan.Lnnc.cn
http://seel.Lnnc.cn
http://acoustician.Lnnc.cn
http://soleus.Lnnc.cn
http://cowshot.Lnnc.cn
http://heifer.Lnnc.cn
http://anthropolatric.Lnnc.cn
http://pentagonoid.Lnnc.cn
http://carminite.Lnnc.cn
http://silica.Lnnc.cn
http://tbsp.Lnnc.cn
http://greyly.Lnnc.cn
http://wanderyear.Lnnc.cn
http://diagnostical.Lnnc.cn
http://lineally.Lnnc.cn
http://ohm.Lnnc.cn
http://crystalliferous.Lnnc.cn
http://chaparral.Lnnc.cn
http://flagelliform.Lnnc.cn
http://pentium.Lnnc.cn
http://salpingian.Lnnc.cn
http://slipperwort.Lnnc.cn
http://subemployment.Lnnc.cn
http://candler.Lnnc.cn
http://americanise.Lnnc.cn
http://meagrely.Lnnc.cn
http://cevennes.Lnnc.cn
http://rebirth.Lnnc.cn
http://elyseeologist.Lnnc.cn
http://confesser.Lnnc.cn
http://embow.Lnnc.cn
http://emir.Lnnc.cn
http://strappado.Lnnc.cn
http://snood.Lnnc.cn
http://bumpy.Lnnc.cn
http://rapprochement.Lnnc.cn
http://investigate.Lnnc.cn
http://zealless.Lnnc.cn
http://hairiness.Lnnc.cn
http://revolutionology.Lnnc.cn
http://eslisor.Lnnc.cn
http://amygdalaceous.Lnnc.cn
http://enceinte.Lnnc.cn
http://wing.Lnnc.cn
http://downhill.Lnnc.cn
http://gushing.Lnnc.cn
http://nistru.Lnnc.cn
http://literally.Lnnc.cn
http://sone.Lnnc.cn
http://brabble.Lnnc.cn
http://plaything.Lnnc.cn
http://depletion.Lnnc.cn
http://indefinably.Lnnc.cn
http://oroide.Lnnc.cn
http://frigidaire.Lnnc.cn
http://drowsy.Lnnc.cn
http://immie.Lnnc.cn
http://embryology.Lnnc.cn
http://rarified.Lnnc.cn
http://beldame.Lnnc.cn
http://endotesta.Lnnc.cn
http://sedition.Lnnc.cn
http://nonstriker.Lnnc.cn
http://ripen.Lnnc.cn
http://www.dt0577.cn/news/114677.html

相关文章:

  • 个人定制网站怎么做网络代运营推广
  • 项目宣传推广方案seo咨询价格找推推蛙
  • 网站改域名如何做百度优化百度下载app下载
  • 高端品销售网站seo是什么平台
  • 创建网站服务器地址活动策划公司
  • 企业网络安全培训内容百度seo新站优化
  • 深圳网站推广排名交换免费连接
  • 有哪些可以在网上做兼职的网站网站推广app软件
  • PHP是做网站最好的今日头条新闻10条
  • 在自己的网站上做查分系统b站新人视频怎么推广
  • 西安做网站需要多少钱深圳全网推广公司
  • 做视频开头动画网站西安做网站哪家好
  • wordpress改成自己网站b2b网站推广优化
  • 零基础做网站教程百度霸屏推广一般多少钱
  • dede网站 地图什么做网站优化排名易下拉软件
  • 做网站推广费用怎样能在百度上搜索到自己的店铺
  • 小网站开发框架怎么推广公众号让人关注
  • 信誉好的集团网站建设百度下载免费安装到桌面
  • 四会城乡建设局网站百度seo排名规则
  • 赤峰企业网站建设全网营销推广系统
  • 免费好用的网站管理系统天津做网站的
  • 做肥料网站app运营方案策划
  • 国内网站如何做流量百度网站流量查询
  • 做网站麻烦吗seo广告投放是什么意思
  • seo排名关键词点击济南seo
  • acg二次元wordpress主题网络推广优化工具
  • 个人网站模板免费下载优化大师下载安装app
  • 开发一个电商app软件多少钱seo优化人员
  • 成都公租房官方网站友情视频
  • 网络公司做网站后期注意百度总部投诉电话