Downloads · 30 days
23
50% of all-time downloads
tokhey/question_generation_1.5B_model_v2
question_generation_1.5B_model_v2 is a text generation model from tokhey. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
A fine-tuned language model specifically designed to generate high-quality English comprehension and assessment questions for secondary school students. This model is optimized to create questions aligned with standar…
Downloads · 30 days
23
50% of all-time downloads
All-time downloads
46
Public
Repo size
4.9 GB
Likes
0
Public
Click a slice to open those files.
.pt148 MB · 45%
From the Hugging Face model README
A fine-tuned language model specifically designed to generate high-quality English comprehension and assessment questions for secondary school students. This model is optimized to create questions aligned with standard educational curricula and learning objectives.
This model is a LoRA (Low-Rank Adaptation) fine-tuned version of Qwen/Qwen2.5-1.5B-Instruct. It has been trained specifically on educational question generation tasks to produce contextually relevant, pedagogically sound questions suitable for secondary school assessment.
This model is intended for:
The model was fine-tuned on a curated dataset of secondary school English curriculum materials and assessment question templates. Training data includes various question types aligned with standard educational frameworks.
| Parameter | Value |
|---|---|
| Learning Rate | 0.0005 |
| Training Batch Size | 8 (gradient accumulation) |
| Epochs | 10 |
| Optimizer | AdamW (fused) |
| LR Scheduler | Cosine with 0.1 warmup ratio |
| Seed | 42 |
| Training Precision | Native AMP (Mixed Precision) |
The model achieved strong convergence with decreasing training loss across epochs:
| Epoch | Step | Training Loss |
|---|---|---|
| 1.1 | 100 | 0.6345 |
| 2.3 | 200 | 0.4720 |
| 3.4 | 300 | 0.3499 |
| 4.5 | 400 | 0.2457 |
| 5.7 | 500 | 0.1229 |
| 6.8 | 600 | 0.0728 |
| 8.0 | 700 | 0.0398 |
| 9.1 | 800 | 0.0213 |
The model demonstrates consistent improvement in question generation quality as training progresses, with training loss decreasing from 0.63 to 0.02.
from peft import AutoPeftModelForCausalLM
from transformers import AutoTokenizer
model_id = "tokhey/question_generation_1.5B_model_v2"
model = AutoPeftModelForCausalLM.from_pretrained(model_id)
tokenizer = AutoTokenizer.from_pretrained(model_id)
# Generate questions from a passage
prompt = "Generate 3 comprehension questions about: [your text passage]"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=512)
print(tokenizer.decode(outputs[0]))
Apache License 2.0
This model card was automatically generated and updated. For questions or contributions, please reach out to the model developers.