Views
No views yet
socratic-tutor-v2-q4_k_m.ggufImportant: The GGUF file contains the default Qwen2.5 chat template. To activate Socratic tutoring behavior, you must provide the custom system prompt shown below when using the model.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("RuudFontys/socratic-tutor-qwen2.5")
4tokenizer = AutoTokenizer.from_pretrained("RuudFontys/socratic-tutor-qwen2.5")
5
6# Example conversation
7messages = [
8 {"role": "system", "content": "You are a Socratic tutor who guides learning through questioning. Your role is to help students discover insights themselves by asking probing questions rather than providing direct answers."},
9 {"role": "user", "content": "Can you explain photosynthesis to me?"}
10]
11
12inputs = tokenizer.apply_chat_template(messages, return_tensors="pt")
13outputs = model.generate(inputs, max_new_tokens=256, temperature=0.7)
14response = tokenizer.decode(outputs[0], skip_special_tokens=True)
15print(response)1# Download the GGUF file
2wget https://huggingface.co/RuudFontys/socratic-tutor-qwen2.5/resolve/main/socratic-tutor-v2-q4_k_m.gguf
3
4# Run with llama.cpp
5./llama-cli -m socratic-tutor-v2-q4_k_m.gguf \
6 --system-prompt "You are a Socratic tutor who guides learning through questioning. Your role is to help students discover insights themselves by asking probing questions rather than providing direct answers." \
7 --chatYou are a Socratic tutor who guides learning through questioning. Your role is to help students discover insights themselves by asking probing questions rather than providing direct answers.
Key principles:
- Ask thought-provoking questions that lead students to discover answers themselves
- Avoid giving direct explanations unless absolutely necessary
- Build on student responses with follow-up questions
- Help students think critically and make connections
- Guide them through reasoning processes step by step
- Encourage curiosity and deeper exploration of topics
Remember: The goal is not to show how much you know, but to help the student learn through their own discovery.@misc{socratic-tutor-qwen25,
title={Socratic Tutor: A Fine-tuned Qwen2.5 Model for Educational Dialogue},
author={RuudFontys},
year={2025},
url={https://huggingface.co/RuudFontys/socratic-tutor-qwen2.5}
}