mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #1490] is this project dead? #997
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#997
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 @devops724 on GitHub (Aug 31, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1490
Hi , i long time awating for update to new cuda driver support, but last commit is around 2 months ago, is there any alternative allow me run on system with qwen 235B on 16G VRAM and 512G RAM in latest debian 13, cuda and nvidia driver?
@kirnat commented on GitHub (Sep 1, 2025):
You can try ik_llama.cpp
@devops724 commented on GitHub (Sep 5, 2025):
i can't find a way to compile this using cuda 12.8 in linux too,
rtx 50 series require minimum cuda 12.8
@Gadflyii commented on GitHub (Sep 5, 2025):
which does not use AMX in CPU+GPU hybrid unless something changed in the past few weeks. They are still using the upstream engine from lllama.cpp which is hard coded to use AVX512 when a GPU is present and will only use AMX in CPU only operations.
@Gadflyii commented on GitHub (Sep 5, 2025):
I had no issues with Ubuntu 24.04 LTS, Cuda 12.8, and driver open 575-server
@kirnat commented on GitHub (Sep 5, 2025):
True, ik doesn't have any specific AMX optimization, but going by the benchmark results from this repo (twhich may be outdated) I don't really see it outperforming ik in neither prefill nor generation. I wish I could be proven wrong since I could personally benefit from it.
@ikawrakow commented on GitHub (Sep 10, 2025):
ik_llama does not use the "upstream inference engine". If it did, what would be the point of it? Although it does not use AMX-specific optimisations, it is still significantly faster than the llama.cpp and KTransformers AMX implementations, at least as far as I can tell.
@Gadflyii commented on GitHub (Sep 11, 2025):
Any plans to implement AMX then?
I am a big fan of IK_llama.cpp; but have not ran it in a long time.
I could try to do a run of both.
@Gadflyii commented on GitHub (Sep 11, 2025):
I have a fork of llama.cpp they enables AMX in hybrid environments, grants about a 20-30% increase in the CPU inference portions of offloaded models if you want to try it.
@trilog-inc commented on GitHub (Sep 12, 2025):
I pulled the AMXInt4 working fork of Ktransformers and saw some meaningful improvements. Would love to see these be implemented in ik_llama too
https://github.com/kvcache-ai/ktransformers/issues/1492#issuecomment-3281024307
@Gadflyii commented on GitHub (Sep 13, 2025):
If you are running a hybrid CPU/GPU setup, try my llama.cpp fork, it works
with amx int8/bf16 (I don’t have a 6th gen to try Int4).
https://github.com/Gadflyii/llama.cpp
Build as usual with all the AMX flags, and run llama-bench/cli/server with
“—amx” to enable amx in a hybrid.
Should see 30-40% uplift in the CPU offloaded layers / experts
On Fri, Sep 12, 2025 at 4:18 PM Myfrienderic @.***>
wrote:
@trilog-inc commented on GitHub (Sep 13, 2025):
Hi, I tried your fork and the uplift wasn't noticeable.
prompt eval time = 1016.33 ms / 16 tokens ( 63.52 ms per token, 15.74 tokens per second)
eval time = 149323.75 ms / 1162 tokens ( 128.51 ms per token, 7.78 tokens per second)
I used the following flags, as AMX specific flags aren't documented anywhere, but some posts mentioned the GGML_NATIVE flag being enough..
cmake -B build -DGGML_NATIVE=ON -DGGML_CUDA=ON
I also used an IQ4_XL quant. Would that have affected the results?
In any case, I think we should continue this conversation on that repo. Can you enable the discussions feature?
@Gadflyii commented on GitHub (Sep 13, 2025):
Did you build with all the AMX flags? You need:
-DGGML_AMX_INT8=ON -DGGML_AMX_BF16=ON
“—AmX” is only used as a flag at run as part of the command:
Example:
“
./build/bin/llama-bench \
-m /AI/Qwen3_30B/Q4_0/Qwen3-30B-A3B-Thinking-2507-Q4_0.gguf \
-t 32 --amx -ngl 20 \
“
On Fri, Sep 12, 2025 at 10:56 PM Myfrienderic @.***>
wrote:
@Gadflyii commented on GitHub (Sep 13, 2025):
I enabled discussions, I really appreciate you helping me test it.
On Sat, Sep 13, 2025 at 1:17 AM @.***>
wrote:
@magikRUKKOLA commented on GitHub (Sep 23, 2025):
@devops724
Yes, this project is dead. The underlying fork of flalshinfer that ktransformers is using doens't work corrrectly. Even more so, if you will try to port the latest master of flashinfer to be usable with ktransformers you will hit the same issues. ktransformers is an example of a project that should be avoided at all costs. Speed is nothing if the output is a garbage.
@Gadflyii commented on GitHub (Sep 23, 2025):
What doesn’t work correctly?
I don’t think it is fair to say the project is dead, they made a major commit just last week to add support for qwen-next.
@magikRUKKOLA commented on GitHub (Sep 23, 2025):
@Gadflyii
The long context for any MoE model for sure.
[EDIT]: take a look over here: https://github.com/kvcache-ai/ktransformers/issues/1417#issuecomment-3067005362
Specifically, the ktransformers MIGHT work for 10-20k context. But if you will try to use it for longer context -- it will fail in unpredictable ways. That's the fact. The ktransformers just doesn't work, because it relies on flashinfer which has so much bugs its insane.
@trilog-inc commented on GitHub (Sep 23, 2025):
Long Context over ~80K seems to cause instabilities, but until then I have had positive experiences with this package. I am very much looking forward to the AMXInt4 backend as the improvements as an order of magnitude above everything else in terms of PP. The only problem is the novel approach which prevents devs like me to dig into the weeds of the project and keep improving.
@magikRUKKOLA commented on GitHub (Sep 23, 2025):
@Gadflyii
It doesn't matter what model this project supports. Its core functionality is unstable. And no one wants to fix it. The custom_flashinfer is a relic of the unstable flashinfer.
@magikRUKKOLA commented on GitHub (Sep 23, 2025):
@trilog-inc
You do know that even if [it] DOESN'T output a "garbage", you CAN'T know for sure if the result are valid. You know why? Because ktransformers DOESN'T support seeds. That is, EACH TIME you HAVE TO BELIEVE that the bug never occured. I can't imagine how that might feel comfortable.
@trilog-inc commented on GitHub (Sep 23, 2025):
I get it. I've followed your adventure through this package and tend to agree. Just speaking on behalf of my experience.
Edit: I run ik_llama and @Gadflyii llama.cpp AMX fork regularly because of these concerns, but I want to see ktransformers succeed aswell
@magikRUKKOLA commented on GitHub (Sep 23, 2025):
@trilog-inc
In terms of Prompt Processing (that is, the prefill?).
But how the AMX at the CPU would increase the prefill? I got your point, its always great to have some Intel Xeon QYFS for $150 from ebay. I am building the machine right now with 56C and it does support the AMX so I am interested too. But how does it compare to multiple GPUs? Isn't it easier to plug in more GPUs to increase the prefill? I am having around 120tps with ik_llama.cpp with a really heavy (6.2bpw) quant of Deepseek R1 for example with only three GPUs. Are you saying that some trick with AMX can push the prefill to 1000tps? Are you sure?
@trilog-inc commented on GitHub (Sep 23, 2025):
I can only speak on my own experience as I don't have the hardware to test their best case runs, but with a 24C W7-3455 with 512GB DDR5 (4800) and 1x 4090 and 1x3090, I get a prefill speed of >140T/s and decode of 12T/s at 800 tokens, and that decreases to about 120T/s and 10.5T/s at 30K tokens ( AMXInt4 preview in the SOSP branch).
Their published results ( https://github.com/kvcache-ai/ktransformers/blob/sosp25-ae/sosp25-ae/Figure11-prefill/full_run/reference_figure11.pdf ) show them reaching ~400+T/S.
Sure, additional GPUs can do it, but when youre dealing with these large MOE it doesn't become practical ( PSU and $$/GB of memory ). The prompt processing speed is limited by CPU memory bandwidth, so any edge on CPU bound computations yield big improvements.
Can you share your ik_llama command? Does this work for the full 128K context? I have never been able to get much more than 40T/s and I have 4 GPUs. I also can'y break much more than 10t/s decode with ik at low context.
@Gadflyii commented on GitHub (Sep 23, 2025):
I hope they fix it; this is a really cool project.
@magikRUKKOLA commented on GitHub (Sep 23, 2025):
@trilog-inc
128k IS NOT a "full context". Deepseek R1/V3 supports 160k. To handle that with decent batches you have to have about 72GB of VRAM.
The command is here: https://github.com/ikawrakow/ik_llama.cpp/discussions/477#discussioncomment-13823794
But that was some time ago. Now, with some new drivers, CUDA, some CPU and GPU tweaks I am getting slightly better results for a first 4k context. Specifically, 119.72tps in prefill and 6.73 tps in decode (6.2bpw quant).
Well, you are doing something wrong then. Let's compare.
ik_llama.cpp:
nvidia-smi:
nvidia make.sh:
The decode speed purely depends on RAM bandwidth, so the only option is to use optimal quants. Check the graphs over here: https://github.com/ikawrakow/ik_llama.cpp/discussions/715
For example, I'd been using this one: THIREUS-3.5652. So its slightly more than 256GB in size and, with Lenovo Thinkstation P620 (64C THREADRIPPER PRO, DDR4 3200, two RTX 3090) I am getting something very close to 10 tps in decode (actually, let me upgrade the software and retest). If you are using DDR5 you should get some better results then.
@magikRUKKOLA commented on GitHub (Sep 23, 2025):
@trilog-inc
The thing to keep in mind is that you can never be sure if the result[s] of the ktransformers are valid. The numbers doesn't mean anything if you can never be sure what is true or what is false.
@trilog-inc commented on GitHub (Sep 23, 2025):
@magikRUKKOLA There is alot to digest here. Thanks!
Simply using your command didn't yield any improvements so i suspect it is mostly in the quants. I will dig into all that.
Check out https://github.com/guqiong96/lktransformers There might be some additional improvements there
@johnnynunez commented on GitHub (Oct 24, 2025):
now i can run in ARM: https://github.com/kvcache-ai/ktransformers/pull/1529
@magikRUKKOLA commented on GitHub (Oct 24, 2025):
@johnnynunez
How the long context support is doing? Any LLM would output garbage after 64k ctx with probability of about 30-40%?