STATIC SPACE - DOCUMENTATION

MasryGPT Chat Demo

Static documentation page for the MasryGPT Chat project. This Space does not run model inference. Use the standard testing routes below.

Model Page Colab Notebook Evaluation Adapter

Overview

ISLAM-PO/MasryGPT-Chat-1.5B is an experimental Egyptian Arabic conversational model fine-tuned from Qwen/Qwen2.5-1.5B-Instruct with QLoRA.

Standard Inference

Use the canonical Transformers workflow on a GPU machine:

pip install -q torch transformers accelerate safetensors

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

MODEL_ID = "ISLAM-PO/MasryGPT-Chat-1.5B"
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForCausalLM.from_pretrained(
    MODEL_ID,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

For the LoRA adapter, load the base model first:

from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("aubmindlab/aragpt2-base")
model = PeftModel.from_pretrained(base, "ISLAM-PO/MasryGPT-Flash-Adapter")

Testing

Serverless Inference Providers support is not enabled for this custom model. A 404 response means the model is not hosted by a provider. Use Colab or local inference.

Documentation

Static demo. No secrets are stored in this repository.