Downloads · 30 days
15
3% of all-time downloads
yrrhall/arabic-nano-gpt-v0
arabic-nano-gpt-v0 is a text generation model from yrrhall. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of openai-community/gpt2 on the arabic wikimedia/wikipedia dataset.
Downloads · 30 days
15
3% of all-time downloads
All-time downloads
504
Public
Parameters
5.5M
273 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors22.1 MB · 94%
From the Hugging Face model README
This model is a fine-tuned version of openai-community/gpt2 on the arabic wikimedia/wikipedia dataset.
Repository on GitHub: e-hossam96/arabic-nano-gpt
The model achieves the following results on the held-out test set:
import torch
from transformers import pipeline
model_ckpt = "e-hossam96/arabic-nano-gpt-v0"
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
lm = pipeline(task="text-generation", model=model_ckpt, device=device)
prompt = """المحرك النفاث هو محرك ينفث الموائع (الماء أو الهواء) بسرعة فائقة \
لينتج قوة دافعة اعتمادا على مبدأ قانون نيوتن الثالث للحركة. \
هذا التعريف الواسع للمحركات النفاثة يتضمن أيضا"""
output = lm(prompt, max_new_tokens=128)
print(output[0]["generated_text"])
The entire wikipedia dataset was split into three splits based on the 90-5-5 ratios.
The following hyperparameters were used during training:

