A fine-tuned Gemma3 4B model, specialized in pragmatic empathy, or perhaps it is empathic pragmatism?
This model is a fine-tuned version of google/gemma-3-4b-it using the Unsloth framework with LoRA (Low-Rank Adaptation) for efficient training.
Conversation, brainstorming, and general instruction following.
Quantized GGUF versions are available at
theprint/Zeth-Gemma3-4B-GGUF:
1# Download a quantized version (q4_k_m recommended for most use cases)
2wget https://huggingface.co/theprint/Zeth-Gemma3-4B/resolve/main/gguf/Zeth-Gemma3-4B-q4_k_m.gguf
3
4# Run with llama.cpp
5./llama.cpp/main -m Zeth-Gemma3-4B-q4_k_m.gguf -p "Your prompt here" -n 256
The Zeth data set was specifically created for finetuning models on empathic explanation. This was done by taking premade data sets and rewording the replies to be in line with the style for Zeth.
1from unsloth import FastLanguageModel
2import torch
3
4# Load model and tokenizer
5model, tokenizer = FastLanguageModel.from_pretrained(
6 model_name="theprint/Zeth-Gemma3-4B",
7 max_seq_length=4096,
8 dtype=None,
9 load_in_4bit=True,
10)
11
12# Enable inference mode
13FastLanguageModel.for_inference(model)
14
15# Example usage
16inputs = tokenizer(["Your prompt here"], return_tensors="pt")
17outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
18response = tokenizer.decode(outputs[0], skip_special_tokens=True)
19print(response)
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model = AutoModelForCausalLM.from_pretrained(
5 "theprint/Zeth-Gemma3-4B",
6 torch_dtype=torch.float16,
7 device_map="auto"
8)
9tokenizer = AutoTokenizer.from_pretrained("theprint/Zeth-Gemma3-4B")
10
11# Example usage
12messages = [
13 {"role": "system", "content": "You are a helpful assistant."},
14 {"role": "user", "content": "Your question here"}
15]
16
17inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True)
18outputs = model.generate(inputs, max_new_tokens=256, temperature=0.7, do_sample=True)
19response = tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True)
20print(response)
May hallucinate or provide incorrect information.
1@misc{zeth_gemma3_4b,
2 title={Zeth-Gemma3-4B: Fine-tuned google/gemma-3-4b-it},
3 author={theprint},
4 year={2025},
5 publisher={Hugging Face},
6 url={https://huggingface.co/theprint/Zeth-Gemma3-4B}
7}