mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-16 19:18:24 +06:00
This reverts commit d8cf3b2087
.
This commit is contained in:
parent
d8cf3b2087
commit
a26114777e
@ -32,7 +32,7 @@ RUN echo torch=$VERSION
|
|||||||
# TODO: We might need to specify proper versions that work with a specific torch version (especially for past CI).
|
# TODO: We might need to specify proper versions that work with a specific torch version (especially for past CI).
|
||||||
RUN [ "$PYTORCH" != "pre" ] && python3 -m pip install --no-cache-dir -U $VERSION torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/$CUDA || python3 -m pip install --no-cache-dir -U --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/$CUDA
|
RUN [ "$PYTORCH" != "pre" ] && python3 -m pip install --no-cache-dir -U $VERSION torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/$CUDA || python3 -m pip install --no-cache-dir -U --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/$CUDA
|
||||||
|
|
||||||
RUN python3 -m pip install --no-cache-dir -U tensorflow
|
RUN python3 -m pip install --no-cache-dir -U tensorflow==2.9.1
|
||||||
RUN python3 -m pip uninstall -y flax jax
|
RUN python3 -m pip uninstall -y flax jax
|
||||||
|
|
||||||
# Use installed torch version for `torch-scatter` to avid to deal with PYTORCH='pre'.
|
# Use installed torch version for `torch-scatter` to avid to deal with PYTORCH='pre'.
|
||||||
|
@ -15,7 +15,7 @@ RUN apt update && \
|
|||||||
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
|
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
|
||||||
python3 -m pip install --no-cache-dir \
|
python3 -m pip install --no-cache-dir \
|
||||||
jupyter \
|
jupyter \
|
||||||
tensorflow-cpu \
|
tensorflow-cpu==2.9.1 \
|
||||||
torch
|
torch
|
||||||
|
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
@ -15,7 +15,7 @@ RUN apt update && \
|
|||||||
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
|
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
|
||||||
python3 -m pip install --no-cache-dir \
|
python3 -m pip install --no-cache-dir \
|
||||||
jupyter \
|
jupyter \
|
||||||
tensorflow \
|
tensorflow==2.9.1 \
|
||||||
torch
|
torch
|
||||||
|
|
||||||
RUN git clone https://github.com/NVIDIA/apex
|
RUN git clone https://github.com/NVIDIA/apex
|
||||||
|
@ -15,7 +15,7 @@ RUN apt update && \
|
|||||||
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
|
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
|
||||||
python3 -m pip install --no-cache-dir \
|
python3 -m pip install --no-cache-dir \
|
||||||
mkl \
|
mkl \
|
||||||
tensorflow-cpu
|
tensorflow-cpu==2.9.1
|
||||||
|
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
COPY . transformers/
|
COPY . transformers/
|
||||||
|
@ -12,7 +12,7 @@ RUN git clone https://github.com/huggingface/transformers && cd transformers &&
|
|||||||
RUN python3 -m pip install --no-cache-dir -e ./transformers[dev-tensorflow,testing]
|
RUN python3 -m pip install --no-cache-dir -e ./transformers[dev-tensorflow,testing]
|
||||||
|
|
||||||
# If set to nothing, will install the latest version
|
# If set to nothing, will install the latest version
|
||||||
ARG TENSORFLOW=''
|
ARG TENSORFLOW='2.9.1'
|
||||||
|
|
||||||
RUN [ ${#TENSORFLOW} -gt 0 ] && VERSION='tensorflow=='$TENSORFLOW'.*' || VERSION='tensorflow'; python3 -m pip install --no-cache-dir -U $VERSION
|
RUN [ ${#TENSORFLOW} -gt 0 ] && VERSION='tensorflow=='$TENSORFLOW'.*' || VERSION='tensorflow'; python3 -m pip install --no-cache-dir -U $VERSION
|
||||||
RUN python3 -m pip uninstall -y torch flax
|
RUN python3 -m pip uninstall -y torch flax
|
||||||
|
4
setup.py
4
setup.py
@ -154,8 +154,8 @@ _deps = [
|
|||||||
"sigopt",
|
"sigopt",
|
||||||
"librosa",
|
"librosa",
|
||||||
"starlette",
|
"starlette",
|
||||||
"tensorflow-cpu>=2.3",
|
"tensorflow-cpu>=2.3,<2.10",
|
||||||
"tensorflow>=2.3",
|
"tensorflow>=2.3,<2.10",
|
||||||
"tensorflow-text",
|
"tensorflow-text",
|
||||||
"tf2onnx",
|
"tf2onnx",
|
||||||
"timeout-decorator",
|
"timeout-decorator",
|
||||||
|
@ -60,8 +60,8 @@ deps = {
|
|||||||
"sigopt": "sigopt",
|
"sigopt": "sigopt",
|
||||||
"librosa": "librosa",
|
"librosa": "librosa",
|
||||||
"starlette": "starlette",
|
"starlette": "starlette",
|
||||||
"tensorflow-cpu": "tensorflow-cpu>=2.3",
|
"tensorflow-cpu": "tensorflow-cpu>=2.3,<2.10",
|
||||||
"tensorflow": "tensorflow>=2.3",
|
"tensorflow": "tensorflow>=2.3,<2.10",
|
||||||
"tensorflow-text": "tensorflow-text",
|
"tensorflow-text": "tensorflow-text",
|
||||||
"tf2onnx": "tf2onnx",
|
"tf2onnx": "tf2onnx",
|
||||||
"timeout-decorator": "timeout-decorator",
|
"timeout-decorator": "timeout-decorator",
|
||||||
|
Loading…
Reference in New Issue
Block a user