Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchunyu committed May 9, 2024
1 parent 6688a5c commit b50d2ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lmdeploy/vl/model/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,8 @@ def vl_model_with_tokenizer(model_path: str, device: str):
return LlavaVisionModel.model_with_tokenizer(model_path, device)
if arch in ['MiniGeminiLlamaForCausalLM', 'MGMLlamaForCausalLM']:
return MiniGeminiVisionModel.model_with_tokenizer(model_path, device)
if arch == 'InternLMXComposer2ForCausalLM':
return Xcomposer2VisionModel.model_with_tokenizer(model_path)
if arch == 'InternVLChatModel':
return InternVLVisionModel(model_path)
raise ValueError(f'unsupported vl model with arch {arch}')

0 comments on commit b50d2ac

Please sign in to comment.