mindchain commited on
Commit
3f25725
Β·
verified Β·
1 Parent(s): bf5bd77

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -12
Dockerfile CHANGED
@@ -5,18 +5,22 @@ WORKDIR /app
5
  # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  git \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
- # Copy requirements
11
- COPY requirements_v5.txt requirements.txt
12
-
13
- # Install Python dependencies
14
- # Note: Some packages may fail - that's OK, script has fallbacks
15
- RUN pip install --no-cache-dir torch transformers accelerate trl datasets huggingface_hub peft bitsandbytes optimum || \
16
- pip install --no-cache-dir torch transformers accelerate trl datasets huggingface_hub peft optimum
17
-
18
- # Try to install IPEX (may fail on non-Intel)
19
- RUN pip install --no-cache-dir intel_extension_for_pytorch || echo "IPEX not installed (non-Intel CPU)"
 
 
 
 
20
 
21
  # Copy training script
22
  COPY train_arithmetic_v5_ultimate.py .
 
5
  # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  git \
8
+ && rm -rf /var/lib/aptLists/*
9
+
10
+ # Install core Python packages (required)
11
+ RUN pip install --no-cache-dir \
12
+ torch \
13
+ transformers \
14
+ accelerate \
15
+ trl \
16
+ datasets \
17
+ huggingface_hub \
18
+ peft
19
+
20
+ # Install optional packages (may fail, that's OK)
21
+ RUN pip install --no-cache-dir optimum || echo "optimum not installed"
22
+ RUN pip install --no-cache-dir bitsandbytes || echo "bitsandbytes not installed"
23
+ RUN pip install --no-cache-dir intel_extension_for_pytorch || echo "IPEX not installed"
24
 
25
  # Copy training script
26
  COPY train_arithmetic_v5_ultimate.py .