Skip to content

Commit 187fb48

Browse files
authored
Bump version to 0.1.0a0.dev6 (#24)
1 parent db0d597 commit 187fb48

File tree

17 files changed

+1087
-956
lines changed

17 files changed

+1087
-956
lines changed

.github/workflows/code_checks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ jobs:
2626
run-code-check:
2727
runs-on: ubuntu-latest
2828
steps:
29-
- uses: actions/checkout@v4.1.7
29+
- uses: actions/checkout@v4.2.1
3030
- name: Install and configure Poetry
3131
uses: snok/install-poetry@v1
3232
with:
3333
virtualenvs-create: true
3434
virtualenvs-in-project: true
35-
- uses: actions/setup-python@v5.1.1
35+
- uses: actions/setup-python@v5.2.0
3636
with:
37-
python-version: '3.9'
37+
python-version: '3.10'
3838
cache: 'poetry'
3939
- name: Install dependencies and check code
4040
run: |
41-
poetry env use '3.9'
41+
poetry env use '3.10'
4242
source .venv/bin/activate
4343
poetry install --with test --all-extras
4444
pre-commit run --all-files

.github/workflows/integration_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ jobs:
3232
integration-tests:
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v4.1.1
35+
- uses: actions/checkout@v4.2.1
3636
- name: Install poetry
3737
run: python3 -m pip install --upgrade pip && python3 -m pip install poetry
38-
- uses: actions/setup-python@v5.0.0
38+
- uses: actions/setup-python@v5.2.0
3939
with:
40-
python-version: '3.9'
40+
python-version: '3.10'
4141
- name: Install dependencies and check code
4242
run: |
43-
poetry env use '3.9'
43+
poetry env use '3.10'
4444
source $(poetry env info --path)/bin/activate
4545
poetry install --with test
4646
pytest -m integration_test

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
run: |
1919
sudo apt-get update
2020
sudo apt-get install libcurl4-openssl-dev libssl-dev
21-
- uses: actions/checkout@v4.1.1
21+
- uses: actions/checkout@v4.2.1
2222
- name: Install poetry
2323
run: python3 -m pip install --upgrade pip && python3 -m pip install poetry
24-
- uses: actions/setup-python@v5.1.1
24+
- uses: actions/setup-python@v5.2.0
2525
with:
26-
python-version: '3.9'
26+
python-version: '3.10'
2727
- name: Build package
2828
run: poetry build
2929
- name: Publish package

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0 # Use the ref you want to point at
3+
rev: v5.0.0 # Use the ref you want to point at
44
hooks:
55
- id: trailing-whitespace
66
- id: check-ast
@@ -22,7 +22,7 @@ repos:
2222
args: [--lock]
2323

2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.6.1
25+
rev: v0.6.9
2626
hooks:
2727
- id: ruff
2828
args: [--fix, --exit-non-zero-on-fix]
@@ -31,13 +31,13 @@ repos:
3131
types_or: [ python, pyi, jupyter ]
3232

3333
- repo: https://github.com/crate-ci/typos
34-
rev: v1.23.6
34+
rev: v1.26.0
3535
hooks:
3636
- id: typos
3737
args: []
3838

3939
- repo: https://github.com/pre-commit/mirrors-mypy
40-
rev: v1.11.1
40+
rev: v1.11.2
4141
hooks:
4242
- id: mypy
4343
entry: mypy
@@ -46,7 +46,7 @@ repos:
4646
exclude: tests|projects
4747

4848
- repo: https://github.com/nbQA-dev/nbQA
49-
rev: 1.8.7
49+
rev: 1.9.0
5050
hooks:
5151
- id: nbqa-ruff
5252
args: [--fix, --exit-non-zero-on-fix]

mmlearn/conf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class MMLearnConf:
151151
metadata={"help": "Configuration for torch.jit.compile."},
152152
)
153153
hydra: HydraConf = HydraConf(
154-
searchpath=["pkg://mmlearn/conf"],
154+
searchpath=["pkg://mmlearn.conf"],
155155
run=RunDir(
156156
dir=SI("./outputs/${experiment_name}/${now:%Y-%m-%d}/${now:%H-%M-%S}")
157157
),

poetry.lock

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

projects/bioscan_clip/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ results we obtained from our experiments.
8080

8181
There are 3 values for each metric in the table. The first value is the original result from the paper. The second value is the
8282
average result we obtained from running the experiment with LoRA applied only to the query and value embeddings. The third value is
83-
the average result we obtained from running the experiment with LoRA applied to both the query, key and value embeddings.
83+
the average result we obtained from running the experiment with LoRA applied to all three query, key, and value matrices.
8484

8585
</details>

projects/bioscan_clip/dataset.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import io
2-
from typing import Literal, Union, Optional
2+
from typing import Literal, Optional, Union
3+
34
import h5py
45
import numpy as np
56
import pandas as pd
67
from PIL import Image
78
from torch.utils.data import Dataset
89
from torchvision import transforms
910

10-
from mmlearn.datasets.core import Example, Modalities
1111
from mmlearn.constants import EXAMPLE_INDEX_KEY
12-
12+
from mmlearn.datasets.core import Example, Modalities
1313
from projects.bioscan_clip.dna_tokenizer import DNAProcessor
1414

15+
1516
# NOTE: this module must be imported before any use of Modalities.DNA anywhere
1617
# else in the code
1718
Modalities.register_modality("dna")

projects/bioscan_clip/dna_tokenizer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import itertools
2+
23
from tokenizers import Tokenizer
34
from tokenizers.models import WordLevel
45
from tokenizers.processors import TemplateProcessing

projects/bioscan_clip/encoders.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from typing import Any, Dict, List, Optional, Union
21
import warnings
2+
from typing import Any, Dict, List, Optional, Union
33

4-
from peft import PeftConfig
54
import torch
5+
from peft import PeftConfig
66
from torch import nn
7-
from transformers.modeling_outputs import BaseModelOutput
87
from transformers import BertConfig, BertForMaskedLM
8+
from transformers.modeling_outputs import BaseModelOutput
99

1010
from mmlearn import hf_utils
1111
from mmlearn.datasets.core.modalities import Modalities, Modality

0 commit comments

Comments
 (0)