Skip to content

Commit 9ede204

Browse files
authored
Update pyo3 (#3202)
* Initial pyo3 update * pyo3 onnx update
1 parent 2664a21 commit 9ede204

File tree

6 files changed

+126
-117
lines changed

6 files changed

+126
-117
lines changed

candle-examples/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ intel-mkl-src = { workspace = true, optional = true }
2727
num-traits = { workspace = true }
2828
palette = { version = "0.7.6", optional = true }
2929
enterpolation = { version = "0.2.1", optional = true }
30-
pyo3 = { version = "0.22.0", features = [
30+
pyo3 = { version = "0.27", features = [
3131
"auto-initialize",
3232
"abi3-py311",
3333
], optional = true }

candle-pyo3/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ candle-nn = { workspace = true }
2020
candle-onnx = { workspace = true, optional = true }
2121
half = { workspace = true }
2222
intel-mkl-src = { workspace = true, optional = true }
23-
pyo3 = { version = "0.22.0", features = ["extension-module", "abi3-py311"] }
23+
pyo3 = { version = "0.27", features = ["extension-module", "abi3-py313"] }
2424
float8 = { workspace = true }
2525

2626
[build-dependencies]
27-
pyo3-build-config = "0.22"
27+
pyo3-build-config = "0.27"
2828

2929
[features]
3030
default = []

candle-pyo3/quant-llama.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# This example shows how the candle Python api can be used to replicate llama.cpp.
22
import sys
3-
from typing import Dict, Tuple, Any
43
import candle
54
from candle.models.llama import QuantizedLlama
65
from candle import utils

0 commit comments

Comments
 (0)