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
chenpangpang
transformers
Commits
441c3e0d
Unverified
Commit
441c3e0d
authored
Nov 02, 2023
by
Marc Sun
Committed by
GitHub
Nov 02, 2023
Browse files
fix-deprecated-exllama-arg (#27243)
fix-exllama
parent
8801861d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/utils/quantization_config.py
src/transformers/utils/quantization_config.py
+1
-0
No files found.
src/transformers/utils/quantization_config.py
View file @
441c3e0d
...
...
@@ -455,6 +455,7 @@ class GPTQConfig(QuantizationConfigMixin):
"The value of `use_exllama` will be overwritten by `disable_exllama` passed in `GPTQConfig` or stored in your config file."
)
self
.
use_exllama
=
not
self
.
disable_exllama
self
.
disable_exllama
=
None
elif
self
.
disable_exllama
is
not
None
and
self
.
use_exllama
is
not
None
:
# Only happens if user explicitly passes in both arguments
raise
ValueError
(
"Cannot specify both `disable_exllama` and `use_exllama`. Please use just `use_exllama`"
)
...
...
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