Can you give me a fully executable compilation script? I can’t achieve the effect I want by useing build.sh directly.
szyd@szyd-desktop:~$ sudo ./torchbuild.sh
+ export PYTORCH_BUILD_VERSION=2.7
+ PYTORCH_BUILD_VERSION=2.7
+ echo 'Building PyTorch 2.7'
Building PyTorch 2.7
+ git clone --branch v2.7 --depth=1 --recursive https://github.com/pytorch/pytorch /opt/pytorch
Cloning into '/opt/pytorch'...
error: RPC failed; curl 16 Error in the HTTP2 framing layer
fatal: expected flush after ref listing
+ git clone --depth=1 --recursive https://github.com/pytorch/pytorch /opt/pytorch
Cloning into '/opt/pytorch'...