Refactor instance_descriptor for new triton version (#119636)
Check https://github.com/pytorch/pytorch/pull/119457#issuecomment-1936764161
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119636
Approved by: https://github.com/shunting314