How to use SegFormer encoder and decoder?

As shown here, you can access them using the segformer and decode_head attributes respectively.