|
| 1 | +<!--- |
| 2 | +WARNING |
| 3 | +
|
| 4 | +This markdown file has been generated from a script. Please do not edit it directly. |
| 5 | +
|
| 6 | +If you want to update the content related to hf-inference's description, please edit the template file under `https://github.com/huggingface/hub-docs/tree/main/scripts/inference-providers/templates/providers/hf-inference.handlebars`. |
| 7 | +
|
| 8 | +For more details, check out the `generate.ts` script: https://github.com/huggingface/hub-docs/blob/main/scripts/inference-providers/scripts/generate.ts. |
| 9 | +---> |
| 10 | + |
| 11 | +# HF Inference |
| 12 | + |
| 13 | +[](https://huggingface.co/) |
| 14 | + |
| 15 | +[](https://huggingface.co/hf-inference) |
| 16 | + |
| 17 | +HF Inference is the serverless Inference API powered by Hugging Face. This service used to be called "Inference API (serverless)" prior to Inference Providers. |
| 18 | +If you are interested in deploying models to a dedicated and autoscaling infrastructure managed by Hugging Face, check out [Inference Endpoints](https://huggingface.co/docs/inference-endpoints/index) instead. |
| 19 | + |
| 20 | +## Supported tasks |
| 21 | + |
| 22 | + |
| 23 | +### Audio Classification |
| 24 | + |
| 25 | +Find out more about Audio Classification [here](../tasks/audio_classification). |
| 26 | + |
| 27 | +<InferenceSnippet |
| 28 | + pipeline=audio-classification |
| 29 | + providersMapping={ {"hf-inference":{"modelId":"ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition","providerModelId":"ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition"} } } |
| 30 | +/> |
| 31 | + |
| 32 | + |
| 33 | +### Automatic Speech Recognition |
| 34 | + |
| 35 | +Find out more about Automatic Speech Recognition [here](../tasks/automatic_speech_recognition). |
| 36 | + |
| 37 | +<InferenceSnippet |
| 38 | + pipeline=automatic-speech-recognition |
| 39 | + providersMapping={ {"hf-inference":{"modelId":"openai/whisper-large-v3-turbo","providerModelId":"openai/whisper-large-v3-turbo"} } } |
| 40 | +/> |
| 41 | + |
| 42 | + |
| 43 | +### Chat Completion (LLM) |
| 44 | + |
| 45 | +Find out more about Chat Completion (LLM) [here](../tasks/chat-completion). |
| 46 | + |
| 47 | +<InferenceSnippet |
| 48 | + pipeline=text-generation |
| 49 | + providersMapping={ {"hf-inference":{"modelId":"Qwen/QwQ-32B","providerModelId":"Qwen/QwQ-32B"} } } |
| 50 | +conversational /> |
| 51 | + |
| 52 | + |
| 53 | +### Chat Completion (VLM) |
| 54 | + |
| 55 | +Find out more about Chat Completion (VLM) [here](../tasks/chat-completion). |
| 56 | + |
| 57 | +<InferenceSnippet |
| 58 | + pipeline=image-text-to-text |
| 59 | + providersMapping={ {"hf-inference":{"modelId":"google/gemma-3-27b-it","providerModelId":"google/gemma-3-27b-it"} } } |
| 60 | +conversational /> |
| 61 | + |
| 62 | + |
| 63 | +### Feature Extraction |
| 64 | + |
| 65 | +Find out more about Feature Extraction [here](../tasks/feature_extraction). |
| 66 | + |
| 67 | +<InferenceSnippet |
| 68 | + pipeline=feature-extraction |
| 69 | + providersMapping={ {"hf-inference":{"modelId":"intfloat/multilingual-e5-large-instruct","providerModelId":"intfloat/multilingual-e5-large-instruct"} } } |
| 70 | +/> |
| 71 | + |
| 72 | + |
| 73 | +### Fill Mask |
| 74 | + |
| 75 | +Find out more about Fill Mask [here](../tasks/fill_mask). |
| 76 | + |
| 77 | +<InferenceSnippet |
| 78 | + pipeline=fill-mask |
| 79 | + providersMapping={ {"hf-inference":{"modelId":"google-bert/bert-base-uncased","providerModelId":"google-bert/bert-base-uncased"} } } |
| 80 | +/> |
| 81 | + |
| 82 | + |
| 83 | +### Image Classification |
| 84 | + |
| 85 | +Find out more about Image Classification [here](../tasks/image_classification). |
| 86 | + |
| 87 | +<InferenceSnippet |
| 88 | + pipeline=image-classification |
| 89 | + providersMapping={ {"hf-inference":{"modelId":"Falconsai/nsfw_image_detection","providerModelId":"Falconsai/nsfw_image_detection"} } } |
| 90 | +/> |
| 91 | + |
| 92 | + |
| 93 | +### Image To Image |
| 94 | + |
| 95 | +Find out more about Image To Image [here](../tasks/image_to_image). |
| 96 | + |
| 97 | +<InferenceSnippet |
| 98 | + pipeline=image-to-image |
| 99 | + providersMapping={ {"hf-inference":{"modelId":"enhanceaiteam/Flux-Uncensored-V2","providerModelId":"black-forest-labs/FLUX.1-dev"} } } |
| 100 | +/> |
| 101 | + |
| 102 | + |
| 103 | +### Object Detection |
| 104 | + |
| 105 | +Find out more about Object Detection [here](../tasks/object_detection). |
| 106 | + |
| 107 | +<InferenceSnippet |
| 108 | + pipeline=object-detection |
| 109 | + providersMapping={ {"hf-inference":{"modelId":"facebook/detr-resnet-50","providerModelId":"facebook/detr-resnet-50"} } } |
| 110 | +/> |
| 111 | + |
| 112 | + |
| 113 | +### Question Answering |
| 114 | + |
| 115 | +Find out more about Question Answering [here](../tasks/question_answering). |
| 116 | + |
| 117 | +<InferenceSnippet |
| 118 | + pipeline=question-answering |
| 119 | + providersMapping={ {"hf-inference":{"modelId":"deepset/gelectra-large-germanquad","providerModelId":"deepset/gelectra-large-germanquad"} } } |
| 120 | +/> |
| 121 | + |
| 122 | + |
| 123 | +### Summarization |
| 124 | + |
| 125 | +Find out more about Summarization [here](../tasks/summarization). |
| 126 | + |
| 127 | +<InferenceSnippet |
| 128 | + pipeline=summarization |
| 129 | + providersMapping={ {"hf-inference":{"modelId":"facebook/bart-large-cnn","providerModelId":"facebook/bart-large-cnn"} } } |
| 130 | +/> |
| 131 | + |
| 132 | + |
| 133 | +### Text Classification |
| 134 | + |
| 135 | +Find out more about Text Classification [here](../tasks/text_classification). |
| 136 | + |
| 137 | +<InferenceSnippet |
| 138 | + pipeline=text-classification |
| 139 | + providersMapping={ {"hf-inference":{"modelId":"ProsusAI/finbert","providerModelId":"ProsusAI/finbert"} } } |
| 140 | +/> |
| 141 | + |
| 142 | + |
| 143 | +### Text Generation |
| 144 | + |
| 145 | +Find out more about Text Generation [here](../tasks/text_generation). |
| 146 | + |
| 147 | +<InferenceSnippet |
| 148 | + pipeline=text-generation |
| 149 | + providersMapping={ {"hf-inference":{"modelId":"Qwen/QwQ-32B","providerModelId":"Qwen/QwQ-32B"} } } |
| 150 | +/> |
| 151 | + |
| 152 | + |
| 153 | +### Text To Image |
| 154 | + |
| 155 | +Find out more about Text To Image [here](../tasks/text_to_image). |
| 156 | + |
| 157 | +<InferenceSnippet |
| 158 | + pipeline=text-to-image |
| 159 | + providersMapping={ {"hf-inference":{"modelId":"black-forest-labs/FLUX.1-dev","providerModelId":"black-forest-labs/FLUX.1-dev"} } } |
| 160 | +/> |
| 161 | + |
| 162 | + |
| 163 | +### Text To Video |
| 164 | + |
| 165 | +Find out more about Text To Video [here](../tasks/text_to_video). |
| 166 | + |
| 167 | +<InferenceSnippet |
| 168 | + pipeline=text-to-video |
| 169 | + providersMapping={ {"hf-inference":{"modelId":"AdamLucek/Wan2.1-T2V-14B-OldBookIllustrations","providerModelId":"black-forest-labs/FLUX.1-dev"} } } |
| 170 | +/> |
| 171 | + |
| 172 | + |
| 173 | +### Token Classification |
| 174 | + |
| 175 | +Find out more about Token Classification [here](../tasks/token_classification). |
| 176 | + |
| 177 | +<InferenceSnippet |
| 178 | + pipeline=token-classification |
| 179 | + providersMapping={ {"hf-inference":{"modelId":"dbmdz/bert-large-cased-finetuned-conll03-english","providerModelId":"dbmdz/bert-large-cased-finetuned-conll03-english"} } } |
| 180 | +/> |
| 181 | + |
| 182 | + |
| 183 | +### Translation |
| 184 | + |
| 185 | +Find out more about Translation [here](../tasks/translation). |
| 186 | + |
| 187 | +<InferenceSnippet |
| 188 | + pipeline=translation |
| 189 | + providersMapping={ {"hf-inference":{"modelId":"facebook/nllb-200-distilled-600M","providerModelId":"facebook/nllb-200-distilled-600M"} } } |
| 190 | +/> |
| 191 | + |
| 192 | + |
| 193 | +### Zero Shot Classification |
| 194 | + |
| 195 | +Find out more about Zero Shot Classification [here](../tasks/zero_shot_classification). |
| 196 | + |
| 197 | +<InferenceSnippet |
| 198 | + pipeline=zero-shot-classification |
| 199 | + providersMapping={ {"hf-inference":{"modelId":"facebook/bart-large-mnli","providerModelId":"facebook/bart-large-mnli"} } } |
| 200 | +/> |
| 201 | + |
0 commit comments