Skip to content

feat(anima): bundle T5-XXL tokenizer, remove t5_encoder_model input#9244

Open
kappacommit wants to merge 2 commits into
invoke-ai:mainfrom
kappacommit:anima-bundled-t5-tokenizer
Open

feat(anima): bundle T5-XXL tokenizer, remove t5_encoder_model input#9244
kappacommit wants to merge 2 commits into
invoke-ai:mainfrom
kappacommit:anima-bundled-t5-tokenizer

Conversation

@kappacommit
Copy link
Copy Markdown
Contributor

Summary

Anima only needs the T5-XXL tokenizer (token IDs for the LLM Adapter embedding), not the ~9GB encoder weights. This PR stores the tokenizer itself in the repo and loads it locally. The tokenizer is Apache 2.0 license, so it is license compatible to store, and this is how both Comfy and Forge handle this as well (they both just store the tokenizer in the repo.)

Removes the t5_encoder_model input from the Anima model loader and strips all corresponding frontend state, selectors, metadata handlers, readiness checks, graph edges, i18n keys, and starter-model deps.

This saves about 9gb of space, and resolve much user confusion when they think the t5 encoder is being loaded into VRAM (it never was, but they were confused about it.)

Related Issues / Discussions

QA Instructions

  • Install Anima
  • Verify no T5 Encoder is downloaded
  • Select Anima is the canvas
  • Verify no T5 Encoder input on the UI
  • Generate an image successfully with Anima

Merge Plan

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

Anima only needs the T5-XXL tokenizer (token IDs for the LLM Adapter
embedding), not the ~9GB encoder weights. Vendor the self-contained
tokenizer.json inside the package and load it from a bundled path, so
users no longer have to download the full T5 encoder model.

Removes the t5_encoder_model input from the Anima model loader and
strips all corresponding frontend state, selectors, metadata handlers,
readiness checks, graph edges, i18n keys, and starter-model deps.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions github-actions Bot added python PRs that change python files Root invocations PRs that change invocations backend PRs that change backend files frontend PRs that change frontend files python-tests PRs that change python tests python-deps PRs that change python dependencies labels May 28, 2026
…ma path slashes

The committed openapi.json was stale (still 1.3.0 with t5_encoder_model);
regenerate the Anima loader/text-encoder sections to match the 1.4.0 source.
Also correct two Windows backslash cache-path defaults in schema.ts to the
forward slashes the Linux typegen produces, so the openapi/typegen CI checks pass.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@lstein lstein self-assigned this May 30, 2026
@lstein lstein added the 6.13.5 Library Updates label May 30, 2026
@lstein lstein moved this to 6.13.5 LIBRARY UPDATES in Invoke - Community Roadmap May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.13.5 Library Updates backend PRs that change backend files frontend PRs that change frontend files invocations PRs that change invocations python PRs that change python files python-deps PRs that change python dependencies python-tests PRs that change python tests Root

Projects

Status: 6.13.5 LIBRARY UPDATES

Development

Successfully merging this pull request may close these issues.

2 participants