Metadata-Version: 2.4
Name: hf-vllm-recipe
Version: 0.0.1
Summary: A Hugging Face CLI extension to generate vLLM serve commands.
Author-email: Alvaro Bartolome <alvarobartt@gmail.com>
License-Expression: MIT
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx2<3,>=2.12.0
Provides-Extra: hf-mem
Requires-Dist: hf-mem<2,>=1.1.1; extra == "hf-mem"
Dynamic: license-file

# `hf-vllm-recipe`

`hf-vllm-recipe` is a Hugging Face CLI extension that generates a baseline `vllm serve` command for a Hub model or local checkpoint.

- Read context length and check support against vLLM `0.34.0` or `--version`
- Detect custom code, chat parsers and native checkpoint formats
- Estimate memory with [hf-mem](https://github.com/alvarobartt/hf-mem) using `--gpu-memory` and the optional `hf-mem` extra
- Python 3.12+ and `httpx2`

## Installation

```bash
hf extensions install alvarobartt/hf-vllm-recipe
```

## Usage

Run with `uvx`, or use `hf vllm-recipe MODEL` after installing the extension.

```console
$ uvx hf-vllm-recipe google/gemma-4-E2B-it
vllm serve google/gemma-4-E2B-it \
  --max-model-len 131072 \
  --revision 4adf15748de9e1a0097b6274cee9c15836c41c37 \
  --enable-auto-tool-choice \
  --tool-call-parser gemma4 \
  --reasoning-parser gemma4
```

## Agents

Coding agents can follow the [`hf-vllm-recipe` skill](skills/hf-vllm-recipe/SKILL.md) to generate serving commands.
