Llama is a family of generative language models from Meta. It can serve business prompts through an OpenAI-compatible API or run locally when privacy, control, or cost matters. section 1.3.3 section 1.3.5
Choose an access pattern according to the practical constraint:
- Use an API-compatible provider by changing the client’s base URL, authentication token, and model name; much of the surrounding Python code can remain unchanged. section 1.3.3
- Run Llama 2 locally with a downloaded GGUF model, LangChain, and llama-cpp-python. section 1.3.5
- Use quantization to reduce RAM and computation, accepting some loss of accuracy for easier execution. section 1.3.5
Directing an API client to Llama
A Python client can point at a Llama-compatible service by supplying its provider token and base URL, then selecting a valid variant such as llama-13b-chat. A local workflow instead installs LangChain and llama-cpp-python, loads a GGUF file, sends a prompt, and prints the response.




