HuggingFaceFW/fineweb
Viewer • Updated • 52.5B • 385k • 3.14k
AhıskaAI-135M-Base-v0.3 is a ~135 million parameter Small Language Model (SLM) trained completely from scratch. Building upon the learnings of the v0.2 release, v0.3 introduces architectural optimizations (such as Grouped-Query Attention), an expanded and multi-domain pre-training corpus, and enhanced training efficiency using Liger Kernel.
num_key_value_heads: 4). This significantly reduces KV-cache memory overhead and boosts inference throughput compared to standard MHA in v0.2.apply_liger_kernel_to_llama) and adamw_torch_fused optimization in bfloat16 precision, maximizing hardware utilization.LlamaForCausalLM with GQAfloat16The model was pre-trained on a balanced multi-domain dataset (~2.04 GB total):
| Data Source | Share (%) | Size | Primary Domain |
|---|---|---|---|
| BILGEM AI Turkish Wikipedia | 53.2% | 1.09 GB | General Knowledge & Turkish Grammar |
| BİLGEM Turkish Stories | 21.6% | 443 MB | Narrative & Fluency |
| Python Code (The Stack) | 17.6% | 360 MB | Reasoning & Logic |
| FineWeb English | 7.6% | 150 MB | Cross-lingual & General Alignment |
float16import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "AhiskaAI/AhiskaAI-135M-Base-v0.3"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16 if torch.cuda.is_available() and torch.cuda.is_bf16_supported() else torch.float16,
device_map="auto"
)
prompt = "Türkiye Cumhuriyeti'nin başkenti"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=100,
temperature=0.7,
top_p=0.9,
do_sample=True
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
AhıskaAI is an independent initiative dedicated to developing efficient, high-performance Small Language Models (SLMs) tailored for the Turkish language ecosystem.