Downloads · 30 days
15
9% of all-time downloads
sumitsen/BanglaGptAi1.0
BanglaGptAi1.0 is a text generation model from sumitsen. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
BanglaGptAi1.0 is the First release of BanglaGptAi .
Downloads · 30 days
15
9% of all-time downloads
All-time downloads
169
Public
Parameters
494M
988 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors988 MB · 99%
From the Hugging Face model README
BanglaGptAi1.0 is the First release of BanglaGptAi .
This repo contains the instruction-tuned 0.5B Qwen2.5 model, which has the following features:
The code of BanglaGptAi has been in the latest Hugging face transformers and we advise you to use the latest version of transformers.
With transformers<4.37.0, you will encounter the following error:
KeyError: 'qwen2'
Here provides a code snippet with apply_chat_template to show you how to load the tokenizer and model and how to generate contents.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "sumitsen/BanglaGptAi1.0"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "Give me a short introduction to large language model."
messages = [
{"role": "system", "content": "You are BanglaGptAi, created by Sumit Sen. You are a helpful assistant."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
Detailed evaluation results are reported in this 📑 blog.
For requirements on GPU memory and the respective throughput, see results here.
If you find our work helpful, feel free to give us a cite.
@misc{qwen2.5,
title = {BanglaGptAi: A Party of Foundation Models},
url = {https://},
author = {Sumit Sen},
month = {September},
year = {2026}
}
@article{BanglaGptAi1.0,
title={BanglaGptAi1.0 Technical Report},
author={Sumit Sen and Crew},
journal={Technical Report},
year={2026}
}