Kamyar-zeinalipour/Turkish-Quiz-Instruct
Viewer β’ Updated β’ 4.02k β’ 211
How to use Kamyar-zeinalipour/TR_QUIZ_GEN_SIMPLE_LLAMA7B with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-chat-hf")
model = PeftModel.from_pretrained(base_model, "Kamyar-zeinalipour/TR_QUIZ_GEN_SIMPLE_LLAMA7B")Llama-2-7b-chat fine-tuned to write short-answer quiz questions in Turkish
Given a Turkish educational text, this model writes short-answer questions about it. It is a LoRA adapter for Llama-2-7b-chat trained on Turkish-Quiz-Instruct, from the paper Automating Turkish Educational Quiz Generation Using Large Language Models (ISPR 2024).
The generator script in the GitHub repository handles prompting and parsing:
git clone https://github.com/KamyarZeinalipour/Turkish_Quiz_Generator && cd Turkish_Quiz_Generator
python quiz_gen_main.py --help
Multiple-choice questions (ROUGE-1 / ROUGE-2 / ROUGE-L, base β fine-tuned):
| Model | ROUGE-1 | ROUGE-2 | ROUGE-L |
|---|---|---|---|
| Llama-2-7b-chat | 4.71 β 17.33 | 1.42 β 2.88 | 3.88 β 12.11 |
| Llama-2-13b-chat | 5.33 β 24.34 | 1.73 β 11.44 | 4.28 β 19.75 |
| GPT-3.5-Turbo | 27.53 β 36.64 | 13.18 β 20.36 | 21.38 β 28.82 |
Short-answer questions:
| Model | ROUGE-1 | ROUGE-2 | ROUGE-L |
|---|---|---|---|
| Llama-2-7b-chat | 3.31 β 54.37 | 1.04 β 47.33 | 2.86 β 49.01 |
| Llama-2-13b-chat | 3.81 β 52.99 | 1.33 β 46.88 | 3.22 β 49.54 |
| GPT-3.5-Turbo | 28.19 β 45.31 | 15.87 β 31.59 | 22.22 β 40.32 |
| Task | Model | Adapter |
|---|---|---|
| Multiple-choice | Llama-2-7b-chat | TR_QUIZ_GEN_MULTI_LLAMA7B |
| Multiple-choice | Llama-2-13b-chat | TR_QUIZ_GEN_MULTI_LLAMA13B |
| Short-answer | Llama-2-7b-chat | TR_QUIZ_GEN_SIMPLE_LLAMA7B |
| Short-answer | Llama-2-13b-chat | TR_QUIZ_GEN_SIMPLE_LLAMA13B |
@inproceedings{zeinalipour2024turkishquiz,
title = {Automating Turkish Educational Quiz Generation Using Large Language Models},
author = {Kamyar Zeinalipour and Yusuf Gokberk Keptig and Marco Maggini and Marco Gori},
booktitle = {Artificial Neural Networks in Pattern Recognition (ANNPR / ISPR 2024)},
year = {2024},
url = {https://arxiv.org/abs/2406.03397}
}
Released under the Llama 2 Community License, as a derivative of Llama-2-7b-chat.
Base model
NousResearch/Llama-2-7b-chat-hf