--n-gpu-layers or -ngl

#12
by owao - opened

Beware guys, I just noticed we need to add one more layer. not 65 but 66 for those loading all in VRAM

can you share why is that?

wow @ydmhmhm I just notice I said complete shit! Was clearly posted to quickly, I think it came from me messing up with another qwen model which had 65 layers. Honestly I really don't know what I did to come to this conclusion. I hope it didn't mess up too much your brain...
Closing this non sense thread!

owao changed discussion status to closed

@ydmhmhm actually I found the cause of the confusion! When the MTP head is directly in the GGUF, llama-server shows 66. If loaded separately with --model-draft then it shows 65. But still when MTP head is inside the model GGUF, adding +1 to -nglis required to put everything in VRAM!
Of course for people just setting something like -ngl 999, this is not relevant, but for me it was cause I like to run my commands with the exact max -ngl value (when I want everything in VRAM) just to remind me the number of layers! So I used to set it to 65 before MTP-included GGUFs...

So I'm reopening to share the tip, just in case, because it could actually be confusing cause MTP speeds up generation but having 1 layer less is worst, so ppl might think "MTP is not really better..."!

owao changed discussion status to open

Thanks @owao for the tip, yeah i usually set -ngl to either 99 or -1. But good to know the extra ngl is for the MTP head

Sign up or log in to comment