Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ A lightweight vLLM implementation built from scratch.
pip install git+https://github.com/GeeeekExplorer/nano-vllm.git
```

## Attention Backend

Nano-vLLM selects the attention backend automatically: it uses FlashAttention
when `flash-attn` is available, otherwise it falls back to PyTorch SDPA. You can
force a backend with the `NANOVLLM_ATTENTION_BACKEND` environment variable:

```bash
NANOVLLM_ATTENTION_BACKEND=sdpa python example.py
```

## Model Download

To download the model weights manually, use the following command:
Expand Down
Loading