Instructions to use WintsWorks/gemma-4-26b-a4b-tutor-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WintsWorks/gemma-4-26b-a4b-tutor-lora with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("WintsWorks/gemma-4-26b-a4b-tutor-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
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>thoughttraces).
Training Data
Trained on a mixture of three open Socratic tutoring datasets:
AndreiSobo/PACT-Socratic-Coding-Tutor(MIT) β coding and debugging Socratic dialogues.ulises-c/SocratDataset-EN(CC-BY-4.0) β general science and educational Socratic dialogues.ulises-c/SocraTeach_Multi(CC-BY-NC-4.0) β multi-turn Socratic teaching conversations.
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-itusingpeft.PeftModel. llama.cpp/ GGUF Conversion:convert_lora_to_gguf.pycurrently does not map Gemma 4's fused 3D MoEexpertstensors. Strip.experts.keys fromadapter_model.safetensorsbefore 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 usingllama-export-lora, as runtime--loraloading is not yet supported with tensor splitting. - Compatible with both the standard
itbase and Google's QAT GGUF builds. - Jinja chat template located in the repo as
gemma4-socratic.jinjais 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.cpprequires dropping the.experts.LoRA tensors, retaining only the attention and shared MLP updates.
Model tree for WintsWorks/gemma-4-26b-a4b-tutor-lora
Base model
google/gemma-4-26B-A4B