mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 10:38:54 +00:00
12 lines
436 B
Markdown
12 lines
436 B
Markdown
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
|
|
```
|