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
ktransformers
Commits
1f85db3d
Unverified
Commit
1f85db3d
authored
Aug 22, 2024
by
UnicornChan
Committed by
GitHub
Aug 22, 2024
Browse files
Merge pull request #51 from molamooo/fix-f16-dequantize-device
[fix] f16 dequantize device ignored
parents
cbc47d0b
29f4151e
Changes
1
Show 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 @
1f85db3d
...
...
@@ -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