mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #22] error with ffn_down #14
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Eutenacity on GitHub (Aug 4, 2024).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/22
I try to load ffn_weight and run it with cpuinfer_ext.linear. ffn_up and ffn_gate are good. But ffn_down result in nan. What is wrong
code is below
@chenht2022 commented on GitHub (Aug 5, 2024):
I ran your script and got the following results, which seem to be fine.
Maybe you should check if your gguf file is intact and if the ffn_down weights are indeed q4_k quantized.
If you confirm that these two aspects are fine, please provide more information (e.g., use
lscputo show your CPU instruction set) to help us fix it.@Eutenacity commented on GitHub (Aug 5, 2024):
Many thanks for your quick response. I found the reason. The gguf I download has a different ggml_type down ffn compared to up ffn.
probability tensor contains eitherinf,nanor element < 0failed. #327