Downloads · 30 days
0
tokhey/egyptian-mcq-generator-mistral-7b-adapter
egyptian-mcq-generator-mistral-7b-adapter is a text generation model from tokhey. 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.
This model is a LoRA fine-tuned version of Mistral-7B-Instruct-v0.3 for generating English multiple-choice questions that resemble the style of the Egyptian Ministry of Education secondary school examinations. The mod…
Downloads · 30 days
0
Access
Public
Updated Jul 7, 2026
Repo size
168 MB
Likes
2
Public
Click a slice to open those files.
.safetensors168 MB · 97%
From the Hugging Face model README
This model is a LoRA fine-tuned version of Mistral-7B-Instruct-v0.3 for generating English multiple-choice questions that resemble the style of the Egyptian Ministry of Education secondary school examinations. The model was trained on a synthetic instruction-following dataset designed for educational question generation.
The model is intended for generating English MCQs for educational purposes. Typical tasks include:
Generate 5 official Egyptian Ministry of Education English multiple-choice questions.
Unit: 10
Topic:
At the Airport
Grammar Focus:
Past Perfect / Past Perfect Continuous
Return only valid JSON.
{
"questions": [
{
"statement": "...",
"correct_answer": "...",
"plausible_distractors": [
"...",
"...",
"..."
],
"explanation": "..."
}
]
}
The model was fine-tuned on a synthetic instruction dataset containing English examination questions inspired by the Egyptian Ministry of Education curriculum. The dataset includes:
All samples are formatted as multi-turn chat conversations.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "tokhey/egyptian-mcq-generator-mistral-7b-synthetic"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
)
prompt = "Generate 5 grammar questions about Past Perfect."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Although the model has been fine-tuned for educational assessment generation, it may occasionally:
The model has been qualitatively evaluated by comparing its outputs with the original Mistral-7B-Instruct-v0.3 base model. Fine-tuning improves:
Ahmed Eltokhy GitHub: https://github.com/ahmdeltoky03
LinkedIn: https://www.linkedin.com/in/ahmed-eltokhy-7b7a073ba