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
ktransformers
Commits
29f4151e
Unverified
Commit
29f4151e
authored
Aug 22, 2024
by
molamooo
Committed by
GitHub
Aug 22, 2024
Browse files
[fix] f16 dequantize device ignored
parent
cbc47d0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ktransformers/util/custom_gguf.py
ktransformers/util/custom_gguf.py
+1
-1
No files found.
ktransformers/util/custom_gguf.py
View file @
29f4151e
...
...
@@ -681,7 +681,7 @@ def dequantize_f16_gpu(data, device):
res
=
torch
.
from_numpy
(
data
)
res_gpu
=
torch
.
empty_like
(
res
,
device
=
device
)
res_gpu
.
copy_
(
res
)
return
res
return
res
_gpu
GGML_DEQUANTIZE
=
{
"F32"
:
dequantize_f32
,
...
...
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