Skip to content

Conversation

alvarobartt
Copy link
Member

What does this PR do?

This PR fixes the cargo install --path router ... commands in both README.md and docs/source/en/local_gpu.md for the features candle-cuda and candle-cuda-turing, as those were using the flag --no-default-features that was ignoring the default features in the text-embeddings-router being candle,http,dynamic-linking, hence the command was failing as cudarc requires to have any linking out of static-linking, dynamic-linking or dynamic-loading for the CUDA Libraries.

Fixes #709

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline?
  • Was this discussed/approved via a GitHub issue or the forum? Please add a link to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the documentation guidelines.
  • Did you write any new necessary tests? If applicable, did you include or update the insta snapshots?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@Narsil

The `cargo install --path router ...` commands for the features
`candle-cuda` and `candle-cuda-turing` were using the flag
`--no-default-features` that was ignoring the default features in the
`text-embeddings-router` being `candle,http,dynamic-linking`, hence the
command was failing as `cudarc` requires to have any linking out of
`static-linking`, `dynamic-linking` or `dynamic-loading` for the CUDA
Libraries, hence when ignoring the `default` features, and just adding
`-F http` either the e.g. `-F dynamic-loading` feature was missing or
just to only keep the e.g. `-F candle-cuda`, as `dynamic-linking` and
`http` are default features already.
@alvarobartt alvarobartt requested a review from Narsil September 12, 2025 09:28
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

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

Successfully merging this pull request may close these issues.

Error compiling locally on CUDA (with fix)
2 participants