Open
Description
system environment
cargo 1.85.0 (d73d2caf9 2024-12-31)
build command
cargo install --path router -F candle-cuda -F http --no-default-features
build errors
error[E0277]: the trait bound `half::bf16: SampleUniform` is not satisfied
Same with this candle issue: huggingface/candle#2805
Activity
lytning98 commentedon Mar 21, 2025
After adding the
--locked
flag tocargo install
, the compilation succeeded. If this isn't something that needs to be fixed, feel free to close this issue.S1M0N38 commentedon Mar 22, 2025
I encountered the same error on M1:
As suggested by @lytning98, add
--locked
to fix the problem:candle-core
(lib) due to 20 previous errors #528Narsil commentedon Apr 8, 2025
Yes, some subdependencies broke semver which makes
cargo install
fail.Cargo install will always attempt to use latest patches if they exist which would break because of the semver breaking here.
cargo install --locked
on the other hand will use exactly what Cargo.lock says it should running, running therefore the old dependency version that actually works.I think we fixed everything on
main
now. It took a while since we upgrading many dependencies recently.