Working with Llama 3
Imtihan Ahmed
Machine Learning Engineer

from llama_cpp import Llama
llm = Llama(model_path = "path/to/model.gguf")

$$
temperature, top_k, top_p parameters
message_list = [{"role": "system", "content": system_message},
{"role": "user", "content": user_message}]

stop words
$$
response_format = {"type": "json_object"}

Conversation class.create_completion() methodWorking with Llama 3