← back to catalog · registered 2026-08-22 13:56

shauray/flux.1-dev-uncensored-q4

shauray Flux 5.9B image-gen
Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - we'll show exact numbers.

Reading real hardware from your app right now. Numbers below are exact.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/shauray%2Fflux.1-dev-uncensored-q4"
Response includes
  • classification m-uncensored
  • files 4
  • hub_downloads_all_time 47,462
  • author_summary 5 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M-U
Primary method

Uncensored (method unknown)

No other method signals detected in this model.
Confidence
LOW
Why this label 3 signals
Weak or ambiguous signals. Best guess based on catalog patterns; treat as tentative and check the evidence below.
  • 'uncensored' in name/tags but no 'abliterated' marker
  • method not identifiable from author declaration alone
  • may be DPO fine-tune, prompt engineering, or unknown technique
Refusal direction extraction

No specific extraction method could be identified for this model. The producer either did not document it or used a proprietary pipeline.

What is a refusal direction? →
Downloads · lifetime
47K
9K last 30d - stable
Likes
21
Model age
23mo ago
created 2024-10-31
Downloads over time
Now51.3K→from123↑41,642%
018.8K37.6K56.5K123 on Dec 11, 202451.3K on Oct 11Dec '24Mar '25Jun '25Sep '25Dec '25MarJunSep
Dec 11, 2024 → Oct 11 · 136 snapshots · spans 669 days

Metadata

License
mit
Tags
diffusers safetensors license:mit 8-bit region:us

Related

Total size
6.24 GB
Files
4
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2025-01-04 10:11

Files by quantization

Auxiliary files 4 files 6.24 GB
diffusion_pytorch_model.safetensors 6.24 GB 1fb021d7 download
README.md 2.89 KB 35ce0594 download
.gitattributes 1.48 KB a6344aac download
config.json 447 B 5819f718 download

README current version from Hugging Face


license: mit
library_name: diffusers

flux-uncensored-nf4

Summary

Flux base model merged with uncensored LoRA, quantized to NF4. This model is not for those looking for "safe" or watered-down outputs. It’s optimized for real-world use with fewer constraints and lower VRAM requirements, thanks to NF4 quantization.

Specs

  • Model: Flux base
  • LoRA: Uncensored version, merged directly
  • Quantization: NF4 format for speed and VRAM efficiency

Usage

Not so much for plug-and-play model, but pretty straight forward (script from sayak [https://github.com/huggingface/diffusers/issues/9165#issue-2462431761])

Please install pip install -U bitsandbytes to proceed.

"""
Some bits are from https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_utils.py
"""

from huggingface_hub import hf_hub_download
from accelerate.utils import set_module_tensor_to_device, compute_module_sizes
from accelerate import init_empty_weights
from convert_nf4_flux import _replace_with_bnb_linear, create_quantized_param, check_quantized_param
from diffusers import FluxTransformer2DModel, FluxPipeline
import safetensors.torch
import gc
import torch

dtype = torch.bfloat16
is_torch_e4m3fn_available = hasattr(torch, "float8_e4m3fn")
ckpt_path = hf_hub_download("shauray/flux.1-dev-uncensored-nf4", filename="diffusion_pytorch_model.safetensors")
original_state_dict = safetensors.torch.load_file(ckpt_path)

with init_empty_weights():
    config = FluxTransformer2DModel.load_config("shauray/flux.1-dev-uncensored-nf4")
    model = FluxTransformer2DModel.from_config(config).to(dtype)
    expected_state_dict_keys = list(model.state_dict().keys())

_replace_with_bnb_linear(model, "nf4")

for param_name, param in original_state_dict.items():
    if param_name not in expected_state_dict_keys:
        continue
    
    is_param_float8_e4m3fn = is_torch_e4m3fn_available and param.dtype == torch.float8_e4m3fn
    if torch.is_floating_point(param) and not is_param_float8_e4m3fn:
        param = param.to(dtype)
    
    if not check_quantized_param(model, param_name):
        set_module_tensor_to_device(model, param_name, device=0, value=param)
    else:
        create_quantized_param(
            model, param, param_name, target_device=0, state_dict=original_state_dict, pre_quantized=True
        )

del original_state_dict
gc.collect()

print(compute_module_sizes(model)[""] / 1024 / 1204)

pipe = FluxPipeline.from_pretrained("black-forest-labs/flux.1-dev", transformer=model, torch_dtype=dtype)
pipe.enable_model_cpu_offload()

prompt = "A mystic cat with a sign that says hello world!"
image = pipe(prompt, guidance_scale=3.5, num_inference_steps=50, generator=torch.manual_seed(0)).images[0]
image.save("flux-nf4-dev-loaded.png")

this README has what you'd need, it's a merge from Uncensored LoRA on CivitAI

README history 3 versions

The author's README evolved over time. Click a version to see its content at that point.

  1. 2024-10-31Update README.md14989e62.9 KB
    Loading...
  2. 2024-10-31Upload modele676edc45 B
    Loading...
  3. 2024-10-31initial commit2e5012121 B
    Loading...

Discussions 1 thread

  1. 2025-06-03can't locate importopen2 💬#1
    Loading...
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration