[Model] Support Pixtral models in the HF Transformers format (#9036)

This commit is contained in:
Michael Goin
2024-10-18 15:29:56 -04:00
committed by GitHub
parent 67a7e5ef38
commit 3921a2f29e
7 changed files with 503 additions and 12 deletions

View File

@@ -264,6 +264,8 @@ _ACTIVATION_REGISTRY = LazyDict({
lambda: nn.ReLU(),
"relu2":
lambda: ReLUSquaredActivation(),
"silu":
lambda: nn.SiLU(),
"quick_gelu":
lambda: QuickGELU(),
})