mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2023-08-23 10:47:54 +03:00
fix(dockerfile): fix docker build (#32)
This commit is contained in:
@@ -57,7 +57,7 @@ COPY server/Makefile server/Makefile
|
||||
RUN cd server && make install-torch
|
||||
|
||||
# Install specific version of transformers
|
||||
RUN cd server && make install-transformers
|
||||
RUN cd server && BUILD_EXTENSIONS="True" make install-transformers
|
||||
|
||||
# Install server
|
||||
COPY proto proto
|
||||
|
||||
@@ -19,7 +19,7 @@ install-transformers:
|
||||
|
||||
install-torch:
|
||||
# Install specific version of torch
|
||||
pip install torch --extra-index-url https://download.pytorch.org/whl/cu116 --no-cache-dir
|
||||
pip install torch --extra-index-url https://download.pytorch.org/whl/cu118 --no-cache-dir
|
||||
|
||||
install: gen-server install-torch install-transformers
|
||||
pip install pip --upgrade
|
||||
|
||||
Reference in New Issue
Block a user