Instructions to use WintsWorks/gemma-4-e4b-tutor-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use WintsWorks/gemma-4-e4b-tutor-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf WintsWorks/gemma-4-e4b-tutor-GGUF:F16 # Run inference directly in the terminal: llama cli -hf WintsWorks/gemma-4-e4b-tutor-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf WintsWorks/gemma-4-e4b-tutor-GGUF:F16 # Run inference directly in the terminal: llama cli -hf WintsWorks/gemma-4-e4b-tutor-GGUF:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf WintsWorks/gemma-4-e4b-tutor-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf WintsWorks/gemma-4-e4b-tutor-GGUF:F16
Use Docker
docker model run hf.co/WintsWorks/gemma-4-e4b-tutor-GGUF:F16
- Llama new
- LM Studio
- Jan
- Ollama
How to use WintsWorks/gemma-4-e4b-tutor-GGUF with Ollama:
ollama run hf.co/WintsWorks/gemma-4-e4b-tutor-GGUF:F16
- Unsloth Desktop
- Pi
How to use WintsWorks/gemma-4-e4b-tutor-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf WintsWorks/gemma-4-e4b-tutor-GGUF:F16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "WintsWorks/gemma-4-e4b-tutor-GGUF:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use WintsWorks/gemma-4-e4b-tutor-GGUF with Docker Model Runner:
docker model run hf.co/WintsWorks/gemma-4-e4b-tutor-GGUF:F16
- Lemonade
How to use WintsWorks/gemma-4-e4b-tutor-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull WintsWorks/gemma-4-e4b-tutor-GGUF:F16
Run and chat with the model
lemonade run user.gemma-4-e4b-tutor-GGUF-F16
List all available models
lemonade list
- Hermes Agent
How to use WintsWorks/gemma-4-e4b-tutor-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf WintsWorks/gemma-4-e4b-tutor-GGUF:F16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default WintsWorks/gemma-4-e4b-tutor-GGUF:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use WintsWorks/gemma-4-e4b-tutor-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf WintsWorks/gemma-4-e4b-tutor-GGUF:F16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "WintsWorks/gemma-4-e4b-tutor-GGUF:F16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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>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 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_0to reduce KV cache VRAM usage on longer sessions. - Custom Jinja / Tool Calling: Keep
--jinjaenabled 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.jinjais 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:
- Place the
Modelfilein the same directory as the finetunedbf16merged model. - Run:
ollama create model_name -f ./Modelfile(replacemodel_namewith 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
4-bit
