使用 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 参数
message_list = [{"role": "system", "content": system_message},
{"role": "user", "content": user_message}]

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

Conversation 类.create_completion() 方法使用 Llama 3