Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
d1d49397
Unverified
Commit
d1d49397
authored
Jan 04, 2025
by
Alberto Ferrer
Committed by
GitHub
Jan 04, 2025
Browse files
Update bnb.md with example for OpenAI (#11718)
parent
9c93636d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
docs/source/quantization/bnb.md
docs/source/quantization/bnb.md
+7
-0
No files found.
docs/source/quantization/bnb.md
View file @
d1d49397
...
@@ -37,3 +37,10 @@ model_id = "huggyllama/llama-7b"
...
@@ -37,3 +37,10 @@ model_id = "huggyllama/llama-7b"
llm
=
LLM
(
model
=
model_id
,
dtype
=
torch
.
bfloat16
,
trust_remote_code
=
True
,
\
llm
=
LLM
(
model
=
model_id
,
dtype
=
torch
.
bfloat16
,
trust_remote_code
=
True
,
\
quantization
=
"bitsandbytes"
,
load_format
=
"bitsandbytes"
)
quantization
=
"bitsandbytes"
,
load_format
=
"bitsandbytes"
)
```
```
## OpenAI Compatible Server
Append the following to your 4bit model arguments:
```
--quantization bitsandbytes --load-format bitsandbytes
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment