Skip to content

Support 'is mapping' as required by llama3.1 Instruct #993

@mattjcly

Description

@mattjcly

Have run into an issue with huggingface/jinja and llama3.1 instruct's chat template.

This line from the chat template:

{%- if message.content is mapping or message.content is iterable %}

Results in error:

Unknown test: mapping

Have noticed this to be the case with both huggingface/jinja@0.3.0 and huggingface/jinja@0.3.1

Support for this test would be great to avoid the need to patch out this line!

Metadata

Metadata

Assignees

No one assigned

    Labels

    jinja@hugginface/jinja related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions