[NPU] [Quant] Support HunyuanImage3 offline quantization with vLLM-Ascend on diffusion path (#2979)
Signed-off-by: betta18 <jiangmengyu1@huawei.com> Signed-off-by: jiangmengyu18 <56633611+jiangmengyu18@users.noreply.github.com> Co-authored-by: betta18 <jiangmengyu1@huawei.com>
This commit is contained in:
1 parent
e375b12680
commit
c174c95ab0
11 files changed
+147
-18
No files matched your search
@@ -6,6 +6,7 @@ from enum import Enum
|
||||
from typing import Any
|
||||
|
||||
import torch
|
||||
import torch.nn as nn
|
||||
from vllm.logger import init_logger
|
||||
from vllm.platforms import Platform
|
||||
|
||||
@@ -71,6 +72,13 @@ class OmniPlatform(Platform):
|
||||
def prepare_diffusion_op_runtime(cls, op_name: str, **kwargs: Any) -> None:
|
||||
return None
|
||||
|
||||
@classmethod
|
||||
def get_diffusion_packed_modules_mapping(
|
||||
cls,
|
||||
model_class: type[nn.Module],
|
||||
) -> dict[str, list[str]] | None:
|
||||
return None
|
||||
|
||||
@classmethod
|
||||
def get_diffusion_attn_backend_cls(
|
||||
cls,
|
||||
|
||||
Reference in new issue
Block a user