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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug: Discrepancy between docker image sizes on ARM machines #1097

Open
DhanshreeA opened this issue Apr 3, 2024 · 3 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@DhanshreeA
Copy link
Member

Describe the bug.

Model images on ARM machines report a different size than what is shown on an Intel/AMD machine, even images built for the AMD platform. For example, the ersiliaos/eos3b5e:lates image reports the following sizes:

  1. On an x86_64 machine, the model image's size is 979 MB.
  2. On arm64 (Apple silicon, M3), the model image's size 1.53 GB
  3. On the same machine with a shell run under Rosetta 2 and i386 architecture, the image specifically for platform=linux/amd64 is 1.43 GB. The arch was double checked through docker inspect.

Describe the steps to reproduce the behavior

Obtain a linux machine such as by setting up ersilia codespaces, and pull the said model, and inspect the size. Now, obtain a Apple silicon machine and pull the same image first normally, and then with the platform flag as docker pull --platform=linux/amd64 ersiliaos/eos3b5e, and inspect the image size.

Expected behavior.

The images should be comparable in size, or at least we should figure out if we can add any more arm specific optimizations during our builds.

Screenshots.

No response

Operating environment

Mac Sonoma

Additional context

No response

@miquelduranfrigola
Copy link
Member

This is interesting.
Would it help to build those ARM images on GitHub Actions runners that are already ARM (e.g. M1)? GitHub now provides them.

@DhanshreeA
Copy link
Member Author

Additional info here (See Additional Info in the linked issue): docker/cli#4980

@DhanshreeA
Copy link
Member Author

This is interesting. Would it help to build those ARM images on GitHub Actions runners that are already ARM (e.g. M1)? GitHub now provides them.

I agree, definitely worth investigating at the very least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Queue
Development

No branches or pull requests

2 participants