Request it for the seed queue, or get it now with pf download EugeneEvstafev/gemma-4-12b-soup-mvp (CLI guide).
Not a production recipe assistant. No quality improvement is claimed. This release tests the engineering path: QLoRA optimizer updates, adapter reload, CPU merge, GGUF quantization and local Ollama generation. Tiny-data smoke tests are not benchmarks and cannot establish safety, generalization or superiority.
Fine-tuning and packaging: Eugene Evstafev — https://www.linkedin.com/in/eugene-evstafev/ .
Base model: Google DeepMind, google/gemma-4-12B-it.
Base revision: 707f0a3b8a3c7ad586ed01e27eafbad8a27dd0f7. Base and this release: Apache-2.0;
see LICENSE and NOTICE. No endorsement by Google is implied.
adapter/: PEFT adapter; exact base revision above is required.merged/: merged HF weights, tokenizer, processor and generation configuration.model-Q4_K_M.gguf: text-only Ollama deployment artifact.train.json, export.json, inference.json, dependencies.txt: observed run evidence.GGUF SHA-256: 5db22e3f014721f87160599d947c09e8daf34ae0c8da909445b2488fa1bfbd34; bytes: 7381382848.
from transformers import AutoTokenizer, Gemma4UnifiedForConditionalGeneration
repo = "EugeneEvstafev/gemma-4-12b-soup-mvp"
tokenizer = AutoTokenizer.from_pretrained(repo, subfolder="merged")
model = Gemma4UnifiedForConditionalGeneration.from_pretrained(
repo, subfolder="merged", device_map="auto", dtype="auto")
text = tokenizer.apply_chat_template(
[{"role": "user", "content": "Suggest a simple lentil soup."}],
tokenize=False, add_generation_prompt=True, enable_thinking=False)
inputs = tokenizer(text, add_special_tokens=False, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=128, do_sample=False)
print(tokenizer.decode(output[0, inputs.input_ids.shape[1]:], skip_special_tokens=True))
Use the versions recorded in dependencies.txt (Transformers 5.10.1).
ollama run chigwel/gemma-4-12b-soup-mvp
For local import, download the GGUF and use the included Modelfile with a local FROM path.
Only a few examples and optimizer updates were used. Apparent improvements on these examples are not evidence of generalization. Do not rely on this model for allergen avoidance, dietary restrictions, cooking temperatures or food storage safety; verify such advice independently. It may hallucinate or regress from the base model. Quantization can change outputs. This is not a scientific paper.
[
{
"gradient_norm": 3.39700984954834,
"loss": 1.370896339416504,
"step": 1
},
{
"gradient_norm": 2.933994770050049,
"loss": 1.7117650508880615,
"step": 2
},
{
"gradient_norm": 3.887418508529663,
"loss": 1.9824351072311401,
"step": 3
},
{
"gradient_norm": 1.5510540008544922,
"loss": 0.8900198340415955,
"step": 4
},
{
"gradient_norm": 1.9793601036071777,
"loss": 1.0110812187194824,
"step": 5
},
{
"gradient_norm": 1.97877836227417,
"loss": 1.3039186000823975,
"step": 6
}
]
merged/model-00001-of-00013.safetensors 2.0 GBmerged/model-00011-of-00013.safetensors 2.0 GBmerged/model-00005-of-00013.safetensors 2.0 GBmerged/model-00008-of-00013.safetensors 2.0 GBmerged/model-00009-of-00013.safetensors 2.0 GBmerged/model-00006-of-00013.safetensors 2.0 GBmerged/model-00012-of-00013.safetensors 2.0 GBmerged/model-00010-of-00013.safetensors 1.9 GBmerged/model-00007-of-00013.safetensors 1.9 GBmerged/model-00004-of-00013.safetensors 1.9 GBmerged/model-00003-of-00013.safetensors 1.9 GBmerged/model-00002-of-00013.safetensors 1.9 GBmerged/model-00013-of-00013.safetensors 366 MBadapter/adapter_model.safetensors 131 MBHave the files? Submit a torrent.
Submit a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo EugeneEvstafev/gemma-4-12b-soup-mvp ./model-foldergoogle/gemma-4-12B-it