Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
formatting and fixes
  • Loading branch information
jlamypoirier committed Jan 13, 2023
commit 068430db8c243e669dcaf4a67856f094f85df33e
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
FROM nvcr.io/nvidia/pytorch:22.11-py3

ARG USER=1000
ARG USERNAME=user

WORKDIR /app
ENV PYTHONPATH=/app

COPY ./requirements.txt ./
COPY transformers/ ./transformers
RUN useradd -m -u $USER -s /bin/bash $USERNAME \
&& chown $USERNAME /app

COPY --chown=$USERNAME ./requirements.txt ./
COPY --chown=$USERNAME transformers/ ./transformers
RUN pip install -r requirements.txt

COPY src/ ./src
COPY --chown=$USERNAME src/ ./src
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
check_dirs := src scripts

style:
black --preview $(check_dirs)
isort $(check_dirs)

batch_size := 1

install-mqa-transformers:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.black]
line-length = 119
target-version = ['py35']
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
accelerate==0.15.0
bitsandbytes
deepspeed==0.7.7
./transformers

# TODO: Dev only
isort>=5.5.4
black~=22.0