mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #860] why not use KExpertsTorch device=cpu for KExpertsCPU, but use c++ to compute? #621
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#621
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 @dragen1860 on GitHub (Mar 11, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/860
Dear all:
since pytorch can also compute with device=cpu for function
KExpertsTorch, why the author use C++ to implementKExpertsCPUfunction? thanks.@ovowei commented on GitHub (Mar 11, 2025):
Our implementation is based on llamafile, which provides better performance compared to Torch CPU computation. I don't remember the exact benchmark results, but you can test it yourself using the benchmarks available in the following directory:
bench