Diffusers
Safetensors
English

Run this model with HF Jobs

Run InstantX/flux-dev-de-distill-diffusers on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/InstantX/flux-dev-de-distill-diffusers. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/InstantX/flux-dev-de-distill-diffusers on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Model Details

This is a diffusers version of nyanko7/flux-dev-de-distill that generates exactly the same results as the original. But please note that there is a certain degree of quality degradation in comparison with black-forest-labs/FLUX.1-dev in our test. We are training its fine-tuning models to check its effectiveness, feel free to let us know if you have any interesting findings.

Usage

import torch
from diffusers import FluxTransformer2DModel
from pipeline_flux_de_distill import FluxPipeline

model_path = "black-forest-labs/FLUX.1-dev"
    
transformer = FluxTransformer2DModel.from_pretrained(
    "InstantX/flux-dev-de-distill-diffusers",
    torch_dtype=torch.bfloat16
)

pipeline = FluxPipeline.from_pretrained(model_path, transformer=transformer, torch_dtype=torch.bfloat16).to("cuda")

prompt = "a tiny astronaut hatching from an egg on the moon"
negative_prompt = "bad photo"

image = pipeline(
    prompt=prompt,
    negative_prompt=negative_prompt,
    guidance_scale=3.5,
    num_inference_steps=24,
).images[0]

image.save("de-distill.jpg")

Other Resources

Acknowledgements

This project is co-sponsored by HuggingFace and fal.

Downloads last month
134
Safetensors
Model size
12B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for InstantX/flux-dev-de-distill-diffusers

Finetuned
(630)
this model