-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.template
44 lines (31 loc) · 2.54 KB
/
README.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Kompressor

| Branch | CI | Coverage |
|:-:|:-:|:-:|
| `{{ env['GITHUB_BRANCH'] }}` (active) | [](https://github.com/{{ env['GITHUB_REPOSITORY'] }}/actions/workflows/ci.yml) | [](https://codecov.io/gh/{{ env['GITHUB_REPOSITORY'] }}) |
| `main` | [](https://github.com/{{ env['GITHUB_REPOSITORY'] }}/actions/workflows/ci.yml) | [](https://codecov.io/gh/{{ env['GITHUB_REPOSITORY'] }}) |
| `development` | [](https://github.com/{{ env['GITHUB_REPOSITORY'] }}/actions/workflows/ci.yml) | [](https://codecov.io/gh/{{ env['GITHUB_REPOSITORY'] }}) |
A neural compression framework built on top of JAX.
## Install
`setup.py` assumes a compatible version of JAX and JAXLib are already installed. Automated build is tested for a `cuda:11.1-cudnn8-runtime-ubuntu20.04` environment with `jaxlib==0.1.76+cuda11.cudnn82`.
```
git clone https://github.com/rosalindfranklininstitute/kompressor.git
cd kompressor
pip install -e .
# Run tests
python -m pytest --cov=src/kompressor tests/
```
## Install & Run through Docker environment
Docker image for the Kompressor dependencies are provided in the `quay.io/rosalindfranklininstitute/kompressor:main` Quay.io image.
```
# Run the container for the Kompressor environment
docker run --rm quay.io/rosalindfranklininstitute/kompressor:main \
python -m pytest --cov=/usr/local/kompressor/src/kompressor /usr/local/kompressor/tests
```
## Install & Run through Singularity environment
Singularity image for the Kompressor dependencies are provided in the `rosalindfranklininstitute/kompressor/kompressor:main` cloud.sylabs.io image.
```
singularity pull library://rosalindfranklininstitute/kompressor/kompressor:main
singularity run kompressor_main.sif \
python -m pytest --cov=/usr/local/kompressor/src/kompressor /usr/local/kompressor/tests
```