Skip to content

Application of Matryoshka Representation Learning on LLM Embeddings

Notifications You must be signed in to change notification settings

ciCciC/embedding-opt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Matryoshka Representation Learning (MRL) and Binary Quantization (BQ)

MRL is a scaling solution to reduce the dimensionality of the embeddings by truncation. The solution introduces embeddings of various sizes keeping the most important features in earlier dimensions compared to later dimensions. This results in maintaining the most important features while maintaining high quality and cheaper embeddings as used by OpenAI.

Models

pip install torch --index-url https://download.pytorch.org/whl/cu121
pip install -r requirements.txt

About

Application of Matryoshka Representation Learning on LLM Embeddings

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published