You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/inference/README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,12 @@ Your access token should be kept private. If you need to protect it in front-end
46
46
47
47
You can send inference requests to third-party providers with the inference client.
48
48
49
-
Currently, we support the following providers: [Fal.ai](https://fal.ai), [Replicate](https://replicate.com), [Together](https://together.xyz) and [Sambanova](https://sambanova.ai).
49
+
Currently, we support the following providers:
50
+
-[Fal.ai](https://fal.ai)
51
+
-[Nebius](https://studio.nebius.ai)
52
+
-[Replicate](https://replicate.com)
53
+
-[Sambanova](https://sambanova.ai)
54
+
-[Together](https://together.xyz)
50
55
51
56
To send requests to a third-party provider, you have to pass the `provider` parameter to the inference function. Make sure your request is authenticated with an access token.
52
57
```ts
@@ -65,12 +70,13 @@ When authenticated with a third-party provider key, the request is made directly
65
70
66
71
Only a subset of models are supported when requesting third-party providers. You can check the list of supported models per pipeline tasks here:
-[HF Inference API (serverless)](https://huggingface.co/models?inference=warm&sort=trending)
72
78
73
-
❗**Important note:** To be compatible, the third-party API must adhere to the "standard" shape API we expect on HF model pages for each pipeline task type.
79
+
❗**Important note:** To be compatible, the third-party API must adhere to the "standard" shape API we expect on HF model pages for each pipeline task type.
74
80
This is not an issue for LLMs as everyone converged on the OpenAI API anyways, but can be more tricky for other tasks like "text-to-image" or "automatic-speech-recognition" where there exists no standard API. Let us know if any help is needed or if we can make things easier for you!
75
81
76
82
👋**Want to add another provider?** Get in touch if you'd like to add support for another Inference provider, and/or request it on https://huggingface.co/spaces/huggingface/HuggingDiscussions/discussions/49
0 commit comments