Changing Ouput Activation Function From Softmax to Sigmoid

Hi,
I trying to fine-tune the XLM-Roberta-Large model on my own data but would like to change the output probabilities from softmax to sigmoid. I’m using Trainer to fine-tune the model. What is the most straightforward way to do this.