The private: true above is descriptive metadata only, not an access control: repository visibility is enforced by the Hub, and was verified with HfApi.repo_info(repo_id).private is True both immediately after creation and after the upload completed.

FLUX.2 [klein] 4B β€” JAX-native conversion

Unofficial JAX-layout conversion of black-forest-labs/FLUX.2-klein-4B at revision e7b7dc27f91deacad38e78976d1f2b499d76a294, produced for the flicker JAX/TPU port. It is a format conversion only: no weights were retrained, added, pruned or re-quantised, and the tensor key names and dtypes of the source are preserved.

This is not a diffusers or transformers drop-in. Every 2-D Linear weight is stored transposed to (in, out) and every 4-D Conv2d weight to HWIO, so a torch/diffusers loader would transpose them a second time. Use the native reader shipped with the conversion tool.

source (torch / BFL) here (JAX) rule
2-D *.weight on a Linear (in, out) transpose
model.embed_tokens.weight unchanged lookup table, never transposed
4-D *.weight on a Conv2d HWIO transpose(2, 3, 1, 0) from OIHW
*.bias, *.scale, norms unchanged verbatim

Because the transform is a pure element permutation, invert(orient(x)) == x is bit-exact in bfloat16; the conversion verified this for all 798 tensors.

Components

folder tensors dtype bytes shards
transformer/ 149 bfloat16 7.22 GB 4
text_encoder/ 398 bfloat16 7.49 GB 5
vae/ 251 bfloat16 (+1 int64 counter) 160.33 MB 1
  • transformer/ β€” the complete 149-tensor BFL flux-2-klein-4b.safetensors DiT (double-stream blocks, single-stream blocks, modulation, final_layer, img_in/txt_in).
  • text_encoder/ β€” the complete 398-key Qwen3-4B bf16 encoder: the embedding, every decoder layer (including the layers the inference path does not run) and the final model.norm.weight.
  • vae/ β€” the complete 251-tensor AutoencoderKLFlux2: encoder and decoder, quant_conv, post_quant_conv and the batch-norm statistics.

Retained verbatim from the source revision (not converted): LICENSE.md, text_encoder/upstream_config.json, tokenizer/added_tokens.json, tokenizer/chat_template.jinja, tokenizer/merges.txt, tokenizer/special_tokens_map.json, tokenizer/tokenizer.json, tokenizer/tokenizer_config.json, tokenizer/vocab.json, transformer/upstream_config.json, upstream_model_index.json, vae/upstream_config.json.

Files

transformer/  jax_model-*.safetensors, jax_model.safetensors.index.json, jax_config.json, upstream_config.json
text_encoder/ jax_model-*.safetensors, jax_model.safetensors.index.json, jax_config.json, upstream_config.json
vae/          jax_model-*.safetensors, jax_model.safetensors.index.json, jax_config.json, upstream_config.json
tokenizer/    verbatim upstream tokenizer
flicker_jax_export.json   provenance + per-file sha256
LICENSE.md                verbatim upstream Apache-2.0
NOTICE.md                 attribution and change notice

Loading

import pathlib as pl
import sys
sys.path.insert(0, "flicker/tools")
from export_jax_checkpoint import (Klein4B, Qwen3_4B, VAE, as_dit_tree, as_text_tree,
                                   as_vae_tree, default_components, read_component)

root = pl.Path("path/to/this/repo")
comp = default_components()
dit = as_dit_tree(read_component(root, comp["transformer"]), Klein4B())
text = as_text_tree(read_component(root, comp["text_encoder"]), Qwen3_4B())  # all layers
vae = as_vae_tree(read_component(root, comp["vae"]), VAE())                  # incl. encoder

read_component verifies the index key set; the runtime flicker.loader is not the reader for this repo because it transposes at load time.

Provenance

  • source: black-forest-labs/FLUX.2-klein-4B @ e7b7dc27f91deacad38e78976d1f2b499d76a294 (apache-2.0)
  • upstream LICENSE.md sha256 ca02bc51900ab07789d1b70283329e7137f5af98f5161c23a1c81fc38a4af1fe
  • upstream README.md sha256 bd447051cf2db4bf67b992e563d89c35ebf1123f009c063361a222ab14e1c4f7
  • export manifest flicker_jax_export.json sha256 17e83860f6d5c304110b4ab037f2c66086bcbbb30091d48cfed1f3d41bbb8f49
  • converted 2026-09-24T22:25:20Z with flicker/tools/export_jax_checkpoint.py

License and attribution

The upstream FLUX.2 [klein] 4B checkpoint is released by Black Forest Labs under the Apache License 2.0. This repository redistributes a modified (axis-permuted) copy of those weights and ships the full upstream license text in LICENSE.md. Per Apache-2.0 Β§4 it states the changes made and retains attribution; see NOTICE.md.

This is an independent conversion and is not affiliated with, sponsored or endorsed by Black Forest Labs. Use of the FLUX / Black Forest Labs names does not imply endorsement.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support