Skip to content

Commit b94abfa

Browse files
committed
regenerate inference api docs
1 parent 05b8858 commit b94abfa

20 files changed

+38
-38
lines changed

docs/api-inference/tasks/audio-classification.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ For more details about the `audio-classification` task, check out its [dedicated
2929

3030
### Recommended models
3131

32+
- [ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition](https://huggingface.co/ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition): An emotion recognition model.
3233

33-
This is only a subset of the supported models. Find the model that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=audio-classification&sort=trending).
34+
Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=audio-classification&sort=trending).
3435

3536
### Using the API
3637

@@ -39,7 +40,7 @@ This is only a subset of the supported models. Find the model that suits you bes
3940

4041
<curl>
4142
```bash
42-
curl https://api-inference.huggingface.co/models/<REPO_ID> \
43+
curl https://api-inference.huggingface.co/models/ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition \
4344
-X POST \
4445
--data-binary '@sample1.flac' \
4546
-H "Authorization: Bearer hf_***"
@@ -50,7 +51,7 @@ curl https://api-inference.huggingface.co/models/<REPO_ID> \
5051
```py
5152
import requests
5253

53-
API_URL = "https://api-inference.huggingface.co/models/<REPO_ID>"
54+
API_URL = "https://api-inference.huggingface.co/models/ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition"
5455
headers = {"Authorization": "Bearer hf_***"}
5556

