Darshan commited on
Commit
fdf3e46
1 Parent(s): 1f89c40

use different setup

Browse files
Files changed (2) hide show
  1. Dockerfile +19 -1
  2. requirements.txt +1 -14
Dockerfile CHANGED
@@ -1,15 +1,32 @@
1
- FROM python:3.10-slim
 
 
 
 
 
2
 
3
  # Set working directory
4
  WORKDIR /app
5
 
6
  # Install system dependencies
7
  RUN apt-get update && apt-get install -y \
 
 
 
8
  git \
9
  build-essential \
 
 
 
10
  libsndfile1 \
 
 
 
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
 
 
13
  # Copy requirements first to leverage Docker cache
14
  COPY requirements.txt .
15
 
@@ -19,6 +36,7 @@ RUN pip install --no-cache-dir -r requirements.txt
19
  # Clone and install NeMo
20
  RUN git clone https://github.com/AI4Bharat/NeMo.git && \
21
  cd NeMo && \
 
22
  pip install -e .
23
 
24
  # Copy application code
 
1
+ FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
2
+
3
+ # Set environment variables
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+ ENV PYTHONUNBUFFERED=1
6
+ ENV LANG=C.UTF-8
7
 
8
  # Set working directory
9
  WORKDIR /app
10
 
11
  # Install system dependencies
12
  RUN apt-get update && apt-get install -y \
13
+ python3.10 \
14
+ python3.10-dev \
15
+ python3-pip \
16
  git \
17
  build-essential \
18
+ cmake \
19
+ gcc \
20
+ g++ \
21
  libsndfile1 \
22
+ sox \
23
+ libsox-dev \
24
+ libsox-fmt-all \
25
  && rm -rf /var/lib/apt/lists/*
26
 
27
+ # Upgrade pip
28
+ RUN python3.10 -m pip install --upgrade pip setuptools wheel
29
+
30
  # Copy requirements first to leverage Docker cache
31
  COPY requirements.txt .
32
 
 
36
  # Clone and install NeMo
37
  RUN git clone https://github.com/AI4Bharat/NeMo.git && \
38
  cd NeMo && \
39
+ git checkout nemo-v2 && \
40
  pip install -e .
41
 
42
  # Copy application code
requirements.txt CHANGED
@@ -1,4 +1,3 @@
1
- # requirements.txt
2
  fastapi==0.104.1
3
  uvicorn==0.24.0
4
  python-multipart==0.0.6
@@ -8,18 +7,6 @@ torchaudio==2.1.0
8
  torchvision==0.16.0
9
  packaging==23.2
10
  huggingface_hub==0.23.2
11
- numpy>=1.20.0
12
  soundfile>=0.12.1
13
  librosa>=0.10.1
14
- omegaconf>=2.3.0
15
- hydra-core>=1.3.2
16
- pytorch-lightning>=2.1.0
17
- webdataset>=0.1.62
18
- transformers>=4.36.0
19
- sacremoses>=0.0.53
20
- youtokentome>=1.0.6
21
- numpy<1.24.0
22
- einops>=0.6.1
23
- contextlib2>=21.6.0
24
- inflect>=7.0.0
25
- typing_extensions>=4.8.0
 
 
1
  fastapi==0.104.1
2
  uvicorn==0.24.0
3
  python-multipart==0.0.6
 
7
  torchvision==0.16.0
8
  packaging==23.2
9
  huggingface_hub==0.23.2
10
+ numpy>=1.20.0,<1.24.0
11
  soundfile>=0.12.1
12
  librosa>=0.10.1