CoolFace
Modelpublic

Orzumurod/ModernUzBERT

sourceHugging Faceapache-2.0updated 6mo agoView on Hugging Face
3likes199downloads
Model Card

ModernUzBERT: A State-of-the-Art Semantic Representation Model for Uzbek

ModernUzBERT is a high-performance embedding model specifically architected and optimized for the Uzbek language. Leveraging the ModernBERT framework, it has been trained on an extensive Uzbek corpus and fine-tuned on 29,000+ domain-specific pairs to achieve superior accuracy in semantic retrieval and document representation.

📊 Dataset and Corpus Details

The model's linguistic foundation is built upon a massive and diverse Uzbek dataset, ensuring deep semantic understanding.

MetricValue / Detail
Training Samples30,000 (CQA Pairs)
Total Word Count125,261,608
Vocabulary Size1,348,641 unique words
Training LossMultipleNegativesRankingLoss

📈 Evaluation Benchmarks (Scientific Results)

ModernUzBERT establishes a new State-of-the-Art (SOTA) for Uzbek NLP, outperforming both local baselines and global multilingual models.

1. Retrieval Accuracy (Recall & MRR)

Metric**ModernUzBERT**UzRoBERTaBGE-M3
Recall@10.620.560.66
Recall@30.840.730.80
Recall@50.880.790.83
Recall@100.940.860.87
MRR@100.740.660.74

2. Efficiency Analysis (Inference Speed)

ModelAvg. Latency (s)Efficiency Rank
ModernUzBERT0.00511st (Fastest)
UzRoBERTa0.00592nd
BGE-M30.01353rd

🛠 Usage

Installation

bash
#pip install -U sentence-transformers

from sentence_transformers import SentenceTransformer

# Load the model
model = SentenceTransformer("Orzumurod/ModernUzBERT")

# Example Uzbek sentences
sentences = [
    "Yuridik shaxsning taʼsis hujjatlarida qanday maʼlumotlar aks ettirilishi kerak?",
    "Taʼsischisi, yuridik shaxsning pochta manzili va ustav fondi miqdori hujjatlarda aks etishi lozim."
]

# Generate embeddings
embeddings = model.encode(sentences)

# Compute similarity
similarity = model.similarity(embeddings[0], embeddings[1])
print(f"Similarity Score: {similarity.item():.2f}")
SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'ModernBertModel'})
  (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_mean_tokens': True})
)
bibtex
@misc{modernuzbert2026,
  author = {Orzumurod},
  title = {ModernUzBERT: Advanced Semantic Embeddings for the Uzbek Language},
  publisher = {Hugging Face},
  howpublished = {\url{[https://huggingface.co/Orzumurod/ModernUzBERT](https://huggingface.co/Orzumurod/ModernUzBERT)}}
}