Skip to content

Conversation

@julien-c
Copy link
Member

No description provided.

const baseUrl = HF_HUB_INFERENCE_PROXY_TEMPLATE.replaceAll("{{PROVIDER}}", "hf-inference");
if (params.taskHint && ["feature-extraction", "sentence-similarity"].includes(params.taskHint)) {
/// when deployed on hf-inference, those two tasks are automatically compatible with one another.
return `${baseUrl}/pipeline/${params.taskHint}/${params.model}`;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be cleaner if it was /{model}/pipeline/{task}, probably (also simpler to route)

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do that 😄 I made the same PR for huggingface_hub: huggingface/huggingface_hub#2861

@julien-c julien-c merged commit 5a394d2 into main Feb 14, 2025
5 checks passed
@julien-c julien-c deleted the sentence-similarity-and-feature-extraction branch February 14, 2025 09:35
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.

4 participants