Downloads · 30 days
12
2% of all-time downloads
oewis16/mistral-exam-generator
mistral-exam-generator is a text generation model from oewis16. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This model is a fine-tuned version of Mistral, specifically optimized for generating quizzes, exams, and educational questions based on given prompts or contexts.
Downloads · 30 days
12
2% of all-time downloads
All-time downloads
501
Public
Parameters
7.2B
7.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.5 GB · 100%
How the weights are stored.
I87B · 96%
From the Hugging Face model README
This model is a fine-tuned version of Mistral, specifically optimized for generating quizzes, exams, and educational questions based on given prompts or contexts.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "oewis16/mistral-exam-generator"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto"
)
prompt = "اكتب سؤال اختيار من متعدد عن الذكاء الاصطناعي مع الإجابات:"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=150)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))