runtime error

f the following files was downloaded from https://huggingface.co/microsoft/phi-2: - configuration_phi.py . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. You are using a model of type moe_llava_phi to instantiate a model of type phi. This is not supported for all configurations of models and can yield errors. You are using a model of type moe_llava_phi to instantiate a model of type phi. This is not supported for all configurations of models and can yield errors. Traceback (most recent call last): File "/home/user/app/app.py", line 9, in <module> pipe = pipeline("image-to-text", model=model_id, trust_remote_code=True) File "/usr/local/lib/python3.10/site-packages/transformers/pipelines/__init__.py", line 870, in pipeline framework, model = infer_framework_load_model( File "/usr/local/lib/python3.10/site-packages/transformers/pipelines/base.py", line 291, in infer_framework_load_model raise ValueError( ValueError: Could not load model LanguageBind/MoE-LLaVA-Phi2-2.7B-4e with any of the following classes: (<class 'transformers.models.auto.modeling_auto.AutoModelForVision2Seq'>,). See the original errors: while loading with AutoModelForVision2Seq, an error is thrown: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/transformers/pipelines/base.py", line 278, in infer_framework_load_model model = model_class.from_pretrained(model, **kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 569, in from_pretrained raise ValueError( ValueError: Unrecognized configuration class <class 'transformers_modules.microsoft.phi-2.b10c3eba545ad279e7208ee3a5d644566f001670.configuration_phi.PhiConfig'> for this kind of AutoModel: AutoModelForVision2Seq. Model type should be one of BlipConfig, Blip2Config, GitConfig, InstructBlipConfig, Kosmos2Config, LlavaConfig, Pix2StructConfig, VipLlavaConfig, VisionEncoderDecoderConfig.

Container logs:

Fetching error logs...