Downloads · 30 days
13
22% of all-time downloads
FHJibon/Bangla-LLM
Bangla-LLM is a text generation model from FHJibon. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
BanglaSupport-LLM is a domain-adapted, fine-tuned Large Language Model optimized specifically for Bangla E-Commerce Customer Support. Fine-tuned from Qwen2.5-7B-Instruct using Unsloth QLoRA, this model eliminates cros…
Downloads · 30 days
13
22% of all-time downloads
All-time downloads
58
Public
Repo size
173 MB
Likes
0
Public
Click a slice to open those files.
.safetensors162 MB · 93%
From the Hugging Face model README
BanglaSupport-LLM is a domain-adapted, fine-tuned Large Language Model optimized specifically for Bangla E-Commerce Customer Support. Fine-tuned from Qwen2.5-7B-Instruct using Unsloth QLoRA, this model eliminates cross-lingual Hindi-bleeding, offering natural, professional, and grammatically accurate customer support responses in native Bengali.
bn), English (en)unsloth/Qwen2.5-7B-Instruct-bnb-4bitimport torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
BASE_MODEL = "unsloth/Qwen2.5-7B-Instruct-bnb-4bit"
ADAPTER_ID = "mrshibly/bangla-support-qwen3-8b"
print("Loading model and tokenizer...")
tokenizer = AutoTokenizer.from_pretrained(BASE_MODEL)
base_model = AutoModelForCausalLM.from_pretrained(
BASE_MODEL,
device_map="auto",
trust_remote_code=True,
)
model = PeftModel.from_pretrained(base_model, ADAPTER_ID)
model.eval()
system_prompt = "তুমি একজন সহায়ক বাংলা ই-কমার্স গ্রাহক সেবা সহকারী।"
user_question = "আমার অর্ডারটি ৩ দিন ধরে পেন্ডিং আছে, ডেলিভারি কখন পাব?"
messages = [
{"role": "system", "content": system_prompt},
{"role": "user", "content": user_question},
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=150, temperature=0.7)
response = tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
print("Response:", response)
Trained on a curated dataset of 25,000 normalized Bangla instruction pairs filtered from:
md-nishat-008/Bangla-Instruct (ACL 2025 benchmark dataset)CohereForAI/aya_dataset (Bengali subset)Dataset preprocessing included NFC Unicode normalization, MinHash LSH deduplication, and instruction-intent filtering.
FastLanguageModel + SFTTrainerNormalFloat4 quantization)bfloat160.0q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projEvaluated against held-out test data using automated metrics & LLM-as-a-Judge benchmarking:
| Model Variant | BLEU-4 | ROUGE-L | BERTScore (F1) | LLM-Judge (Fluency) | LLM-Judge (Accuracy) |
|---|---|---|---|---|---|
| Base Qwen2.5-7B-Instruct | 0.1820 | 0.3840 | 0.7620 | 3.4 / 5.0 | 3.1 / 5.0 |
| Fine-Tuned BanglaSupport-LLM | 0.4280 | 0.6910 | 0.9140 | 4.8 / 5.0 | 4.7 / 5.0 |
BERTScore evaluated using sagorsarker/bangla-bert-base.