Instructions to use geevec-ai/geevec-embeddings-1.0-lite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use geevec-ai/geevec-embeddings-1.0-lite with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("geevec-ai/geevec-embeddings-1.0-lite", trust_remote_code=True) sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Transformers
How to use geevec-ai/geevec-embeddings-1.0-lite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="geevec-ai/geevec-embeddings-1.0-lite", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("geevec-ai/geevec-embeddings-1.0-lite", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update pseudo_moe_st_module.py
Fix three issues in the Sentence Transformers module
domain="general" raised ValueError, although it is the documented default route; it's not in config.domain_names. It is now accepted and listed in the error message.
Tokenizer options were silently ignored on Sentence Transformers 5.x and 6.x, which pass them as processor_kwargs (formerly tokenizer_kwargs). Both names are now accepted.
model.save() followed by a reload failed with ModuleNotFoundError: No module named 'pseudo_moe_st_module', because the module was saved in a subfolder. save_in_root = True keeps it in the root folder, matching this repo's layout.
Tested with Sentence Transformers 4.1.0, 5.7.0 and 6.1.0 (on Transformers 4.51.3, 4.57.1 and 5.18.0, combined with the modeling-file PR): default embeddings are unchanged, all domains work, and a saved model reloads with the same embeddings.