ASIMOV Llamacpp module.
- To be determined!
- Rust 1.85+ (2024 edition) if building from source code
- You must have a running llama.cpp server with a loaded GGUF model
Installation with ASIMOV CLI
asimov module install llamacpp -vcargo install asimov-llamacpp-moduleasimov-llamacpp-prompterVia ASIMOV CLI
asimov module config llamacppVia environment variables
export ASIMOV_LLAMACPP_API_ENDPOINT="http://127.0.0.1:8080"
export ASIMOV_LLAMACPP_MODEL="TinyLlama-1.1B-Chat-v1.0"
echo "Why is the sky blue?" | asimov-llamacpp-prompter- Create a tiny grammar that only allows
ok:
# only_ok.gbnf
root ::= "ok" "\n"
- Run the prompter with the grammar:
echo "Say anything." | asimov-llamacpp-prompter -g only_ok.gbnf
# => okgit clone https://github.com/asimov-modules/asimov-llamacpp-module.git