Skip to content

(Suggestion) Add EOS after each message turn in your future models #2

@ngxson

Description

@ngxson

Feature request / 功能建议

Hello, thanks for releasing this model.

I'm Son from Hugging Face and I'm one of the contributor of llama.cpp

I would like to contact you regarding the subject of chat template

Motivation / 动机

Most of your models does not have EOS or EOT (end-of-turn) token after each message turn, for example:

<|system|>\nYou are a helpful assistant<|user|>\nHello<|assistant|>\nHi there<|user|>"

While this still works, most models nowadays add EOS after each turn. For example, here I add <|end|>:

<|system|>\nYou are a helpful assistant<|end|><|user|>\nHello<|end|><|assistant|>\nHi there<|end|>"

This may seem a small change, but can simplify a lot for downstream implementations because we don't need to handle a special case for GLM models.

Your contribution / 您的贡献

This is outside of my reach for making contribution, but I would love to discuss more on this subject. Thank you.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions