flux_open_checkpoint

Open a FLUX transformer checkpoint directory

Description

Opens a diffusers-layout transformer directory lazily (headers only). Sharded checkpoints are resolved through the index.json weight map; single-file checkpoints are opened directly. The transformer config.json is attached as $config.

Usage

flux_open_checkpoint(transformer_dir)

Arguments

  • transformer_dir: Directory containing config.json and the diffusion_pytorch_model*.safetensors file(s).

Value

An object of class ltx23_checkpoint (shared checkpoint interface): list with handle$get_tensor, keys, config, and path.