[Build] Lock torch, onnxscript and onnx-ir versions to latest (#26315)
To fix build pipeline error `ModuleNotFoundError: No module named
'onnxscript._framework_apis.torch_2_9'` after recent torch 2.9 release.
This locks torch version to 2.8, and also updates onnxscript and onnx-ir
to latest versions.
I locked torchvision version since it is usually installed with torch
together. If torch and torchvision are not compatible, there might be
errors in transformers script.