Use relative import for confguration_clip

#1

Use relative import, just as in microsoft/LLM2CLIP-Openai-L-14-336.

Currently this error is raised:

  File "/home/mteb-env/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 551, in from_pretrained
    model_class = get_class_from_dynamic_module(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mteb-env/lib/python3.11/site-packages/transformers/dynamic_module_utils.py", line 502, in get_class_from_dynamic_module
    final_module = get_cached_module_file(
                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mteb-env/lib/python3.11/site-packages/transformers/dynamic_module_utils.py", line 327, in get_cached_module_file
    modules_needed = check_imports(resolved_module_file)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mteb-env/lib/python3.11/site-packages/transformers/dynamic_module_utils.py", line 182, in check_imports
    raise ImportError(
ImportError: This modeling file requires the following packages that were not found in your environment: configuration_clip. Run `pip install configuration_clip`
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment