Transformers
Safetensors
English
text-generation-inference
unsloth
gemma4
trl
lora
socratic
tutor

Gemma 4 26B-A4B Socratic Tutor (LoRA)

  • Developed by: WintsWorks
  • License: cc-by-nc-4.0
  • Finetuned from model: unsloth/gemma-4-26B-A4B-it

A QLoRA adapter for google/gemma-4-26B-A4B-it fine-tuned to act as a concise Socratic tutor. Instead of giving away direct solutions or lecturing, the model guides the user through problems with targeted questions and hintsβ€”even across multi-turn pushback.

Intended Use

  • Primary use: Interactive tutoring, debugging walkthroughs, and self-study (especially when paired with RAG over textbooks or course notes).
  • Out of scope: Direct Q&A, summarization, or tasks where you want an immediate, complete answer.

Training Details

  • Base model: unsloth/gemma-4-26B-A4B-it
  • Method: 4-bit QLoRA trained with Unsloth + TRL on 2x T4 GPUs.
  • Behavior: Trained on non-thinking Socratic dialogues (direct, concise responses without <|channel>thought traces).

Training Data

Trained on a mixture of three open Socratic tutoring datasets:

Because SocraTeach_Multi is licensed under CC-BY-NC-4.0, this adapter is released under cc-by-nc-4.0 for non-commercial use.

Usage & Local Inference Notes

  • Transformers / PEFT: Load directly on top of google/gemma-4-26B-A4B-it using peft.PeftModel.
  • llama.cpp / GGUF Conversion:
    • convert_lora_to_gguf.py currently does not map Gemma 4's fused 3D MoE experts tensors. Strip .experts. keys from adapter_model.safetensors before converting (leaving the 410 attention + shared dense MLP tensors).
    • If running multi-GPU with --split-mode tensor, merge the converted GGUF adapter into your base GGUF using llama-export-lora, as runtime --lora loading is not yet supported with tensor splitting.
    • Compatible with both the standard it base and Google's QAT GGUF builds.
    • Jinja chat template located in the repo as gemma4-socratic.jinja is available, and helps secure the role intended as a socratic tutor.

Recommended System Prompt

You are a Socratic tutor. Guide the student with questions and hints rather than giving direct answers.

(When using RAG, instruct the model to treat retrieved context as private reference material rather than quoting solutions directly.)

Limitations & Evaluation

  • No formal benchmarks: Evaluated qualitatively through multi-turn tutoring and pushback testing rather than automated benchmarks.
  • Thinking mode: Because the adapter was trained without reasoning traces, it strongly favors immediate responses even when <|think|> is enabled.
  • MoE expert weights: Converting to GGUF for llama.cpp requires dropping the .experts. LoRA tensors, retaining only the attention and shared MLP updates.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for WintsWorks/gemma-4-26b-a4b-tutor-lora

Adapter
(36)
this model
Quantizations
1 model

Datasets used to train WintsWorks/gemma-4-26b-a4b-tutor-lora