NeuronUz/NeuronAI-Uzbek
<div align="center">
πΊπΏ NeuronAI-Uzbek
The Most Advanced Open-Source Language Model for Uzbek
  
π 4th Place Globally | π₯ 1st Place in Uzbekistan on UzLiB Benchmark
Outperforming GPT-4o, Claude 3.5 Sonnet, and Gemini 2.5 Flash on Uzbek language tasks
</div>
π Key Results
<div align="center">
</div>
π UzLiB Benchmark Performance
NeuronAI-Uzbek achieves exceptional performance on the UzLiB Benchmark, the comprehensive evaluation suite for Uzbek language understanding.
Leaderboard Position

Note: NeuronAI-Uzbek is the smallest model in the top 10, with only 4B parameters, while competing against models with 100B+ parameters.
Performance Comparison vs Original Qwen3-4B
π€ Tokenizer Efficiency
We optimized the tokenizer specifically for Uzbek, achieving significantly better tokenization efficiency (lower fertility rate = fewer tokens per word = faster inference and lower costs).
Fertility Rate Comparison
Fertility Rate: Average number of tokens per word. Lower is better for efficiency.
<div align="center"> <img src="assets/fertilitycomparisonchart.png" alt="Tokenizer Fertility Rate Comparison" width="700"/> </div>
What This Means
- 22.5% fewer tokens needed to represent Uzbek text
- Faster inference due to shorter sequences
- Lower API costs when deployed
- Better context utilization - fit more content in the same context window
π οΈ Model Details
Architecture
Training Methodology
- Tokenizer Surgery: Extended vocabulary with 40,000 Uzbek-optimized tokens
- Embedding Initialization: Semantic initialization using subword composition
- Continual Pretraining: Trained on 2B tokens of Uzbek and English text corpus
- Instruction Fine-tuning: Aligned using Uzbek and English instruction datasets
Training Data
π Quick Start
Installation
pip install transformers torchBasic Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "NeuronUz/NeuronAI-Uzbek"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto",
trust_remote_code=True
)
prompt = "O'zbekiston haqida qisqacha ma'lumot bering."
messages = [
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
top_p=0.9,
do_sample=True
)
response = tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True)
print(response)With Thinking Mode (Chain-of-Thought)
messages = [
{"role": "user", "content": "5 ta 3 ga bo'linuvchi 100 dan kichik natural sonlarni toping."}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
enable_thinking=True # Enable step-by-step reasoning
)π Use Cases
NeuronAI-Uzbek excels at:
- π Text Generation: Creative writing, content creation in Uzbek
- β Question Answering: Answering questions about Uzbek culture, history, and general knowledge
- π Reading Comprehension: Understanding and analyzing Uzbek texts
- π€ Grammar & Spelling: Uzbek language correctness tasks
- π Translation Assistance: Uzbek-English language tasks
- π¬ Conversational AI: Building Uzbek chatbots and assistants
β οΈ Limitations
- Knowledge Cutoff: Training data has a knowledge cutoff date
- Hallucinations: May generate plausible-sounding but incorrect information
- Bias: May reflect biases present in training data
- Not for Critical Applications: Should not be used for medical, legal, or safety-critical applications without human oversight
π License
This model is released under the Apache 2.0 License.
π Acknowledgments
- Qwen Team at Alibaba for the excellent Qwen3-4B base model
- UzLiB Benchmark creators for the comprehensive evaluation framework
- Uzbek NLP Community for datasets and linguistic resources
π Citation
@misc{neuronai-uzbek-2025,
title={NeuronAI-Uzbek: An Optimized Language Model for Uzbek},
author={NeuronAI Team},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/NeuronUz/NeuronAI-Uzbek}
}<div align="center">
Built with β€οΈ in Uzbekistan by [NeuronUz](https://huggingface.co/NeuronUz)
</div>
