Downloads · 30 days
96
37% of all-time downloads
OsamaBinLikhon/sheikh-bangla-110m
sheikh-bangla-110m is a text generation model from OsamaBinLikhon. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
A Bengali GPT-2 language model trained from scratch with custom BPE tokenizer.
Downloads · 30 days
96
37% of all-time downloads
All-time downloads
258
Public
Parameters
23.1M
92.6 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors92.6 MB · 99%
From the Hugging Face model README
A Bengali GPT-2 language model trained from scratch with custom BPE tokenizer.
[PAD] - Padding token (ID: 0)[UNK] - Unknown token (ID: 1)[CLS] - Beginning of sentence (ID: 2)[SEP] - End of sentence (ID: 3)[MASK] - Mask token (ID: 4)from transformers import GPT2LMHeadModel, PreTrainedTokenizerFast
# Load model and tokenizer
model = GPT2LMHeadModel.from_pretrained("OsamaBinLikhon/sheikh-bangla-110m")
tokenizer = PreTrainedTokenizerFast.from_pretrained("OsamaBinLikhon/sheikh-bangla-110m")
# Generate text
input_text = "বাংলা ভাষা হলো"
inputs = tokenizer.encode(input_text, return_tensors="pt")
outputs = model.generate(inputs, max_length=100, do_sample=True, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The model shows progressive loss reduction during training:
@misc{sheikh-bangla-110m,
author = {Osama Bin Likhon},
title = {sheikh-bangla-110m: Bengali GPT-2 Model Trained from Scratch},
url = {https://huggingface.co/OsamaBinLikhon/sheikh-bangla-110m},
}