Views
No views yet

[!TIP] Beetles are some of the most diverse and interesting creatures on Earth. They are found in every environment, from the deepest oceans to the highest mountains. They are also known for their ability to adapt to a wide range of habitats and lifestyles. They are small, fast and powerful!
baai/bge-base-en-v1.5, with PCA with 256 dimensions, applying Zipf and applying SIF re-weighting, learnt from a subset of the C4 corpus. This model is significantly better than the M2V_base_output model but slightly worse than the brown-beetle-base-v1.1 model.[!NOTE] The brown beetle series is made for convinience in loading and using the model instead of having to run it, though it is pretty fast to reproduce anyways. If you want to use the original model by the folks from the Minish Lab, you can use the M2V_base_output model.
pip install model2vecfrom_pretrained method:1from model2vec import StaticModel
2
3# Load a pretrained Model2Vec model
4model = StaticModel.from_pretrained("bhavnicksm/brown-beetle-small-v1.1")
5
6# Compute text embeddings
7embeddings = model.encode(["Example sentence"])1@software{minishlab2024model2vec,
2 authors = {Stephan Tulkens, Thomas van Dongen},
3 title = {Model2Vec: Turn any Sentence Transformer into a Small Fast Model},
4 year = {2024},
5 url = {https://github.com/MinishLab/model2vec},
6}