Skip to content

LFM uses {%- generation -%} found only in newer jinja not used by transformers.js #1724

Description

@sroussey

System Info

transformers.js 4.2.0

Environment/Platform

  • Website/web-app
  • Browser extension
  • Server-side (e.g., Node.js, Deno, Bun)
  • Desktop app (e.g., Electron)
  • Other (e.g., VSCode extension)

Description

HFT chat-template workaround: transformers.js 4.2.0 bundles jinja 0.5.6,
which predates the {% generation %} template-tag strip, so a newer template
carrying {%- generation -%} markers otherwise throws
Unknown statement type: generation.

Reproduction

Using the liquidai models

please update jinja to latest and release. thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions