Skip to content

Commit 2512264

Browse files
committed
Initial commit
0 parents  commit 2512264

194 files changed

Lines changed: 39014 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Applies to build only, ignore everything by default
2+
**
3+
4+
# Keep only files needed for build
5+
!docker-compose.yml
6+
!docker/
7+
!environment.yml
8+
!pyproject.toml
9+
!requirements-full.txt
10+
!requirements.txt
11+
!usf/

.env.example

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# .env.example
2+
# Copy this file to .env and fill in your own values:
3+
# cp .env.example .env
4+
#
5+
# .env is gitignored and will NOT be committed.
6+
7+
# ── Docker ───────────────────────────────────────────────────────────
8+
XSOCK=/tmp/.X11-unix
9+
XAUTH=/tmp/.docker.xauth
10+
AVAILABLE_CORES=$(($(nproc) - 1))
11+
12+
DOCKER_USER=your_dockerhub_username
13+
BASE_IMAGE=ubuntu:24.04 # nvidia/cuda:12.9.1-cudnn-devel-ubuntu24.04
14+
IMAGE_NAME=usf
15+
IMAGE_USER=ubuntu
16+
IMAGE_TAG=latest
17+
TIME_ZONE=$(cat /etc/timezone 2>/dev/null || readlink /etc/localtime | sed 's|.*/zoneinfo/||')
18+
TIME_ZONE=${TIME_ZONE:-UTC}
19+
20+
CONTAINER_NAME=${IMAGE_NAME}
21+
HOME_FOLDER=/home/${IMAGE_USER}
22+
CODE_FOLDER=${IMAGE_NAME}
23+
24+
HOST_UID=$(id -u)
25+
HOST_GID=$(id -g)
26+
HOST=${HOST:-$(hostname)}
27+
HOSTNAME=${HOSTNAME:-$(hostname)}
28+
29+
BUILDER=multi-platform
30+
31+
# ── Dataset Paths (for Docker volume mounts) ─────────────────────────
32+
MNIST_DIR=./data/MNIST
33+
PANDORA_DIR=./data/PANDORA
34+
STANFORD2D3DS_DIR=./data/stanford2D3DS
35+
36+
# ── Weights & Biases ─────────────────────────────────────────────────
37+
WANDB_API_KEY=your_wandb_api_key
38+
WANDB_ENTITY="your_wandb_entity"

.github/workflows/pre-commit.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: pre-commit
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- '*'
9+
- '*/*'
10+
- '**'
11+
jobs:
12+
pre-commit:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-python@v3
17+
- uses: pre-commit/action@v3.0.0

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: test
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- '*'
9+
- '*/*'
10+
- '**'
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Free disk space
19+
run: |
20+
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc \
21+
/usr/local/share/powershell /usr/local/share/chromium \
22+
/usr/local/lib/node_modules /usr/share/swift
23+
sudo docker system prune -af
24+
25+
- name: Run tests
26+
run: |
27+
docker compose -f tests/docker-compose.test.yml run --rm usf \
28+
-c "set -x && conda run -n usf uv pip install -e . --no-deps && conda run -n usf pytest tests/ -v"

0 commit comments

Comments
 (0)