Add diffusers model_index.json and scheduler config for DFlashPipeline.from_pretrained
#1
by kashif HF Staff - opened
This adds the two files needed for diffusers to load the pipeline directly via DFlashPipeline.from_pretrained:
model_index.jsonβ declaresDFlashPipelineas the pipeline class and points_target_model_name_or_pathto the target/verifier modelscheduler/scheduler_config.jsonβ config forDFlashTokenDiffusionScheduler
After merging, the pipeline can be loaded with:
import torch
from diffusers import DFlashPipeline
pipe = DFlashPipeline.from_pretrained(
"z-lab/Alpamayo-R1-10B-DFlash",
torch_dtype=torch.bfloat16,
device_map="auto",
)
out = pipe(prompt="Hello, world!")
print(out.texts[0])