CoolFace
Modelpublic

klei1/bleta-sq-2b

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
12likes52downloads
Model Card

Bleta SQ 2B โ€” Albanian Language Model

Bleta is a fine-tuned Gemma-4 2B model specialized for the Albanian language (Shqip). Built to understand and generate natural, grammatically correct Albanian text.

Bleta (๐Ÿ) means "bee" in Albanian โ€” a symbol of diligence and precision.

Model Details

PropertyValue
Base Modelgoogle/gemma-4-2b-it
ArchitectureGemma4ForConditionalGeneration
Parameters~2 Billion
Fine-tuning MethodLoRA โ†’ merged into full weights
LanguageAlbanian (sq), English (en)
LicenseApache 2.0

Training Dataset

Fine-tuned on [klei1/bleta-sq-dataset-v1](https://huggingface.co/datasets/klei1/bleta-sq-dataset-v1) โ€” a curated Albanian language instruction dataset covering conversation, grammar, reasoning, and general knowledge.

Usage

python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "klei1/bleta-sq-2b"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

messages = [
    {"role": "user", "content": "Cila eshte kryeqyteti i Shqiperise?"}
]

inputs = tokenizer.apply_chat_template(
    messages,
    return_tensors="pt",
    add_generation_prompt=True
).to(model.device)

outputs = model.generate(
    inputs,
    max_new_tokens=512,
    temperature=0.7,
    top_p=0.95,
    repetition_penalty=1.2,
    do_sample=True,
)

response = tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True)
print(response)

Recommended Generation Parameters

ParameterValueNotes
temperature0.7Balanced creativity
max_new_tokens400โ€“512Prevents loops
repetition_penalty1.2Reduces repetition
top_p0.95Nucleus sampling

Capabilities

  • โ€”Albanian conversational AI
  • โ€”Grammar correction and explanation
  • โ€”Albanian text generation and creative writing
  • โ€”Translation (Albanian โ†” English)
  • โ€”General knowledge in Albanian
  • โ€”Question answering

Limitations

  • โ€”2B parameter model โ€” complex reasoning may be limited
  • โ€”Primarily trained on Albanian; performance varies by topic
  • โ€”May occasionally produce grammatically imperfect outputs

Bleta Model Family

ModelParamsFocus
bleta-sq-2b2BAlbanian general
bleta-meditor-27b27BMedical + specialized
bleta-logjike-27b27BLogic + reasoning
bleta-1B1BLightweight

Citation

bibtex
@model{bleta_sq_2b_2026,
  title  = {Bleta SQ 2B: Gemma-4 Fine-tuned for Albanian Language},
  author = {klei1},
  year   = {2026},
  url    = {https://huggingface.co/klei1/bleta-sq-2b}
}

License

This model is released under the Apache 2.0 License.