vllm_omni.diffusion.utils.hf_utils ¶
DIFFUSION_MODEL_INDEX_FILES module-attribute ¶
HIDREAM_O1_SIGNATURE_WEIGHTS module-attribute ¶
HIDREAM_O1_SIGNATURE_WEIGHTS = (
"model.final_layer2.linear.weight",
"final_layer2.linear.weight",
)
get_diffusion_model_index ¶
Read the first standard Diffusers pipeline index available.
is_diffusion_model cached ¶
Check if a model is a diffusion model.
Uses multiple fallback strategies to detect diffusion models: 1. Check the local file system for a standard Diffusers index 2. Check using vllm's get_hf_file_to_dict utility 3. Try the standard diffusers approach (may fail due to import issues)