LLaMA 2 Notes
Table of Contents
1. About
-
Demo here
2. Install
2.1. Get Weights and Tokenizer URL
-
Request from here.
-
Wait for the email.
The links expire in 24 hours
2.2. Download Repo
-
Download from here.
-
Run the
./download.shscript and provide the URL recieved in the email.
2.3. Create Docker Image
-
Create a
DockerfilefileFROM python:3.9-slim-buster # Set the working directory to /app WORKDIR /app # Copy the requirements file COPY requirements.txt . # Install the dependencies RUN pip install -r requirements.txt # Copy the Llama2 model and data COPY llama2.pth . COPY llama2_data . # Set the command to run the model CMD ["python", "-m", "llama2.run_llama2"]