From d55d4962509d882a135dd62d62ad2596c3779519 Mon Sep 17 00:00:00 2001 From: Thomas Gauges Date: Tue, 2 Apr 2024 15:03:10 +0200 Subject: [PATCH] Fix milli/Cargo.toml for usage as dependency via git --- Cargo.lock | 25 +++++++++++++++++-------- milli/Cargo.toml | 6 +++--- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index aba12d3b8..d358bf10b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -555,6 +555,17 @@ dependencies = [ "syn 2.0.48", ] +[[package]] +name = "bindgen_cuda" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f8489af5b7d17a81bffe37e0f4d6e1e4de87c87329d05447f22c35d95a1227d" +dependencies = [ + "glob", + "num_cpus", + "rayon", +] + [[package]] name = "bit-set" version = "0.5.3" @@ -731,7 +742,7 @@ dependencies = [ [[package]] name = "candle-core" version = "0.3.3" -source = "git+https://github.com/huggingface/candle.git#5270224f407502b82fe90bc2622894ce3871b002" +source = "git+https://github.com/huggingface/candle.git?rev=5270224f407502b82fe90bc2622894ce3871b002#5270224f407502b82fe90bc2622894ce3871b002" dependencies = [ "byteorder", "candle-kernels", @@ -752,18 +763,16 @@ dependencies = [ [[package]] name = "candle-kernels" -version = "0.3.1" -source = "git+https://github.com/huggingface/candle.git#f4fcf6090045ac44122fd5f0a7e46db6e3e16528" +version = "0.3.3" +source = "git+https://github.com/huggingface/candle.git?rev=5270224f407502b82fe90bc2622894ce3871b002#5270224f407502b82fe90bc2622894ce3871b002" dependencies = [ - "anyhow", - "glob", - "rayon", + "bindgen_cuda", ] [[package]] name = "candle-nn" version = "0.3.3" -source = "git+https://github.com/huggingface/candle.git#5270224f407502b82fe90bc2622894ce3871b002" +source = "git+https://github.com/huggingface/candle.git?rev=5270224f407502b82fe90bc2622894ce3871b002#5270224f407502b82fe90bc2622894ce3871b002" dependencies = [ "candle-core", "half 2.3.1", @@ -777,7 +786,7 @@ dependencies = [ [[package]] name = "candle-transformers" version = "0.3.3" -source = "git+https://github.com/huggingface/candle.git#5270224f407502b82fe90bc2622894ce3871b002" +source = "git+https://github.com/huggingface/candle.git?rev=5270224f407502b82fe90bc2622894ce3871b002#5270224f407502b82fe90bc2622894ce3871b002" dependencies = [ "byteorder", "candle-core", diff --git a/milli/Cargo.toml b/milli/Cargo.toml index 1dfa495ea..ce6392b59 100644 --- a/milli/Cargo.toml +++ b/milli/Cargo.toml @@ -71,9 +71,9 @@ itertools = "0.11.0" puffin = "0.16.0" csv = "1.3.0" -candle-core = { git = "https://github.com/huggingface/candle.git", version = "0.3.1" } -candle-transformers = { git = "https://github.com/huggingface/candle.git", version = "0.3.1" } -candle-nn = { git = "https://github.com/huggingface/candle.git", version = "0.3.1" } +candle-core = { git = "https://github.com/huggingface/candle.git", rev="5270224f407502b82fe90bc2622894ce3871b002", version = "0.3.3" } +candle-transformers = { git = "https://github.com/huggingface/candle.git", rev="5270224f407502b82fe90bc2622894ce3871b002", version = "0.3.3" } +candle-nn = { git = "https://github.com/huggingface/candle.git", rev="5270224f407502b82fe90bc2622894ce3871b002", version = "0.3.3" } tokenizers = { git = "https://github.com/huggingface/tokenizers.git", tag = "v0.14.1", version = "0.14.1", default_features = false, features = [ "onig", ] }