Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed due to half and rand issue #522

Open
lytning98 opened this issue Mar 21, 2025 · 2 comments
Open

Build failed due to half and rand issue #522

lytning98 opened this issue Mar 21, 2025 · 2 comments

Comments

@lytning98
Copy link

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

@lytning98
Copy link
Author

lytning98 commented Mar 21, 2025

After adding the --locked flag to cargo install, the compilation succeeded. If this isn't something that needs to be fixed, feel free to close this issue.

@S1M0N38
Copy link

S1M0N38 commented Mar 22, 2025

I encountered the same error on M1:

cargo install --path router -F metal

As suggested by @lytning98, add --locked to fix the problem:

cargo install --path router -F metal --locked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants