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

[MLC-28] server: added Bert MLX model with conversions for e5 models #15

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

stockeh
Copy link
Contributor

@stockeh stockeh commented Mar 1, 2024

Updates

  • Moved convert to utils.py with functionality for deleting old models after storing locally
  • Added BertModel for e5-based models with MLX primatives, e.g., intfloat/multilingual-e5-small
  • Updated E5Embeddings to use MLX primitives and convert model if not loaded

Preliminary Benchark

MLX (bs=1): Indexed 1553 documents in 9.67s
MLX (bs=8): Indexed 1553 documents in 3.75s
MLX (bs=32): Indexed 1553 documents in 4.47s

Torch (bs=1): Indexed 1553 documents in 32.15s

@stockeh stockeh requested a review from ParkerSm1th March 1, 2024 15:20
@stockeh stockeh self-assigned this Mar 1, 2024
@stockeh stockeh merged commit 6890743 into main Mar 1, 2024
1 check passed
@stockeh stockeh deleted the MLC-28 branch March 5, 2024 05:13
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.

1 participant