Instructions to use TurboGhoster/FLUX2-KLEIN-4B-BIREFNET-RUNTIME with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BiRefNet
How to use TurboGhoster/FLUX2-KLEIN-4B-BIREFNET-RUNTIME with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("TurboGhoster/FLUX2-KLEIN-4B-BIREFNET-RUNTIME", trust_remote_code=True)# Option 2: use with BiRefNet # Install from https://github.com/ZhengPeng7/BiRefNet from models.birefnet import BiRefNet model = BiRefNet.from_pretrained("TurboGhoster/FLUX2-KLEIN-4B-BIREFNET-RUNTIME") - Notebooks
- Google Colab
- Kaggle
FLUX2-KLEIN-4B-BIREFNET-RUNTIME
Public deployment bundle for the GhostStack WF-02 isolation runtime. This
repository contains unchanged upstream model component files. GhostStack did
not train, merge, convert, quantize, fine-tune, or otherwise modify these
weights and does not claim ownership of them. Each component retains its
upstream license; see LICENSE and NOTICE.
Components
| Role | Relative path | Upstream repository | Frozen upstream revision | SHA-256 | Bytes | License |
|---|---|---|---|---|---|---|
| Diffusion model | diffusion_models/flux-2-klein-4b-fp8.safetensors |
black-forest-labs/FLUX.2-klein-4b-fp8 | c30fa39e0d916333415ae96c66169d8cfdca3e63 |
97ed34fe0567e436200f2faee3939b88f2b5d99f8af2a4dc16532c4245c0ccb6 |
4070624520 | Apache-2.0 |
| Text encoder | text_encoders/qwen_3_4b.safetensors |
Comfy-Org/vae-text-encorder-for-flux-klein-4b | 8556e4d870cda7c53c7942b190bfeea5be9bd411 |
6c671498573ac2f7a5501502ccce8d2b08ea6ca2f661c458e708f36b36edfc5a |
8044982048 | Apache-2.0 |
| VAE | vae/flux2-vae.safetensors |
Comfy-Org/vae-text-encorder-for-flux-klein-4b | a9e4ca87c16db4c4e1a16406a9ddb300ab0ae246 |
868fe7b343ccf8f3a19dbcfcafbc3d5f888802be3f89bd81b65b3621a066ce8f3 |
336211292 | Apache-2.0 |
| Background removal | background_removal/birefnet.safetensors |
Comfy-Org/BiRefNet | 5a1bd8ae750548f8cd42e3c8afa854fd3eba0fb1 |
9ab37426bf4de0567af6b5d21b16151357149139362e6e8992021b8ce356a154 |
444473596 | MIT |
The repository layout preserves the canonical ComfyUI model folders. The bundle contains exactly these four model files and no other model weights.
License and attribution
The three FLUX.2 Klein runtime components are supplied under Apache-2.0. The
BiRefNet component is supplied under MIT. The complete Apache-2.0 text is in
LICENSE; the complete MIT text and third-party attribution are in NOTICE.
Retain both files and the notices when redistributing this bundle. Consult the
linked upstream model pages for their model cards and additional terms.