Closed sankydesai closed 6 hours ago
Hey @sankydesai, I don't think you can really import Phi3VModel
or Phi3VForCausalLM
directly from transformers
The configuration for the Phi3 Vision model includes an auto_map field, which indicates the appropriate classes to use for loading the model.
"auto_map": {
"AutoConfig": "configuration_phi3_v.Phi3VConfig",
"AutoModelForCausalLM": "modeling_phi3_v.Phi3VForCausalLM"
}
Which is uploaded on the hub itself
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
System Info
from transformers import Phi3VModel, Phi3VConfig. Fails with error: ImportError: cannot import name 'Phi3VModel' from 'transformers' (/usr/local/lib/python3.10/dist-packages/transformers/init.py)
Note: Installed Transformers from source.
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
!pip install -U git+https://github.com/huggingface/transformers from transformers import Phi3VModel, Phi3VConfig
Expected behavior
No Error.