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

feat(server,ml): remove image tagging #5903

Merged
merged 5 commits into from
Dec 21, 2023
Merged

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Dec 20, 2023

Description

This job has been effectively deprecated for some time and is currently disabled by default. The removal of it will be good in several respects:

  1. Many dependencies can be removed from the ML service
  2. Crashes on ARM devices will no longer occur due to the classification model being exported at runtime
  3. Dependency updates can be automated through Renovate
  4. Avoids user confusion -- users often confuse it with the more useful smart search feature

The image size has been shrunk from 1.66gb to 762mb.

The ML service's RAM usage at startup has decreased from 320mb to 215mb.

How Has This Been Tested?

Tested that the server boots up and that the ML endpoints still work.

Copy link

cloudflare-pages bot commented Dec 20, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 401901d
Status: ✅  Deploy successful!
Preview URL: https://5eae260f.immich.pages.dev
Branch Preview URL: https://chore-ml-remove-image-taggin.immich.pages.dev

View logs

@mertalev mertalev force-pushed the chore/ml-remove-image-tagging branch from c34c8b3 to 2abb94e Compare December 20, 2023 22:20
@mertalev mertalev force-pushed the chore/ml-remove-image-tagging branch 3 times, most recently from b64a997 to f58b224 Compare December 20, 2023 22:25
@mertalev mertalev force-pushed the chore/ml-remove-image-tagging branch from f58b224 to 8cd8fe9 Compare December 20, 2023 22:29
@mertalev mertalev changed the title chore(server,ml): remove image tagging feat(server,ml)!: remove image tagging Dec 20, 2023
@mertalev mertalev force-pushed the chore/ml-remove-image-tagging branch 3 times, most recently from e560e81 to 6fdbd1a Compare December 20, 2023 23:27
@mertalev mertalev force-pushed the chore/ml-remove-image-tagging branch from 6fdbd1a to 979151f Compare December 20, 2023 23:28
@mertalev mertalev force-pushed the chore/ml-remove-image-tagging branch from 3e3caaa to f12b393 Compare December 21, 2023 00:22
@mertalev mertalev changed the title feat(server,ml)!: remove image tagging feat(server,ml): remove image tagging Dec 21, 2023
@mertalev mertalev marked this pull request as ready for review December 21, 2023 01:09
@mertalev mertalev force-pushed the chore/ml-remove-image-tagging branch from 958f49f to 401901d Compare December 21, 2023 01:27
@mertalev mertalev merged commit 092a23f into main Dec 21, 2023
24 checks passed
@mertalev mertalev deleted the chore/ml-remove-image-tagging branch December 21, 2023 01:47
@jrasm91
Copy link
Contributor

jrasm91 commented Dec 21, 2023

Why did we change the behavior of incorrect values in the config file? Did we decide to make them warnings instead?

@mertalev
Copy link
Contributor Author

It behaves the same for incorrect values, but now warns instead of throwing for extras. I think this is less disruptive; it doesn't need to error there as long as it lets the admin be aware that the option wasn't used. It's not like setting an unused env will throw either.

@jrasm91
Copy link
Contributor

jrasm91 commented Dec 21, 2023

Fair enough.

martabal pushed a commit that referenced this pull request Jan 9, 2024
* remove image tagging

* updated lock

* fixed tests, improved logging

* be nice

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

Successfully merging this pull request may close these issues.

None yet

3 participants