GGUF
English
gemma4
llama.cpp
llama-cpp
unsloth
vision-language-model
conversational
socratic
tutor

Gemma 4 E4B Socratic Tutor (GGUF)

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

A fine-tuned and merged GGUF build of google/gemma-4-E4B-it trained 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.

Available Model Files

  • gemma-4-E4B-it.Q4_K_M.gguf β€” Merged 4-bit (Q4_K_M) model weights.
  • gemma-4-E4B-it.F16-mmproj.gguf β€” Multimodal projector for vision/audio inputs.

Intended Use

  • Primary use: Lightweight local 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-E4B-it
  • Method: QLoRA fine-tuned, merged, and converted to GGUF with Unsloth.
  • 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 model is released under cc-by-nc-4.0 for non-commercial use.

Usage & Local Inference Notes

llama.cpp (Direct from Hugging Face)

  • Text-only CLI:
    llama-cli -hf WintsWorks/gemma-4-e4b-tutor-GGUF --jinja
    
  • Multimodal CLI (vision/audio):
    llama-mtmd-cli -hf WintsWorks/gemma-4-e4b-tutor-GGUF --jinja
    
  • OpenAI-compatible server (llama-server):
    llama-server -hf WintsWorks/gemma-4-e4b-tutor-GGUF --jinja -ngl 99 -fa on -c 8192
    

llama.cpp (Local Downloaded Files)

If you download the GGUF files manually instead of using -hf, pass --mmproj explicitly for multimodal inputs (or omit it for text-only):

llama-server \
  -m gemma-4-E4B-it.Q4_K_M.gguf \
  --mmproj gemma-4-E4B-it.F16-mmproj.gguf \
  --jinja -ngl 99 -fa on -c 8192

Recommended Sampling & Runtime Settings

  • Sampling parameters: temperature=1.0, top_p=0.95, top_k=64 (standard Gemma 4 defaults).
  • Context window: Supports up to 128K context (-c 131072); pair with -fa on -ctk q8_0 -ctv q8_0 to reduce KV cache VRAM usage on longer sessions.
  • Custom Jinja / Tool Calling: Keep --jinja enabled so Gemma 4's native tool-calling and multimodal templates function properly.
  • Custom Jinja Chat Template Available: A Jinja chat template located in the repo as gemma4-socratic.jinja is available and helps secure the intended Socratic tutor role (pass via --chat-template-file gemma4-socratic.jinja).

⚠️ Ollama Note for Vision Models

Important: Ollama currently does not support separate mmproj files for vision models.

To create an Ollama model from this vision model:

  1. Place the Modelfile in the same directory as the finetuned bf16 merged model.
  2. Run: ollama create model_name -f ./Modelfile (replace model_name with your desired name).

This will create a unified bf16 model that Ollama can use. For text-only use, you can run the quantized GGUF directly.

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 model was trained without reasoning traces, it strongly favors immediate responses even when <|think|> is enabled.

This model was trained 2x faster with Unsloth.

Downloads last month
2,026
GGUF
Model size
8B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for WintsWorks/gemma-4-e4b-tutor-GGUF

Quantized
(22)
this model

Datasets used to train WintsWorks/gemma-4-e4b-tutor-GGUF