huggingface / huggingface/candle

Unable to add candle - revision 4c42f73fdab5787e3bb57717f35a8cb1b3c0dc6d not found

Open
#2,767 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
21k
Forks
1.8k
Avg merge
16h 42m
Merged PRs (30d)
25

Description

Hi! When I try to create a new project using candle and the instructions in the documentation, I get the follow error :

```
eban  pc03  …/Dev/Perso/inference-test  base  cargo new myapp
Creating binary (application) `myapp` package
note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

eban  pc03  …/Dev/Perso/inference-test  base  cd myapp/
ls
eban  pc03  …/inference-test/myapp  base  ls
 src  Cargo.toml

eban  pc03  …/inference-test/myapp  base  cargo add --git https://github.com/huggingface/candle.git candle-core
Updating git repository `https://github.com/huggingface/candle.git`
Updating git submodule `https://github.com/NVIDIA/cutlass.git`
error: failed to load source for dependency `candle-core`

Caused by:
Unable to update https://github.com/huggingface/candle.git

Caused by:
failed to update submodule `candle-examples/examples/flash-attn/cutlass`

Caused by:
failed to fetch submodule `candle-examples/examples/flash-attn/cutlass` from https://github.com/NVIDIA/cutlass.git

Caused by:
revision 4c42f73fdab5787e3bb57717f35a8cb1b3c0dc6d not found

Caused by:
network failure seems to have happened
if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
SSL error: unknown error; class=Ssl (16)
```

EDIT: I am using cargo version cargo 1.84.0 (66221abde 2024-11-19) and I tried to run using net.git-fetch-with-cli but I get the exact same error. Thanks for your help :)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the documented cargo add command and the generated Cargo.toml; reproduce with Cargo 1.84.0, then inspect the candle-examples/examples/flash-attn/cutlass submodule fetch and referenced revision. Done means the documented setup resolves candle-core, or the documentation clearly records the required workaround; no project test is named.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, rust
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.