abetlen / abetlen/llama-cpp-python
Issues with Llava-v1.6-34b and Llava16ChatHandler
Ouverte
- Langage dominant
- Python
- Étoiles
- 10.6k
- Forks
- 1.4k
- Métriques de merge des PR
- Métriques de PR en attente
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.