You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(encoders): platform-aware default encoder for new albums
OpenCLIP ViT-L-14 is impractically slow to index/search on CPU-only
Linux/Windows hosts. New albums on those hosts now default to the
lightweight OpenAI CLIP ViT-B/32 instead, while CUDA hosts and macOS
(untested for the lighter path) keep the high-quality ViT-L-14 default.
- encoders.py: add CPU_FALLBACK_ENCODER_SPEC + default_encoder_spec()
resolver (CUDA/macOS -> ViT-L-14, CPU Linux/Windows -> ViT-B/32)
- config.py: Album.encoder_spec uses default_factory=default_encoder_spec
- routers/album.py: GET /default_encoder/ exposes the host-resolved default
- album-manager.js: new-album dropdown pre-selects the server default
(cached fetch, falls back to recommended option on failure)
Existing albums keep their stored encoder_spec; only the default for
newly created albums changes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments