Skip to content

Commit

Permalink
Update bnb.md with example for OpenAI (vllm-project#11718)
Browse files Browse the repository at this point in the history
  • Loading branch information
bet0x authored and abmfy committed Jan 24, 2025
1 parent 71d9024 commit b0ed9b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/source/quantization/bnb.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,10 @@ model_id = "huggyllama/llama-7b"
llm = LLM(model=model_id, dtype=torch.bfloat16, trust_remote_code=True, \
quantization="bitsandbytes", load_format="bitsandbytes")
```
## OpenAI Compatible Server

Append the following to your 4bit model arguments:

```
--quantization bitsandbytes --load-format bitsandbytes
```

0 comments on commit b0ed9b4

Please sign in to comment.