Unity
Unity
About
News
Events
Docs
Contact Us
code
search
login
Unity
Unity
About
News
Events
Docs
Contact Us
dark_mode
light_mode
code login
search

Documentation

  • Requesting An Account
  • Get Started
    • Quick Start
    • Common Terms
    • HPC Resources
    • Theory of HPC
      • Overview of threads, cores, and sockets in Slurm for HPC workflows
    • Git Guide
  • Connecting to Unity
    • SSH
    • Unity OnDemand
    • Connecting to Desktop VS Code
  • Get Help
    • Frequently Asked Questions
    • How to Ask for Help
    • Troubleshooting
  • Cluster Specifications
    • Node List
    • Partition List
      • Gypsum
    • Storage
    • Node Features (Constraints)
      • NVLink and NVSwitch
    • GPU Summary List
  • Managing Files
    • Command Line Interface (CLI)
    • Disk Quotas
    • FileZilla
    • Globus
    • Scratch: HPC Workspace
    • Unity OnDemand File Browser
  • Submitting Jobs
    • Batch Jobs
      • Array Batch Jobs
      • Large Job Counts
      • Monitor a batch job
    • Helper Scripts
    • Interactive CLI Jobs
    • Unity OnDemand
    • Message Passing Interface (MPI)
    • Slurm cheat sheet
  • Software Management
    • Building Software from Scratch
    • Conda
    • Modules
      • Module Usage
    • Renv
    • Unity OnDemand
      • JupyterLab OnDemand
    • Venv
  • Tools & Software
    • ColabFold
    • R
      • R Parallelization
    • Unity GPUs
  • Datasets
    • AI and ML
      • AlpacaFarm
      • audioset
      • bigcode
      • biomed_clip
      • blip_2
      • coco
      • Code Llama
      • DeepAccident
      • DeepSeek
      • DINO v2
      • epic-kitchens
      • florence
      • gemma
      • glm
      • gpt
      • gte-Qwen2
      • ibm-granite
      • Idefics2
      • Imagenet 1K
      • inaturalist
      • infly
      • internLM
      • intfloat
      • lg
      • linq
      • Llama2
      • llama3
      • llama4
      • Llava_OneVision
      • Lumina
      • mims
      • mixtral
      • msmarco
      • natural-questions
      • objaverse
      • openai-whisper
      • Perplexity AI
      • phi
      • playgroundai
      • pythia
      • qwen
      • rag-sequence-nq
      • s1-32B
      • satlas_pretrain
      • scalabilityai
      • sft
      • SlimPajama
      • t5
      • Tulu
      • V2X
      • video-MAE
      • videoMAE-v2
      • vit
      • wildchat
    • Bioinformatics
      • AlphaFold3 Databases
      • BFD/MGnify
      • Big Fantastic Database
      • checkm
      • ColabFoldDB
      • Databases for ColabFold
      • dfam
      • EggNOG
      • EggNOG
      • GMAP-GSNAP database (human genome)
      • GTDB
      • Illumina iGenomes
      • Kraken2
      • MGnify
      • NCBI BLAST databases
      • NCBI RefSeq database
      • NCBI RefSeq database
      • Parameters of AlphaFold
      • Parameters of Evolutionary Scale Modeling (ESM) models
      • Parameters of Evolutionary Scale Modeling (ESM) models
      • PDB70
      • PINDER
      • PLINDER
      • Protein Data Bank
      • Protein Data Bank database in mmCIF format
      • Protein Data Bank database in SEQRES records
      • Tara Oceans 18S amplicon
      • Tara Oceans MATOU gene catalog
      • Tara Oceans MGT transcriptomes
      • Uniclust30
      • UniProtKB
      • UniRef100
      • UniRef30
      • UniRef90
      • Updated databases for ColabFold
    • Using HuggingFace Datasets

