Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add T5 encoder exporting to MLIR and numerics verification with IREE #573

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

sogartar
Copy link
Contributor

@sogartar sogartar commented Nov 20, 2024

This change adds the export functionality and a test for the T5 v1.1 encoder. Small and XXL variants.
The numerical tolerance in the test is alto=1e-4 rtol=2.0e-3.
I observed relative error of 1.47e-3 on the XXL variant. This is probably OK. Definitely not outrageous.

Added parsing of GGUF arrays when loading properties. This is used to deduce the vocabulary size instead of having to provide this manually. This can potentially be used also to load the tokenizer from GGUF or IRPA.

@sogartar
Copy link
Contributor Author

This PR is on top of #550 and needs it to be merged first.

@sogartar sogartar force-pushed the t5-export branch 2 times, most recently from d88edd4 to c6f664f Compare November 20, 2024 22:47
@sogartar sogartar changed the title WIP Add T5 encoder exporting to MLIR and numerics verification with IREE Add T5 encoder exporting to MLIR and numerics verification with IREE Nov 20, 2024
@sogartar sogartar marked this pull request as ready for review November 20, 2024 23:45
This change adds the export functionality and a test for the T5 v1.1
encoder. Small and XXL variants.

Added parsing of GGUF arrays when loading properties. This is used to
deduce the vocabulary size instead of having to provide this manually.
This can potentially be used also to load the tokenizer from GGUF or
IRPA.
@sogartar sogartar merged commit dbff2e5 into nod-ai:main Nov 21, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants