mirror of
https://github.com/openai/whisper.git
synced 2025-11-24 06:26:03 +00:00
Rename and Fix Dockerfile.hpu, add .dockerignore, update in README.md
This commit is contained in:
parent
a49838ceb3
commit
3825dd0c5a
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
.graph_dumps
|
||||
@ -7,7 +7,7 @@ ENV OMPI_MCA_btl_vader_single_copy_mechanism=none
|
||||
ENV PT_HPU_LAZY_ACC_PAR_MODE=0
|
||||
ENV PT_HPU_ENABLE_LAZY_COLLECTIVES=1
|
||||
|
||||
# Install essential Linux packages and ffmpeg
|
||||
# Install essential Linux packages
|
||||
ENV DEBIAN_FRONTEND="noninteractive" TZ=Etc/UTC
|
||||
RUN apt-get update && apt-get install -y \
|
||||
tzdata \
|
||||
@ -15,7 +15,6 @@ RUN apt-get update && apt-get install -y \
|
||||
python3-pip \
|
||||
openssh-server \
|
||||
vim \
|
||||
git \
|
||||
iputils-ping \
|
||||
net-tools \
|
||||
protobuf-compiler \
|
||||
@ -26,10 +25,13 @@ RUN apt-get update && apt-get install -y \
|
||||
ffmpeg \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy the Whisper repo contents
|
||||
ADD whisper /root/whisper
|
||||
# Add Whisper repo contents
|
||||
ADD . /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 \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pip install -r requirements.txt
|
||||
@ -145,10 +145,10 @@ print(result.text)
|
||||
### Build the Docker Image
|
||||
|
||||
```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.
|
||||
|
||||
### Run the Container
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user