[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

+13 -1
View File
@@ -25,6 +25,7 @@ from vllm.entrypoints.launchers.cli_args import make_arg_parser, validate_parsed
from vllm.entrypoints.serve.utils.api_utils import VLLM_SUBCMD_PARSER_EPILOG
from vllm.logger import init_logger
from vllm_omni.diffusion.registry import resolve_native_single_file
from vllm_omni.entrypoints.cli.logo import log_logo
from vllm_omni.entrypoints.openai.api_server import (
omni_run_server,
@@ -305,7 +306,8 @@ class OmniServeCommand(CLISubcommand):
from vllm_omni.diffusion.utils.hf_utils import is_diffusion_model
model = getattr(args, "model_tag", None) or getattr(args, "model", None)
if model and is_diffusion_model(model):
native_single_file = resolve_native_single_file(getattr(args, "model_class_name", None))
if model and ((native_single_file is not None and os.path.isfile(model)) or is_diffusion_model(model)):
if api_server_count is not None and api_server_count > 1:
raise ValueError("--api-server-count > 1 is not supported for diffusion models")
logger.info("Detected diffusion model: %s", model)
@@ -636,6 +638,16 @@ class OmniServeCommand(CLISubcommand):
'(e.g. \'{"num_inference_steps": 30, "guidance_scale": 7.5}\').'
),
)
omni_config_group.add_argument(
"--custom-pipeline-args",
dest="custom_pipeline_args",
type=json.loads,
default=None,
help=(
"JSON object passed to native/custom diffusion pipelines. "
'Only args containing "pipeline_class" trigger custom pipeline re-initialization.'
),
)
omni_config_group.add_argument(
"--usp",
"--ulysses-degree",