[PR #4422] [MERGED] fix(ml): allow larger CLIP models #10372

Closed
opened 2026-02-05 14:20:42 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/4422
Author: @mertalev
Created: 10/10/2023
Status: Merged
Merged: 10/10/2023
Merged by: @alextran1502

Base: mainHead: fix/ml-vit-b


📝 Commits (1)

  • e057c06 removed vit-b check and st warning

📊 Changes

1 file changed (+3 additions, -25 deletions)

View changed files

📝 machine-learning/app/models/clip.py (+3 -25)

📄 Description

Description

The ML service has a check to ensure the CLIP model is a ViT-B model. This was because we used to require an embedding size of 512 in the Typesense schema. Since we now allow variable embedding sizes, this check is no longer necessary and users should be able to select larger models.

This PR also removes a warning for the Sentence-Transformers -> Jina model migration as it's been many releases since this change.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/immich-app/immich/pull/4422 **Author:** [@mertalev](https://github.com/mertalev) **Created:** 10/10/2023 **Status:** ✅ Merged **Merged:** 10/10/2023 **Merged by:** [@alextran1502](https://github.com/alextran1502) **Base:** `main` ← **Head:** `fix/ml-vit-b` --- ### 📝 Commits (1) - [`e057c06`](https://github.com/immich-app/immich/commit/e057c06d6f072a2d39426fae8c43dc754a001051) removed vit-b check and st warning ### 📊 Changes **1 file changed** (+3 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `machine-learning/app/models/clip.py` (+3 -25) </details> ### 📄 Description ### Description The ML service has a check to ensure the CLIP model is a ViT-B model. This was because we used to require an embedding size of 512 in the Typesense schema. Since we now allow variable embedding sizes, this check is no longer necessary and users should be able to select larger models. This PR also removes a warning for the Sentence-Transformers -> Jina model migration as it's been many releases since this change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 14:20:42 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#10372