[Model] Add circlestone-labs/Anima (#4083)

Signed-off-by: akshatvishu <akshatnayak197@gmail.com>
This commit is contained in:
akshatvishu authored and GitHub committed 2026-09-19 16:16:38 +00:00
1 parent 698f716012
commit 415005be22
33 files changed
+3127 -46

No files matched your search

+14
View File
@@ -1379,6 +1379,10 @@ class OmniDiffusionConfig:
self.model,
)
@property
def is_single_file(self) -> bool:
return isinstance(self.model, str) and os.path.isfile(self.model)
def _propagate_quantization_from_tf_config(self, tf_config: "TransformerConfig") -> None:
if tf_config.quant_config is None:
return
@@ -1483,12 +1487,22 @@ class OmniDiffusionConfig:
"""
from vllm.transformers_utils.config import get_hf_file_to_dict
from vllm_omni.diffusion.registry import resolve_native_single_file
from vllm_omni.diffusion.utils.hf_utils import (
get_diffusion_model_index,
resolve_native_diffusion_model_class,
)
assert self.model is not None
native_single_file_model = resolve_native_single_file(self.model_class_name)
if self.is_single_file and native_single_file_model is not None:
self.diffusion_load_format = "default"
self.model_class_name = native_single_file_model
self.diffusers_pipeline_cls = None
self.set_tf_model_config(TransformerConfig())
return
try:
config_dict = get_diffusion_model_index(
self.model,