-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added docker-file and edited the instructions for it #50
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Base image | ||
FROM ubuntu:20.04 | ||
|
||
# Set working directory | ||
WORKDIR /app | ||
|
||
# Update and install required packages | ||
RUN apt-get update && \ | ||
apt-get install -y git-lfs wget && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Download and install Miniconda | ||
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ | ||
bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && \ | ||
rm Miniconda3-latest-Linux-x86_64.sh | ||
|
||
# Set conda to automatically activate base environment on login | ||
RUN echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ | ||
echo "conda activate base" >> ~/.bashrc | ||
|
||
# Create OpenChatKit environment | ||
COPY environment.yml . | ||
RUN conda env create -f environment.yml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps we should use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This takes a while (forever) for me. Meanwhile it doesn't recognize conda yet, have to use |
||
|
||
# Install Git LFS | ||
RUN git lfs install | ||
|
||
# Copy OpenChatKit code | ||
COPY . . | ||
|
||
# Prepare GPT-NeoX-20B model | ||
RUN python pretrained/GPT-NeoX-20B/prepare.py | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be pretty large. It would be better to bind mount a directory and have the entrypoint call There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hey @csris i am quite new to this project and community. can you help me out by explaining the project structure and whats the requirement in detail. I need a little bit of guidance regarding this project. |
||
|
||
# Set entrypoint to bash shell | ||
ENTRYPOINT ["/bin/bash"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use the Nvidia container toolkit so we can leverage NVIDIA GPUs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure i will take care of that