candle-pyo3

Crates.iocandle-pyo3
lib.rscandle-pyo3
version0.9.1
created_at2023-08-30 07:15:58.477646+00
updated_at2025-05-01 08:25:42.807387+00
descriptionMinimalist ML framework.
homepage
repositoryhttps://github.com/huggingface/candle
max_upload_size
id958768
size268,552
Laurent Mazare (LaurentMazare)

documentation

README

Installation

From the candle-pyo3 directory, enable a virtual env where you will want the candle package to be installed then run.

maturin develop -r 
python test.py

Generating Stub Files for Type Hinting

For type hinting support, the candle-pyo3 package requires *.pyi files. You can automatically generate these files using the stub.py script.

Steps:

  1. Install the package using maturin.
  2. Generate the stub files by running:
    python stub.py
    

Validation:

To ensure that the stub files match the current implementation, execute:

python stub.py --check
Commit count: 2385

cargo fmt