From 2bab91106a32ca1b1bdc2ced76ab9c6984c2c862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20Mu=C5=A1tar?= Date: Thu, 17 Oct 2024 10:53:19 +0200 Subject: [PATCH] Add playground to chat-completion doc (#1445) * Add playground to chat-completion doc * Update chat-completion.md * Update index.md * Update chat-completion.md * Update chat-completion.md * Update index.md * Update chat-completion.md * Update index.md --- docs/api-inference/index.md | 10 +++++++++- docs/api-inference/tasks/chat-completion.md | 15 +++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/docs/api-inference/index.md b/docs/api-inference/index.md index 689bdf63b..24355440d 100644 --- a/docs/api-inference/index.md +++ b/docs/api-inference/index.md @@ -46,8 +46,16 @@ The documentation is organized into two sections: --- +## Inference Playground + +If you want to get started quickly with [Chat Completion models](https://huggingface.co/models?inference=warm&other=conversational&sort=trending) use the Inference Playground to quickly text and compare models against your prompts. + + + +--- + ## Looking for custom support from the Hugging Face team? - HuggingFace Expert Acceleration Program + HuggingFace Expert Acceleration Program
diff --git a/docs/api-inference/tasks/chat-completion.md b/docs/api-inference/tasks/chat-completion.md index 7acba716b..636754a37 100644 --- a/docs/api-inference/tasks/chat-completion.md +++ b/docs/api-inference/tasks/chat-completion.md @@ -32,6 +32,21 @@ This is a subtask of [`text-generation`](https://huggingface.co/docs/api-inferen - [meta-llama/Llama-3.2-11B-Vision-Instruct](https://huggingface.co/meta-llama/Llama-3.2-11B-Vision-Instruct): Powerful vision language model with great visual understanding and reasoning capabilities. - [microsoft/Phi-3.5-vision-instruct](https://huggingface.co/microsoft/Phi-3.5-vision-instruct): Strong image-text-to-text model. +### API Playground + +For Chat Completion models, we provide an interactive UI Playground for easier testing: + +- Quickly iterate on your prompts from the UI. +- Set and override system, assistant and user messages. +- Browse and select models currently available on the Inference API. +- Compare the output of two models side-by-side. +- Adjust requests parameters from the UI. +- Easily switch between UI view and code snippets. + + + +Access the Inference UI Playground and start exploring: [https://huggingface.co/playground](https://huggingface.co/playground) + ### Using the API The API supports: