0


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

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://huggingface.co/docs/transformers/main_classes/text_generation)
  warnings.warn(
------------------------------ Round 1 ------------------------------
 Human: can you speak chinese ?
 Assistant:          
标签: git-lfs centos 模型

本文转载自: https://blog.csdn.net/SPESEG/article/details/130291652
版权归原作者 小李飞刀李寻欢 所有, 如有侵权,请联系我们删除。

“centOs安装git-lfs并下载huggingface模型”的评论:

还没有评论