Skip to content

Commit

Permalink
add finetuning example for gemma
Browse files Browse the repository at this point in the history
  • Loading branch information
moficodes committed Mar 17, 2024
1 parent 10e8abf commit e352ad1
Show file tree
Hide file tree
Showing 8 changed files with 2,278 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tutorials/finetune-gemma-2b-on-l4/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04

RUN apt-get update && \
apt-get -y --no-install-recommends install python3-dev gcc python3-pip git && \
rm -rf /var/lib/apt/lists/*

RUN pip3 install --no-cache-dir accelerate bitsandbytes datasets transformers peft trl torch

COPY finetune.py /finetune.py

ENV PYTHONUNBUFFERED 1

CMD python3 /finetune.py --device cuda
Loading

0 comments on commit e352ad1

Please sign in to comment.