This application provides a user interface to interact with various large language models, leveraging the @huggingface/inference library. It allows you to easily test and compare models hosted on Hugging Face, connect to different third-party Inference Providers, and even configure your own custom OpenAI-compatible endpoints.
TL;DR: After cloning, run pnpm i && pnpm run dev --open
Before you begin, ensure you have the following installed:
npm install -g pnpm.read permissions from hf.co/settings/tokens.Follow these steps to get the Inference Playground running on your local machine:
Clone the Repository:
git clone https://github.com/huggingface/inference-playground.git
cd inference-playground
Install Dependencies:
pnpm install
Start the Development Server:
pnpm run dev
Access the Playground:
http://localhost:5173 (or the port indicated in your terminal).For Team and Enterprise Hugging Face Hub organizations, you can centralize billing for all users by specifying an organization to bill usage to. This feature allows:
X-HF-Bill-To header in API requests when an organization is specifiedFor more information about organization billing, see the Hugging Face documentation.
We hope you find the Inference Playground useful for exploring and experimenting with language models!
This application provides a user interface to interact with various large language models, leveraging the @huggingface/inference library. It allows you to easily test and compare models hosted on Hugging Face, connect to different third-party Inference Providers, and even configure your own custom OpenAI-compatible endpoints.
TL;DR: After cloning, run pnpm i && pnpm run dev --open
Before you begin, ensure you have the following installed:
npm install -g pnpm.read permissions from hf.co/settings/tokens.Follow these steps to get the Inference Playground running on your local machine:
Clone the Repository:
git clone https://github.com/huggingface/inference-playground.git
cd inference-playground
Install Dependencies:
pnpm install
Start the Development Server:
pnpm run dev
Access the Playground:
http://localhost:5173 (or the port indicated in your terminal).For Team and Enterprise Hugging Face Hub organizations, you can centralize billing for all users by specifying an organization to bill usage to. This feature allows:
X-HF-Bill-To header in API requests when an organization is specifiedFor more information about organization billing, see the Hugging Face documentation.
We hope you find the Inference Playground useful for exploring and experimenting with language models!