Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image - ModuleNotFoundError: No module named 'transformers' #64

Open
RitwikGupta opened this issue Jan 6, 2025 · 3 comments
Open

Comments

@RitwikGupta
Copy link

When attempting to execute locally using Docker (latest tag, which maps to v0.2.1.post7), the following error is thrown:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.10/site-packages/bigcodebench/evaluate.py", line 21, in <module>
    from bigcodebench.generate import run_codegen
  File "/usr/local/lib/python3.10/site-packages/bigcodebench/generate.py", line 6, in <module>
    from bigcodebench.provider import DecoderBase, make_model
  File "/usr/local/lib/python3.10/site-packages/bigcodebench/provider/__init__.py", line 1, in <module>
    from bigcodebench.provider.base import DecoderBase
  File "/usr/local/lib/python3.10/site-packages/bigcodebench/provider/base.py", line 4, in <module>
    from bigcodebench.provider.utility import EOS
  File "/usr/local/lib/python3.10/site-packages/bigcodebench/provider/utility.py", line 2, in <module>
    from transformers import AutoTokenizer
ModuleNotFoundError: No module named 'transformers

In the provided Dockerfiles in the project, bigcodebench is installed with no deps, but Transformers is never otherwise specified for installation.

When running without Docker, I run into the matplotlib/_c_internal_utils.cpython-310-x86_64-linux-gnu.so: failed to map segment from shared object previously reported in #62 and #34

@terryyz
Copy link
Collaborator

terryyz commented Jan 6, 2025

Thanks for reporting the issue! The docker image has been updated.

Regarding the matplotlib issue, is it caused by the issue reported in #34?

@RitwikGupta
Copy link
Author

@terryyz No, setting the max limits did not fix the issue.

@terryyz
Copy link
Collaborator

terryyz commented Jan 7, 2025

@RitwikGupta Let me investigate the issue and get back to you shortly. Meanwhile, please use the remote APIs for code execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants