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

[BUG/Help] <title> When executing in the mac terminal, I get the error: Segmentation fault: 11 #1475

Open
1 task done
Charirin opened this issue Apr 16, 2024 · 1 comment

Comments

@Charirin
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

No matter what I try, there is always this damn Segmentation fault: 11
Please tell me who has encountered this situation and how to deal with it. Please help me.
image

Expected Behavior

No response

Steps To Reproduce

1.ipython
2.run with import os from transformers import AutoTokenizer, AutoModel os.environ['KMP_DUPLICATE_LIB_OK'] = 'True' tokenizer = AutoTokenizer.from_pretrained("/Users/susun/workspace/models/chatglm2-6b-int4", trust_remote_code=True,revision="v1.0.0") model = AutoModel.from_pretrained("/Users/susun/workspace/models/chatglm2-6b-int4", trust_remote_code=True,revision="v1.0.0").float() model.eval()

got

Environment

Mac m2  macos 14.4.1  
python=3.10.14
torch=2.2.2
torchaudio=2.2.2 
torchvision=0.17.2
transformers= 4.27.1

Anything else?

No response

@Charirin
Copy link
Author

please help me

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

1 participant