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
8a7749b8
Unverified
Commit
8a7749b8
authored
Aug 12, 2024
by
drbh
Committed by
GitHub
Aug 12, 2024
Browse files
fix: include create_exllama_buffers and set_device for exllama (#2407)
parent
9a7830bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
server/text_generation_server/layers/gptq/__init__.py
server/text_generation_server/layers/gptq/__init__.py
+4
-0
No files found.
server/text_generation_server/layers/gptq/__init__.py
View file @
8a7749b8
...
...
@@ -422,12 +422,16 @@ elif CAN_EXLLAMA:
if
V2
:
from
text_generation_server.layers.gptq.exllamav2
import
(
QuantLinear
as
ExllamaQuantLinear
,
# noqa: F401
create_exllama_buffers
,
# noqa: F401
set_device
,
# noqa: F401
)
HAS_EXLLAMA
=
"2"
else
:
from
text_generation_server.layers.gptq.exllama
import
(
Ex4bitLinear
as
ExllamaQuantLinear
,
# noqa: F401
create_exllama_buffers
,
# noqa: F401
set_device
,
# noqa: F401
)
HAS_EXLLAMA
=
"1"
...
...
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