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

noavx flag appears to still use avx code? #17

Open
MarkinBrisbane opened this issue Feb 17, 2021 · 2 comments
Open

noavx flag appears to still use avx code? #17

MarkinBrisbane opened this issue Feb 17, 2021 · 2 comments

Comments

@MarkinBrisbane
Copy link

Hi @synesthesiam (Michael), I stumbled across your work whilst trying to learn more about AI/TTS so eagerly tried to run it in docker which lives in a guest on my mini-vm server which has a Celeron J4105 processor. I followed the directions to use the synesthesiam/mozillatts:en-noavx tag which results in the container loading and the webserver running (ports mapped 5002:5002).

Not long after I enter some text and select "Speak" it returns Error: Failed to fetch

The container then shows as stopped (I am lazy and use portainer)

Container status: Stopped for 25 minutes with exit code 132

End of log file:
[INFO] * Running on http://0.0.0.0:5002/ (Press CTRL+C to quit)
[INFO] 192.168.1.110 - - [17/Feb/2021 05:46:48] "GET / HTTP/1.1" 200 -
[INFO] Synthesizing (4 char(s))...
[INFO] initializing backend espeak-1.48.03
/run.sh: line 3: 6 Illegal instruction (core dumped) bin/python3 -m tts_web "$@"

@synesthesiam
Copy link
Owner

Hi, @MarkinBrisbane. Thanks for giving it a try!

I've tried and (so far) failed to build PyTorch without AVX instructions. I thought I had succeeded originally because the -noavx versions ran much slower on my CPU (with AVX), but when I finally tried it on a system without AVX (Pentium G440) it still crashed.

I spent a week trying various build options, both for PyTorch's setup.py and for its underlying CMake build. No matter what I try, I can't seem to stop the compiler from inserting AVX instructions somewhere. I've even built it on the Pentium G440, and it still adds them!

If anyone has any ideas, I'd love to hear them :)

@MarkinBrisbane
Copy link
Author

I did some quick googling and it appears there have been some updates on it here:
pytorch/pytorch#43300

I'm not too familiar with how it all hangs together to understand if that is "the answer" or not sorry

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