Add qwen_vl to liger kernel supported list
This commit is contained in:
parent
e22ac05fd7
commit
7a2958a44f
|
@ -45,6 +45,8 @@ def configure_liger_kernel(config: "PretrainedConfig", model_args: "ModelArgumen
|
||||||
from liger_kernel.transformers import apply_liger_kernel_to_phi3 as apply_liger_kernel
|
from liger_kernel.transformers import apply_liger_kernel_to_phi3 as apply_liger_kernel
|
||||||
elif model_type == "qwen2":
|
elif model_type == "qwen2":
|
||||||
from liger_kernel.transformers import apply_liger_kernel_to_qwen2 as apply_liger_kernel
|
from liger_kernel.transformers import apply_liger_kernel_to_qwen2 as apply_liger_kernel
|
||||||
|
elif model_type == "qwen2_vl":
|
||||||
|
from liger_kernel.transformers import apply_liger_kernel_to_qwen2_vl as apply_liger_kernel
|
||||||
else:
|
else:
|
||||||
logger.warning("Current model does not support liger kernel.")
|
logger.warning("Current model does not support liger kernel.")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue