CoolFace
Modelpublic

devoffeed/gemma-cvantic

sourceHugging Faceapache-2.0updated 10d agoView on Hugging Face
1likes431downloads
Model Card

<div align="center">

gemma-cvantic

multimodal SFT fine-tune of Google's `gemma-4-E4B-it` · GGUF

![Hugging Face](https://huggingface.co/devoffeed/gemma-cvantic) ![Base](https://huggingface.co/google/gemma-4-E4B-it) ![License](https://www.apache.org/licenses/LICENSE-2.0) ![GGUF](https://github.com/ggml-org/llama.cpp) ![Quant: Q8/Q5/iQ4]()

</div>


What is this?

An experimental instruction fine-tune of google/gemma-4-E4B-it — the 4.5B-effective-parameter omni-modal Gemma 4 model (128K context, text + image + audio input).

Trained with SFT (13,000 examples) to strengthen math, coding, physics/astronomy reasoning and Russian-language instructions. Quantized to GGUF with llama.cpp for fast local inference.


Quantization lineup

FileQuantSizeQuality / speed
gemma-cvantic.Q8_0.ggufQ8_0~7.6 GBnear-lossless, best quality
gemma-cvantic.Q5_K_S.ggufQ5_K_S~5.4 GBgreat balance ★ recommended
gemma-cvantic.IQ4_XS.ggufiQ4_XS (imatrix)~4.8 GBsmallest, fast, slightly less accurate
gemma-cvantic.BF16-mmproj.ggufvision projector~0.9 GBrequired for image input
mmproj is the multimodal (vision) projector — pass it with --mmproj to enable image understanding. All quants are BF16/FP16 conversions of the same merged weights, so any main-file + mmproj combo works.

Training recipe

ParameterValue
Base modelgoogle/gemma-4-E4B-it
MethodSFT (DoRA / LoRA-style adapter, then merged)
Trainable params~36.7M (0.61%)
Examples13,000
Context128K (inherited)

Dataset mix (MIT / Apache-2.0 only):

DatasetSplitRowsDomain
HuggingFaceH4/ultrachat_200ktrain_sft5,000general chat
theblackcat102/evol-codealpaca-v1train3,000coding
qwedsacf/competition_math (MATH)train2,000math
HuggingFaceTB/cosmopediaopenstax · physics/astronomy2,000physics & astronomy
openai/gsm8kmain/train1,000grade-school math

Quick start

llama.cpp (text)

bash
llama-cli \
  -m gemma-cvantic.Q5_K_S.gguf \
  -p "Реши задачу: если цена товара выросла на 20% и составила 480 руб., какой была исходная цена?"

Multimodal (vision)

bash
llama-cli \
  -m gemma-cvantic.Q5_K_S.gguf \
  --mmproj gemma-cvantic.BF16-mmproj.gguf \
  -i
> what's in this photo?

llama-server (OpenAI-compatible API)

bash
llama-server \
  -m gemma-cvantic.Q8_0.gguf \
  --mmproj gemma-cvantic.BF16-mmproj.gguf \
  --port 8080
python
import openai

client = openai.OpenAI(base_url="http://localhost:8080/v1", api_key="local")
resp = client.chat.completions.create(
    model="gemma-cvantic",
    messages=[{"role": "user", "content": "Расскажи про эффект Доплера на пальцах"}],
)
print(resp.choices[0].message.content)

Picking a file

  • CPU-only, want qualityQ5_K_S (fits ~8 GB RAM/VRAM, sweet spot)
  • 16 GB+ / strong GPUQ8_0
  • Tiny footprint / speed firstiQ4_XS (fits ~6 GB)
  • Vision → always add the BF16-mmproj

Sizes are approximate; VRAM usage depends on context length.


Notes

  • Working-name "cvantic" — experimental build, quality varies per domain. Think of it as a field test of Gemma 4 E4B fine-tuning.
  • Text-only SFT; vision/audio behavior inherited from the base model and not specifically tuned.
  • Base model: Google DeepMind · License: Apache 2.0 · Gemma 4 docs

Quantized with `llama.cpp` (BF16 base + imatrix for iQ4_XS).