Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions python/sglang/srt/configs/model_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,7 @@ def is_generation_model(model_architectures: List[str], is_embedding: bool = Fal
"InternVLChatModel",
"InternS1ForConditionalGeneration",
"Phi4MMForCausalLM",
"WhisperForConditionalGeneration",
"Step3VLForConditionalGeneration",
"POINTSV15ChatModel",
"DotsVLMForCausalLM",
Expand Down Expand Up @@ -1114,11 +1115,18 @@ def is_image_gen_model(model_architectures: List[str]):


def is_audio_model(model_architectures: List[str]):
return False
models = [
"WhisperForConditionalGeneration",
]
return any(model in model_architectures for model in models)


def is_encoder_decoder_model(model_architectures: List[str]):
return "MllamaForConditionalGeneration" in model_architectures
models = [
"MllamaForConditionalGeneration",
"WhisperForConditionalGeneration",
]
return any(model in model_architectures for model in models)


def is_local_attention_model(model_architectures: List[str]):
Expand Down
Loading
Loading