Pull down to go back
Now you can block specific phrases from AI responses with this llama.cpp script

Now you can block specific phrases from AI responses with this llama.cpp script

用這個腳本禁止 llama.cpp 輸出特定詞句

Someone just released a handy script that lets you filter out unwanted phrases when running AI models locally with llama.cpp. If you've ever wanted to stop your local AI from saying certain things—whether it's annoying patterns, harmful content, or just stuff you don't want—this tool does exactly that. Head over to the GitHub repo (BigStationW/llama-cpp-phrase-ban) for setup instructions. It's a pretty clever way to customize how your AI behaves without retraining the whole model.