Keras

Software name: 
Keras
Policy 

Keras is available to all users of HPC2N.

General 

Keras is a minimalist, highly modular neural networks library, written in Python and capable of running on top of either TensorFlow or Theano.

Description 

Keras was developed with a focus on enabling fast experimentation. Being able to go from idea to result with the least possible delay is key to doing good research.

Use Keras if you need a deep learning library that:

  • Allows for easy and fast prototyping (through user friendliness, modularity, and extensibility).
  • Supports both convolutional networks and recurrent networks, as well as combinations of the two.
  • Runs seamlessly on CPU and GPU.
Availability 

On HPC2N we have Keras available as a module on Kebnekaise.

Usage at HPC2N 

To use the Keras module, first add it to your environment. Use:

module spider keras

to see which versions are available, as well as how to load the module and the needed prerequisites.

Note that while the case does not matter when you use "ml spider", it is necessary to match the case when loading the modules.

You can read more about loading modules on our Accessing software with Lmod page and our Using modules (Lmod) page.

Note that if you are running as a batch job, you need to do

srun python .....

since the Keras module is built with MPI.

Setup

Note that KERAS_BACKEND is set to theano in the module file, so if you want to use tensorflow instead, you have to set the environment variable to that

export KERAS_BACKEND=tensorflow
Additional info 

More information about Keras, including documentation and getting started guides can be found on the Keras homepage.

Updated: 2024-12-02, 16:37