diff --git a/containers/tei/cpu/1.2.2/Dockerfile b/containers/tei/cpu/1.2.2/Dockerfile index 6b87caa0..b10f7e29 100644 --- a/containers/tei/cpu/1.2.2/Dockerfile +++ b/containers/tei/cpu/1.2.2/Dockerfile @@ -1,4 +1,4 @@ -# Fetch and extract the TGI sources +# Fetch and extract the TEI sources FROM alpine AS tei RUN mkdir -p /tei ADD https://github.com/huggingface/text-embeddings-inference/archive/refs/tags/v1.2.2.tar.gz /tei/sources.tar.gz diff --git a/containers/tei/cpu/1.4.0/Dockerfile b/containers/tei/cpu/1.4.0/Dockerfile index 32b5b183..f9bea3b1 100644 --- a/containers/tei/cpu/1.4.0/Dockerfile +++ b/containers/tei/cpu/1.4.0/Dockerfile @@ -1,4 +1,4 @@ -# Fetch and extract the TGI sources +# Fetch and extract the TEI sources FROM alpine AS tei RUN mkdir -p /tei diff --git a/containers/tei/cpu/1.5.1/Dockerfile b/containers/tei/cpu/1.5.1/Dockerfile index dbb95c0d..33acb8d5 100644 --- a/containers/tei/cpu/1.5.1/Dockerfile +++ b/containers/tei/cpu/1.5.1/Dockerfile @@ -1,4 +1,4 @@ -# Fetch and extract the TGI sources +# Fetch and extract the TEI sources FROM alpine AS tei RUN mkdir -p /tei diff --git a/containers/tei/gpu/1.2.2/Dockerfile b/containers/tei/gpu/1.2.2/Dockerfile index e6ed05ed..9125bb44 100644 --- a/containers/tei/gpu/1.2.2/Dockerfile +++ b/containers/tei/gpu/1.2.2/Dockerfile @@ -1,4 +1,4 @@ -# Fetch and extract the TGI sources +# Fetch and extract the TEI sources FROM alpine AS tei RUN mkdir -p /tei ADD https://github.com/huggingface/text-embeddings-inference/archive/refs/tags/v1.2.2.tar.gz /tei/sources.tar.gz @@ -10,6 +10,8 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder ENV SCCACHE=0.5.4 ENV RUSTC_WRAPPER=/usr/local/bin/sccache ENV PATH="/root/.cargo/bin:${PATH}" +# aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.75-bookworm` +ENV CARGO_CHEF=0.1.62 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ curl \ @@ -17,12 +19,12 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins pkg-config \ && rm -rf /var/lib/apt/lists/* -# Download and configure sccache +# Donwload and configure sccache RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sccache-v$SCCACHE-x86_64-unknown-linux-musl.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin sccache-v$SCCACHE-x86_64-unknown-linux-musl/sccache && \ chmod +x /usr/local/bin/sccache RUN curl https://sh.rustup.rs -sSf | bash -s -- -y -RUN cargo install cargo-chef --locked +RUN cargo install cargo-chef --version $CARGO_CHEF --locked FROM base-builder AS planner diff --git a/containers/tei/gpu/1.4.0/Dockerfile b/containers/tei/gpu/1.4.0/Dockerfile index 10d664bf..ec07dac6 100644 --- a/containers/tei/gpu/1.4.0/Dockerfile +++ b/containers/tei/gpu/1.4.0/Dockerfile @@ -1,4 +1,4 @@ -# Fetch and extract the TGI sources +# Fetch and extract the TEI sources FROM alpine AS tei RUN mkdir -p /tei @@ -11,6 +11,8 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder ENV SCCACHE=0.5.4 ENV RUSTC_WRAPPER=/usr/local/bin/sccache ENV PATH="/root/.cargo/bin:${PATH}" +# aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.75-bookworm` +ENV CARGO_CHEF=0.1.62 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ curl \ @@ -18,12 +20,12 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins pkg-config \ && rm -rf /var/lib/apt/lists/* -# Download and configure sccache +# Donwload and configure sccache RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sccache-v$SCCACHE-x86_64-unknown-linux-musl.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin sccache-v$SCCACHE-x86_64-unknown-linux-musl/sccache && \ chmod +x /usr/local/bin/sccache RUN curl https://sh.rustup.rs -sSf | bash -s -- -y -RUN cargo install cargo-chef --locked +RUN cargo install cargo-chef --version $CARGO_CHEF --locked FROM base-builder AS planner diff --git a/containers/tei/gpu/1.5.1/Dockerfile b/containers/tei/gpu/1.5.1/Dockerfile index f20c3e46..28f0b423 100644 --- a/containers/tei/gpu/1.5.1/Dockerfile +++ b/containers/tei/gpu/1.5.1/Dockerfile @@ -1,4 +1,4 @@ -# Fetch and extract the TGI sources +# Fetch and extract the TEI sources FROM alpine AS tei RUN mkdir -p /tei @@ -11,6 +11,8 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder ENV SCCACHE=0.5.4 ENV RUSTC_WRAPPER=/usr/local/bin/sccache ENV PATH="/root/.cargo/bin:${PATH}" +# aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.75-bookworm` +ENV CARGO_CHEF=0.1.62 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ curl \ @@ -23,7 +25,7 @@ RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sc chmod +x /usr/local/bin/sccache RUN curl https://sh.rustup.rs -sSf | bash -s -- -y -RUN cargo install cargo-chef --locked +RUN cargo install cargo-chef --version $CARGO_CHEF --locked FROM base-builder AS planner diff --git a/containers/tei/gpu/1.6.0/Dockerfile b/containers/tei/gpu/1.6.0/Dockerfile index 6a3bb6e7..153c442a 100644 --- a/containers/tei/gpu/1.6.0/Dockerfile +++ b/containers/tei/gpu/1.6.0/Dockerfile @@ -11,6 +11,8 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder ENV SCCACHE=0.5.4 ENV RUSTC_WRAPPER=/usr/local/bin/sccache ENV PATH="/root/.cargo/bin:${PATH}" +# aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.75-bookworm` +ENV CARGO_CHEF=0.1.62 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ curl \ @@ -23,7 +25,7 @@ RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sc chmod +x /usr/local/bin/sccache RUN curl https://sh.rustup.rs -sSf | bash -s -- -y -RUN cargo install cargo-chef --locked +RUN cargo install cargo-chef --version $CARGO_CHEF --locked FROM base-builder AS planner