---
title: "Inference for PROs"
description: "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)."
url: "https://swe.quest/articles/inference-for-pros-8849074774f039ec"
canonical: "https://huggingface.co/blog/inference-pro"
source: "Hugging Face"
published: "2023-09-22"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 10
tags: ["inference","llms","api-design","python"]
---

# Inference for PROs

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2023-09-22, 10 min read, Announcement. Original: [https://huggingface.co/blog/inference-pro](https://huggingface.co/blog/inference-pro)

## Summary

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). Usage is shown via curl, the huggingface\_hub InferenceClient and the OpenAI-compatible Messages API, including Llama 2 chat templates and Code Llama's \<PRE\>/\<SUF\>/\<MID\> infilling format. Generation parameters (do\_sample, temperature, top\_k, top\_p, repetition\_penalty, max\_new\_tokens, stop\_sequences, SDXL guidance and steps) are explained, along with disabling response caching via the x-use-cache: 0 header and token streaming.

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)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- HTTP APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))
- Python basics ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))
- LLM text generation ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Hugging Face Inference API, text-generation-inference, huggingface\_hub, Llama 3, Code Llama, Mixtral 8x7B, Stable Diffusion XL, Messages API

## Related posts

- [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 LLMs with Hugging Face Inference Endpoints](https://swe.quest/articles/deploy-llms-with-hugging-face-inference-endpoints-3facefc244b0efa0.md): Hugging Face · 2023-07-04 · Medium · 6 min read · Inference & serving, LLMs, Python, JavaScript
  Falcon 40B Instruct can be deployed to Hugging Face Inference Endpoints through the web UI by choosing a repository, cloud, region and instance.
- [Hugging Face Text Generation Inference available for AWS Inferentia2](https://swe.quest/articles/hugging-face-text-generation-inference-available-for-aws-inferentia2-4404accc08bd48f1.md): Hugging Face · 2024-02-01 · Medium · 7 min read · Inference & serving, LLMs, Cloud platforms, Python
  Text Generation Inference (TGI) is now generally available on AWS Inferentia2 through Amazon SageMaker, offering an alternative to GPUs for serving open LLMs such as Llama and Mistral.
- [Make your llama generation time fly with AWS Inferentia2](https://swe.quest/articles/make-your-llama-generation-time-fly-with-aws-inferentia2-bc8b5e1981a590c0.md): Hugging Face · 2023-11-07 · Medium · 7 min read · Inference & serving, LLMs, Hardware, Cloud platforms, Performance engineering
  optimum-neuron can now compile and export Llama 2 models for text generation on AWS Inferentia2, using static input shapes (batch size, 2048 sequence length that also bounds the KV cache) and a configurable core count and fp16 precision.
- [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.

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)
