Downloads · 30 days
8
42% of all-time downloads
taaha3244/iqbal-gpt
iqbal-gpt is a machine learning model from taaha3244. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a GPT model trained on Urdu text data.
Downloads · 30 days
8
42% of all-time downloads
All-time downloads
19
Public
Parameters
163M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin653 MB · 50%
From the Hugging Face model README
This is a GPT model trained on Urdu text data.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("your-username/model-name")
tokenizer = AutoTokenizer.from_pretrained("your-username/model-name")
# Generate text
text = "عشق"
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs)
result = tokenizer.decode(outputs[0])