Skip to content
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

feat(model,eval) DPO training & human preference eval #338

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
28 changes: 28 additions & 0 deletions docker/dpo/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM huggingface/trl-latest-gpu:latest

RUN mkdir /workspace
WORKDIR /workspace

# Create a non-root user and switch to it
RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
&& chown -R user:user /workspace

USER user
# user can use /home/user as their home directory
ENV HOME=/home/user
RUN chmod 777 /home/user

COPY requirements.txt /workspace/requirements.txt
WORKDIR /workspace/

RUN source activate trl && \
python3 -m pip install -U --no-build-isolation --no-cache-dir -r requirements.txt

RUN echo 'export PATH="$PATH:/home/user/.local/bin"' >> ~/.bashrc && \
echo 'source activate trl' >> ~/.bashrc

# COPY jupyter_server_config.json /home/user/.jupyter/jupyter_server_config.json

WORKDIR /workspace

CMD ["/bin/bash"]
2 changes: 2 additions & 0 deletions docker/dpo/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
flash-attn==2.4.3.post1
wandb==0.16.2
Loading
Loading