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

OSError: .......cannot open shared object file: No such file or directory #209

Open
Saurabh11811 opened this issue Apr 17, 2024 · 3 comments

Comments

@Saurabh11811
Copy link

I am using the base code as given in HF

from ctransformers import AutoModelForCausalLM
llm = AutoModelForCausalLM.from_pretrained('marella/gpt-2-ggml')
print(llm('AI is going to'))

While this works fine locally on Mac machine, it fails on any of the linux environment (I tried Debian, Ubuntu, Alpine etc. ) using docker.

Here are the errors for each of them


For Apline (FROM python:3.12.1-alpine3.19)

Error is - OSError: Error relocating /usr/local/lib/python3.12/site-packages/ctransformers/lib/basic/libctransformers.so: unsupported relocation type 7


For both Debian, Ubuntu
Error is - OSError: /usr/local/lib/python3.11/site-packages/ctransformers/lib/basic/libctransformers.so: cannot open shared object file: No such file or directory


Even for direct python3.11 images same error comes.

I am trying the latest version

@jash-gmu
Copy link

i am facing the same issue, did you find any solution ?

@Saurabh11811
Copy link
Author

Saurabh11811 commented Apr 24, 2024 via email

@Ajayvenki
Copy link

Try. #9

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

3 participants