make-llm-files/Makefile
Frederico @ VilaRosa02 5a24d4946d BUG FIX:
2025-08-26 10:14:35 +00:00

18 lines
565 B
Makefile

LLM_BIN=~/llama.cpp/build/bin/llama-cli
LLM_MODEL=~/llama.cpp/models/llama-3.1-8b/Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf
LLM_FLAGS=--no-display-prompt -no-cnv --simple-io
SHELL=/bin/bash -x
agent_message.txt: llm_chat.php consolidated_system_message.txt user_message.txt
php $^ | $(LLM_BIN) -m $(LLM_MODEL) -f /dev/stdin $(LLM_FLAGS) $(shell php settings_to_flags.php settings.json) 2> /dev/null | sed -e 's/\[end of text\]//' | tee $@
consolidated_system_message.txt: $(wildcard *.sys)
cat $^ > $@
clean:
rm *.sys *.txt || echo "No files to be removed."