Views
No views yet
minimax Branch of llama.cppminimax branch will not work with the standard llama.cpp. Use it only for testing GGUF models with experimental features.1wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
2sudo dpkg -i cuda-keyring_1.1-1_all.deb
3sudo apt-get update
4sudo apt-get -y install cuda-toolkit-12-81export CUDA_HOME=/usr/local/cuda
2export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
3export PATH=$PATH:$CUDA_HOME/binsudo apt install cmake1git clone --branch minimax --single-branch https://github.com/cturan/llama.cpp.git
2cd llama.cpp1mkdir build
2cd build
3cmake .. -DLLAMA_CUDA=ON -DLLAMA_CURL=OFF
4cmake --build . --config Release --parallel $(nproc --all)llama.cpp/build/bin./llama-server -m minimax-m2-Q4_K.gguf -ngl 999 --cpu-moe --jinja -fa on -c 32000 --reasoning-format auto--cpu-moe enables CPU offloading for mixture-of-experts layers.--jinja activates the Jinja templating engine.-c (context length) and -ngl (GPU layers) according to your hardware.minimax-m2-Q4_K.gguf) is available in the working directory.llama.cpp is ready to use.