使用Huggingface提供的脚本文件,对原始的LLaMA-13B
转换为Huggingface的格式,具体的脚本文件在此处。下面是运行的命令(假设下载的原始文件位于./
下,希望转换后的路径为./converted
):文章来源:https://www.toymoban.com/news/detail-676609.html
python convert_llama_weights_to_hf.py --input_dir ./ --model_size 13B --output_dir ./converted
convert_llama_weights_to_hf.py文章来源地址https://www.toymoban.com/news/detail-676609.html
# Copyright 2022 EleutherAI and The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "A
到了这里,关于LLM-LLaMA:使用Huggingface提供的脚本文件,对原始的LLaMA-13B转换为Huggingface的格式的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!