Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

chat with mistral nemo return empty message #1338

@nguyenhoangthuan99

Description

@nguyenhoangthuan99

Problem
When import any mistral-nemo model, chat always return empty message from assistant
Image

The root cause is the prompt template is generated improperly.
The current generated prompt template is

[INST] {system_message}\n{prompt} [/INST]

The correct prompt template should be

[INST] {system_message}\n[INST] {prompt} [/INST]

Solution

Update the render chat template logic to handle this case

After update chat template renderer, can chat with Mistral nemo successfully

Image

Related issue janhq/models#19

Metadata

Metadata

Labels

type: bugSomething isn't working

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions