Skip to content

[tensor-shapes] add JAX BERT example - #4814

Open
jakevdp wants to merge 1 commit into
facebook:mainfrom
jakevdp:jax-bert
Open

[tensor-shapes] add JAX BERT example#4814
jakevdp wants to merge 1 commit into
facebook:mainfrom
jakevdp:jax-bert

Conversation

@jakevdp

@jakevdp jakevdp commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Here I've deliberately avoided dependence on any neural network framework (such as flax or equinox), instead opting to work in terms of simple dataclasses registered as JAX pytrees. This keeps the example simple and self-contained with no hidden magic, and requires only shape-annotated JAX APIs.

This required a few updates to JAX's shape stubs, also done as part of this PR.

Here I've deliberately avoided dependence on any neural network framework
(such as flax or equinox), instead opting to work in terms of simple
dataclasses registered as JAX pytrees. This keeps the example simple and
self-contained with no hidden magic, and requires only shape-annotated
JAX APIs.
@meta-cla meta-cla Bot added the cla signed label Sep 4, 2026
@github-actions github-actions Bot added google issues from google size/xl labels Sep 4, 2026
@meta-codesync

meta-codesync Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D118833158. (Because this pull request was imported automatically, there will not be any future comments.)

@stroxler stroxler self-assigned this Sep 5, 2026
@stroxler
stroxler self-requested a review September 5, 2026 14:40
@stroxler
stroxler removed the request for review from NathanTempest September 5, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants