Skip to content

Supported Models

Aphrodite supports a large variety of generative Transformer models in Hugging Face Transformers. The following is the list of model architectures that we currently support.

Decoder-only Language Models

ArchitectureExample HF Model
AquilaForCausalLMBAAI/AquilaChat-7B
ArcticForCausalLMSnowflake/snowflake-arctic-instruct
BaiChuanForCausalLMbaichuan-inc/Baichuan2-13B-Chat
BloomForCausalLMbigscience/bloomz
ChatGLMModelTHUDM/chatglm3-6b
CohereForCausalLMCohereForAI/c4ai-command-r-v01
DbrxForCausalLMdatabricks/dbrx-instruct
DeciLMForCausalLMDeciLM/DeciLM-7B
DeepseekForCausalLMdeepseek-ai/deepseek-moe-16b-base
DeepseekV2ForCausalLMdeepseek-ai/DeepSeek-V2.5
DeepseekV32ForCausalLMdeepseek-ai/DeepSeek-V3.2
ExaoneForCausalLMLGAI-EXAONE/EXAONE-3.0-7.8B-Instruct
FalconForCausalLMtiiuae/falcon-7b
GPT2LMHeadModelgpt2
GPTBigCodeForCausalLMbigcode/starcoder
GPTJForCausalLMpygmalionai/pygmalion-6b
GPTNeoXForCausalLMEleutherAI/pythia-12b
GemmaForCausalLMgoogle/gemma-7b
Gemma2ForCausalLMgoogle/gemma-2-9b
GraniteForCausalLMibm-research/PowerLM-3b
GraniteMoeForCausalLMibm-research/PowerMoE-3b
InternLMForCausalLMinternlm/internlm-7b
InternLM2ForCausalLMinternlm/internlm2-7b
JAISLMHeadModelcore42/jais-13b
JambaForCausalLMai21labs/Jamba-v0.1
LlamaForCausalLMmeta-llama/Meta-Llama-3.1-8B
MPTForCausalLMmosaicml/mpt-7b
MambaForCausalLMstate-spaces/mamba-2.8b-hf
MiniCPMForCausalLMopenbmb/MiniCPM-2B-dpo-bf16
MiniCPM3ForCausalLMopenbmb/MiniCPM3-4B
MistralForCausalLMmistralai/Mistral-7B-v0.1
MixtralForCausalLMmistralai/Mixtral-8x7B-v0.1
NemotronForCausalLMnvidia/Minitron-8B-Base
NVLM_Dnvidia/NVLM-D-72B
OPTForCausalLMfacebook/opt-66b
OlmoForCausalLMallenai/OLMo-7B-hf
Olmo2ForCausalLMallenai/OLMo-2-0425-1B
OlmoeForCausalLMallenai/OLMoE-1B-7B-0125
OrionForCausalLMOrionStarAI/Orion-14B-Chat
PhiForCausalLMmicrosoft/phi-2
Phi3ForCausalLMmicrosoft/Phi-3-medium-128k-instruct
Phi3SmallForCausalLMmicrosoft/Phi-3-small-128k-instruct
PhiMoEForCausalLMmicrosoft/Phi-3.5-MoE-instruct
QwenLMHeadModelQwen/Qwen-7B
Qwen2ForCausalLMQwen/Qwen2-72B
Qwen2MoeForCausalLMQwen/Qwen1.5-MoE-A2.7B
Qwen2VLForConditionalGenerationQwen/Qwen2-VL-7B-Instruct
SolarForCausalLMupstage/solar-pro-preview-instruct
StableLmforCausalLMstabilityai/stablelm-3b-4e1t
Starcoder2ForCausalLMbigcode/starcoder2-3b
VaultGemmaForCausalLMgoogle/vaultgemma-1b
XverseForCausalLMxverse/XVERSE-65B-Chat

Encoder-Decoder Language Models

ArchitectureExample Model
BartForConditionalGenerationfacebook/bart-large-cnn

Embedding Models

ArchitectureExample Model
MistralModelintfloat/e5-mistral-7b-instruct
Qwen2ForRewardModelQwen/Qwen2.5-Math-RM-72B
Gemma2ModelBAAI/bge-multilingual-gemma2

Pooling Configuration Resolution

For pooling models, the pooling method and use_activation are resolved per field. An explicitly set field in --pooler-config takes precedence over Sentence Transformers metadata, which in turn takes precedence over the model architecture or task default. Fields left unset continue through the chain independently.

The current PoolerConfig has no normalize or activation field. use_activation controls whether the task’s constructed normalization or classification activation is applied.

FieldSource precedenceHow to override
Pooling method (pooling_type)--pooler-config > boolean pooling_mode_* fields in the Pooling module referenced by Sentence Transformers modules.json > architecture default (LAST for sequence pooling and ALL for token pooling unless the architecture overrides it)Set {"pooling_type": "CLS"}, or set seq_pooling_type / tok_pooling_type explicitly.
Embedding normalization (use_activation)--pooler-config > Sentence Transformers modules (true when a Normalize module is present, otherwise false) > pooling-task default (true) when no Sentence Transformers Pooling module is foundSet {"use_activation": false} to return unnormalized embeddings.
Classification activation functionHugging Face problem_type > Sentence Transformers activation metadata > sigmoid or softmax selected from the label countThe function cannot be selected through --pooler-config; set {"use_activation": false} to return logits instead.

Sentence Transformers configurations using the newer compact pooling_mode string are not currently parsed; see vLLM issue #45995.

For converted models and predefined models using the standard DispatchPooler adapters, embed and token_embed construct an L2-normalization head, while classify and token_classify construct the selected classification activation. In both cases, use_activation controls whether that head is applied. Models with custom poolers can implement different behavior.

To inspect the resolved fields without loading model weights:

from aphrodite.config import ModelConfig, PoolerConfig
from aphrodite.model_executor.layers.pooler.activations import get_act_fn
def inspect(requested: PoolerConfig) -> None:
model_config = ModelConfig(
"intfloat/e5-small",
runner="pooling",
pooler_config=requested,
)
resolved = model_config.pooler_config
assert resolved is not None
print(
{
"seq_pooling_type": resolved.seq_pooling_type,
"tok_pooling_type": resolved.tok_pooling_type,
"use_activation": resolved.use_activation,
"sequence_classification_activation": type(
get_act_fn(model_config.hf_config)
).__name__,
}
)
inspect(PoolerConfig())
inspect(PoolerConfig(pooling_type="CLS", use_activation=False))

For intfloat/e5-small, the first result contains MEAN, ALL, and True. The second contains CLS, ALL, and False. Both report the classification activation that the standard sequence-classification adapter would construct.

Multimodal Language Models

ArchitectureSupported ModalitiesExample Model
Blip2ForConditionalGenerationImageSalesforce/blip2-opt-6.7b
ChameleonForConditionalGenerationImagefacebook/chameleon-7b
ChatGLMModelImageTHUDM/chatglm3-6b
Cosmos3ForConditionalGenerationImage, Videonvidia/Cosmos3-Nano, nvidia/Cosmos3-Super
Cosmos3EdgeForConditionalGenerationImage, Videonvidia/Cosmos3-Edge
InternVLChatModelImageOpenGVLab/InternVL2-8B
LlavaForConditionalGenerationImagellava-hf/llava-v1.5-7b-hf
LlavaNextForConditionalGenerationImagellava-hf/llava-v1.6-mistral-7b-hf
LlavaNextVideoForConditionalGenerationVideollava-hf/LLaVA-NeXT-Video-7B-hf
LlavaOnevision2ForConditionalGenerationImage, Videolmms-lab-encoder/LLaVA-OneVision-2-8B-Instruct
LlavaOnevisionForConditionalGenerationImage, Videollava-hf/llava-onevision-qwen2-7b-ov-hf
MiniCPMVImageopenbmb/MiniCPM-V-2_6
MllamaForConditionalGenerationImagemeta-llama/Llama-3.2-11B-Vision-Instruct
MolmoForCausalLMImageallenai/Molmo-7B-D-0924
MossTranscribeDiarizeForConditionalGenerationAudioOpenMOSS-Team/MOSS-Transcribe-Diarize
PaliGemmaForConditionalGenerationImagegoogle/paligemma-3b-pt-224
Phi3VForCausalLMImagemicrosoft/Phi-3.5-vision-instruct
PixtralForConditionalGenerationImagemistralai/Pixtral-12B-2409
QWenLMHeadModelImageQwen/Qwen-VL
Qwen2VLForConditionalGenerationImageQwen/Qwen2-VL-7B-Instruct
UltravoxModelAudiofixie-ai/ultravox-v0_3

Speculative Models

ArchitectureExample Model
EAGLEModelabhigoyal/aphrodite-eagle-llama-68m-random
MedusaModelabhigoyal/aphrodite-medusa-llama-68m-random
MLPSpeculatorPreTrainedModelibm-fms/llama-160m-accelerator

If your model uses any of the architectures above, you can seamlessly run your model with Aphrodite.