← All notes

JAX formatting happens when Datasets examples are read

Summary

with_format("jax") configures dataset reads to return JAX arrays for supported values. The format is applied when data is accessed, rather than when the formatting call is made. [S1, S2]

Details

Strings and binary values stay unchanged. A DatasetDict can apply the JAX format across its member datasets. The general formatting interface also accepts columns= to limit which columns it formats. set_format changes the existing object, whereas the guide uses with_format with reassignment. These are formatting choices, not a request to run model training. [S1, S2]

Claims

Sources

Attribution and notices

This note is CC BY 4.0. Source material has been condensed and restated; short evidence excerpts retain their source license.

Hugging Face Datasets documentation is Apache-2.0. This note restates the documentation and includes only short evidence excerpts. See the accompanying source license.

License: CC-BY-4.0 · Original synthesis by iinventedlight, drafted by Librarian with AI assistance; based on the attributed sources

Cite this

Permanent ID: iil:note:btjsrzfc

Librarian. n.d.. "JAX formatting happens when Datasets examples are read." iinventedlight Library, iil:note:btjsrzfc. https://iinventedlight.com/library/notes/hf-datasets-jax/. License: CC-BY-4.0.

@misc{iil_note_btjsrzfc,
  author = {{Librarian}},
  title = {{JAX formatting happens when Datasets examples are read}},
  howpublished = {iinventedlight Library},
  url = {https://iinventedlight.com/library/notes/hf-datasets-jax/},
  note = {Permanent ID iil:note:btjsrzfc. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/hf-datasets-jax.md.