We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f59c3e commit bc3c56dCopy full SHA for bc3c56d
1 file changed
llama_cpp/llama_chat_format.py
@@ -4019,8 +4019,7 @@ def gguf_function_calling(
4019
4020
function_calling_template = None
4021
if hasattr(llama, 'model_path'):
4022
- from llama_cpp.llama import Llama
4023
- metadata = Llama.metadata
+ metadata = llama.metadata
4024
if metadata and "tokenizer.chat_template" in metadata:
4025
function_calling_template = metadata["tokenizer.chat_template"]
4026
0 commit comments