跑大模型does not appear to have a file named config.json

  • Post author:
  • Post category:其他


报错如下:

llama-2-70b-chat does not appear to have a file named config.json

解决

cd llama

git clone ‘

GitHub – huggingface/transformers: 🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.

ln -s llama-2-70b-chat 70B

mkdir llama-2-70b-chat-hf

python ./transformers/src/transformers/models/llama/convert_llama_weights_to_hf.py –input_dir . –model_size 70B –output_dir llama-2-70b-chat-hf –safe_serialization true

2023-7-26 17:21分开始执行,2023-7-26 17:32结束

llama-2-70b-chat-hf就是最终产物了,之后使用这个目录进行模型加载



版权声明:本文为wade1010原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。