---
title: EduNLP
canonical_url: "https://www.modelscope.cn/models/Gxr777/EduNLP"
md_url: "https://www.modelscope.cn/models/Gxr777/EduNLP.md"
repository: Gxr777/EduNLP
last_updated: 2025-12-22
pipeline_tag: task-oriented-conversation
tasks:
  - task-oriented-conversation
model_type:
  - qwen2
architectures:
  - Qwen2ForCausalLM
parameters: 494.0M
tensor_type:
  - F16
library_name:
  - safetensors
  - pytorch
frameworks:
  - Pytorch
inference_backends:
  - "deploy_task text/emb"
  - "lmdeploy 0.9.1"
  - "lmdeploy_turbomind 0.9.1"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 8
stars: 0
---

# EduNLP

> EduNLP - Gxr777 在 ModelScope 开源的模型。Qwen2.5-0.5B-Education-SFT-DPO

Gxr777/EduNLP 是 ModelScope 魔搭社区上的 494.0M 参数task-oriented-conversation模型，可用 deploy_task text/emb、lmdeploy 0.9.1、lmdeploy_turbomind 0.9.1 部署。

- **Repository**: Gxr777/EduNLP
- **Tasks**: task-oriented-conversation
- **Parameters**: 494.0M
- **Inference backends**: deploy_task text/emb, lmdeploy 0.9.1, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Downloads**: 8
- **Stars**: 0
- **Last updated**: 2025-12-22

Source: https://www.modelscope.cn/models/Gxr777/EduNLP

---

# Qwen2.5-0.5B-Education-SFT-DPO

## Model Overview

This model is a domain-adapted educational language model fine-tuned from
**Qwen2.5-0.5B**. The model is designed as an educational copilot that can
generate questions, provide explanations at different difficulty levels,
and offer feedback to students.

The model is obtained via a two-stage post-training pipeline:
1. Supervised Fine-Tuning (SFT)
2. Direct Preference Optimization (DPO)

Parameter-efficient fine-tuning (LoRA) is adopted in both stages.

---

## Base Model

- **Base Model:** Qwen2.5-0.5B
- **Architecture:** Decoder-only Transformer
- **License:** As specified by the original Qwen model

---

## Training Method

### Supervised Fine-Tuning (SFT)

The model is first fine-tuned on synthesized educational instruction-following
data using supervised fine-tuning. LoRA is applied to reduce the number of
trainable parameters.

### Direct Preference Optimization (DPO)

After SFT, the model is further aligned using preference data through
Direct Preference Optimization (DPO), enabling the model to better follow
human preferences in educational responses.

---

## Parameter-Efficient Fine-Tuning

LoRA adapters are trained on top of the frozen base model.
After training, LoRA weights are merged into the base model using
`merge_and_unload()`, and the final model is saved as a standalone model.

---

## Intended Use

- Educational question generation
- Difficulty-controlled explanation
- Educational dialogue and feedback

---

## Limitations

- The model may generate incorrect or incomplete explanations.
- The model is not guaranteed to be pedagogically optimal in all cases.
- The model should not be used for high-stakes educational assessment.

---

## Training Framework

- HuggingFace Transformers
- TRL (SFTTrainer, DPOTrainer)
- PEFT (LoRA)

---

## Disclaimer

This model is developed for an academic course project and is not intended
for commercial or production use.
