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
[Inference] compatibility with third-party Inference providers (#1077)
# TL;DR
Allow users to request 3rd party inference providers (Sambanova,
Replicate, Together, Fal) with `@huggingface/inference` for a curated
set of models on the HF Hub
For now, Requesting a 3rd party inference provider requires users to
pass an api key from this provider as a parameter to the inference
function.
---------
Co-authored-by: SBrandeis <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
// Programatically interact with the Hub
14
14
15
15
awaitcreateRepo({
16
-
repo: {type: "model", name: "my-user/nlp-model"},
16
+
repo: {type: "model", name: "my-user/nlp-model"},
17
17
accessToken: HF_TOKEN
18
18
});
19
19
@@ -53,11 +53,13 @@ await inference.textToImage({
53
53
54
54
This is a collection of JS libraries to interact with the Hugging Face API, with TS types included.
55
55
56
-
-[@huggingface/inference](packages/inference/README.md): Use Inference Endpoints (dedicated) and Inference API (serverless) to make calls to 100,000+ Machine Learning models
56
+
-[@huggingface/inference](packages/inference/README.md): Use Inference API (serverless) and Inference Endpoints (dedicated) to make calls to 100,000+ Machine Learning models
57
57
-[@huggingface/hub](packages/hub/README.md): Interact with huggingface.co to create or delete repos and commit / download files
58
58
-[@huggingface/agents](packages/agents/README.md): Interact with HF models through a natural language interface
59
59
-[@huggingface/gguf](packages/gguf/README.md): A GGUF parser that works on remotely hosted files.
60
+
-[@huggingface/dduf](packages/dduf/README.md): Similar package for DDUF (DDUF Diffusers Unified Format)
60
61
-[@huggingface/tasks](packages/tasks/README.md): The definition files and source-of-truth for the Hub's main primitives like pipeline tasks, model libraries, etc.
62
+
-[@huggingface/jinja](packages/jinja/README.md): A minimalistic JS implementation of the Jinja templating engine, to be used for ML chat templates.
61
63
-[@huggingface/space-header](packages/space-header/README.md): Use the Space `mini_header` outside Hugging Face
Copy file name to clipboardExpand all lines: packages/inference/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# 🤗 Hugging Face Inference Endpoints
2
2
3
-
A Typescript powered wrapper for the Hugging Face Inference Endpoints API. Learn more about Inference Endpoints at [Hugging Face](https://huggingface.co/inference-endpoints).
4
-
It works with both [Inference API (serverless)](https://huggingface.co/docs/api-inference/index) and [Inference Endpoints (dedicated)](https://huggingface.co/docs/inference-endpoints/index).
3
+
A Typescript powered wrapper for the Hugging Face Inference API (serverless), Inference Endpoints (dedicated), and third-party Inference Providers.
4
+
It works with [Inference API (serverless)](https://huggingface.co/docs/api-inference/index) and [Inference Endpoints (dedicated)](https://huggingface.co/docs/inference-endpoints/index), and even with supported third-party Inference Providers.
5
5
6
6
Check out the [full documentation](https://huggingface.co/docs/huggingface.js/inference/README).
0 commit comments