Follow the instruction in: https://github.com/ggml-org/llama.cpp
llama-server --model <model_name> --port 3415 --api_key token-abc123
Add --chat-template gemma if you run gemma
pip install -r requirements.txt
OPENAI_API_KEY=your_api_key
BASE_URL=your_openai_base_url
MODEL=your_model_name
python app.pycurl -X 'POST' \
'http://127.0.0.1:8000/chat/completions' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '[
{
"role": "user",
"content": "hello"
}
]'