You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+53-1Lines changed: 53 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ For training and evaluation of a model, feel free to checkout [this](https://git
30
30
31
31
## Installation
32
32
33
-
There are two ways to install Modalities. If you want to use the latest nightly version, or if you want to modify the code base itself, we recommend installing Modalities directly from source.
33
+
There are multiple ways to install Modalities. If you want to use the latest nightly version, or if you want to modify the code base itself, we recommend installing Modalities directly from source.
34
34
35
35
If you want to use Modalities as a library and register your custom components with Modalities, you can install it directly via pip which provides you with the latest stable version.
### Option 4: Containerized Setup via Singularity / Apptainer
92
+
93
+
If you prefer an isolated, reproducible environment or you are deploying to an HPC center that already supports Apptainer / Singularity, you can build and run Modalities using the provided `modalities.def` file in the container folder.
94
+
95
+
Note: Commands shown with singularity work the same with apptainer. Substitute the command name (e.g. apptainer build ..., apptainer exec ..., apptainer test ...). If both are installed, choose one consistently.
96
+
97
+
#### 1. Build the image
98
+
99
+
Use `--fakeroot` if you don't have root but your system enables user namespaces; otherwise omit it.
100
+
101
+
```sh
102
+
singularity build modalities.sif modalities.def # standard build
To iterate on local code without rebuilding the image, bind‑mount your checkout: e.g. `singularity exec --nv --bind $PWD:/opt/repos/modalities modalities.sif bash` (the host repo then overrides the cloned one inside the container).
140
+
141
+
For a multinode training with slurm, see the example sbatch-file container/slurm_singularity.sbatch.
142
+
91
143
## Usage
92
144
Modalities provides several entry points to interact with the framework. The following section lists the available entry points and their respective functionalities.
0 commit comments