Skip to content

Commit

Permalink
Set ubuntu22.04 as base image; Bump torch and lighting
Browse files Browse the repository at this point in the history
  • Loading branch information
bfreskura committed Feb 10, 2024
1 parent 9365859 commit 5cfbec4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 24 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@ jobs:
name: Run pre-commit hooks
runs-on: ubuntu-latest

permissions:
contents: read
packages: read
statuses: write

steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout code
uses: actions/checkout@v3

- uses: pre-commit-ci/lite-action@v1.0.1
if: always()
- name: Set up Python
uses: actions/setup-python@v3
with:
msg: apply pre-commit hooks
python-version: "3.10"

- name: Install pre-commit
run: pip install -r requirements-dev.txt

- name: Run pre-commit checks
run: pre-commit run --all-files
6 changes: 2 additions & 4 deletions dockerfiles/cuda118/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
FROM ubuntu:22.04

RUN apt update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3 \
python3-pip \
curl && \
apt clean && \
rm -rf /var/lib/apt/lists/*

RUN curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && \
python3 /tmp/get-pip.py

COPY requirements.txt /tmp/requirements.txt
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt --extra-index-url https://download.pytorch.org/whl/cu118

Expand Down
6 changes: 2 additions & 4 deletions dockerfiles/cuda120/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
FROM nvidia/cuda:12.0.1-cudnn8-runtime-ubuntu22.04
FROM ubuntu:22.04

RUN apt update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3 \
python3-pip \
curl && \
apt clean && \
rm -rf /var/lib/apt/lists/*

RUN curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && \
python3 /tmp/get-pip.py

COPY requirements.txt /tmp/requirements.txt
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pre-commit~=3.5.0
pre-commit==3.*
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
lightning==2.1.2
lightning==2.1.4
protobuf==3.20.*
segmentation-models-pytorch==0.3.3
six==1.16.0
torch==2.1.1
torchvision==0.16.1
torch==2.1.2
torchvision==0.16.2

0 comments on commit 5cfbec4

Please sign in to comment.