hf模型都是用git-lfs托管的,可以直接git下载的,天才第一步:
1、安装git-lfs
yum install git-lfs
2、直接git clone文章来源:https://www.toymoban.com/news/detail-520572.html
git clone https://huggingface.co/facebook/opt-1.3b
3、测试模型opt-1.3b文章来源地址https://www.toymoban.com/news/detail-520572.html
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:
到了这里,关于centOs安装git-lfs并下载huggingface模型的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!