Skip to content

Commit cf0df51

Browse files
authored
Merge pull request #283 from mila-iqia/vjepa
Staging
2 parents b891f0d + 7be079a commit cf0df51

File tree

123 files changed

+3415
-861
lines changed

Some content is hidden

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

123 files changed

+3415
-861
lines changed

.github/workflows/tests_unit.yml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ on:
1616
# Allow manual triggers
1717
workflow_dispatch:
1818

19+
env:
20+
XDG_CACHE_HOME: /home/runner/work/milabench/cache
21+
XDG_DATA_HOME: /home/runner/work/milabench/data
22+
XDG_CONFIG_HOME: /home/runner/work/milabench/config
23+
XDG_STATE_HOME: /home/runner/work/milabench/state
24+
1925

2026
jobs:
2127
tests:
@@ -27,6 +33,15 @@ jobs:
2733
cancel-in-progress: true
2834

2935
steps:
36+
- uses: easimon/maximize-build-space@master
37+
with:
38+
remove-dotnet: 'true'
39+
remove-codeql: 'true'
40+
remove-haskell: 'true'
41+
remove-android: 'true'
42+
build-mount-path: /home/runner/work/milabench/
43+
root-reserve-mb: 20000
44+
3045
- uses: actions/checkout@v3
3146

3247
- uses: actions/setup-python@v5
@@ -35,24 +50,25 @@ jobs:
3550

3651
- name: dependencies
3752
run: |
53+
cd /home/runner/work/milabench/milabench
54+
pip install virtualenv
55+
virtualenv ./env
56+
source ./env/bin/activate
57+
#
3858
pip install -U pip
3959
pip install poetry
40-
poetry env use python3.10
41-
source $(poetry env info -p)/bin/activate
60+
poetry export --dev -f requirements.txt --output requirements-dev.txt
4261
#
4362
# poetry doesnot work when installing those !?
4463
#
4564
pip install antlr4-python3-runtime==4.9.3
4665
pip install -e .
4766
pip install -e benchmate
48-
#
49-
#
50-
#
51-
poetry install --with dev
67+
pip install coverage pytest-regressions pytest-cov pytest
5268
5369
- name: Simple Template
5470
run: |
55-
source $(poetry env info -p)/bin/activate
71+
source ./env/bin/activate
5672
milabench new --name simplebench --template simple
5773
cd benchmarks/simplebench
5874
make tests
@@ -61,7 +77,7 @@ jobs:
6177
6278
- name: Voir Template
6379
run: |
64-
source $(poetry env info -p)/bin/activate
80+
source ./env/bin/activate
6581
milabench new --name voirbench --template voir
6682
cd benchmarks/voirbench
6783
make tests
@@ -74,10 +90,10 @@ jobs:
7490
7591
- name: tests
7692
env:
77-
MILABENCH_HF_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN}}
93+
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN}}
7894
run: |
79-
source $(poetry env info -p)/bin/activate
80-
coverage run --source=milabench -m pytest --ignore=tests/integration tests/
95+
source ./env/bin/activate
96+
coverage run --source=milabench -m pytest --ignore=tests/integration tests/ -vv -x
8197
coverage report -m
8298
coverage xml
8399

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ dependencies/
3535
benchmarks/recursiongfn/gflownet
3636
benchmarks/recursiongfn/logs/
3737
benchmarks/llm/tune/
38+
benchmarks/vjepa/jepa
3839

3940
scripts/inventory.yaml
4041
output/

.pin/constraints-cuda-gnn.txt

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)