Documentation

  • Requesting An Account
  • Get Started
    • Quick Start
    • Common Terms
    • HPC Resources
    • Theory of HPC
      • Overview of threads, cores, and sockets in Slurm for HPC workflows
    • Git Guide
  • Connecting to Unity
    • SSH
    • Unity OnDemand
    • Connecting to Desktop VS Code
  • Get Help
    • Frequently Asked Questions
    • How to Ask for Help
    • Troubleshooting
  • Cluster Specifications
    • Node List
    • Partition List
      • Gypsum
    • Storage
    • Node Features (Constraints)
      • NVLink and NVSwitch
    • GPU Summary List
  • Managing Files
    • Command Line Interface (CLI)
    • Disk Quotas
    • FileZilla
    • Globus
    • Scratch: HPC Workspace
    • Unity OnDemand File Browser
  • Submitting Jobs
    • Batch Jobs
      • Array Batch Jobs
      • Large Job Counts
      • Monitor a batch job
    • Helper Scripts
    • Interactive CLI Jobs
    • Unity OnDemand
    • Message Passing Interface (MPI)
    • Slurm cheat sheet
  • Software Management
    • Building Software from Scratch
    • Conda
    • Modules
      • Module Usage
    • Renv
    • Unity OnDemand
      • JupyterLab OnDemand
    • Venv
  • Tools & Software
    • ColabFold
    • R
      • R Parallelization
    • Unity GPUs
  • Datasets
    • AI and ML
      • AlpacaFarm
      • audioset
      • bigcode
      • biomed_clip
      • blip_2
      • coco
      • Code Llama
      • DeepAccident
      • DeepSeek
      • DINO v2
      • epic-kitchens
      • florence
      • gemma
      • glm
      • gpt
      • gte-Qwen2
      • ibm-granite
      • Idefics2
      • Imagenet 1K
      • inaturalist
      • infly
      • internLM
      • intfloat
      • lg
      • linq
      • Llama2
      • llama3
      • llama4
      • Llava_OneVision
      • Lumina
      • mims
      • mixtral
      • msmarco
      • natural-questions
      • objaverse
      • openai-whisper
      • Perplexity AI
      • phi
      • playgroundai
      • pythia
      • qwen
      • rag-sequence-nq
      • s1-32B
      • satlas_pretrain
      • scalabilityai
      • sft
      • SlimPajama
      • t5
      • Tulu
      • V2X
      • video-MAE
      • videoMAE-v2
      • vit
      • wildchat
    • Bioinformatics
      • AlphaFold3 Databases
      • BFD/MGnify
      • Big Fantastic Database
      • checkm
      • ColabFoldDB
      • Databases for ColabFold
      • dfam
      • EggNOG
      • EggNOG
      • GMAP-GSNAP database (human genome)
      • GTDB
      • Illumina iGenomes
      • Kraken2
      • MGnify
      • NCBI BLAST databases
      • NCBI RefSeq database
      • NCBI RefSeq database
      • Parameters of AlphaFold
      • Parameters of Evolutionary Scale Modeling (ESM) models
      • Parameters of Evolutionary Scale Modeling (ESM) models
      • PDB70
      • PINDER
      • PLINDER
      • Protein Data Bank
      • Protein Data Bank database in mmCIF format
      • Protein Data Bank database in SEQRES records
      • Tara Oceans 18S amplicon
      • Tara Oceans MATOU gene catalog
      • Tara Oceans MGT transcriptomes
      • Uniclust30
      • UniProtKB
      • UniRef100
      • UniRef30
      • UniRef90
      • Updated databases for ColabFold
    • Using HuggingFace Datasets

On this page

  • List all available modules
  • Search for modules
  • Load modules
  • Unload modules
  • Unload all active modules
  • List currently loaded modules
  1. Unity
  2. Documentation
  3. Software Management
  4. Modules
  5. Module Usage

How to use environment modules

Environment modules are a convenient and efficient way to use non-standard and version-specific software in Unity. The following guide shows you how to enable and disable modules, view all currently active modules, search for modules, and unload all active modules.

stylus_note
While modules work on the login nodes, the login nodes have strict CPU and memory limits. Jobs that require more processing power should always be scheduled through Slurm.

List all available modules

To list all available modules, use any of the four commands listed below:

module available
module avail
module av
ml av

The module available command outputs a partial list of the modules available in Unity. However, this command does not show modules that require loading an intermediate module, such as those arranged in a module hierarchy. To see a full list of modules, use the module spider command described in the next section.

---- /modules/modulefiles/spack/latest/linux-ubuntu24.04-x86_64/Core ----
   bcftools/1.19                              nvhpc/24.9
   boost/1.85.0-cxx11                         openblas/0.3.26
   bowtie2/2.5.2                              openmpi/4.1.6-cuda12.6
   bwa/0.7.17                                 openmpi/4.1.6
   cuda/11.8                                  openmpi/5.0.3-cuda12.6
   cuda/12.1                                  openmpi/5.0.3
   cuda/12.6                                  parallel/20240822
   ...
lightbulb
The module list is rapidly growing. To see the full list, use the module spider command in your terminal.

Search for modules

To search for specific software, use the module spider command followed by the software you are searching for. In the following example, module spider fftw finds all versions of the fftw module:

module spider fftw

The output may list several versions. Run the command again with a specific version for more information.

module spider fftw/3.3.10

The output may tell you that you need to load another module first, due to the Module Hierarchy.

You will need to load all module(s) on any one of the lines below before the "fftw/3.3.10" module is available to load.

   mpich/4.2.1
   openmpi/4.1.6
   openmpi/5.0.3

In this case, you can load them together as in:

module load openmpi/4.1.6 fftw/3.3.10

Load modules

To load a module, use the module load command followed by the module of choice. In the following example, module load gcc/9.4.0 loads the module gcc/9.4.0:

module load gcc/9.4.0

Unload modules

To unload modules, use the module unload command followed by the module(s) of choice. In the following example, module unload gcc unloads all gcc modules:

module unload gcc

This is only necessary in an interactive session if you are switching modules, or in a batch script between programs using incompatible modules, although even there module purge may be better.

Unload all active modules

To unload all active modules, use the following command:

module purge

The module purge command quickly unloads all currently active modules. Purging modules is the best practice ahead of loading any modules in your batch scripts since it will ensure your job doesn’t inherit any unexpected modules from your login session.

List currently loaded modules

To list the modules that are currently loaded, use the following command:

module list

Note that the commands module list and module avail are distinct. While module avail lists available modules, including modules you haven’t loaded, module list shows all modules that are currently loaded and affecting your compute session.

Last modified: Tuesday, April 15, 2025 at 11:38 AM. See the commit on GitLab.
University of Massachusetts Amherst University of Massachusetts Amherst University of Rhode Island University of Rhode Island University of Massachusetts Dartmouth University of Massachusetts Dartmouth University of Massachusetts Lowell University of Massachusetts Lowell University of Massachusetts Boston University of Massachusetts Boston Mount Holyoke College Mount Holyoke College Smith College Smith College
search
close