Skip to content

Use chat template from chat_template.jinja #204

@DePasqualeOrg

Description

@DePasqualeOrg

It looks like there was a recent change in transformers, and the chat template will now be stored in chat_template.jinja, so we should prefer the value from that file if present, and otherwise fall back to the value in tokenizer_config.json.

This came to light in this discussion: https://huggingface.co/mlx-community/DeepSeek-R1-0528-Qwen3-8B-4bit/discussions/1

I haven't had time to dig into this yet, but wanted to flag it here for now.

Metadata

Metadata

Assignees

No one assigned

    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