Rename and Fix Dockerfile.hpu, add .dockerignore, update in README.md

This commit is contained in:
PiotrBLL 2024-11-07 17:23:30 +01:00
parent a49838ceb3
commit 3825dd0c5a
3 changed files with 11 additions and 8 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
.graph_dumps

View File

@ -7,7 +7,7 @@ ENV OMPI_MCA_btl_vader_single_copy_mechanism=none
ENV PT_HPU_LAZY_ACC_PAR_MODE=0 ENV PT_HPU_LAZY_ACC_PAR_MODE=0
ENV PT_HPU_ENABLE_LAZY_COLLECTIVES=1 ENV PT_HPU_ENABLE_LAZY_COLLECTIVES=1
# Install essential Linux packages and ffmpeg # Install essential Linux packages
ENV DEBIAN_FRONTEND="noninteractive" TZ=Etc/UTC ENV DEBIAN_FRONTEND="noninteractive" TZ=Etc/UTC
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
tzdata \ tzdata \
@ -15,7 +15,6 @@ RUN apt-get update && apt-get install -y \
python3-pip \ python3-pip \
openssh-server \ openssh-server \
vim \ vim \
git \
iputils-ping \ iputils-ping \
net-tools \ net-tools \
protobuf-compiler \ protobuf-compiler \
@ -26,10 +25,13 @@ RUN apt-get update && apt-get install -y \
ffmpeg \ ffmpeg \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Copy the Whisper repo contents # Add Whisper repo contents
ADD whisper /root/whisper ADD . /root/whisper
WORKDIR /root/whisper WORKDIR /root/whisper
# Install Python packages from Whisper requirements # Copy requirements.txt explicitly
COPY requirements.txt /root/whisper/requirements.txt
# Install Python packages from requirements.txt
RUN pip install --upgrade pip \ RUN pip install --upgrade pip \
&& pip install -r requirements.txt \ && pip install -r requirements.txt

View File

@ -145,10 +145,10 @@ print(result.text)
### Build the Docker Image ### Build the Docker Image
```bash ```bash
docker build -t whisper_hpu:latest -f Dockerfile_hpu . docker build -t whisper_hpu:latest -f Dockerfile.hpu .
``` ```
In the `Dockerfile_hpu`, we use the `vault.habana.ai/gaudi-docker/1.17.0/ubuntu22.04/habanalabs/pytorch-installer-2.3.1:latest` base image, make sure to replace it with the appropriate version for your environment if needed. In the `Dockerfile.hpu`, we use the `vault.habana.ai/gaudi-docker/1.17.0/ubuntu22.04/habanalabs/pytorch-installer-2.3.1:latest` base image, make sure to replace it with the appropriate version for your environment if needed.
See the [PyTorch Docker Images for the Intel® Gaudi® Accelerator](https://developer.habana.ai/catalog/pytorch-container/) for more information. See the [PyTorch Docker Images for the Intel® Gaudi® Accelerator](https://developer.habana.ai/catalog/pytorch-container/) for more information.
### Run the Container ### Run the Container