Skip to content

Files

Latest commit

b20acd6 · Apr 1, 2024

History

History
This branch is 241 commits behind huggingface/candle:main.

candle-pyo3

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 30, 2023
Apr 1, 2024
Apr 1, 2024
Dec 17, 2023
Oct 6, 2023
Apr 1, 2024
Sep 16, 2023
Aug 5, 2023
Oct 13, 2023
Oct 6, 2023
Oct 6, 2023
Apr 1, 2024
Oct 24, 2023
Oct 25, 2023

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