Kimi with Colibri, environment variables, from newbie to newbie #912
Replies: 2 comments
|
note to myself. building from main tree, Cloning repo: running: |
|
note to myself. Better to use dev branch: Cloning repo: This way I can get web page open and Kimi works. I just bought new computer, need to optimize further. |
Uh oh!
There was an error while loading. Please reload this page.
This is not instruction, it is more like "this-works-for-me".
I got personally quite frustrated what parameters to use at compile time, what parameters to run. At first I thought I could use colibri + CUDA + Kimi, but that did not seem to work and some friendly guys here instructed me to use Vulkan instead.
I can still see, there is mentions in CUDA in Kimi_k3.c.
So with these parameters I get about 20-55% GPU usage (VRAM usage still about 4500 MiB), but at least it works. I baked all in, and I still can't understand why the "serve" doesn't work. I got it working already at somepoint, but now it doesn't work again.
Basically I just bake all in, since I don't have any clue what is the compiler directive ifdef and what is environment variable for running binary. Help me out, if you know better.
"This works for me"
Cloning repo:
git clone https://github.com/JustVugg/colibri
Switching to development branch
cd colibri
git switch dev
git branch --show-current #to verify
patching with thread-tuning (Thanks to Streaml1ne J. Moose)
colibri-thread-tuning.patch
patch -p1 <colibri-thread-tuning.patch
Compiling Colibri
cd c
K3_VK=1 VK=1 CUDA=1 K3_CUDA=1 COLI_CUDA=1 ./setup.sh
Compiling Kimi-k3
make -C . CUDA=1 K3_CUDA=1 COLI_CUDA=1 kimi_k3
Running Kimi with Colibri
VK=1 K3_VK=1 CUDA=1 K3_CUDA=1 COLI_CUDA=1 COLI_TEMP=0.65 NUCLEUS=0.9 K3_THINK=0 OMP_NUM_THREADS=5 K3_MAXT=16384 K3_VK_GB=11 K3_VK_UP=10 K3_EXPERT_GB=10 c/coli chat --model /kimi --ram 80 --ngen 10000 #try 237
Own notes/disclaimer:
This is not instruction, it is more like "this-works-for-me".
All reactions