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

Segmentation fault on Mac M1 during conversion #18

Closed
deusdeorum0 opened this issue Feb 24, 2023 · 3 comments
Closed

Segmentation fault on Mac M1 during conversion #18

deusdeorum0 opened this issue Feb 24, 2023 · 3 comments

Comments

@deusdeorum0
Copy link

deusdeorum0 commented Feb 24, 2023

I have been unable to convert the model
Regardless of whether I have tried with or without quantization, or different models - unfortunately, I have had no success.

192:faster-whisper$ ct2-transformers-converter --model openai/whisper-small --output_dir output
Segmentation fault: 11

192:faster-whisper$ ct2-transformers-converter --model openai/whisper-tiny --output_dir output
Segmentation fault: 11

192:faster-whisper$ ct2-transformers-converter --model openai/whisper-tiny.en --output_dir output Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.92k/1.92k [00:00<00:00, 486kB/s] Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████| 151M/151M [00:04<00:00, 37.2MB/s] Segmentation fault: 11 192:faster-whisper$ /usr/local/Cellar/[email protected]/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown warnings.warn('resource_tracker: There appear to be %d '
^^ this one just freezes

192:faster-whisper$ ct2-transformers-converter --model openai/whisper-tiny --output_dir output --quantization float16
Segmentation fault: 11

192:faster-whisper$ ct2-transformers-converter --model openai/whisper-small --output_dir output --quantization float16
Segmentation fault: 11

192:faster-whisper$ ct2-transformers-converter --model openai/whisper-tiny.en --output_dir output --quantization float16
Segmentation fault: 11

@guillaumekln
Copy link
Contributor

How did you install the library? Can you try clearing your Python environment and reinstalling again?

@deusdeorum0
Copy link
Author

Oops.
I installed with venv and everything worked just fine.
Sorry to have bothered you!

@shahzebali42
Copy link

Working in a new venv is not working fine for me

I am getting the following error while converting my local huggingface whisper model

`zsh: segmentation fault ct2-transformers-converter --model --output_dir --copy_files tokenizer.json``

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