Skip to content

Commit

Permalink
Update bnb.md with example for OpenAI (#11718)
Browse files Browse the repository at this point in the history
  • Loading branch information
bet0x authored Jan 4, 2025
1 parent 9c93636 commit d1d4939
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 d1d4939

Please sign in to comment.