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

Apple M1 incompatibility #38

Open
rodighiero opened this issue Dec 27, 2023 · 3 comments
Open

Apple M1 incompatibility #38

rodighiero opened this issue Dec 27, 2023 · 3 comments
Assignees
Labels

Comments

@rodighiero
Copy link

The package appears to be incompatible with Apple M1. Here is the recurring error I get from running it.

nyt-news-labeler-1 | [2023-12-27 19:39:53 +0000] [1] [INFO] Starting gunicorn 20.1.0 nyt-news-labeler-1 | [2023-12-27 19:39:53 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1) nyt-news-labeler-1 | [2023-12-27 19:39:53 +0000] [1] [INFO] Using worker: sync nyt-news-labeler-1 | [2023-12-27 19:39:53 +0000] [24] [INFO] Booting worker with pid: 24 nyt-news-labeler-1 | [2023-12-27 19:39:54 +0000] [1] [WARNING] Worker with pid 24 was terminated due to signal 4 nyt-news-labeler-1 | [2023-12-27 19:39:54 +0000] [34] [INFO] Booting worker with pid: 34 nyt-news-labeler-1 | [2023-12-27 19:39:54 +0000] [1] [WARNING] Worker with pid 34 was terminated due to signal 4 nyt-news-labeler-1 | [2023-12-27 19:39:54 +0000] [44] [INFO] Booting worker with pid: 44 nyt-news-labeler-1 | [2023-12-27 19:39:54 +0000] [1] [WARNING] Worker with pid 44 was terminated due to signal 4 nyt-news-labeler-1 | [2023-12-27 19:39:54 +0000] [54] [INFO] Booting worker with pid: 54 nyt-news-labeler-1 | [2023-12-27 19:39:55 +0000] [1] [WARNING] Worker with pid 54 was terminated due to signal 4 nyt-news-labeler-1 | [2023-12-27 19:39:55 +0000] [64] [INFO] Booting worker with pid: 64 nyt-news-labeler-1 | [2023-12-27 19:39:55 +0000] [1] [WARNING] Worker with pid 64 was terminated due to signal 4

@rahulbot rahulbot self-assigned this Jan 1, 2024
@rahulbot rahulbot added the bug label Jan 1, 2024
@rahulbot
Copy link
Contributor

rahulbot commented Jan 1, 2024

Dockerhub has builds for linux/arm64 - those don't work for you?

@rodighiero
Copy link
Author

It doesn't work. I do not know whether others have the same issue. The image is constantly shut down and reopened as in the screenshot.
Screenshot 2024-01-03 at 12 00 23 PM

The sequence I am running is this:
docker pull rahulbot/nyt-news-labeler:latest
docker run --platform linux/amd64 -p 8000:8000 -m 8G -d rahulbot/nyt-news-labeler:latest

And I don't have any answers from the command line
curl -X POST http://localhost:8000/predict.json -H "Content-Type: application/json" -d '{"text": "Federal agents show stronger force at Portland protests despite order to withdraw" }'

Perhaps the problem is different, but the docker is working smoothly on our Linux machine.

@rahulbot
Copy link
Contributor

rahulbot commented Jan 4, 2024

Ah I see what you mean. Yes, I see the same problem here. I also can't get the image to build on my M1 from source due to tensorflow version nonsense. Sorry, I don't see a quick solution here for M1 🤷🏽‍♂️

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

No branches or pull requests

2 participants