Skip to content

Commit

Permalink
cleanup: remove transformers version override
Browse files Browse the repository at this point in the history
Signed-off-by: Travis Johnson <[email protected]>
  • Loading branch information
tjohnson31415 committed Jul 31, 2024
1 parent 9d32f71 commit 0aef25e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ RUN cd server && \
make gen-server && \
pip install ".[accelerate]" --no-cache-dir

# temp: install newer transformers lib that optimum clashes with
RUN pip install transformers==4.40.0 tokenizers==0.19.1 --no-cache-dir

# Patch codegen model changes into transformers
RUN cp server/transformers_patch/modeling_codegen.py ${SITE_PACKAGES}/transformers/models/codegen/modeling_codegen.py

Expand Down Expand Up @@ -290,9 +287,6 @@ COPY server server
# Ref: https://onnxruntime.ai/docs/install/#install-onnx-runtime-gpu-cuda-12x
RUN cd server && make gen-server && pip install ".[accelerate, ibm-fms, onnx-gpu, quantize]" --no-cache-dir --extra-index-url=https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/

# temp: install newer transformers lib that optimum clashes with
RUN pip install transformers==4.40.0 tokenizers==0.19.1 --no-cache-dir

# Patch codegen model changes into transformers 4.35
RUN cp server/transformers_patch/modeling_codegen.py ${SITE_PACKAGES}/transformers/models/codegen/modeling_codegen.py

Expand Down

0 comments on commit 0aef25e

Please sign in to comment.