centOs安装git-lfs并下载huggingface模型

本文介绍了如何在CentOS操作系统中安装git-lfs,并使用它来下载托管在HuggingFace上的模型。步骤包括安装git-lfs,然后通过git clone命令获取模型,最后进行模型的测试。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

hf模型都是用git-lfs托管的,可以直接git下载的,天才第一步:

1、安装git-lfs

yum install git-lfs

2、直接git clone

git clone https://huggingface.co/facebook/opt-1.3b

3、测试模型opt-1.3b

python inference/chatbot.py --path conf/models/opt-1.3b/
Enter input (type 'quit' to exit, 'clear' to clean memory): can you speak chinese ?
/lib/python3.9/site-packages/transformers/generation/utils.py:1219: UserWarning: You have modified the pretrained model configuration to control generation. This is a deprecated strategy to control generation and will be removed soon, in a future version. Please use a generation configuration file (see https://hug
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小李飞刀李寻欢

您的欣赏将是我奋斗路上的动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值