From 33a2888e999a8814a0a602d44fc97f4e116fb6cf Mon Sep 17 00:00:00 2001 From: Wauplin <11801849+Wauplin@users.noreply.github.com> Date: Mon, 28 Apr 2025 03:24:31 +0000 Subject: [PATCH 01/11] Update Inference Providers documentation (automated) --- .../providers/hf-inference.md | 36 +++++++++++++++++-- .../tasks/chat-completion.md | 1 - docs/inference-providers/tasks/fill-mask.md | 5 ++- .../tasks/image-segmentation.md | 5 ++- .../tasks/question-answering.md | 2 +- .../tasks/text-classification.md | 3 +- .../tasks/text-generation.md | 1 - .../tasks/text-to-image.md | 1 + .../tasks/token-classification.md | 6 +++- docs/inference-providers/tasks/translation.md | 2 +- scripts/inference-providers/package.json | 4 +-- scripts/inference-providers/pnpm-lock.yaml | 22 ++++++------ 12 files changed, 64 insertions(+), 24 deletions(-) diff --git a/docs/inference-providers/providers/hf-inference.md b/docs/inference-providers/providers/hf-inference.md index 3587aa1cb..fc719e4c5 100644 --- a/docs/inference-providers/providers/hf-inference.md +++ b/docs/inference-providers/providers/hf-inference.md @@ -79,6 +79,16 @@ Find out more about Feature Extraction [here](../tasks/feature_extraction). /> +### Fill Mask + +Find out more about Fill Mask [here](../tasks/fill_mask). + + + + ### Image Classification Find out more about Image Classification [here](../tasks/image_classification). @@ -89,6 +99,16 @@ Find out more about Image Classification [here](../tasks/image_classification). /> +### Image Segmentation + +Find out more about Image Segmentation [here](../tasks/image_segmentation). + + + + ### Object Detection Find out more about Object Detection [here](../tasks/object_detection). @@ -105,7 +125,7 @@ Find out more about Question Answering [here](../tasks/question_answering). @@ -125,7 +145,7 @@ Find out more about Text Classification [here](../tasks/text_classification). @@ -149,13 +169,23 @@ Find out more about Text To Image [here](../tasks/text_to_image). /> +### Token Classification + +Find out more about Token Classification [here](../tasks/token_classification). + + + + ### Translation Find out more about Translation [here](../tasks/translation). diff --git a/docs/inference-providers/tasks/chat-completion.md b/docs/inference-providers/tasks/chat-completion.md index 1138ebec9..b8eb02904 100644 --- a/docs/inference-providers/tasks/chat-completion.md +++ b/docs/inference-providers/tasks/chat-completion.md @@ -22,7 +22,6 @@ This is a subtask of [`text-generation`](https://huggingface.co/docs/inference-p #### Conversational Large Language Models (LLMs) - [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it): A text-generation model trained to follow instructions. -- [deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B): Smaller variant of one of the most powerful models. - [meta-llama/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct): Very powerful text generation model trained to follow instructions. - [microsoft/phi-4](https://huggingface.co/microsoft/phi-4): Powerful text generation model by Microsoft. - [Qwen/Qwen2.5-Coder-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct): Text generation model used to write code. diff --git a/docs/inference-providers/tasks/fill-mask.md b/docs/inference-providers/tasks/fill-mask.md index 6b14e7f91..35fae479f 100644 --- a/docs/inference-providers/tasks/fill-mask.md +++ b/docs/inference-providers/tasks/fill-mask.md @@ -30,7 +30,10 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -No snippet available for this task. + diff --git a/docs/inference-providers/tasks/image-segmentation.md b/docs/inference-providers/tasks/image-segmentation.md index f71ab3e55..35f13221e 100644 --- a/docs/inference-providers/tasks/image-segmentation.md +++ b/docs/inference-providers/tasks/image-segmentation.md @@ -30,7 +30,10 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -No snippet available for this task. + diff --git a/docs/inference-providers/tasks/question-answering.md b/docs/inference-providers/tasks/question-answering.md index d21cdbccd..e2900f446 100644 --- a/docs/inference-providers/tasks/question-answering.md +++ b/docs/inference-providers/tasks/question-answering.md @@ -32,7 +32,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/text-classification.md b/docs/inference-providers/tasks/text-classification.md index 8848e919a..9e47aa979 100644 --- a/docs/inference-providers/tasks/text-classification.md +++ b/docs/inference-providers/tasks/text-classification.md @@ -24,6 +24,7 @@ For more details about the `text-classification` task, check out its [dedicated ### Recommended models +- [papluca/xlm-roberta-base-language-detection](https://huggingface.co/papluca/xlm-roberta-base-language-detection): A model that can classify languages. 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). @@ -32,7 +33,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/text-generation.md b/docs/inference-providers/tasks/text-generation.md index a09065657..da5df1e0f 100644 --- a/docs/inference-providers/tasks/text-generation.md +++ b/docs/inference-providers/tasks/text-generation.md @@ -27,7 +27,6 @@ For more details about the `text-generation` task, check out its [dedicated page ### Recommended models - [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it): A text-generation model trained to follow instructions. -- [deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B): Smaller variant of one of the most powerful models. - [meta-llama/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct): Very powerful text generation model trained to follow instructions. - [microsoft/phi-4](https://huggingface.co/microsoft/phi-4): Powerful text generation model by Microsoft. - [Qwen/Qwen2.5-Coder-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct): Text generation model used to write code. diff --git a/docs/inference-providers/tasks/text-to-image.md b/docs/inference-providers/tasks/text-to-image.md index 094e6730e..f00698262 100644 --- a/docs/inference-providers/tasks/text-to-image.md +++ b/docs/inference-providers/tasks/text-to-image.md @@ -25,6 +25,7 @@ For more details about the `text-to-image` task, check out its [dedicated page]( ### Recommended models - [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev): One of the most powerful image generation models that can generate realistic outputs. +- [latent-consistency/lcm-lora-sdxl](https://huggingface.co/latent-consistency/lcm-lora-sdxl): A powerful yet fast image generation model. - [Kwai-Kolors/Kolors](https://huggingface.co/Kwai-Kolors/Kolors): Text-to-image model for photorealistic generation. - [stabilityai/stable-diffusion-3-medium-diffusers](https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers): A powerful text-to-image model. diff --git a/docs/inference-providers/tasks/token-classification.md b/docs/inference-providers/tasks/token-classification.md index 868b30064..9b84dadd6 100644 --- a/docs/inference-providers/tasks/token-classification.md +++ b/docs/inference-providers/tasks/token-classification.md @@ -24,13 +24,17 @@ For more details about the `token-classification` task, check out its [dedicated ### Recommended models +- [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. 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). ### Using the API -No snippet available for this task. + diff --git a/docs/inference-providers/tasks/translation.md b/docs/inference-providers/tasks/translation.md index 80168d754..b5d292d5e 100644 --- a/docs/inference-providers/tasks/translation.md +++ b/docs/inference-providers/tasks/translation.md @@ -32,7 +32,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/scripts/inference-providers/package.json b/scripts/inference-providers/package.json index cd6570bbe..3964f8ef5 100644 --- a/scripts/inference-providers/package.json +++ b/scripts/inference-providers/package.json @@ -14,8 +14,8 @@ "author": "", "license": "ISC", "dependencies": { - "@huggingface/inference": "^3.8.1", - "@huggingface/tasks": "^0.18.9", + "@huggingface/inference": "^3.9.2", + "@huggingface/tasks": "^0.18.11", "@types/node": "^22.5.0", "handlebars": "^4.7.8", "node": "^20.17.0", diff --git a/scripts/inference-providers/pnpm-lock.yaml b/scripts/inference-providers/pnpm-lock.yaml index b7b0ef52a..5d8a921cf 100644 --- a/scripts/inference-providers/pnpm-lock.yaml +++ b/scripts/inference-providers/pnpm-lock.yaml @@ -9,11 +9,11 @@ importers: .: dependencies: '@huggingface/inference': - specifier: ^3.8.1 - version: 3.8.1 + specifier: ^3.9.2 + version: 3.9.2 '@huggingface/tasks': - specifier: ^0.18.9 - version: 0.18.9 + specifier: ^0.18.11 + version: 0.18.11 '@types/node': specifier: ^22.5.0 version: 22.5.0 @@ -189,16 +189,16 @@ packages: cpu: [x64] os: [win32] - '@huggingface/inference@3.8.1': - resolution: {integrity: sha512-Kq+EvWAAWOa0oWrVrHZZzRmiqw0edr6UUCM6+ZvvHUDbcokc33aUqr8djsUSf6iNDnpBobdswYAJ+hwGo//i3A==} + '@huggingface/inference@3.9.2': + resolution: {integrity: sha512-7EpMgaELUJArqhFpinkyikO1iXza4lEBYcUF8HMDVabwI2QxCXmxb6coCgYmerHEfRRxsvqogwNrdxiUfcSvDg==} engines: {node: '>=18'} '@huggingface/jinja@0.3.4': resolution: {integrity: sha512-kFFQWJiWwvxezKQnvH1X7GjsECcMljFx+UZK9hx6P26aVHwwidJVTB0ptLfRVZQvVkOGHoMmTGvo4nT0X9hHOA==} engines: {node: '>=18'} - '@huggingface/tasks@0.18.9': - resolution: {integrity: sha512-uZLor0wEkqeNcqJOjQNd6mk3UOct2Cs8jpqRfGQhdz9C6ohP50PppIwvt33naGKHPLkzlKloWY2nML0comaDaQ==} + '@huggingface/tasks@0.18.11': + resolution: {integrity: sha512-KSGMkOi86Ap2xTWGxwnSj8cE+glYhhwyHMdGDJn4dsOz1LzWq8kQF0epeZRkjBgwdTSBFpCk3+3FGdi6tXch7A==} '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} @@ -415,14 +415,14 @@ snapshots: '@esbuild/win32-x64@0.23.1': optional: true - '@huggingface/inference@3.8.1': + '@huggingface/inference@3.9.2': dependencies: '@huggingface/jinja': 0.3.4 - '@huggingface/tasks': 0.18.9 + '@huggingface/tasks': 0.18.11 '@huggingface/jinja@0.3.4': {} - '@huggingface/tasks@0.18.9': {} + '@huggingface/tasks@0.18.11': {} '@jridgewell/resolve-uri@3.1.2': {} From be710f556f124a4a8c59bea87ef2edeb0b17f5b7 Mon Sep 17 00:00:00 2001 From: Wauplin <11801849+Wauplin@users.noreply.github.com> Date: Tue, 29 Apr 2025 03:22:36 +0000 Subject: [PATCH 02/11] Update Inference Providers documentation (automated) --- .../providers/hf-inference.md | 42 +++++++------------ .../providers/sambanova.md | 10 ----- .../tasks/automatic-speech-recognition.md | 2 +- .../tasks/chat-completion.md | 1 - .../tasks/feature-extraction.md | 2 +- docs/inference-providers/tasks/fill-mask.md | 5 ++- .../tasks/image-classification.md | 3 +- .../tasks/image-segmentation.md | 5 ++- .../tasks/object-detection.md | 6 +-- .../tasks/question-answering.md | 5 +-- .../tasks/summarization.md | 3 +- .../tasks/text-classification.md | 4 +- .../tasks/text-generation.md | 1 - .../tasks/text-to-image.md | 1 + docs/inference-providers/tasks/translation.md | 3 +- .../tasks/zero-shot-classification.md | 6 +-- scripts/inference-providers/package.json | 4 +- scripts/inference-providers/pnpm-lock.yaml | 22 +++++----- 18 files changed, 51 insertions(+), 74 deletions(-) diff --git a/docs/inference-providers/providers/hf-inference.md b/docs/inference-providers/providers/hf-inference.md index 3587aa1cb..0d4303332 100644 --- a/docs/inference-providers/providers/hf-inference.md +++ b/docs/inference-providers/providers/hf-inference.md @@ -75,37 +75,37 @@ Find out more about Feature Extraction [here](../tasks/feature_extraction). -### Image Classification +### Fill Mask -Find out more about Image Classification [here](../tasks/image_classification). +Find out more about Fill Mask [here](../tasks/fill_mask). -### Object Detection +### Image Classification -Find out more about Object Detection [here](../tasks/object_detection). +Find out more about Image Classification [here](../tasks/image_classification). -### Question Answering +### Image Segmentation -Find out more about Question Answering [here](../tasks/question_answering). +Find out more about Image Segmentation [here](../tasks/image_segmentation). @@ -115,7 +115,7 @@ Find out more about Summarization [here](../tasks/summarization). @@ -125,7 +125,7 @@ Find out more about Text Classification [here](../tasks/text_classification). @@ -155,16 +155,6 @@ Find out more about Translation [here](../tasks/translation). - - -### Zero Shot Classification - -Find out more about Zero Shot Classification [here](../tasks/zero_shot_classification). - - diff --git a/docs/inference-providers/providers/sambanova.md b/docs/inference-providers/providers/sambanova.md index 8d319d5e2..53eb87486 100644 --- a/docs/inference-providers/providers/sambanova.md +++ b/docs/inference-providers/providers/sambanova.md @@ -39,16 +39,6 @@ Customers are turning to SambaNova to quickly deploy state-of-the-art AI and dee ## Supported tasks -### Automatic Speech Recognition - -Find out more about Automatic Speech Recognition [here](../tasks/automatic_speech_recognition). - - - - ### Chat Completion (LLM) Find out more about Chat Completion (LLM) [here](../tasks/chat-completion). diff --git a/docs/inference-providers/tasks/automatic-speech-recognition.md b/docs/inference-providers/tasks/automatic-speech-recognition.md index e939c8eca..6de05b874 100644 --- a/docs/inference-providers/tasks/automatic-speech-recognition.md +++ b/docs/inference-providers/tasks/automatic-speech-recognition.md @@ -38,7 +38,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/chat-completion.md b/docs/inference-providers/tasks/chat-completion.md index 1138ebec9..b8eb02904 100644 --- a/docs/inference-providers/tasks/chat-completion.md +++ b/docs/inference-providers/tasks/chat-completion.md @@ -22,7 +22,6 @@ This is a subtask of [`text-generation`](https://huggingface.co/docs/inference-p #### Conversational Large Language Models (LLMs) - [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it): A text-generation model trained to follow instructions. -- [deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B): Smaller variant of one of the most powerful models. - [meta-llama/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct): Very powerful text generation model trained to follow instructions. - [microsoft/phi-4](https://huggingface.co/microsoft/phi-4): Powerful text generation model by Microsoft. - [Qwen/Qwen2.5-Coder-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct): Text generation model used to write code. diff --git a/docs/inference-providers/tasks/feature-extraction.md b/docs/inference-providers/tasks/feature-extraction.md index 4300989f8..5f40fc3b6 100644 --- a/docs/inference-providers/tasks/feature-extraction.md +++ b/docs/inference-providers/tasks/feature-extraction.md @@ -37,7 +37,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/fill-mask.md b/docs/inference-providers/tasks/fill-mask.md index 6b14e7f91..33344e16b 100644 --- a/docs/inference-providers/tasks/fill-mask.md +++ b/docs/inference-providers/tasks/fill-mask.md @@ -30,7 +30,10 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -No snippet available for this task. + diff --git a/docs/inference-providers/tasks/image-classification.md b/docs/inference-providers/tasks/image-classification.md index e7115ff26..09f806cdc 100644 --- a/docs/inference-providers/tasks/image-classification.md +++ b/docs/inference-providers/tasks/image-classification.md @@ -24,6 +24,7 @@ For more details about the `image-classification` task, check out its [dedicated ### Recommended models +- [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224): A strong image classification model. 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). @@ -32,7 +33,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/image-segmentation.md b/docs/inference-providers/tasks/image-segmentation.md index f71ab3e55..35f13221e 100644 --- a/docs/inference-providers/tasks/image-segmentation.md +++ b/docs/inference-providers/tasks/image-segmentation.md @@ -30,7 +30,10 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -No snippet available for this task. + diff --git a/docs/inference-providers/tasks/object-detection.md b/docs/inference-providers/tasks/object-detection.md index 3c36c4081..8f8ef53b9 100644 --- a/docs/inference-providers/tasks/object-detection.md +++ b/docs/inference-providers/tasks/object-detection.md @@ -24,17 +24,13 @@ For more details about the `object-detection` task, check out its [dedicated pag ### Recommended models -- [facebook/detr-resnet-50](https://huggingface.co/facebook/detr-resnet-50): Solid object detection model pre-trained on the COCO 2017 dataset. 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). ### Using the API - +No snippet available for this task. diff --git a/docs/inference-providers/tasks/question-answering.md b/docs/inference-providers/tasks/question-answering.md index d21cdbccd..9ee508f45 100644 --- a/docs/inference-providers/tasks/question-answering.md +++ b/docs/inference-providers/tasks/question-answering.md @@ -30,10 +30,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API - +No snippet available for this task. diff --git a/docs/inference-providers/tasks/summarization.md b/docs/inference-providers/tasks/summarization.md index 6e0ff5ead..8faeb2ed7 100644 --- a/docs/inference-providers/tasks/summarization.md +++ b/docs/inference-providers/tasks/summarization.md @@ -24,7 +24,6 @@ For more details about the `summarization` task, check out its [dedicated page]( ### Recommended models -- [facebook/bart-large-cnn](https://huggingface.co/facebook/bart-large-cnn): A strong summarization model trained on English news articles. Excels at generating factual summaries. Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=summarization&sort=trending). @@ -33,7 +32,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/text-classification.md b/docs/inference-providers/tasks/text-classification.md index 8848e919a..48934e758 100644 --- a/docs/inference-providers/tasks/text-classification.md +++ b/docs/inference-providers/tasks/text-classification.md @@ -24,6 +24,8 @@ For more details about the `text-classification` task, check out its [dedicated ### Recommended models +- [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. +- [ProsusAI/finbert](https://huggingface.co/ProsusAI/finbert): A sentiment analysis model specialized in financial sentiment. 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). @@ -32,7 +34,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/text-generation.md b/docs/inference-providers/tasks/text-generation.md index a09065657..da5df1e0f 100644 --- a/docs/inference-providers/tasks/text-generation.md +++ b/docs/inference-providers/tasks/text-generation.md @@ -27,7 +27,6 @@ For more details about the `text-generation` task, check out its [dedicated page ### Recommended models - [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it): A text-generation model trained to follow instructions. -- [deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B): Smaller variant of one of the most powerful models. - [meta-llama/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct): Very powerful text generation model trained to follow instructions. - [microsoft/phi-4](https://huggingface.co/microsoft/phi-4): Powerful text generation model by Microsoft. - [Qwen/Qwen2.5-Coder-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct): Text generation model used to write code. diff --git a/docs/inference-providers/tasks/text-to-image.md b/docs/inference-providers/tasks/text-to-image.md index 094e6730e..f00698262 100644 --- a/docs/inference-providers/tasks/text-to-image.md +++ b/docs/inference-providers/tasks/text-to-image.md @@ -25,6 +25,7 @@ For more details about the `text-to-image` task, check out its [dedicated page]( ### Recommended models - [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev): One of the most powerful image generation models that can generate realistic outputs. +- [latent-consistency/lcm-lora-sdxl](https://huggingface.co/latent-consistency/lcm-lora-sdxl): A powerful yet fast image generation model. - [Kwai-Kolors/Kolors](https://huggingface.co/Kwai-Kolors/Kolors): Text-to-image model for photorealistic generation. - [stabilityai/stable-diffusion-3-medium-diffusers](https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers): A powerful text-to-image model. diff --git a/docs/inference-providers/tasks/translation.md b/docs/inference-providers/tasks/translation.md index 80168d754..86a7ac19e 100644 --- a/docs/inference-providers/tasks/translation.md +++ b/docs/inference-providers/tasks/translation.md @@ -24,6 +24,7 @@ For more details about the `translation` task, check out its [dedicated page](ht ### Recommended models +- [google-t5/t5-base](https://huggingface.co/google-t5/t5-base): A general-purpose Transformer that can be used to translate from English to German, French, or Romanian. Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=translation&sort=trending). @@ -32,7 +33,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/zero-shot-classification.md b/docs/inference-providers/tasks/zero-shot-classification.md index 1c57edfb9..55d2442c8 100644 --- a/docs/inference-providers/tasks/zero-shot-classification.md +++ b/docs/inference-providers/tasks/zero-shot-classification.md @@ -24,17 +24,13 @@ For more details about the `zero-shot-classification` task, check out its [dedic ### Recommended models -- [facebook/bart-large-mnli](https://huggingface.co/facebook/bart-large-mnli): Powerful zero-shot text classification model. Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=zero-shot-classification&sort=trending). ### Using the API - +No snippet available for this task. diff --git a/scripts/inference-providers/package.json b/scripts/inference-providers/package.json index cd6570bbe..3964f8ef5 100644 --- a/scripts/inference-providers/package.json +++ b/scripts/inference-providers/package.json @@ -14,8 +14,8 @@ "author": "", "license": "ISC", "dependencies": { - "@huggingface/inference": "^3.8.1", - "@huggingface/tasks": "^0.18.9", + "@huggingface/inference": "^3.9.2", + "@huggingface/tasks": "^0.18.11", "@types/node": "^22.5.0", "handlebars": "^4.7.8", "node": "^20.17.0", diff --git a/scripts/inference-providers/pnpm-lock.yaml b/scripts/inference-providers/pnpm-lock.yaml index b7b0ef52a..5d8a921cf 100644 --- a/scripts/inference-providers/pnpm-lock.yaml +++ b/scripts/inference-providers/pnpm-lock.yaml @@ -9,11 +9,11 @@ importers: .: dependencies: '@huggingface/inference': - specifier: ^3.8.1 - version: 3.8.1 + specifier: ^3.9.2 + version: 3.9.2 '@huggingface/tasks': - specifier: ^0.18.9 - version: 0.18.9 + specifier: ^0.18.11 + version: 0.18.11 '@types/node': specifier: ^22.5.0 version: 22.5.0 @@ -189,16 +189,16 @@ packages: cpu: [x64] os: [win32] - '@huggingface/inference@3.8.1': - resolution: {integrity: sha512-Kq+EvWAAWOa0oWrVrHZZzRmiqw0edr6UUCM6+ZvvHUDbcokc33aUqr8djsUSf6iNDnpBobdswYAJ+hwGo//i3A==} + '@huggingface/inference@3.9.2': + resolution: {integrity: sha512-7EpMgaELUJArqhFpinkyikO1iXza4lEBYcUF8HMDVabwI2QxCXmxb6coCgYmerHEfRRxsvqogwNrdxiUfcSvDg==} engines: {node: '>=18'} '@huggingface/jinja@0.3.4': resolution: {integrity: sha512-kFFQWJiWwvxezKQnvH1X7GjsECcMljFx+UZK9hx6P26aVHwwidJVTB0ptLfRVZQvVkOGHoMmTGvo4nT0X9hHOA==} engines: {node: '>=18'} - '@huggingface/tasks@0.18.9': - resolution: {integrity: sha512-uZLor0wEkqeNcqJOjQNd6mk3UOct2Cs8jpqRfGQhdz9C6ohP50PppIwvt33naGKHPLkzlKloWY2nML0comaDaQ==} + '@huggingface/tasks@0.18.11': + resolution: {integrity: sha512-KSGMkOi86Ap2xTWGxwnSj8cE+glYhhwyHMdGDJn4dsOz1LzWq8kQF0epeZRkjBgwdTSBFpCk3+3FGdi6tXch7A==} '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} @@ -415,14 +415,14 @@ snapshots: '@esbuild/win32-x64@0.23.1': optional: true - '@huggingface/inference@3.8.1': + '@huggingface/inference@3.9.2': dependencies: '@huggingface/jinja': 0.3.4 - '@huggingface/tasks': 0.18.9 + '@huggingface/tasks': 0.18.11 '@huggingface/jinja@0.3.4': {} - '@huggingface/tasks@0.18.9': {} + '@huggingface/tasks@0.18.11': {} '@jridgewell/resolve-uri@3.1.2': {} From 59915754a56edc2f45daa1563c9267c55a1f3763 Mon Sep 17 00:00:00 2001 From: Celina Hanouti Date: Tue, 29 Apr 2025 09:33:51 +0200 Subject: [PATCH 03/11] regenerate --- .../providers/hf-inference.md | 52 +++---------------- .../providers/sambanova.md | 10 ---- .../tasks/automatic-speech-recognition.md | 2 +- .../tasks/feature-extraction.md | 2 +- docs/inference-providers/tasks/fill-mask.md | 2 +- .../tasks/image-classification.md | 3 +- .../tasks/object-detection.md | 6 +-- .../tasks/question-answering.md | 5 +- .../tasks/summarization.md | 3 +- .../tasks/text-classification.md | 6 ++- .../tasks/token-classification.md | 6 +-- docs/inference-providers/tasks/translation.md | 3 +- .../tasks/zero-shot-classification.md | 6 +-- 13 files changed, 22 insertions(+), 84 deletions(-) diff --git a/docs/inference-providers/providers/hf-inference.md b/docs/inference-providers/providers/hf-inference.md index fc719e4c5..0d4303332 100644 --- a/docs/inference-providers/providers/hf-inference.md +++ b/docs/inference-providers/providers/hf-inference.md @@ -75,7 +75,7 @@ Find out more about Feature Extraction [here](../tasks/feature_extraction). @@ -85,7 +85,7 @@ Find out more about Fill Mask [here](../tasks/fill_mask). @@ -95,7 +95,7 @@ Find out more about Image Classification [here](../tasks/image_classification). @@ -109,33 +109,13 @@ Find out more about Image Segmentation [here](../tasks/image_segmentation). /> -### Object Detection - -Find out more about Object Detection [here](../tasks/object_detection). - - - - -### Question Answering - -Find out more about Question Answering [here](../tasks/question_answering). - - - - ### Summarization Find out more about Summarization [here](../tasks/summarization). @@ -145,7 +125,7 @@ Find out more about Text Classification [here](../tasks/text_classification). @@ -169,32 +149,12 @@ Find out more about Text To Image [here](../tasks/text_to_image). /> -### Token Classification - -Find out more about Token Classification [here](../tasks/token_classification). - - - - ### Translation Find out more about Translation [here](../tasks/translation). - - -### Zero Shot Classification - -Find out more about Zero Shot Classification [here](../tasks/zero_shot_classification). - - diff --git a/docs/inference-providers/providers/sambanova.md b/docs/inference-providers/providers/sambanova.md index 8d319d5e2..53eb87486 100644 --- a/docs/inference-providers/providers/sambanova.md +++ b/docs/inference-providers/providers/sambanova.md @@ -39,16 +39,6 @@ Customers are turning to SambaNova to quickly deploy state-of-the-art AI and dee ## Supported tasks -### Automatic Speech Recognition - -Find out more about Automatic Speech Recognition [here](../tasks/automatic_speech_recognition). - - - - ### Chat Completion (LLM) Find out more about Chat Completion (LLM) [here](../tasks/chat-completion). diff --git a/docs/inference-providers/tasks/automatic-speech-recognition.md b/docs/inference-providers/tasks/automatic-speech-recognition.md index e939c8eca..6de05b874 100644 --- a/docs/inference-providers/tasks/automatic-speech-recognition.md +++ b/docs/inference-providers/tasks/automatic-speech-recognition.md @@ -38,7 +38,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/feature-extraction.md b/docs/inference-providers/tasks/feature-extraction.md index 4300989f8..5f40fc3b6 100644 --- a/docs/inference-providers/tasks/feature-extraction.md +++ b/docs/inference-providers/tasks/feature-extraction.md @@ -37,7 +37,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/fill-mask.md b/docs/inference-providers/tasks/fill-mask.md index 35fae479f..33344e16b 100644 --- a/docs/inference-providers/tasks/fill-mask.md +++ b/docs/inference-providers/tasks/fill-mask.md @@ -32,7 +32,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/image-classification.md b/docs/inference-providers/tasks/image-classification.md index e7115ff26..09f806cdc 100644 --- a/docs/inference-providers/tasks/image-classification.md +++ b/docs/inference-providers/tasks/image-classification.md @@ -24,6 +24,7 @@ For more details about the `image-classification` task, check out its [dedicated ### Recommended models +- [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224): A strong image classification model. 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). @@ -32,7 +33,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/object-detection.md b/docs/inference-providers/tasks/object-detection.md index 3c36c4081..8f8ef53b9 100644 --- a/docs/inference-providers/tasks/object-detection.md +++ b/docs/inference-providers/tasks/object-detection.md @@ -24,17 +24,13 @@ For more details about the `object-detection` task, check out its [dedicated pag ### Recommended models -- [facebook/detr-resnet-50](https://huggingface.co/facebook/detr-resnet-50): Solid object detection model pre-trained on the COCO 2017 dataset. 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). ### Using the API - +No snippet available for this task. diff --git a/docs/inference-providers/tasks/question-answering.md b/docs/inference-providers/tasks/question-answering.md index e2900f446..9ee508f45 100644 --- a/docs/inference-providers/tasks/question-answering.md +++ b/docs/inference-providers/tasks/question-answering.md @@ -30,10 +30,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API - +No snippet available for this task. diff --git a/docs/inference-providers/tasks/summarization.md b/docs/inference-providers/tasks/summarization.md index 6e0ff5ead..8faeb2ed7 100644 --- a/docs/inference-providers/tasks/summarization.md +++ b/docs/inference-providers/tasks/summarization.md @@ -24,7 +24,6 @@ For more details about the `summarization` task, check out its [dedicated page]( ### Recommended models -- [facebook/bart-large-cnn](https://huggingface.co/facebook/bart-large-cnn): A strong summarization model trained on English news articles. Excels at generating factual summaries. Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=summarization&sort=trending). @@ -33,7 +32,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/text-classification.md b/docs/inference-providers/tasks/text-classification.md index 9e47aa979..501536ea1 100644 --- a/docs/inference-providers/tasks/text-classification.md +++ b/docs/inference-providers/tasks/text-classification.md @@ -24,7 +24,9 @@ For more details about the `text-classification` task, check out its [dedicated ### Recommended models -- [papluca/xlm-roberta-base-language-detection](https://huggingface.co/papluca/xlm-roberta-base-language-detection): A model that can classify languages. +- [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. +- [ProsusAI/finbert](https://huggingface.co/ProsusAI/finbert): A sentiment analysis model specialized in financial sentiment. +- [cardiffnlp/twitter-roberta-base-sentiment-latest](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest): A sentiment analysis model specialized in analyzing tweets. 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). @@ -33,7 +35,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/token-classification.md b/docs/inference-providers/tasks/token-classification.md index 9b84dadd6..868b30064 100644 --- a/docs/inference-providers/tasks/token-classification.md +++ b/docs/inference-providers/tasks/token-classification.md @@ -24,17 +24,13 @@ For more details about the `token-classification` task, check out its [dedicated ### Recommended models -- [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. 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). ### Using the API - +No snippet available for this task. diff --git a/docs/inference-providers/tasks/translation.md b/docs/inference-providers/tasks/translation.md index b5d292d5e..86a7ac19e 100644 --- a/docs/inference-providers/tasks/translation.md +++ b/docs/inference-providers/tasks/translation.md @@ -24,6 +24,7 @@ For more details about the `translation` task, check out its [dedicated page](ht ### Recommended models +- [google-t5/t5-base](https://huggingface.co/google-t5/t5-base): A general-purpose Transformer that can be used to translate from English to German, French, or Romanian. Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=translation&sort=trending). @@ -32,7 +33,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/zero-shot-classification.md b/docs/inference-providers/tasks/zero-shot-classification.md index 1c57edfb9..55d2442c8 100644 --- a/docs/inference-providers/tasks/zero-shot-classification.md +++ b/docs/inference-providers/tasks/zero-shot-classification.md @@ -24,17 +24,13 @@ For more details about the `zero-shot-classification` task, check out its [dedic ### Recommended models -- [facebook/bart-large-mnli](https://huggingface.co/facebook/bart-large-mnli): Powerful zero-shot text classification model. Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=zero-shot-classification&sort=trending). ### Using the API - +No snippet available for this task. From e100967ad7b22daea55e3102a41dc4cf5a01946e Mon Sep 17 00:00:00 2001 From: Wauplin <11801849+Wauplin@users.noreply.github.com> Date: Mon, 5 May 2025 03:25:48 +0000 Subject: [PATCH 04/11] Update Inference Providers documentation (automated) --- .../providers/fireworks-ai.md | 2 +- .../providers/hf-inference.md | 40 ------------------- docs/inference-providers/providers/novita.md | 2 +- .../providers/replicate.md | 10 +++++ .../tasks/chat-completion.md | 2 +- docs/inference-providers/tasks/fill-mask.md | 5 +-- .../tasks/image-classification.md | 6 +-- .../tasks/image-segmentation.md | 5 +-- .../tasks/image-to-image.md | 5 ++- .../tasks/text-classification.md | 1 - docs/inference-providers/tasks/translation.md | 6 +-- scripts/inference-providers/package.json | 2 +- scripts/inference-providers/pnpm-lock.yaml | 18 ++++----- 13 files changed, 31 insertions(+), 73 deletions(-) diff --git a/docs/inference-providers/providers/fireworks-ai.md b/docs/inference-providers/providers/fireworks-ai.md index 1d4ff4ca6..ccc7396f3 100644 --- a/docs/inference-providers/providers/fireworks-ai.md +++ b/docs/inference-providers/providers/fireworks-ai.md @@ -43,7 +43,7 @@ Find out more about Chat Completion (LLM) [here](../tasks/chat-completion). diff --git a/docs/inference-providers/providers/hf-inference.md b/docs/inference-providers/providers/hf-inference.md index d151b823f..35732d5f3 100644 --- a/docs/inference-providers/providers/hf-inference.md +++ b/docs/inference-providers/providers/hf-inference.md @@ -79,36 +79,6 @@ Find out more about Feature Extraction [here](../tasks/feature_extraction). /> -### Fill Mask - -Find out more about Fill Mask [here](../tasks/fill_mask). - - - - -### Image Classification - -Find out more about Image Classification [here](../tasks/image_classification). - - - - -### Image Segmentation - -Find out more about Image Segmentation [here](../tasks/image_segmentation). - - - - ### Text Classification Find out more about Text Classification [here](../tasks/text_classification). @@ -138,13 +108,3 @@ Find out more about Text To Image [here](../tasks/text_to_image). providersMapping={ {"hf-inference":{"modelId":"black-forest-labs/FLUX.1-dev","providerModelId":"black-forest-labs/FLUX.1-dev"} } } /> - -### Translation - -Find out more about Translation [here](../tasks/translation). - - - diff --git a/docs/inference-providers/providers/novita.md b/docs/inference-providers/providers/novita.md index cc62d789f..d8fee8703 100644 --- a/docs/inference-providers/providers/novita.md +++ b/docs/inference-providers/providers/novita.md @@ -46,7 +46,7 @@ Find out more about Chat Completion (LLM) [here](../tasks/chat-completion). diff --git a/docs/inference-providers/providers/replicate.md b/docs/inference-providers/providers/replicate.md index 657cee3f5..7cbee37ed 100644 --- a/docs/inference-providers/providers/replicate.md +++ b/docs/inference-providers/providers/replicate.md @@ -38,6 +38,16 @@ Replicate is building tools so all software engineers can use AI as if it were n ## Supported tasks +### Image To Image + +Find out more about Image To Image [here](../tasks/image_to_image). + + + + ### Text To Image Find out more about Text To Image [here](../tasks/text_to_image). diff --git a/docs/inference-providers/tasks/chat-completion.md b/docs/inference-providers/tasks/chat-completion.md index 64674d80a..72bf1e195 100644 --- a/docs/inference-providers/tasks/chat-completion.md +++ b/docs/inference-providers/tasks/chat-completion.md @@ -59,7 +59,7 @@ The API supports: diff --git a/docs/inference-providers/tasks/fill-mask.md b/docs/inference-providers/tasks/fill-mask.md index 33344e16b..6b14e7f91 100644 --- a/docs/inference-providers/tasks/fill-mask.md +++ b/docs/inference-providers/tasks/fill-mask.md @@ -30,10 +30,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API - +No snippet available for this task. diff --git a/docs/inference-providers/tasks/image-classification.md b/docs/inference-providers/tasks/image-classification.md index 09f806cdc..56bcf627e 100644 --- a/docs/inference-providers/tasks/image-classification.md +++ b/docs/inference-providers/tasks/image-classification.md @@ -24,17 +24,13 @@ For more details about the `image-classification` task, check out its [dedicated ### Recommended models -- [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224): A strong image classification model. 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). ### Using the API - +No snippet available for this task. diff --git a/docs/inference-providers/tasks/image-segmentation.md b/docs/inference-providers/tasks/image-segmentation.md index 35f13221e..f71ab3e55 100644 --- a/docs/inference-providers/tasks/image-segmentation.md +++ b/docs/inference-providers/tasks/image-segmentation.md @@ -30,10 +30,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API - +No snippet available for this task. diff --git a/docs/inference-providers/tasks/image-to-image.md b/docs/inference-providers/tasks/image-to-image.md index 20f4ac1b7..8379ad6cb 100644 --- a/docs/inference-providers/tasks/image-to-image.md +++ b/docs/inference-providers/tasks/image-to-image.md @@ -35,7 +35,10 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -No snippet available for this task. + diff --git a/docs/inference-providers/tasks/text-classification.md b/docs/inference-providers/tasks/text-classification.md index 501536ea1..48934e758 100644 --- a/docs/inference-providers/tasks/text-classification.md +++ b/docs/inference-providers/tasks/text-classification.md @@ -26,7 +26,6 @@ For more details about the `text-classification` task, check out its [dedicated - [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. - [ProsusAI/finbert](https://huggingface.co/ProsusAI/finbert): A sentiment analysis model specialized in financial sentiment. -- [cardiffnlp/twitter-roberta-base-sentiment-latest](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest): A sentiment analysis model specialized in analyzing tweets. 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). diff --git a/docs/inference-providers/tasks/translation.md b/docs/inference-providers/tasks/translation.md index 86a7ac19e..64a61a6b0 100644 --- a/docs/inference-providers/tasks/translation.md +++ b/docs/inference-providers/tasks/translation.md @@ -24,17 +24,13 @@ For more details about the `translation` task, check out its [dedicated page](ht ### Recommended models -- [google-t5/t5-base](https://huggingface.co/google-t5/t5-base): A general-purpose Transformer that can be used to translate from English to German, French, or Romanian. Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=translation&sort=trending). ### Using the API - +No snippet available for this task. diff --git a/scripts/inference-providers/package.json b/scripts/inference-providers/package.json index c89dafd2a..5f35711b9 100644 --- a/scripts/inference-providers/package.json +++ b/scripts/inference-providers/package.json @@ -14,7 +14,7 @@ "author": "", "license": "ISC", "dependencies": { - "@huggingface/inference": "^3.10.0", + "@huggingface/inference": "^3.11.0", "@huggingface/tasks": "^0.19.1", "@types/node": "^22.5.0", "handlebars": "^4.7.8", diff --git a/scripts/inference-providers/pnpm-lock.yaml b/scripts/inference-providers/pnpm-lock.yaml index 7f21b7e65..ddc355e00 100644 --- a/scripts/inference-providers/pnpm-lock.yaml +++ b/scripts/inference-providers/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@huggingface/inference': - specifier: ^3.10.0 - version: 3.10.0 + specifier: ^3.11.0 + version: 3.11.0 '@huggingface/tasks': specifier: ^0.19.1 version: 0.19.1 @@ -189,12 +189,12 @@ packages: cpu: [x64] os: [win32] - '@huggingface/inference@3.10.0': - resolution: {integrity: sha512-nouLdl5Tu4gdTzIKv9zAr7HPziXV8rXbVONjYKQ7u9F78KgWVsYmhEM+ZhTbhg4fV4N1gdgywOAHrd9uOV5tRQ==} + '@huggingface/inference@3.11.0': + resolution: {integrity: sha512-4/qwTDYoVJLzoWN+rKk/8RCcEsqWFBRgzVr6wfrW0gEojzmsx4cgIXhEnPFG4s98OfjXuBqG7P0glLGqItrAaw==} engines: {node: '>=18'} - '@huggingface/jinja@0.4.0': - resolution: {integrity: sha512-NHN8rwJDaGVnpnNLv/4Aaqc/CuBDmN/pa6lrZOsFG7Zgm/5MEmrab+hzF2s46UMMoJcO2SMZ2amSxJXp0s8Ncw==} + '@huggingface/jinja@0.4.1': + resolution: {integrity: sha512-3WXbMFaPkk03LRCM0z0sylmn8ddDm4ubjU7X+Hg4M2GOuMklwoGAFXp9V2keq7vltoB/c7McE5aHUVVddAewsw==} engines: {node: '>=18'} '@huggingface/tasks@0.19.1': @@ -415,12 +415,12 @@ snapshots: '@esbuild/win32-x64@0.23.1': optional: true - '@huggingface/inference@3.10.0': + '@huggingface/inference@3.11.0': dependencies: - '@huggingface/jinja': 0.4.0 + '@huggingface/jinja': 0.4.1 '@huggingface/tasks': 0.19.1 - '@huggingface/jinja@0.4.0': {} + '@huggingface/jinja@0.4.1': {} '@huggingface/tasks@0.19.1': {} From 79b372c2c5bee00433a386e729fbc93410ccefc2 Mon Sep 17 00:00:00 2001 From: Celina Hanouti Date: Mon, 5 May 2025 11:04:09 +0200 Subject: [PATCH 05/11] fix --- docs/inference-providers/providers/replicate.md | 10 ---------- docs/inference-providers/tasks/image-to-image.md | 5 +---- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/docs/inference-providers/providers/replicate.md b/docs/inference-providers/providers/replicate.md index 7cbee37ed..657cee3f5 100644 --- a/docs/inference-providers/providers/replicate.md +++ b/docs/inference-providers/providers/replicate.md @@ -38,16 +38,6 @@ Replicate is building tools so all software engineers can use AI as if it were n ## Supported tasks -### Image To Image - -Find out more about Image To Image [here](../tasks/image_to_image). - - - - ### Text To Image Find out more about Text To Image [here](../tasks/text_to_image). diff --git a/docs/inference-providers/tasks/image-to-image.md b/docs/inference-providers/tasks/image-to-image.md index 8379ad6cb..20f4ac1b7 100644 --- a/docs/inference-providers/tasks/image-to-image.md +++ b/docs/inference-providers/tasks/image-to-image.md @@ -35,10 +35,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API - +No snippet available for this task. From 65bdac6695ccdca205550dcc02289d4db6a0d512 Mon Sep 17 00:00:00 2001 From: Celina Hanouti Date: Mon, 5 May 2025 12:15:26 +0200 Subject: [PATCH 06/11] better wording --- docs/inference-providers/tasks/audio-classification.md | 2 +- docs/inference-providers/tasks/fill-mask.md | 5 +---- docs/inference-providers/tasks/image-classification.md | 3 +-- docs/inference-providers/tasks/image-segmentation.md | 5 +---- docs/inference-providers/tasks/image-to-image.md | 2 +- docs/inference-providers/tasks/object-detection.md | 2 +- docs/inference-providers/tasks/question-answering.md | 2 +- docs/inference-providers/tasks/summarization.md | 2 +- docs/inference-providers/tasks/table-question-answering.md | 2 +- docs/inference-providers/tasks/token-classification.md | 2 +- docs/inference-providers/tasks/translation.md | 3 +-- docs/inference-providers/tasks/zero-shot-classification.md | 2 +- .../templates/common/snippets-template.handlebars | 2 +- 13 files changed, 13 insertions(+), 21 deletions(-) diff --git a/docs/inference-providers/tasks/audio-classification.md b/docs/inference-providers/tasks/audio-classification.md index ff2190015..fcc01910f 100644 --- a/docs/inference-providers/tasks/audio-classification.md +++ b/docs/inference-providers/tasks/audio-classification.md @@ -35,7 +35,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -No snippet available for this task. +There are currently no snippet examples for the **audio-classification** task, as no providers support it yet. diff --git a/docs/inference-providers/tasks/fill-mask.md b/docs/inference-providers/tasks/fill-mask.md index 33344e16b..9252ac746 100644 --- a/docs/inference-providers/tasks/fill-mask.md +++ b/docs/inference-providers/tasks/fill-mask.md @@ -30,10 +30,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API - +There are currently no snippet examples for the **fill-mask** task, as no providers support it yet. diff --git a/docs/inference-providers/tasks/image-classification.md b/docs/inference-providers/tasks/image-classification.md index 0ab045daa..416446956 100644 --- a/docs/inference-providers/tasks/image-classification.md +++ b/docs/inference-providers/tasks/image-classification.md @@ -24,14 +24,13 @@ For more details about the `image-classification` task, check out its [dedicated ### Recommended models -- [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224): A strong image classification model. 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). ### Using the API -No snippet available for this task. +There are currently no snippet examples for the **image-classification** task, as no providers support it yet. diff --git a/docs/inference-providers/tasks/image-segmentation.md b/docs/inference-providers/tasks/image-segmentation.md index 35f13221e..24136417b 100644 --- a/docs/inference-providers/tasks/image-segmentation.md +++ b/docs/inference-providers/tasks/image-segmentation.md @@ -30,10 +30,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API - +There are currently no snippet examples for the **image-segmentation** task, as no providers support it yet. diff --git a/docs/inference-providers/tasks/image-to-image.md b/docs/inference-providers/tasks/image-to-image.md index 20f4ac1b7..bbc82701e 100644 --- a/docs/inference-providers/tasks/image-to-image.md +++ b/docs/inference-providers/tasks/image-to-image.md @@ -35,7 +35,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -No snippet available for this task. +There are currently no snippet examples for the **image-to-image** task, as no providers support it yet. diff --git a/docs/inference-providers/tasks/object-detection.md b/docs/inference-providers/tasks/object-detection.md index 8f8ef53b9..299a41788 100644 --- a/docs/inference-providers/tasks/object-detection.md +++ b/docs/inference-providers/tasks/object-detection.md @@ -30,7 +30,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -No snippet available for this task. +There are currently no snippet examples for the **object-detection** task, as no providers support it yet. diff --git a/docs/inference-providers/tasks/question-answering.md b/docs/inference-providers/tasks/question-answering.md index 9ee508f45..e93c6c6de 100644 --- a/docs/inference-providers/tasks/question-answering.md +++ b/docs/inference-providers/tasks/question-answering.md @@ -30,7 +30,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -No snippet available for this task. +There are currently no snippet examples for the **question-answering** task, as no providers support it yet. diff --git a/docs/inference-providers/tasks/summarization.md b/docs/inference-providers/tasks/summarization.md index cf0a3badc..1896451a0 100644 --- a/docs/inference-providers/tasks/summarization.md +++ b/docs/inference-providers/tasks/summarization.md @@ -30,7 +30,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -No snippet available for this task. +There are currently no snippet examples for the **summarization** task, as no providers support it yet. diff --git a/docs/inference-providers/tasks/table-question-answering.md b/docs/inference-providers/tasks/table-question-answering.md index 82ea04bb1..ee41843a4 100644 --- a/docs/inference-providers/tasks/table-question-answering.md +++ b/docs/inference-providers/tasks/table-question-answering.md @@ -30,7 +30,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -No snippet available for this task. +There are currently no snippet examples for the **table-question-answering** task, as no providers support it yet. diff --git a/docs/inference-providers/tasks/token-classification.md b/docs/inference-providers/tasks/token-classification.md index 868b30064..67ff322c3 100644 --- a/docs/inference-providers/tasks/token-classification.md +++ b/docs/inference-providers/tasks/token-classification.md @@ -30,7 +30,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -No snippet available for this task. +There are currently no snippet examples for the **token-classification** task, as no providers support it yet. diff --git a/docs/inference-providers/tasks/translation.md b/docs/inference-providers/tasks/translation.md index ce55b847b..667120ced 100644 --- a/docs/inference-providers/tasks/translation.md +++ b/docs/inference-providers/tasks/translation.md @@ -24,14 +24,13 @@ For more details about the `translation` task, check out its [dedicated page](ht ### Recommended models -- [google-t5/t5-base](https://huggingface.co/google-t5/t5-base): A general-purpose Transformer that can be used to translate from English to German, French, or Romanian. Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=translation&sort=trending). ### Using the API -No snippet available for this task. +There are currently no snippet examples for the **translation** task, as no providers support it yet. diff --git a/docs/inference-providers/tasks/zero-shot-classification.md b/docs/inference-providers/tasks/zero-shot-classification.md index 55d2442c8..d046ba432 100644 --- a/docs/inference-providers/tasks/zero-shot-classification.md +++ b/docs/inference-providers/tasks/zero-shot-classification.md @@ -30,7 +30,7 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -No snippet available for this task. +There are currently no snippet examples for the **zero-shot-classification** task, as no providers support it yet. diff --git a/scripts/inference-providers/templates/common/snippets-template.handlebars b/scripts/inference-providers/templates/common/snippets-template.handlebars index 0be6fdea4..3e9a77c72 100644 --- a/scripts/inference-providers/templates/common/snippets-template.handlebars +++ b/scripts/inference-providers/templates/common/snippets-template.handlebars @@ -7,6 +7,6 @@ {{else}} -No snippet available for this task. +There are currently no snippet examples for the **{{ task }}** task, as no providers support it yet. {{/if}} \ No newline at end of file From d7b8cd480495ef8001bcc4af8dd35d4ddab2d3e0 Mon Sep 17 00:00:00 2001 From: Wauplin <11801849+Wauplin@users.noreply.github.com> Date: Thu, 15 May 2025 03:24:56 +0000 Subject: [PATCH 07/11] Update Inference Providers documentation (automated) --- .../providers/hf-inference.md | 2 +- docs/inference-providers/providers/nebius.md | 10 +++++++ docs/inference-providers/providers/nscale.md | 30 +++++++++++++++++++ .../tasks/chat-completion.md | 5 ++-- .../tasks/feature-extraction.md | 2 +- .../tasks/image-classification.md | 1 + .../tasks/image-segmentation.md | 1 + .../tasks/text-generation.md | 1 + .../tasks/text-to-image.md | 2 +- scripts/inference-providers/package.json | 4 +-- scripts/inference-providers/pnpm-lock.yaml | 30 +++++++++---------- 11 files changed, 66 insertions(+), 22 deletions(-) diff --git a/docs/inference-providers/providers/hf-inference.md b/docs/inference-providers/providers/hf-inference.md index d1cc6dc4b..3b866945c 100644 --- a/docs/inference-providers/providers/hf-inference.md +++ b/docs/inference-providers/providers/hf-inference.md @@ -75,7 +75,7 @@ Find out more about Chat Completion (VLM) [here](../tasks/chat-completion). diff --git a/docs/inference-providers/providers/nebius.md b/docs/inference-providers/providers/nebius.md index 53db03a1b..dbdfc662c 100644 --- a/docs/inference-providers/providers/nebius.md +++ b/docs/inference-providers/providers/nebius.md @@ -58,6 +58,16 @@ Find out more about Chat Completion (VLM) [here](../tasks/chat-completion). conversational /> +### Feature Extraction + +Find out more about Feature Extraction [here](../tasks/feature_extraction). + + + + ### Text To Image Find out more about Text To Image [here](../tasks/text_to_image). diff --git a/docs/inference-providers/providers/nscale.md b/docs/inference-providers/providers/nscale.md index 228abfd24..5da7783ec 100644 --- a/docs/inference-providers/providers/nscale.md +++ b/docs/inference-providers/providers/nscale.md @@ -39,3 +39,33 @@ Built on this foundation, Nscale's inference service empowers developers with a ## Supported tasks + +### Chat Completion (LLM) + +Find out more about Chat Completion (LLM) [here](../tasks/chat-completion). + + + + +### Chat Completion (VLM) + +Find out more about Chat Completion (VLM) [here](../tasks/chat-completion). + + + + +### Text To Image + +Find out more about Text To Image [here](../tasks/text_to_image). + + + diff --git a/docs/inference-providers/tasks/chat-completion.md b/docs/inference-providers/tasks/chat-completion.md index ded878c14..56b25ae95 100644 --- a/docs/inference-providers/tasks/chat-completion.md +++ b/docs/inference-providers/tasks/chat-completion.md @@ -22,6 +22,7 @@ This is a subtask of [`text-generation`](https://huggingface.co/docs/inference-p #### Conversational Large Language Models (LLMs) - [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it): A text-generation model trained to follow instructions. +- [deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B): Smaller variant of one of the most powerful models. - [meta-llama/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct): Very powerful text generation model trained to follow instructions. - [microsoft/phi-4](https://huggingface.co/microsoft/phi-4): Powerful text generation model by Microsoft. - [Qwen/Qwen2.5-7B-Instruct-1M](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct-1M): Strong conversational model that supports very long instructions. @@ -60,7 +61,7 @@ The API supports: @@ -70,7 +71,7 @@ conversational /> diff --git a/docs/inference-providers/tasks/feature-extraction.md b/docs/inference-providers/tasks/feature-extraction.md index 3d9e60fd0..9fb6c2283 100644 --- a/docs/inference-providers/tasks/feature-extraction.md +++ b/docs/inference-providers/tasks/feature-extraction.md @@ -38,7 +38,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/image-classification.md b/docs/inference-providers/tasks/image-classification.md index 6c3864f8d..cc68b01fd 100644 --- a/docs/inference-providers/tasks/image-classification.md +++ b/docs/inference-providers/tasks/image-classification.md @@ -26,6 +26,7 @@ For more details about the `image-classification` task, check out its [dedicated - [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224): A strong image classification model. - [facebook/deit-base-distilled-patch16-224](https://huggingface.co/facebook/deit-base-distilled-patch16-224): A robust image classification model. +- [facebook/convnext-large-224](https://huggingface.co/facebook/convnext-large-224): A strong image classification model. 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). diff --git a/docs/inference-providers/tasks/image-segmentation.md b/docs/inference-providers/tasks/image-segmentation.md index 1ceca0e68..197800740 100644 --- a/docs/inference-providers/tasks/image-segmentation.md +++ b/docs/inference-providers/tasks/image-segmentation.md @@ -24,6 +24,7 @@ For more details about the `image-segmentation` task, check out its [dedicated p ### Recommended models +- [openmmlab/upernet-convnext-small](https://huggingface.co/openmmlab/upernet-convnext-small): Solid semantic segmentation model trained on ADE20k. - [facebook/mask2former-swin-large-coco-panoptic](https://huggingface.co/facebook/mask2former-swin-large-coco-panoptic): Panoptic segmentation model trained on the COCO (common objects) dataset. 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). diff --git a/docs/inference-providers/tasks/text-generation.md b/docs/inference-providers/tasks/text-generation.md index 0b1298517..22eabb509 100644 --- a/docs/inference-providers/tasks/text-generation.md +++ b/docs/inference-providers/tasks/text-generation.md @@ -27,6 +27,7 @@ For more details about the `text-generation` task, check out its [dedicated page ### Recommended models - [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it): A text-generation model trained to follow instructions. +- [deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B): Smaller variant of one of the most powerful models. - [meta-llama/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct): Very powerful text generation model trained to follow instructions. - [microsoft/phi-4](https://huggingface.co/microsoft/phi-4): Powerful text generation model by Microsoft. - [Qwen/Qwen2.5-7B-Instruct-1M](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct-1M): Strong conversational model that supports very long instructions. diff --git a/docs/inference-providers/tasks/text-to-image.md b/docs/inference-providers/tasks/text-to-image.md index f00698262..86ebefabe 100644 --- a/docs/inference-providers/tasks/text-to-image.md +++ b/docs/inference-providers/tasks/text-to-image.md @@ -36,7 +36,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/scripts/inference-providers/package.json b/scripts/inference-providers/package.json index 5f35711b9..de7dd4231 100644 --- a/scripts/inference-providers/package.json +++ b/scripts/inference-providers/package.json @@ -14,8 +14,8 @@ "author": "", "license": "ISC", "dependencies": { - "@huggingface/inference": "^3.11.0", - "@huggingface/tasks": "^0.19.1", + "@huggingface/inference": "^3.13.0", + "@huggingface/tasks": "^0.19.5", "@types/node": "^22.5.0", "handlebars": "^4.7.8", "node": "^20.17.0", diff --git a/scripts/inference-providers/pnpm-lock.yaml b/scripts/inference-providers/pnpm-lock.yaml index ddc355e00..11f4f1b74 100644 --- a/scripts/inference-providers/pnpm-lock.yaml +++ b/scripts/inference-providers/pnpm-lock.yaml @@ -9,11 +9,11 @@ importers: .: dependencies: '@huggingface/inference': - specifier: ^3.11.0 - version: 3.11.0 + specifier: ^3.13.0 + version: 3.13.0 '@huggingface/tasks': - specifier: ^0.19.1 - version: 0.19.1 + specifier: ^0.19.5 + version: 0.19.5 '@types/node': specifier: ^22.5.0 version: 22.5.0 @@ -189,16 +189,16 @@ packages: cpu: [x64] os: [win32] - '@huggingface/inference@3.11.0': - resolution: {integrity: sha512-4/qwTDYoVJLzoWN+rKk/8RCcEsqWFBRgzVr6wfrW0gEojzmsx4cgIXhEnPFG4s98OfjXuBqG7P0glLGqItrAaw==} + '@huggingface/inference@3.13.0': + resolution: {integrity: sha512-QoUtsPZI22FwVBRPcrGtKJUQvkiHBin8Qm1dntirvG3cSiqhD/zHKle2dGC1fMJm9Q0gFBhwaT7IPDnGt3HjPw==} engines: {node: '>=18'} - '@huggingface/jinja@0.4.1': - resolution: {integrity: sha512-3WXbMFaPkk03LRCM0z0sylmn8ddDm4ubjU7X+Hg4M2GOuMklwoGAFXp9V2keq7vltoB/c7McE5aHUVVddAewsw==} + '@huggingface/jinja@0.5.0': + resolution: {integrity: sha512-Ptc03/jGRiYRoi0bUYKZ14MkDslsBRT24oxmsvUlfYrvQMldrxCevhPnT+hfX8awKTT8/f/0ZBBWldoeAcMHdQ==} engines: {node: '>=18'} - '@huggingface/tasks@0.19.1': - resolution: {integrity: sha512-cocq5+jkmh8+qIvWDCyC9nkf7qCpmBRrJL/WPWhfIMXWEv2dMYMY62ylFv+dq/vRwpe+/5h0WlnZGOSIa+3OJg==} + '@huggingface/tasks@0.19.5': + resolution: {integrity: sha512-WEwM/tZsRqw0TinTkQwqPsK5pdaGffAV6Nu6xxSTSZUsBvkDJxE9kTiMNSwvjeHvt9/MYAJKjZ+CMSo6Rugs4g==} '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} @@ -415,14 +415,14 @@ snapshots: '@esbuild/win32-x64@0.23.1': optional: true - '@huggingface/inference@3.11.0': + '@huggingface/inference@3.13.0': dependencies: - '@huggingface/jinja': 0.4.1 - '@huggingface/tasks': 0.19.1 + '@huggingface/jinja': 0.5.0 + '@huggingface/tasks': 0.19.5 - '@huggingface/jinja@0.4.1': {} + '@huggingface/jinja@0.5.0': {} - '@huggingface/tasks@0.19.1': {} + '@huggingface/tasks@0.19.5': {} '@jridgewell/resolve-uri@3.1.2': {} From c1085cf13446bbfa87b9e4084c36e1011303d938 Mon Sep 17 00:00:00 2001 From: Celina Hanouti Date: Thu, 15 May 2025 11:08:46 +0200 Subject: [PATCH 08/11] bump inference --- scripts/inference-providers/package.json | 2 +- scripts/inference-providers/pnpm-lock.yaml | 25 +++++++++++++--------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/scripts/inference-providers/package.json b/scripts/inference-providers/package.json index 5f35711b9..8cae07a41 100644 --- a/scripts/inference-providers/package.json +++ b/scripts/inference-providers/package.json @@ -14,7 +14,7 @@ "author": "", "license": "ISC", "dependencies": { - "@huggingface/inference": "^3.11.0", + "@huggingface/inference": "^3.13.1", "@huggingface/tasks": "^0.19.1", "@types/node": "^22.5.0", "handlebars": "^4.7.8", diff --git a/scripts/inference-providers/pnpm-lock.yaml b/scripts/inference-providers/pnpm-lock.yaml index ddc355e00..44b1019d8 100644 --- a/scripts/inference-providers/pnpm-lock.yaml +++ b/scripts/inference-providers/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@huggingface/inference': - specifier: ^3.11.0 - version: 3.11.0 + specifier: ^3.13.1 + version: 3.13.1 '@huggingface/tasks': specifier: ^0.19.1 version: 0.19.1 @@ -189,17 +189,20 @@ packages: cpu: [x64] os: [win32] - '@huggingface/inference@3.11.0': - resolution: {integrity: sha512-4/qwTDYoVJLzoWN+rKk/8RCcEsqWFBRgzVr6wfrW0gEojzmsx4cgIXhEnPFG4s98OfjXuBqG7P0glLGqItrAaw==} + '@huggingface/inference@3.13.1': + resolution: {integrity: sha512-RIFaC295cL/0tco+HboS8abeApfn01/tWFgjYwLo6vRYGkuQBSzwgHuAdouOZu62UQYwrWA4Eyv1e+4zBxc+dQ==} engines: {node: '>=18'} - '@huggingface/jinja@0.4.1': - resolution: {integrity: sha512-3WXbMFaPkk03LRCM0z0sylmn8ddDm4ubjU7X+Hg4M2GOuMklwoGAFXp9V2keq7vltoB/c7McE5aHUVVddAewsw==} + '@huggingface/jinja@0.5.0': + resolution: {integrity: sha512-Ptc03/jGRiYRoi0bUYKZ14MkDslsBRT24oxmsvUlfYrvQMldrxCevhPnT+hfX8awKTT8/f/0ZBBWldoeAcMHdQ==} engines: {node: '>=18'} '@huggingface/tasks@0.19.1': resolution: {integrity: sha512-cocq5+jkmh8+qIvWDCyC9nkf7qCpmBRrJL/WPWhfIMXWEv2dMYMY62ylFv+dq/vRwpe+/5h0WlnZGOSIa+3OJg==} + '@huggingface/tasks@0.19.5': + resolution: {integrity: sha512-WEwM/tZsRqw0TinTkQwqPsK5pdaGffAV6Nu6xxSTSZUsBvkDJxE9kTiMNSwvjeHvt9/MYAJKjZ+CMSo6Rugs4g==} + '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} @@ -415,15 +418,17 @@ snapshots: '@esbuild/win32-x64@0.23.1': optional: true - '@huggingface/inference@3.11.0': + '@huggingface/inference@3.13.1': dependencies: - '@huggingface/jinja': 0.4.1 - '@huggingface/tasks': 0.19.1 + '@huggingface/jinja': 0.5.0 + '@huggingface/tasks': 0.19.5 - '@huggingface/jinja@0.4.1': {} + '@huggingface/jinja@0.5.0': {} '@huggingface/tasks@0.19.1': {} + '@huggingface/tasks@0.19.5': {} + '@jridgewell/resolve-uri@3.1.2': {} '@jridgewell/sourcemap-codec@1.5.0': {} From 4a5cf0c61d6d705bccfde023f8ad1c1c91f06e03 Mon Sep 17 00:00:00 2001 From: Wauplin <11801849+Wauplin@users.noreply.github.com> Date: Tue, 1 Jul 2025 03:36:59 +0000 Subject: [PATCH 09/11] Update Inference Providers documentation (automated) --- .../inference-providers/providers/cerebras.md | 2 +- docs/inference-providers/providers/fal-ai.md | 12 +++++++++- .../providers/featherless-ai.md | 6 ++--- docs/inference-providers/providers/groq.md | 2 +- .../providers/hf-inference.md | 10 ++++----- docs/inference-providers/providers/nebius.md | 2 +- .../providers/replicate.md | 22 ++++++++++++++++++- .../providers/sambanova.md | 2 +- .../tasks/automatic-speech-recognition.md | 2 +- .../tasks/chat-completion.md | 20 ++++++++--------- .../tasks/feature-extraction.md | 2 +- .../tasks/image-text-to-text.md | 2 +- .../tasks/image-to-image.md | 5 ++++- .../tasks/summarization.md | 3 +-- .../tasks/text-classification.md | 2 +- .../tasks/text-generation.md | 2 +- .../tasks/text-to-video.md | 2 +- scripts/inference-providers/package.json | 4 ++-- scripts/inference-providers/pnpm-lock.yaml | 22 +++++++++---------- 19 files changed, 78 insertions(+), 46 deletions(-) diff --git a/docs/inference-providers/providers/cerebras.md b/docs/inference-providers/providers/cerebras.md index 940cb0a0b..43b736c69 100644 --- a/docs/inference-providers/providers/cerebras.md +++ b/docs/inference-providers/providers/cerebras.md @@ -44,7 +44,7 @@ Find out more about Chat Completion (LLM) [here](../tasks/chat-completion). diff --git a/docs/inference-providers/providers/fal-ai.md b/docs/inference-providers/providers/fal-ai.md index e3db72749..d32dbad91 100644 --- a/docs/inference-providers/providers/fal-ai.md +++ b/docs/inference-providers/providers/fal-ai.md @@ -48,6 +48,16 @@ Find out more about Automatic Speech Recognition [here](../tasks/automatic_speec /> +### Image To Image + +Find out more about Image To Image [here](../tasks/image_to_image). + + + + ### Text To Image Find out more about Text To Image [here](../tasks/text_to_image). @@ -64,6 +74,6 @@ Find out more about Text To Video [here](../tasks/text_to_video). diff --git a/docs/inference-providers/providers/featherless-ai.md b/docs/inference-providers/providers/featherless-ai.md index f247583cc..d56ea7765 100644 --- a/docs/inference-providers/providers/featherless-ai.md +++ b/docs/inference-providers/providers/featherless-ai.md @@ -46,7 +46,7 @@ Find out more about Chat Completion (LLM) [here](../tasks/chat-completion). @@ -56,7 +56,7 @@ Find out more about Chat Completion (VLM) [here](../tasks/chat-completion). @@ -66,6 +66,6 @@ Find out more about Text Generation [here](../tasks/text_generation). diff --git a/docs/inference-providers/providers/groq.md b/docs/inference-providers/providers/groq.md index c8c660557..9e326230c 100644 --- a/docs/inference-providers/providers/groq.md +++ b/docs/inference-providers/providers/groq.md @@ -54,7 +54,7 @@ Find out more about Chat Completion (LLM) [here](../tasks/chat-completion). diff --git a/docs/inference-providers/providers/hf-inference.md b/docs/inference-providers/providers/hf-inference.md index 4ec33aae0..226e038f9 100644 --- a/docs/inference-providers/providers/hf-inference.md +++ b/docs/inference-providers/providers/hf-inference.md @@ -55,7 +55,7 @@ Find out more about Chat Completion (LLM) [here](../tasks/chat-completion). @@ -65,7 +65,7 @@ Find out more about Chat Completion (VLM) [here](../tasks/chat-completion). @@ -135,7 +135,7 @@ Find out more about Summarization [here](../tasks/summarization). @@ -155,7 +155,7 @@ Find out more about Text Classification [here](../tasks/text_classification). @@ -165,7 +165,7 @@ Find out more about Text Generation [here](../tasks/text_generation). diff --git a/docs/inference-providers/providers/nebius.md b/docs/inference-providers/providers/nebius.md index 6479e5cab..4ca0a80ec 100644 --- a/docs/inference-providers/providers/nebius.md +++ b/docs/inference-providers/providers/nebius.md @@ -64,7 +64,7 @@ Find out more about Feature Extraction [here](../tasks/feature_extraction). diff --git a/docs/inference-providers/providers/replicate.md b/docs/inference-providers/providers/replicate.md index c1cd26b93..e58acba40 100644 --- a/docs/inference-providers/providers/replicate.md +++ b/docs/inference-providers/providers/replicate.md @@ -38,6 +38,26 @@ Replicate is building tools so all software engineers can use AI as if it were n ## Supported tasks +### Automatic Speech Recognition + +Find out more about Automatic Speech Recognition [here](../tasks/automatic_speech_recognition). + + + + +### Image To Image + +Find out more about Image To Image [here](../tasks/image_to_image). + + + + ### Text To Image Find out more about Text To Image [here](../tasks/text_to_image). @@ -54,6 +74,6 @@ Find out more about Text To Video [here](../tasks/text_to_video). diff --git a/docs/inference-providers/providers/sambanova.md b/docs/inference-providers/providers/sambanova.md index 03ba566e4..cb8110109 100644 --- a/docs/inference-providers/providers/sambanova.md +++ b/docs/inference-providers/providers/sambanova.md @@ -55,7 +55,7 @@ Find out more about Chat Completion (VLM) [here](../tasks/chat-completion). diff --git a/docs/inference-providers/tasks/automatic-speech-recognition.md b/docs/inference-providers/tasks/automatic-speech-recognition.md index 18c5acbf9..f3567aa27 100644 --- a/docs/inference-providers/tasks/automatic-speech-recognition.md +++ b/docs/inference-providers/tasks/automatic-speech-recognition.md @@ -38,7 +38,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/chat-completion.md b/docs/inference-providers/tasks/chat-completion.md index f27a62972..46d5338e0 100644 --- a/docs/inference-providers/tasks/chat-completion.md +++ b/docs/inference-providers/tasks/chat-completion.md @@ -63,7 +63,7 @@ The API supports: @@ -73,7 +73,7 @@ conversational /> @@ -119,16 +119,16 @@ conversational /> | **presence_penalty** | _number_ | Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics | | **response_format** | _unknown_ | One of the following: | | **         (#1)** | _object_ | | -| **                type*** | _enum_ | Possible values: json. | -| **                value*** | _unknown_ | A string that represents a [JSON Schema](https://json-schema.org/). JSON Schema is a declarative language that allows to annotate JSON documents with types and descriptions. | +| **                type*** | _enum_ | Possible values: text. | | **         (#2)** | _object_ | | -| **                type*** | _enum_ | Possible values: regex. | -| **                value*** | _string_ | | -| **         (#3)** | _object_ | | | **                type*** | _enum_ | Possible values: json_schema. | -| **                value*** | _object_ | | -| **                        name** | _string_ | Optional name identifier for the schema | -| **                        schema*** | _unknown_ | The actual JSON schema definition | +| **                json_schema*** | _object_ | | +| **                        name*** | _string_ | The name of the response format. | +| **                        description** | _string_ | A description of what the response format is for, used by the model to determine how to respond in the format. | +| **                        schema** | _object_ | The schema for the response format, described as a JSON Schema object. Learn how to build JSON schemas [here](https://json-schema.org/). | +| **                        strict** | _boolean_ | Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. | +| **         (#3)** | _object_ | | +| **                type*** | _enum_ | Possible values: json_object. | | **seed** | _integer_ | | | **stop** | _string[]_ | Up to 4 sequences where the API will stop generating further tokens. | | **stream** | _boolean_ | | diff --git a/docs/inference-providers/tasks/feature-extraction.md b/docs/inference-providers/tasks/feature-extraction.md index 9fb6c2283..bc7f88aae 100644 --- a/docs/inference-providers/tasks/feature-extraction.md +++ b/docs/inference-providers/tasks/feature-extraction.md @@ -38,7 +38,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/image-text-to-text.md b/docs/inference-providers/tasks/image-text-to-text.md index e497c9dd1..2dd7ed2ed 100644 --- a/docs/inference-providers/tasks/image-text-to-text.md +++ b/docs/inference-providers/tasks/image-text-to-text.md @@ -33,7 +33,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/image-to-image.md b/docs/inference-providers/tasks/image-to-image.md index bbc82701e..859ed8361 100644 --- a/docs/inference-providers/tasks/image-to-image.md +++ b/docs/inference-providers/tasks/image-to-image.md @@ -35,7 +35,10 @@ Explore all available models and find the one that suits you best [here](https:/ ### Using the API -There are currently no snippet examples for the **image-to-image** task, as no providers support it yet. + diff --git a/docs/inference-providers/tasks/summarization.md b/docs/inference-providers/tasks/summarization.md index 6d3994406..8b948f871 100644 --- a/docs/inference-providers/tasks/summarization.md +++ b/docs/inference-providers/tasks/summarization.md @@ -24,7 +24,6 @@ For more details about the `summarization` task, check out its [dedicated page]( ### Recommended models -- [facebook/bart-large-cnn](https://huggingface.co/facebook/bart-large-cnn): A strong summarization model trained on English news articles. Excels at generating factual summaries. - [Falconsai/medical_summarization](https://huggingface.co/Falconsai/medical_summarization): A summarization model trained on medical articles. Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=summarization&sort=trending). @@ -34,7 +33,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/text-classification.md b/docs/inference-providers/tasks/text-classification.md index fd2827abb..5e30ee191 100644 --- a/docs/inference-providers/tasks/text-classification.md +++ b/docs/inference-providers/tasks/text-classification.md @@ -34,7 +34,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/text-generation.md b/docs/inference-providers/tasks/text-generation.md index c91d1c749..2696bea55 100644 --- a/docs/inference-providers/tasks/text-generation.md +++ b/docs/inference-providers/tasks/text-generation.md @@ -41,7 +41,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/docs/inference-providers/tasks/text-to-video.md b/docs/inference-providers/tasks/text-to-video.md index 5a29e371d..606302cb2 100644 --- a/docs/inference-providers/tasks/text-to-video.md +++ b/docs/inference-providers/tasks/text-to-video.md @@ -35,7 +35,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/scripts/inference-providers/package.json b/scripts/inference-providers/package.json index 6710dac5b..84c041f43 100644 --- a/scripts/inference-providers/package.json +++ b/scripts/inference-providers/package.json @@ -14,8 +14,8 @@ "author": "", "license": "ISC", "dependencies": { - "@huggingface/inference": "^4.0.4", - "@huggingface/tasks": "^0.19.15", + "@huggingface/inference": "^4.2.0", + "@huggingface/tasks": "^0.19.19", "@types/node": "^22.5.0", "handlebars": "^4.7.8", "node": "^20.17.0", diff --git a/scripts/inference-providers/pnpm-lock.yaml b/scripts/inference-providers/pnpm-lock.yaml index 34a24e34c..4c2ac9a62 100644 --- a/scripts/inference-providers/pnpm-lock.yaml +++ b/scripts/inference-providers/pnpm-lock.yaml @@ -9,11 +9,11 @@ importers: .: dependencies: '@huggingface/inference': - specifier: ^4.0.4 - version: 4.0.4 + specifier: ^4.2.0 + version: 4.2.0 '@huggingface/tasks': - specifier: ^0.19.15 - version: 0.19.15 + specifier: ^0.19.19 + version: 0.19.19 '@types/node': specifier: ^22.5.0 version: 22.5.0 @@ -189,16 +189,16 @@ packages: cpu: [x64] os: [win32] - '@huggingface/inference@4.0.4': - resolution: {integrity: sha512-Pz0l435mmlQNNOvIBqoDdG+ckdg9WdERFa8AiBnFX7ejY9DWxU31wr0sY8v9l+bsrmk6rZ3BqIXOlf5wjJf8Uw==} + '@huggingface/inference@4.2.0': + resolution: {integrity: sha512-mmt/wCojZ7OUYFsWAqz+xmJCe4RiU6Vs6q54tPxKl55jquLwBKgwd2LwGa8TxF7KeaGvBN+jk/OOLKwcce0vzg==} engines: {node: '>=18'} '@huggingface/jinja@0.5.0': resolution: {integrity: sha512-Ptc03/jGRiYRoi0bUYKZ14MkDslsBRT24oxmsvUlfYrvQMldrxCevhPnT+hfX8awKTT8/f/0ZBBWldoeAcMHdQ==} engines: {node: '>=18'} - '@huggingface/tasks@0.19.15': - resolution: {integrity: sha512-L4wB/iolKtsErke5yniXXNsGrSuaFmyREpcD4hL/wJox2UKtSEV5gE5gNrlvNaRLBOY41yN7/QmBF4y9byTM6Q==} + '@huggingface/tasks@0.19.19': + resolution: {integrity: sha512-+hXA5pk8gnaWc0BK/s5e68rwsucjPJjdoSBx9MCkRwVgVS0JwXCF5EbaSBSDt4CUDsq1uj33RbdQt/K9l2mJLg==} '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} @@ -415,14 +415,14 @@ snapshots: '@esbuild/win32-x64@0.23.1': optional: true - '@huggingface/inference@4.0.4': + '@huggingface/inference@4.2.0': dependencies: '@huggingface/jinja': 0.5.0 - '@huggingface/tasks': 0.19.15 + '@huggingface/tasks': 0.19.19 '@huggingface/jinja@0.5.0': {} - '@huggingface/tasks@0.19.15': {} + '@huggingface/tasks@0.19.19': {} '@jridgewell/resolve-uri@3.1.2': {} From efec3a4a8b2c281b2de2d6e1c83b230bcef6b0dd Mon Sep 17 00:00:00 2001 From: Celina Hanouti Date: Tue, 1 Jul 2025 11:12:18 +0200 Subject: [PATCH 10/11] don't consider a task if all models are staging --- docs/inference-providers/providers/replicate.md | 10 ---------- .../tasks/automatic-speech-recognition.md | 2 +- scripts/inference-providers/scripts/generate.ts | 15 ++++++++------- 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/docs/inference-providers/providers/replicate.md b/docs/inference-providers/providers/replicate.md index e58acba40..6d0cd72cd 100644 --- a/docs/inference-providers/providers/replicate.md +++ b/docs/inference-providers/providers/replicate.md @@ -38,16 +38,6 @@ Replicate is building tools so all software engineers can use AI as if it were n ## Supported tasks -### Automatic Speech Recognition - -Find out more about Automatic Speech Recognition [here](../tasks/automatic_speech_recognition). - - - - ### Image To Image Find out more about Image To Image [here](../tasks/image_to_image). diff --git a/docs/inference-providers/tasks/automatic-speech-recognition.md b/docs/inference-providers/tasks/automatic-speech-recognition.md index f3567aa27..18c5acbf9 100644 --- a/docs/inference-providers/tasks/automatic-speech-recognition.md +++ b/docs/inference-providers/tasks/automatic-speech-recognition.md @@ -38,7 +38,7 @@ Explore all available models and find the one that suits you best [here](https:/ diff --git a/scripts/inference-providers/scripts/generate.ts b/scripts/inference-providers/scripts/generate.ts index 9ae721b6b..5da8d5933 100644 --- a/scripts/inference-providers/scripts/generate.ts +++ b/scripts/inference-providers/scripts/generate.ts @@ -120,14 +120,15 @@ await Promise.all( >; for (const [task, models] of Object.entries(mapping)) { - for (const [modelId, modelMapping] of Object.entries(models)) { - if (modelMapping.status == "live") { - if (!PER_TASK_SUPPORTED_PROVIDERS[task]) { - PER_TASK_SUPPORTED_PROVIDERS[task] = []; - } - PER_TASK_SUPPORTED_PROVIDERS[task].push(provider); - break; + const hasLiveModel = Object.values(models).some( + (model) => model.status === "live", + ); + + if (hasLiveModel) { + if (!PER_TASK_SUPPORTED_PROVIDERS[task]) { + PER_TASK_SUPPORTED_PROVIDERS[task] = []; } + PER_TASK_SUPPORTED_PROVIDERS[task].push(provider); } } }), From b1deb6b1ce497ba50e0c1e4154e1ea3a054f870a Mon Sep 17 00:00:00 2001 From: Celina Hanouti Date: Tue, 1 Jul 2025 11:15:22 +0200 Subject: [PATCH 11/11] fix --- docs/inference-providers/tasks/chat-completion.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/inference-providers/tasks/chat-completion.md b/docs/inference-providers/tasks/chat-completion.md index f0d2b43ab..46d5338e0 100644 --- a/docs/inference-providers/tasks/chat-completion.md +++ b/docs/inference-providers/tasks/chat-completion.md @@ -73,11 +73,7 @@ conversational /> >>>>>> 4a5cf0c61d6d705bccfde023f8ad1c1c91f06e03 conversational />