---
title: "Deploy LLMs with Hugging Face Inference Endpoints"
description: "Falcon 40B Instruct can be deployed to Hugging Face Inference Endpoints through the web UI by choosing a repository, cloud, region and instance."
url: "https://swe.quest/articles/deploy-llms-with-hugging-face-inference-endpoints-3facefc244b0efa0"
canonical: "https://huggingface.co/blog/inference-endpoints-llm"
source: "Hugging Face"
published: "2023-07-04"
difficulty: "medium"
kind: "How-to"
reading_minutes: 6
tags: ["inference","llms","python","javascript"]
---

# Deploy LLMs with Hugging Face Inference Endpoints

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2023-07-04, 6 min read, How-to. Original: [https://huggingface.co/blog/inference-endpoints-llm](https://huggingface.co/blog/inference-endpoints-llm)

## Summary

Falcon 40B Instruct can be deployed to Hugging Face Inference Endpoints through the web UI by choosing a repository, cloud, region and instance. For best performance the suggested 4x T4 instance should be switched to a single A100. Once the endpoint is live it can be called with cURL, and generation is controlled through parameters such as temperature, max\_new\_tokens (max 512), top\_k/top\_p, repetition\_penalty and stop sequences. Tokens can be streamed to clients using huggingface\_hub's InferenceClient in Python or HfInferenceEndpoint from @huggingface/inference in JavaScript, with code that skips special tokens and stops on stop sequences.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Python](https://swe.quest/tags/python.md) (Languages)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- HTTP APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))
- LLM sampling parameters ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Hugging Face Inference Endpoints, Falcon 40B, Text Generation Inference, huggingface\_hub, huggingface.js

## Related posts

- [Inference for PROs](https://swe.quest/articles/inference-for-pros-8849074774f039ec.md): Hugging Face · 2023-09-22 · Medium · 10 min read · Inference & serving, LLMs, API design, Python
  Hugging Face PRO subscribers get curated, rate-limit-boosted HTTP inference endpoints served by text-generation-inference for models such as Llama 3, Mixtral 8x7B, Zephyr, Code Llama, Stable Diffusion XL and Bark, intended for prototyping rather than heavy production (Inference Endpoints is recommended for that).
- [Run a vLLM Server on HF Jobs in One Command](https://swe.quest/articles/run-a-vllm-server-on-hf-jobs-in-one-command-72dfec0fae623561.md): Hugging Face · 2026-06-26 · Medium · 7 min read · Inference & serving, LLMs, Cloud platforms
  A single \`hf jobs run\` command using the official vllm/vllm-openai image, a GPU \`--flavor\` and \`--expose 8000\` launches a private, OpenAI-compatible LLM endpoint on Hugging Face infrastructure, billed per second and gated by HF token auth through the jobs proxy.
- [From OpenAI to Open LLMs with Messages API on Hugging Face](https://swe.quest/articles/from-openai-to-open-llms-with-messages-api-on-hugging-face-98058f09a7d2acc1.md): Hugging Face · 2024-02-08 · Medium · 7 min read · Inference & serving, LLMs, API design, RAG & retrieval
  Text Generation Inference 1.4.0 adds a Messages API compatible with OpenAI's Chat Completion API, so open LLMs on Inference Endpoints can be called from existing OpenAI client code by changing the base URL and token.
- [Deploy Embedding Models with Hugging Face Inference Endpoints](https://swe.quest/articles/deploy-embedding-models-with-hugging-face-inference-endpoints-e85e7e272a9c97bc.md): Hugging Face · 2023-10-24 · Medium · 5 min read · Inference & serving, RAG & retrieval, ML platforms
  Open-source embedding models such as BAAI/bge-base-en-v1.5 can be deployed on Hugging Face Inference Endpoints using Text Embeddings Inference (TEI), which offers token-based dynamic batching, Flash Attention, Candle and cuBLASLt kernels, safetensors loading, small images for fast boot, and OpenTelemetry/Prometheus support.
- [Deploy Meta Llama 3.1 405B on Google Cloud Vertex AI](https://swe.quest/articles/deploy-meta-llama-3-1-405b-on-google-cloud-vertex-ai-013efe3f83445849.md): Hugging Face · 2024-08-19 · Medium · 12 min read · Inference & serving, LLMs, Cloud platforms
  Meta Llama 3.1 405B Instruct in FP8 can be served on a single Google Cloud A3 node (8x H100 80GB, ~640 GB VRAM) through Vertex AI, using Hugging Face's Text Generation Inference Deep Learning Container.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
