1. 点击本地址 https://ai.meta.com/resources/models-and-libraries/llama-downloads/ 填写申请表后,去邮箱查看,获取你的唯一下载链接。your unique custom URL。链接24小时内有效
  2. Visit the Llama repository in GitHub and follow the instructions in the README to run the download.sh script.

常见坑和错误:

  1. sh download.sh 出错:“download.sh: 12: [[: not found” 。应该使用bash download.sh 或者chmod +x download.sh then ./download.sh
  2. 下载 llama-2-70b-chat 时大概129G,一直开着终端,有时会待机而导致退出。建议修改download.sh 把下载链接和模型写死,然后使用  nohup 下载。我在这个问题下了3次都没成功,最后第二天又申请了下载链接。‌‌
  3. 129G分割成多个xG文件,必须一口气下完,我想下载最后一个,暂时没空研究。
#修改内容
  1 #!/bin/bash
  2
  3 # Copyright (c) Meta Platforms, Inc. and affiliates.
  4 # This software may be used and distributed according to the terms of the Llama 2 Community License Agreement.
  5
  6 PRESIGNED_URL="https://download.llamameta.net/*?Policy=eyJTdGF0ZW1lbnQiLfGZL2Q4q1S4RyV*SLZ&Download-Request-ID=742134*"
  7 MODEL_SIZE="70B-chat"
  8 TARGET_FOLDER="."             # where all files should end up