mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
[Feature] remove dependency on enable_mm and refine multimodal's code (#3014)
* remove dependency on enable_mm * fix codestyle check error * fix codestyle check error * update docs * resolve conflicts on model config * fix unit test error * fix code style check error --------- Co-authored-by: shige <1021937542@qq.com> Co-authored-by: Jiang-Jia-Jun <163579578+Jiang-Jia-Jun@users.noreply.github.com>
This commit is contained in:
@@ -42,6 +42,7 @@ from fastdeploy.model_executor.models.ernie4_5_moe import (
|
||||
Ernie4_5_MLP,
|
||||
)
|
||||
from fastdeploy.model_executor.models.model_base import ModelForCasualLM
|
||||
from fastdeploy.multimodal.registry import MultimodalRegistry
|
||||
from fastdeploy.platforms import current_platform
|
||||
|
||||
if current_platform.is_cuda():
|
||||
@@ -487,6 +488,7 @@ class Ernie4_5_VLModel(nn.Layer):
|
||||
return out
|
||||
|
||||
|
||||
@MultimodalRegistry.register_model()
|
||||
class Ernie4_5_VLMoeForConditionalGeneration(ModelForCasualLM):
|
||||
"""
|
||||
Ernie4_5_VLMoeForConditionalGeneration
|
||||
|
Reference in New Issue
Block a user