ModuleNotFoundError
Hello, I use transformers 4.41.2 and when I try to run your HF sample code I have :
Cell In[50], line 8
model = AutoModelForCausalLM.from_pretrained(
File ~\Anaconda3\envs\py39\lib\site-packages\transformers\models\auto\auto_factory.py:550 in from_pretrained
model_class = get_class_from_dynamic_module(
File ~\Anaconda3\envs\py39\lib\site-packages\transformers\dynamic_module_utils.py:513 in get_class_from_dynamic_module
return get_class_in_module(class_name, final_module)
File ~\Anaconda3\envs\py39\lib\site-packages\transformers\dynamic_module_utils.py:211 in get_class_in_module
module_spec.loader.exec_module(module)
File :850 in exec_module
File :228 in _call_with_frames_removed
File ~.cache\huggingface\modules\transformers_modules\MILVLG\Imp-v1.5-4B-Phi3\67394b9e49f912e892814ef922e1c485e91bf9e4\modeling_imp.py:44
from .vision_encoder import VisionTower
ModuleNotFoundError: No module named 'transformers_modules.MILVLG.Imp-v1'
Thanks for your issue.
You can add '/' after "MILVLG/Imp-v1.5-4B-Phi3", then it should be work.
And we will update it.