If your loss stays constant for the whole training, this might point to a detached tensor during the forward pass.
Could you check the .grad_fn of the model output as well as look for detach() calls or .data usage?
If possible, could you post the code so that we could have a look?