[Model] Add BAGEL step execution and continuous batching (#6359)
This commit is contained in:
1 parent
fda3af8bbc
commit
e43c787544
24 files changed
+1965
-108
No files matched your search
@@ -82,6 +82,17 @@ class MoTRMSNorm(CustomOp):
|
||||
eps=self.variance_epsilon,
|
||||
)
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# NPU fast-path (not implemented yet; reserved for future optimization)
|
||||
# ------------------------------------------------------------------
|
||||
def forward_npu(
|
||||
self,
|
||||
x: torch.Tensor,
|
||||
text_indices: torch.Tensor | None = None,
|
||||
vae_indices: torch.Tensor | None = None,
|
||||
) -> torch.Tensor:
|
||||
return self.forward_native(x, text_indices, vae_indices)
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# Helpers
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user