Overview of Hugging Face Inference services
mainThe @huggingface/inference library provides a unified TypeScript interface to interact with three types of inference services:
- Inference Providers: Streamlined, unified access to hundreds of machine learning models via serverless inference partners. This is an evolution of the previous Serverless Inference API, offering improved performance and reliability.
- Inference Endpoints: A managed service for deploying models to production on dedicated, fully managed infrastructure on a cloud provider of your choice.
- Local Endpoints: You can connect the client to local inference servers such as
llama.cpp,Ollama,vLLM,LiteLLM, orText Generation Inference (TGI).