abetlen / abetlen/llama-cpp-python
Issues with Llava-v1.6-34b and Llava16ChatHandler
未關閉
- 主要語言
- Python
- 星號
- 10.6k
- 分支
- 1.4k
- PR 合併指標
- PR 指標待擷取
描述
When I use _Llava16ChatHandler_ for _Llava-v1.6-34b_ (I used _Llava-v1.6-34b.Q5_K_M.gguf_) as instructed in the readme, it outputs random emojis or starts doing Q&A by itself.
I noticed that the chat template in the model metadata is:
`{% for message in messages %}{{'' + message['role'] + '\n' + message['content'] + '' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ 'assistant\n' }}{% endif %}`
It's in _chatML_ format.
So, I changed the handler to NanoLlavaChatHandler and it seems to work.
貢獻指南
評估
這個 Issue 還沒有評估資料。