EduHelper is a child-friendly tutoring assistant fine-tuned from the Qwen3-8B base model using parameter-efficient fine-tuning (PEFT) with LoRA on the
ajibawa-2023/Education-Young-Children dataset.
Please refer to the Qwen3-8B base model card for detailed architecture and licensing.
The model can make mistakes or produce content that may not be perfectly age-appropriate. Always supervise and review outputs.
1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
3
4model_id = "s3nh/EduHelper_Qwen3_8B_6500steps"
5
6tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=True, trust_remote_code=True)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id,
9 torch_dtype="auto",
10 device_map="auto",
11 trust_remote_code=True
12)
13
14messages = [
15 {"role": "system", "content": "You are a kind and patient tutor for young children. Use simple words and a friendly tone."},
16 {"role": "user", "content": "Can you explain what a verb is with two examples?"}
17]
18
19inputs = tokenizer.apply_chat_template(
20 messages, add_generation_prompt=True, return_tensors="pt"
21).to(model.device)
22
23outputs = model.generate(
24 inputs,
25 max_new_tokens=200,
26 temperature=0.7,
27 top_p=0.9,
28 do_sample=True
29)
30
31print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Thanks for lium.io for generous grant
Thanks for basilica.ai for access to hardware