InternVL icon indicating copy to clipboard operation
InternVL copied to clipboard

Key Error loading OpenGVLab/Mini-InternVL-Chat-4B-V1-5

Open 17Skye17 opened this issue 2 years ago • 11 comments

Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained. Traceback (most recent call last): File "/home/xingzhang/Storyboard2Vid/Storyboard2Vid/data_preprocessing/subject_ext/InternVL/example.py", line 8, in pipe = pipeline('OpenGVLab/Mini-InternVL-Chat-4B-V1-5') File "/home/xingzhang/miniconda3/envs/internvl/lib/python3.9/site-packages/lmdeploy/api.py", line 94, in pipeline return pipeline_class(model_path, File "/home/xingzhang/miniconda3/envs/internvl/lib/python3.9/site-packages/lmdeploy/serve/vl_async_engine.py", line 21, in init super().init(model_path, **kwargs) File "/home/xingzhang/miniconda3/envs/internvl/lib/python3.9/site-packages/lmdeploy/serve/async_engine.py", line 206, in init self._build_turbomind(model_path=model_path, File "/home/xingzhang/miniconda3/envs/internvl/lib/python3.9/site-packages/lmdeploy/serve/async_engine.py", line 253, in _build_turbomind self.engine = tm.TurboMind.from_pretrained( File "/home/xingzhang/miniconda3/envs/internvl/lib/python3.9/site-packages/lmdeploy/turbomind/turbomind.py", line 387, in from_pretrained return cls(model_path=pretrained_model_name_or_path, File "/home/xingzhang/miniconda3/envs/internvl/lib/python3.9/site-packages/lmdeploy/turbomind/turbomind.py", line 161, in init self.model_comm = self._from_hf(model_source=model_source, File "/home/xingzhang/miniconda3/envs/internvl/lib/python3.9/site-packages/lmdeploy/turbomind/turbomind.py", line 267, in _from_hf input_model = INPUT_MODELS.get(inferred_model_format)( File "/home/xingzhang/miniconda3/envs/internvl/lib/python3.9/site-packages/lmdeploy/turbomind/deploy/source_model/internvl.py", line 42, in init self.Reader = _readers[arch] KeyError: 'Phi3ForCausalLM'

17Skye17 avatar May 30 '24 10:05 17Skye17

+1,请问解决了吗?

wanghanyang123 avatar Jun 04 '24 01:06 wanghanyang123

+1 怎么解决呢? @czczup

Win-Rp avatar Jun 05 '24 09:06 Win-Rp

+1

HaoLiuHust avatar Jun 05 '24 15:06 HaoLiuHust

+1

blueHF avatar Jun 06 '24 12:06 blueHF

+1

shen518608 avatar Jun 11 '24 03:06 shen518608

+1

lpohl avatar Jun 11 '24 13:06 lpohl

+1

shen518608 avatar Jun 13 '24 03:06 shen518608

LMDeploy 的 turbomind engine 还没有支持 phi-3

lvhan028 avatar Jun 13 '24 04:06 lvhan028

+1

diegoflip avatar Jun 18 '24 00:06 diegoflip

您好,LMDeploy的pytorch engine才支持phi3模型,具体使用方案可以参考我们最新的README

Weiyun1025 avatar Jul 24 '24 07:07 Weiyun1025

可以按照这个文档来使用lmdeploy部署InternVL2-4B模型:https://internvl.readthedocs.io/en/latest/internvl2.0/deployment.html#launch-service

czczup avatar Jul 31 '24 06:07 czczup