Sentence Similarity
sentence-transformers
Safetensors
Georgian
xlm-roberta
trimmed
text-embeddings-inference
Run this model with HF Jobs
Run alphaedge-ai/multilingual-e5-base-kat-16384 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/alphaedge-ai/multilingual-e5-base-kat-16384. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/alphaedge-ai/multilingual-e5-base-kat-16384 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use alphaedge-ai/multilingual-e5-base-kat-16384 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use alphaedge-ai/multilingual-e5-base-kat-16384 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("alphaedge-ai/multilingual-e5-base-kat-16384") 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] - Notebooks
- Google Colab
- Kaggle
Use ISO 639-1 language codes when available
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970---pipeline_tag: sentence-similaritylanguage: katlicense: mittags:- trimmedlibrary_name: sentence-transformersbase_model: intfloat/multilingual-e5-basebase_model_relation: quantizeddatasets:- lbourdois/fineweb-2-trimming---# multilingual-e5-base-kat-16384This model is a **64.53% smaller** version of [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base) optimized for **Georgian** language via vocabulary size reduction using the [trimming](https://huggingface.co/blog/lbourdois/introduction-to-trimming) method.This trimmed model should perform similarly to the original model with only 16,384 tokens and a much smaller memory footprint. However, it may not perform well for other languages as tokens not commonly used in the selected languages were removed from the vocabulary.## Model Statistics| Metric | Original | Trimmed | Reduction ||--------|----------|---------|-----------|| **Vocabulary size** | 250,037 tokens | 16,384 tokens | **93.44%** || **Model size** | 278,043,648 params | 98,625,024 params | **64.53%** |## Mining Dataset Statistics- **Number of texts used for mining**: 200,000 texts- **Dataset**: [lbourdois/fineweb-2-trimming](https://huggingface.co/datasets/lbourdois/fineweb-2-trimming)## Usage```pythonfrom sentence_transformers import SentenceTransformer# Download from the 🤗 Hubmodel = SentenceTransformer("alphaedge-ai/multilingual-e5-base-kat-16384")# Run inference with queries and documentsquery = "My query in Georgian"documents = ["Chunk in Georgian","Chunk in Georgian","Chunk in Georgian",]query_embeddings = model.encode_query(query)document_embeddings = model.encode_document(documents)print(query_embeddings.shape, document_embeddings.shape)# Compute similarities to determine a rankingsimilarities = model.similarity(query_embeddings, document_embeddings)print(similarities)```## Citations#### Multilingual E5```@article{wang2024multilingual,title={Multilingual E5 Text Embeddings: A Technical Report},author={Wang, Liang and Yang, Nan and Huang, Xiaolong and Yang, Linjun and Majumder, Rangan and Wei, Furu},journal={arXiv preprint arXiv:2402.05672},year={2024}}```#### Trimming blog post```@misc{hf_blogpost_trimming,title={Introduction to Trimming},author={Loïck BOURDOIS and Tom AARSEN and Bram VANROY and Christopher AKIKI and Woojun JUNG and Manuel ROMERO and Prithiv SAKTHI},year={2026},url={https://huggingface.co/blog/lbourdois/introduction-to-trimming},}```12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970---pipeline_tag: sentence-similaritylanguage: kalicense: mittags:- trimmedlibrary_name: sentence-transformersbase_model: intfloat/multilingual-e5-basebase_model_relation: quantizeddatasets:- lbourdois/fineweb-2-trimming---# multilingual-e5-base-kat-16384This model is a **64.53% smaller** version of [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base) optimized for **Georgian** language via vocabulary size reduction using the [trimming](https://huggingface.co/blog/lbourdois/introduction-to-trimming) method.This trimmed model should perform similarly to the original model with only 16,384 tokens and a much smaller memory footprint. However, it may not perform well for other languages as tokens not commonly used in the selected languages were removed from the vocabulary.## Model Statistics| Metric | Original | Trimmed | Reduction ||--------|----------|---------|-----------|| **Vocabulary size** | 250,037 tokens | 16,384 tokens | **93.44%** || **Model size** | 278,043,648 params | 98,625,024 params | **64.53%** |## Mining Dataset Statistics- **Number of texts used for mining**: 200,000 texts- **Dataset**: [lbourdois/fineweb-2-trimming](https://huggingface.co/datasets/lbourdois/fineweb-2-trimming)## Usage```pythonfrom sentence_transformers import SentenceTransformer# Download from the 🤗 Hubmodel = SentenceTransformer("alphaedge-ai/multilingual-e5-base-kat-16384")# Run inference with queries and documentsquery = "My query in Georgian"documents = ["Chunk in Georgian","Chunk in Georgian","Chunk in Georgian",]query_embeddings = model.encode_query(query)document_embeddings = model.encode_document(documents)print(query_embeddings.shape, document_embeddings.shape)# Compute similarities to determine a rankingsimilarities = model.similarity(query_embeddings, document_embeddings)print(similarities)```## Citations#### Multilingual E5```@article{wang2024multilingual,title={Multilingual E5 Text Embeddings: A Technical Report},author={Wang, Liang and Yang, Nan and Huang, Xiaolong and Yang, Linjun and Majumder, Rangan and Wei, Furu},journal={arXiv preprint arXiv:2402.05672},year={2024}}```#### Trimming blog post```@misc{hf_blogpost_trimming,title={Introduction to Trimming},author={Loïck BOURDOIS and Tom AARSEN and Bram VANROY and Christopher AKIKI and Woojun JUNG and Manuel ROMERO and Prithiv SAKTHI},year={2026},url={https://huggingface.co/blog/lbourdois/introduction-to-trimming},}```
README.md+69-69