400Ping commented on code in PR #822:
URL: https://github.com/apache/mahout/pull/822#discussion_r2690604011
##########
.github/workflows/pre-commit.yml:
##########
@@ -43,5 +43,14 @@ jobs:
- name: Install dependencies
run: uv sync --group dev
+ - name: Install libtorch (CPU)
Review Comment:
You can understand why in the PyTorch input format PR, the CI need libtorch
to check the PR.
```
error: failed to run custom build command for `torch-sys v0.15.0`
Caused by:
process didn't exit successfully:
`/home/runner/work/mahout/mahout/qdp/target/debug/build/torch-sys-7269c6cf50fd2453/build-script-build`
(exit status: 1)
--- stdout
cargo:rerun-if-env-changed=LIBTORCH_USE_PYTORCH
cargo:rerun-if-env-changed=LIBTORCH
--- stderr
Error:
Cannot find a libtorch install, you can either:
- Install libtorch manually and set the LIBTORCH environment variable to
appropriate path.
- Use a system wide install in /usr/lib/libtorch.so.
- Use a Python environment with PyTorch installed by setting
LIBTORCH_USE_PYTORCH=1
See the readme for more details:
https://github.com/LaurentMazare/tch-rs/blob/main/README.md
warning: build failed, waiting for other jobs to finish...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]