Skip to content

fomo26/container-validator

Repository files navigation

FOMO26 Container Validator

For instructions on

  1. how to prepare your code for submission, please see Preparing your model for submission.
  2. how to submit your container, please see Submission instructions.

Installation

  1. Install Apptainer You need to install Apptainer (formerly Singularity) to build and run your container. Installation instructions by platform:

If using MacOS and Windows please follow this guide from within your virtual environment.

Once you have installed it, verify your Apptainer installation with:

apptainer --version

Build image

apptainer build --fakeroot /path/to/save/your/container.sif path/to/Apptainer.def --arch amd64

How To Run Validation

To run the local validator first install the required packages (in the distro or VM where apptainer is also executed)

pip install -r requirements.txt

Use the following command and replace TASK with one of the valid tasks: task1, task2, task3, task4, task5, and task6_and_7 and the dummy path with the path to your container

python3 container_validator/validate.py --task TASK --sif PATH/TO/YOUR/CONTAINER.sif 

relevant flags: --no-gpu to test without requiring local GPU libraries.

Once your container is valid you will see the following output (where X is the number of tests we run for that task):

================================================================
  ALL X TESTS PASSED — container is ready to submit!
================================================================

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages