Instructions to use leafmoone/RUM-FLUX.2-klein-4B-ConvRot-Quantized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use leafmoone/RUM-FLUX.2-klein-4B-ConvRot-Quantized with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("leafmoone/RUM-FLUX.2-klein-4B-ConvRot-Quantized", torch_dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
File size: 1,515 Bytes
da2fe8c c129970 da2fe8c c129970 da2fe8c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ---
license: other
library_name: diffusers
pipeline_tag: image-to-image
base_model:
- rimochan/RUM-FLUX.2-klein-4B-preview
base_model_relation: quantized
tags:
- flux
- quantization
- convrot
- int8
- int4
---
# RUM FLUX.2 Klein 4B ConvRot Quantized
Post-training ConvRot quantizations of [RUM-FLUX.2-klein-4B-preview](https://huggingface.co/rimochan/RUM-FLUX.2-klein-4B-preview), based on [FLUX.2-klein-base-4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-base-4B). The repository provides a quality-first INT8 model and a smaller hybrid INT4 model. RUM's dual text-conditioning projections and sensitive input, output, normalization, and modulation layers remain in BF16.
## Files
- `rum-flux2-int8-convrot-adaround-realcal-hq.safetensors`: INT8 ConvRot + AdaRound with real-activation calibration.
- `rum-flux2-int4-hybrid-convrot-adaround-realcal-hq.safetensors`: hybrid INT4 ConvRot + AdaRound with real-activation calibration; incompatible or quality-sensitive layers remain BF16.
- `standalone_inference.py`: self-contained RUM architecture and quantized runtime entry point for text-to-image and image editing.
Download the FLUX.2 Klein 4B base model and the SDXL/WAI teacher checkpoint separately, then pass their local paths to `standalone_inference.py`. Run `python standalone_inference.py --help` for all options. The recommended defaults are 20 steps for text-to-image and 10 steps for editing.
## Comparison

|