candle/candle-pyo3
Laurent Mazare 1e5b2cc1d5
Add some quantized functions to pyo3. (#708)
2023-09-01 19:45:36 +02:00
..
src Add some quantized functions to pyo3. (#708) 2023-09-01 19:45:36 +02:00
Cargo.toml Add some documentation. (#673) 2023-08-30 11:54:00 +01:00
README.md Fix the pyo3 build for macos. (#324) 2023-08-05 14:53:57 +01:00
build.rs Fix the pyo3 build for macos. (#324) 2023-08-05 14:53:57 +01:00
test.py Support for quantized tensors in the python api. (#706) 2023-09-01 15:53:42 +01:00

README.md

From the top level directory run the following for linux.

cargo build --profile=release-with-debug --package candle-pyo3 && cp -f ./target/release-with-debug/libcandle.so candle.so
PYTHONPATH=. python3 candle-pyo3/test.py
```bash

  Or for macOS users:
```bash
cargo build --profile=release-with-debug --package candle-pyo3 && cp -f ./target/release-with-debug/libcandle.dylib candle.so
PYTHONPATH=. python3 candle-pyo3/test.py