Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
c5eae25b
Commit
c5eae25b
authored
Jan 24, 2025
by
xuxzh1
🎱
Browse files
Replace all the interfaces of Triton with the implementation of ExLlamaV2
parent
bb9e670a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
server/text_generation_server/layers/gptq/__init__.py
server/text_generation_server/layers/gptq/__init__.py
+4
-4
No files found.
server/text_generation_server/layers/gptq/__init__.py
View file @
c5eae25b
...
...
@@ -171,7 +171,7 @@ class GPTQWeightsLoader(WeightsLoader):
g_idx
=
g_idx
,
bits
=
self
.
bits
,
groupsize
=
self
.
groupsize
,
use_exllama
=
use_exllama
,
use_exllama
=
True
,
)
def
get_weights_col_packed
(
...
...
@@ -227,7 +227,7 @@ class GPTQWeightsLoader(WeightsLoader):
bits
=
self
.
bits
,
groupsize
=
self
.
groupsize
,
use_awq_kernel
=
self
.
quantize
==
"awq"
,
use_exllama
=
Fals
e
,
use_exllama
=
Tru
e
,
)
def
get_multi_weights_col
(
self
,
weights
:
Weights
,
prefixes
:
List
[
str
],
dim
:
int
):
...
...
@@ -294,7 +294,7 @@ class GPTQWeightsLoader(WeightsLoader):
bits
=
self
.
bits
,
groupsize
=
self
.
groupsize
,
use_awq_kernel
=
self
.
quantize
==
"awq"
,
use_exllama
=
use_exllama
,
use_exllama
=
True
,
)
def
get_weights_row
(
self
,
weights
:
Weights
,
prefix
:
str
):
...
...
@@ -394,7 +394,7 @@ class GPTQWeightsLoader(WeightsLoader):
bits
=
self
.
bits
,
groupsize
=
self
.
groupsize
,
use_awq_kernel
=
self
.
quantize
==
"awq"
,
use_exllama
=
use_exllama
,
use_exllama
=
True
,
)
def
_get_gptq_params
(
self
,
weights
:
Weights
):
...
...
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