need to update the git protocol in rockspec from git://github.com to https://github.com to comply with the breaking change of https://github.blog/2021-09-01-improving-git-protocol-security-github/
otherwise you can do e.g.
git config --global url.https://github.com/.insteadOf git://github.com && torch/install/bin/luarocks install loadcaffe