Run this model with HF Jobs

Run BiliSakura/FD-Loss-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/BiliSakura/FD-Loss-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/BiliSakura/FD-Loss-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.
BiliSakura's picture
Upload folder using huggingface_hub
6786303 verified
|
Raw History Blame Contribute Delete
894 Bytes
metadata
license: mit
library_name: diffusers
pipeline_tag: text-to-image
tags:
  - diffusers
  - pmf
  - image-generation
  - class-conditional
  - imagenet
inference: true

pMF-H-32-SIM

Self-contained Diffusers variant for pMF-H/32 (FD-SIM post-trained) (Pixel Mean Flows).

Recommended settings: guidance_scale=5.5, interval [0.1, 0.6], noise_scale=4.0.

Load

from pathlib import Path
from diffusers import DiffusionPipeline
import torch

model_dir = Path("./pMF-H-32-SIM")
pipe = DiffusionPipeline.from_pretrained(
    str(model_dir),
    local_files_only=True,
    custom_pipeline=str(model_dir / "pipeline.py"),
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
).to("cuda")

image = pipe(
    class_labels=207,
    num_inference_steps=1,
    guidance_scale=5.5,
    guidance_interval_min=0.1,
    guidance_interval_max=0.6,
    noise_scale=4.0,
).images[0]