Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ There is growing interest in ensuring that large language models (LLMs) align wi
## Getting Started
We provide a Dockerfile in `docker/Dockerfile` that can be used to easily set up the environment needed to run all code in this repository.

To build the Docker container, navigate to the root directory of this repository and run the following command:
```
docker build -t your-image-tag -f docker/Dockerfile .
```

For your desired black box models, make sure you have the API key stored in `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `PALM_API_KEY` respectively. For example,
```
export OPENAI_API_KEY=[YOUR_API_KEY_HERE]
Expand Down
5 changes: 4 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ FROM pytorch/pytorch:latest
# Set a working directory inside the container
WORKDIR /project

# Copy the Python files and directories into the container's project directory
COPY . /project

# Install git
RUN apt-get update && apt-get install -y git

RUN pip3 install fschat==0.2.23

RUN pip3 install pandas seaborn matplotlib numpy datasets evaluate

RUN pip install anthropic google-generativeai openai
RUN pip install anthropic google-generativeai openai