Skip to content

fix: use SentenceTransformer to automatically choose device#50

Merged
georgeh0 merged 1 commit intomainfrom
g/device
Mar 11, 2026
Merged

fix: use SentenceTransformer to automatically choose device#50
georgeh0 merged 1 commit intomainfrom
g/device

Conversation

@georgeh0
Copy link
Member

Use SentenceTransformer to automatically choose device when COCOINDEX_CODE_DEVICE is not specified.
So that MPS will be automatically chosen on macOS.

Fixes #49

Use `SentenceTransformer` to automatically choose device when
`COCOINDEX_CODE_DEVICE` is not specified.
So that MPS will be automatically chosen on macOS.

Fixes #49
@georgeh0 georgeh0 merged commit cd379ad into main Mar 11, 2026
5 checks passed
@georgeh0 georgeh0 deleted the g/device branch March 11, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

using COCOINDEX_CODE_DEVICE=mps can enhance embedding speed if you are apple silicon mac user

1 participant