How to store weights as 2 bit values instead of float 32?

Does anyone know how to store model weights in pytorch as 2 bit values instead of float 32 values?

You can find here all the data types that are available.