Yes, if you need nn.GroupNorm, you would have to build PyTorch from source.
Have a look at this instruction 4 to build it.
It should be pretty easy, but let me know, if you encounter any issues.
nn.InstanceNorm however is in the current stable release of PyTorch.