5657
def query(filename):
@@ -70,7 +71,7 @@ To use the Python client, see `huggingface_hub`'s [package reference](https://hu
7071
async function query(filename) {
7172
const data = fs.readFileSync(filename);
7273
const response = await fetch(
73-
"https://api-inference.huggingface.co/models/<REPO_ID>",
74+
"https://api-inference.huggingface.co/models/ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition",
7475
{
7576
headers: {
7677
Authorization: "Bearer hf_***"

docs/api-inference/tasks/automatic-speech-recognition.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ For more details about the `automatic-speech-recognition` task, check out its [d
3030
### Recommended models
3131

3232
- [openai/whisper-large-v3](https://huggingface.co/openai/whisper-large-v3): A powerful ASR model by OpenAI.
33-
- [facebook/seamless-m4t-v2-large](https://huggingface.co/facebook/seamless-m4t-v2-large): An end-to-end model that performs ASR and Speech Translation by MetaAI.
3433
- [pyannote/speaker-diarization-3.1](https://huggingface.co/pyannote/speaker-diarization-3.1): Powerful speaker diarization model.
3534

36-
This is only a subset of the supported models. Find the model that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=automatic-speech-recognition&sort=trending).
35+
Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=automatic-speech-recognition&sort=trending).
3736

3837
### Using the API
3938

docs/api-inference/tasks/chat-completion.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ This is a subtask of [`text-generation`](https://huggingface.co/docs/api-inferen
2929

3030
#### Conversational Vision-Language Models (VLMs)
3131

32+
- [meta-llama/Llama-3.2-11B-Vision-Instruct](https://huggingface.co/meta-llama/Llama-3.2-11B-Vision-Instruct): Powerful vision language model with great visual understanding and reasoning capabilities.
3233
- [microsoft/Phi-3.5-vision-instruct](https://huggingface.co/microsoft/Phi-3.5-vision-instruct): Strong image-text-to-text model.
3334

3435
### Using the API
@@ -106,11 +107,11 @@ To use the JavaScript client, see `huggingface.js`'s [package reference](https:/
106107
107108
<curl>
108109
```bash
109-
curl 'https://api-inference.huggingface.co/models/microsoft/Phi-3.5-vision-instruct/v1/chat/completions' \
110+
curl 'https://api-inference.huggingface.co/models/meta-llama/Llama-3.2-11B-Vision-Instruct/v1/chat/completions' \
110111
-H "Authorization: Bearer hf_***" \
111112
-H 'Content-Type: application/json' \
112113
-d '{
113-
"model": "microsoft/Phi-3.5-vision-instruct",
114+
"model": "meta-llama/Llama-3.2-11B-Vision-Instruct",
114115
"messages": [
115116
{
116117
"role": "user",
@@ -136,7 +137,7 @@ client = InferenceClient(api_key="hf_***")
136137
image_url = "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
137138

138139
for message in client.chat_completion(
139-
model="microsoft/Phi-3.5-vision-instruct",
140+
model="meta-llama/Llama-3.2-11B-Vision-Instruct",
140141
messages=[
141142
{
142143
"role": "user",
@@ -163,7 +164,7 @@ const inference = new HfInference("hf_***");
163164
const imageUrl = "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg";
164165

165166
for await (const chunk of inference.chatCompletionStream({
166-
model: "microsoft/Phi-3.5-vision-instruct",
167+
model: "meta-llama/Llama-3.2-11B-Vision-Instruct",
167168
messages: [
168169
{
169170
"role": "user",

docs/api-inference/tasks/feature-extraction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ For more details about the `feature-extraction` task, check out its [dedicated p
3131

3232
- [thenlper/gte-large](https://huggingface.co/thenlper/gte-large): A powerful feature extraction model for natural language processing tasks.
3333

34-
This is only a subset of the supported models. Find the model that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=feature-extraction&sort=trending).
34+
Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=feature-extraction&sort=trending).
3535

3636
### Using the API
3737

docs/api-inference/tasks/fill-mask.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ For more details about the `fill-mask` task, check out its [dedicated page](http
2727
- [google-bert/bert-base-uncased](https://huggingface.co/google-bert/bert-base-uncased): The famous BERT model.
2828
- [FacebookAI/xlm-roberta-base](https://huggingface.co/FacebookAI/xlm-roberta-base): A multilingual model trained on 100 languages.
2929

30-
This is only a subset of the supported models. Find the model that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=fill-mask&sort=trending).
30+
Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=fill-mask&sort=trending).
3131

3232
### Using the API
3333

docs/api-inference/tasks/image-classification.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ For more details about the `image-classification` task, check out its [dedicated
2525
### Recommended models
2626

2727
- [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224): A strong image classification model.
28+
- [facebook/deit-base-distilled-patch16-224](https://huggingface.co/facebook/deit-base-distilled-patch16-224): A robust image classification model.
2829

29-
This is only a subset of the supported models. Find the model that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=image-classification&sort=trending).
30+
Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=image-classification&sort=trending).
3031

3132
### Using the API
3233

docs/api-inference/tasks/image-segmentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For more details about the `image-segmentation` task, check out its [dedicated p
2626

2727
- [nvidia/segformer-b0-finetuned-ade-512-512](https://huggingface.co/nvidia/segformer-b0-finetuned-ade-512-512): Semantic segmentation model trained on ADE20k benchmark dataset with 512x512 resolution.
2828

29-
This is only a subset of the supported models. Find the model that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=image-segmentation&sort=trending).
29+
Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=image-segmentation&sort=trending).
3030

3131
### Using the API
3232

docs/api-inference/tasks/image-text-to-text.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ For more details about the `image-text-to-text` task, check out its [dedicated p
2424

2525
### Recommended models
2626

27+
- [meta-llama/Llama-3.2-11B-Vision-Instruct](https://huggingface.co/meta-llama/Llama-3.2-11B-Vision-Instruct): Powerful vision language model with great visual understanding and reasoning capabilities.
2728
- [HuggingFaceM4/idefics2-8b-chatty](https://huggingface.co/HuggingFaceM4/idefics2-8b-chatty): Cutting-edge conversational vision language model that can take multiple image inputs.
2829
- [microsoft/Phi-3.5-vision-instruct](https://huggingface.co/microsoft/Phi-3.5-vision-instruct): Strong image-text-to-text model.
2930

30-
This is only a subset of the supported models. Find the model that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=image-text-to-text&sort=trending).
31+
Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=image-text-to-text&sort=trending).
3132

3233
### Using the API
3334

@@ -36,7 +37,7 @@ This is only a subset of the supported models. Find the model that suits you bes
3637

3738
<curl>
3839
```bash
39-
curl https://api-inference.huggingface.co/models/HuggingFaceM4/idefics2-8b-chatty \
40+
curl https://api-inference.huggingface.co/models/meta-llama/Llama-3.2-11B-Vision-Instruct \
4041
-X POST \
4142
-d '{"inputs": No input example has been defined for this model task.}' \
4243
-H 'Content-Type: application/json' \
@@ -48,7 +49,7 @@ curl https://api-inference.huggingface.co/models/HuggingFaceM4/idefics2-8b-chatt
4849
```py
4950
import requests
5051

51-
API_URL = "https://api-inference.huggingface.co/models/HuggingFaceM4/idefics2-8b-chatty"
52+
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-3.2-11B-Vision-Instruct"
5253
headers = {"Authorization": "Bearer hf_***"}
5354

5455
from huggingface_hub import InferenceClient
@@ -58,7 +59,7 @@ client = InferenceClient(api_key="hf_***")
5859
image_url = "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
5960

6061
for message in client.chat_completion(
61-
model="HuggingFaceM4/idefics2-8b-chatty",
62+
model="meta-llama/Llama-3.2-11B-Vision-Instruct",
6263
messages=[
6364
{
6465
"role": "user",
@@ -81,7 +82,7 @@ To use the Python client, see `huggingface_hub`'s [package reference](https://hu
8182
```js
8283
async function query(data) {
8384
const response = await fetch(
84-
"https://api-inference.huggingface.co/models/HuggingFaceM4/idefics2-8b-chatty",
85+
"https://api-inference.huggingface.co/models/meta-llama/Llama-3.2-11B-Vision-Instruct",
8586
{
8687
headers: {
8788
Authorization: "Bearer hf_***"

docs/api-inference/tasks/image-to-image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ For more details about the `image-to-image` task, check out its [dedicated page]
3131

3232
- [timbrooks/instruct-pix2pix](https://huggingface.co/timbrooks/instruct-pix2pix): A model that takes an image and an instruction to edit the image.
3333

34-
This is only a subset of the supported models. Find the model that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=image-to-image&sort=trending).
34+
Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=image-to-image&sort=trending).
3535

3636
### Using the API
3737

docs/api-inference/tasks/object-detection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ For more details about the `object-detection` task, check out its [dedicated pag
2727
- [facebook/detr-resnet-50](https://huggingface.co/facebook/detr-resnet-50): Solid object detection model trained on the benchmark dataset COCO 2017.
2828
- [microsoft/beit-base-patch16-224-pt22k-ft22k](https://huggingface.co/microsoft/beit-base-patch16-224-pt22k-ft22k): Strong object detection model trained on ImageNet-21k dataset.
2929

30-
This is only a subset of the supported models. Find the model that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=object-detection&sort=trending).
30+
Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=object-detection&sort=trending).
3131

3232
### Using the API
3333

0 commit comments

Comments
 (0)