Skip to content

Commit 63ddbf0

Browse files
Update Inference Providers documentation (automated) (#1709)
Co-authored-by: Wauplin <[email protected]>
1 parent 30db4bc commit 63ddbf0

File tree

7 files changed

+26
-32
lines changed

7 files changed

+26
-32
lines changed

docs/inference-providers/providers/hf-inference.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ Find out more about Object Detection [here](../tasks/object_detection).
9999
/>
100100

101101

102+
### Question Answering
103+
104+
Find out more about Question Answering [here](../tasks/question_answering).
105+
106+
<InferenceSnippet
107+
pipeline=question-answering
108+
providersMapping={ {"hf-inference":{"modelId":"deepset/bert-large-uncased-whole-word-masking-squad2","providerModelId":"deepset/bert-large-uncased-whole-word-masking-squad2"} } }
109+
/>
110+
111+
102112
### Summarization
103113

104114
Find out more about Summarization [here](../tasks/summarization).
@@ -115,7 +125,7 @@ Find out more about Text Classification [here](../tasks/text_classification).
115125

116126
<InferenceSnippet
117127
pipeline=text-classification
118-
providersMapping={ {"hf-inference":{"modelId":"ProsusAI/finbert","providerModelId":"ProsusAI/finbert"} } }
128+
providersMapping={ {"hf-inference":{"modelId":"j-hartmann/emotion-english-distilroberta-base","providerModelId":"j-hartmann/emotion-english-distilroberta-base"} } }
119129
/>
120130

121131

@@ -139,23 +149,13 @@ Find out more about Text To Image [here](../tasks/text_to_image).
139149
/>
140150

141151

142-
### Token Classification
143-
144-
Find out more about Token Classification [here](../tasks/token_classification).
145-
146-
<InferenceSnippet
147-
pipeline=token-classification
148-
providersMapping={ {"hf-inference":{"modelId":"dslim/bert-base-NER","providerModelId":"dslim/bert-base-NER"} } }
149-
/>
150-
151-
152152
### Translation
153153

154154
Find out more about Translation [here](../tasks/translation).
155155

156156
<InferenceSnippet
157157
pipeline=translation
158-
providersMapping={ {"hf-inference":{"modelId":"facebook/mbart-large-50-many-to-many-mmt","providerModelId":"facebook/mbart-large-50-many-to-many-mmt"} } }
158+
providersMapping={ {"hf-inference":{"modelId":"facebook/nllb-200-distilled-600M","providerModelId":"facebook/nllb-200-distilled-600M"} } }
159159
/>
160160

161161

docs/inference-providers/tasks/question-answering.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ Explore all available models and find the one that suits you best [here](https:/
3030
### Using the API
3131

3232

33-
No snippet available for this task.
33+
<InferenceSnippet
34+
pipeline=question-answering
35+
providersMapping={ {"hf-inference":{"modelId":"deepset/bert-large-uncased-whole-word-masking-squad2","providerModelId":"deepset/bert-large-uncased-whole-word-masking-squad2"}} }
36+
/>
3437

3538

3639

docs/inference-providers/tasks/text-classification.md

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

2525
### Recommended models
2626

27-
- [distilbert/distilbert-base-uncased-finetuned-sst-2-english](https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english): A robust model trained for sentiment analysis.
28-
- [ProsusAI/finbert](https://huggingface.co/ProsusAI/finbert): A sentiment analysis model specialized in financial sentiment.
29-
- [cardiffnlp/twitter-roberta-base-sentiment-latest](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest): A sentiment analysis model specialized in analyzing tweets.
30-
- [papluca/xlm-roberta-base-language-detection](https://huggingface.co/papluca/xlm-roberta-base-language-detection): A model that can classify languages.
3127

3228
Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=text-classification&sort=trending).
3329

@@ -36,7 +32,7 @@ Explore all available models and find the one that suits you best [here](https:/
3632

3733
<InferenceSnippet
3834
pipeline=text-classification
39-
providersMapping={ {"hf-inference":{"modelId":"ProsusAI/finbert","providerModelId":"ProsusAI/finbert"}} }
35+
providersMapping={ {"hf-inference":{"modelId":"j-hartmann/emotion-english-distilroberta-base","providerModelId":"j-hartmann/emotion-english-distilroberta-base"}} }
4036
/>
4137

4238

docs/inference-providers/tasks/token-classification.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,13 @@ For more details about the `token-classification` task, check out its [dedicated
2424

2525
### Recommended models
2626

27-
- [dslim/bert-base-NER](https://huggingface.co/dslim/bert-base-NER): A robust performance model to identify people, locations, organizations and names of miscellaneous entities.
28-
- [blaze999/Medical-NER](https://huggingface.co/blaze999/Medical-NER): A token classification model specialized on medical entity recognition.
2927

3028
Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=token-classification&sort=trending).
3129

3230
### Using the API
3331

3432

35-
<InferenceSnippet
36-
pipeline=token-classification
37-
providersMapping={ {"hf-inference":{"modelId":"dslim/bert-base-NER","providerModelId":"dslim/bert-base-NER"}} }
38-
/>
33+
No snippet available for this task.
3934

4035

4136

docs/inference-providers/tasks/translation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Explore all available models and find the one that suits you best [here](https:/
3232

3333
<InferenceSnippet
3434
pipeline=translation
35-
providersMapping={ {"hf-inference":{"modelId":"facebook/mbart-large-50-many-to-many-mmt","providerModelId":"facebook/mbart-large-50-many-to-many-mmt"}} }
35+
providersMapping={ {"hf-inference":{"modelId":"facebook/nllb-200-distilled-600M","providerModelId":"facebook/nllb-200-distilled-600M"}} }
3636
/>
3737

3838

scripts/inference-providers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"license": "ISC",
1616
"dependencies": {
1717
"@huggingface/inference": "^3.8.1",
18-
"@huggingface/tasks": "^0.18.8",
18+
"@huggingface/tasks": "^0.18.9",
1919
"@types/node": "^22.5.0",
2020
"handlebars": "^4.7.8",
2121
"node": "^20.17.0",

scripts/inference-providers/pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)