Getting MTP working?

#7
by Ewere - opened

Has anyone been able to get MTP working with llama.cpp?

yes. --spec-type draft-mtp --spec-draft-n-max 2
Performance however i cannot judge as with CPU offload it does not get me anywhere better than regular pass.
tested with iq3 quant

MTP works but on apple silicon, the performance deteriorates. Can't speak for other hardware.

for me, on a workstation with 512gb ram and 40gb vram , it is slower with mpt compared to without mpt.

can we load MTP head layers on VRAM?

I use -spec-type draft-mtp --spec-draft-n-max 2, but still got model has unused tensor .... ignoring in llama.cpp. Did I get something wrong?

for me MTP works with UD-Q4_K_XL but token generation is 2x slower than without MTP, tried draft-n-max values 1 and 3, llama.cpp build 9866

Yes with the model having significant cpu offloading mtp can actually make it run slower.

Sign up or log in to comment