Downloads · 30 days
6
7% of all-time downloads
laibamuzammal7/iqbal-urdu-transformer
iqbal-urdu-transformer is a text generation model from laibamuzammal7. Use it when you need the model to write or continue text. The card lists the license as mit.
Small GPT-style transformer trained from scratch on Urdu ghazals from the Rekhta dataset.
Downloads · 30 days
6
7% of all-time downloads
All-time downloads
92
Public
Parameters
1.4M
50.5 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.5 MB · 97%
From the Hugging Face model README
Small GPT-style transformer trained from scratch on Urdu ghazals from the Rekhta dataset.
Trained on a small corpus (~4MB text); generation quality reflects this scale and should not be expected to produce fully coherent poetry.
This model uses a custom architecture and is NOT compatible with AutoModel.from_pretrained().
You need the TinyGPT class definition to load it:
from safetensors.torch import load_file
import json
with open("config.json") as f:
config_dict = json.load(f)
config = TinyGPTConfig(**config_dict)
model = TinyGPT(config)
state_dict = load_file("model.safetensors")
model.load_state_dict(state_dict)