Mistral 7B Education Tutor
Published by @tutor_ai_lab · Community adapter
Socratic tutoring adapter that guides students to answers rather than revealing them directly. Covers K-12 math, science, and language arts with age-appropriate vocabulary calibration.
Usage
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
base = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
model = PeftModel.from_pretrained(base, "modelforgelab/mistral-7b-edu-tutor-lora")
inputs = tokenizer("Your prompt here", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Compatibility
- transformers>=4.38
- vLLM
You might also like
text-generation
public
Mistral 7B Interview Coach
mistralai/Mistral-7B-Instruct-v0.3
text-generation
public
Mistral 7B RAG Instruct
mistralai/Mistral-7B-Instruct-v0.3
text-generation
members
Mistral-7B JSON Extractor
mistralai/Mistral-7B-Instruct-v0.3
text-generation
public
Mistral 7B API Documentation
mistralai/Mistral-7B-Instruct-v0.3