download_flux2_klein

Download FLUX.2-klein-4B and build the quantized artifact

Description

Skips work already done: a valid quantized manifest short-circuits the transformer download; cached files are not re-fetched. No token is needed (the repo is ungated). The bf16 transformer source (~7.8 GB in the HuggingFace cache) may be deleted after quantization.

Usage

download_flux2_klein(quantize = TRUE, precision = c("fp8", "nf4"),
                     output_dir = NULL, text_encoders = TRUE, verbose = TRUE)

Arguments

  • quantize: Logical. Build the quantized artifact.
  • precision: “fp8” (~4 GB, GPU-resident; near-bf16 quality) or “nf4” (~2.3 GB).
  • output_dir: Directory for the quantized artifact.
  • text_encoders: Logical. Also fetch the Qwen3 text encoder, tokenizer, VAE, and scheduler config (~8.3 GB).
  • verbose: Logical.

Value

Invisibly, a list with transformer_dir, artifact_dir, and support (named file paths).