bezzam HF Staff commited on
Commit
769c63e
·
verified ·
1 Parent(s): 22f5375

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -9
Dockerfile CHANGED
@@ -1,17 +1,14 @@
1
- FROM nvidia/cuda:12.9.0-devel-ubuntu24.04
2
 
3
  # Avoid interactive prompts during package installation
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
  # Install Python and system dependencies
7
- # devel image needed for flash_attn compilation (Granite NAR requires it)
8
  RUN apt-get update && apt-get install -y --no-install-recommends \
9
  python3 \
10
  python3-pip \
11
  python3-dev \
12
  git \
13
- gcc \
14
- g++ \
15
  libsndfile1 \
16
  ffmpeg \
17
  && rm -rf /var/lib/apt/lists/*
@@ -34,18 +31,15 @@ RUN pip install --no-cache-dir \
34
 
35
  # Install common requirements (torch already installed above, pip will skip it)
36
  RUN pip install --no-cache-dir \
37
- transformers==4.57.6 \
38
  evaluate \
39
  datasets \
40
  librosa \
41
  jiwer \
42
  num2words \
43
- peft==0.13.1 \
44
  soundfile
45
 
46
- # Install Flash Attention 2 (required by Granite NAR model)
47
- RUN MAX_JOBS=8 pip install --no-cache-dir flash-attn==2.8.3 --no-build-isolation
48
-
49
  # Force soundfile backend for datasets audio decoding
50
  ENV HF_AUDIO_DECODER_BACKEND=soundfile
51
 
 
1
+ FROM nvidia/cuda:12.9.0-runtime-ubuntu24.04
2
 
3
  # Avoid interactive prompts during package installation
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
  # Install Python and system dependencies
 
7
  RUN apt-get update && apt-get install -y --no-install-recommends \
8
  python3 \
9
  python3-pip \
10
  python3-dev \
11
  git \
 
 
12
  libsndfile1 \
13
  ffmpeg \
14
  && rm -rf /var/lib/apt/lists/*
 
31
 
32
  # Install common requirements (torch already installed above, pip will skip it)
33
  RUN pip install --no-cache-dir \
34
+ transformers==4.38 \
35
  evaluate \
36
  datasets \
37
  librosa \
38
  jiwer \
39
  num2words \
40
+ peft \
41
  soundfile
42
 
 
 
 
43
  # Force soundfile backend for datasets audio decoding
44
  ENV HF_AUDIO_DECODER_BACKEND=soundfile
45