Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 511 Bytes

flashinfer.md

File metadata and controls

18 lines (11 loc) · 511 Bytes

Flashinfer Mode

flashinfer is a kernel library for LLM serving. It can be used in SGLang runtime to accelerate attention computation.

Install flashinfer

See https://docs.flashinfer.ai/installation.html.

Run a Server With Flashinfer Mode

Add --enable-flashinfer argument to enable flashinfer when launching a server.

Example:

python -m sglang.launch_server --model-path meta-llama/Llama-2-7b-chat-hf --port 30000 --enable-flashinfer