Skip to page content
SAVRN
Search Plan a project

Open-weight model · Text generation

laya-heart-gemma-e2b-v4-GGUF

by Yunkun Song YunkunSong/laya-heart-gemma-e2b-v4-GGUF

laya-heart-gemma-e2b-v4-GGUF is an open-weight model for text generation from Yunkun Song, released under Apache License 2.0. Its published files total 3.4 GB. It draws 14 downloads a month.

A fine-tuned Gemma 4 E2B for Laya-Heart, a local web app that helps you reply in a couple's chat. Given the chat and Laya's reading of it, the model writes two candidate replies, one per line. You choose, edit and send one yourself.

Parameters—
Context—
Weights3.4 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads14

Model Card

By Yunkun Song, published under apache-2.0, revision 80a7a0ca522f.

A fine-tuned Gemma 4 E2B for Laya-Heart, a local web app that helps you reply in a couple's chat. Given the chat and Laya's reading of it, the model writes two candidate replies, one per line. You choose, edit and send one yourself. 297 fictional practice-exam chats from the project's train-kit (253 Chinese, 44 English). Both models drafted every chat the way the app does. The judge, Qwen3-32B-AWQ, did not know which was which and judged every pair twice with the sides swapped; ties count as half a win. The flags come from the app's own checks. They are rule-based, not reviewed by a person. Self-check: the trainer's self-check (50 chats, nine gates) passed eight gates and missed one: judge…

Read Yunkun Song's full model card

Laya-Heart reply drafter v4 (Gemma 4 E2B, GGUF Q4_K_M)

A fine-tuned Gemma 4 E2B for Laya-Heart, a local web app that helps you reply in a couple's chat. Given the chat and Laya's reading of it, the model writes two candidate replies, one per line. You choose, edit and send one yourself.

  • File: laya-heart-gemma-e2b-v4.Q4_K_M.gguf, 3.43 GB.
  • Size and speed: about the same as the original gemma4:e2b (3.50 GB).
  • SHA-256: ba1300a1cc08e5ebbe864dc471026516d509f7171bb98f525028dd6f17a49ce6

Experimental. The app still uses the original gemma4:e2b. This version has not been through the project's acceptance yet (sealed exam + human blind comparison), and the trainer's own 50-chat self-check reads "not reached" (see below).

How it compares with the original

297 fictional practice-exam chats from the project's train-kit (253 Chinese, 44 English). Both models drafted every chat the way the app does. The judge, Qwen3-32B-AWQ, did not know which was which and judged every pair twice with the sides swapped; ties count as half a win.

Original gemma4:e2b v4
Judge win rate vs the original (all) — 0.611 (133 W / 67 L / 97 T)
Chinese chats — 0.650
English chats — 0.386
Made-up facts or promises flagged 16 1
Hurtful lines flagged 1 0
Sets in the app's format (2 lines, Chinese ≤ 40 chars, English ≤ 60) 0.943 0.983
English lines over 60 characters 21 5

The flags come from the app's own checks. They are rule-based, not reviewed by a person.

Self-check: the trainer's self-check (50 chats, nine gates) passed eight gates and missed one: judge win rate 0.54 against a gate of 0.55. On the same 50 chats with fresh drafts the rate was 0.57, and over all 297 chats it is 0.611.

Weak spot: English. The judge mostly prefers longer English replies, but lines over 60 characters break the app's limit. In the 17 English pairs where v4's lines were about as long as the first fine-tune's, v4 scored 0.56 against it; that sample is small.

Use it

With Ollama 0.40 or later:

  1. Download laya-heart-gemma-e2b-v4.Q4_K_M.gguf and Modelfile into one folder.
  2. Run ollama create laya-heart-gemma-e2b:v4 -f Modelfile.

With llama.cpp:

llama-server -m laya-heart-gemma-e2b-v4.Q4_K_M.gguf --swa-full

Prompt. The model was trained on Laya-Heart's drafting prompt (rules, the chat, then Laya's reading turned into instructions). It works best with that prompt; see draft/prompt.js in the project.

Ollama compatibility. Ollama 0.40.5 keeps models made with ollama create in a new manifest folder, and the app on main does not look there yet. If you point the app at this model, it falls back to Ollama's chat API, which is slower and uses about 6.5 GB of memory. A fix is ready and will be merged after the Hacktoberfest deadline.

How it was made

  • Training: LoRA on unsloth/gemma-4-E2B-it (Unsloth's copy of Google's weights), rank 16, 2 epochs, learning rate 2e-4. Unsloth 2026.10.6 on a Kaggle T4, 47 minutes.
  • Conversion: merged, exported to F16 GGUF, quantized to Q4_K_M with llama.cpp.
  • Data: 1,496 drafting examples, all built from fictional chats the train-kit generated. No real chat logs.
  • Chinese (1,388): reply sets written by DeepSeek-V4.1-Flash, filtered by the app's checks, and chosen by its score.
  • English (108): the original Gemma's own drafts that pass the app's checks, also chosen by DeepSeek's score.
  • History: this is the fourth version from the same night. The earlier three are not published.

License

Apache License 2.0, the same as Gemma 4 E2B. See LICENSE-Apache-2.0.txt and NOTICE.txt.

Identity and Version

Repository
YunkunSong/laya-heart-gemma-e2b-v4-GGUF
Publisher
Yunkun Song
Task
Text generation
Modality
Text
Library
Not stated by the source
Parameters
Not stated by the source
Languages
zh, en
Revision
80a7a0ca522f9c8e4b096059165c1136c26345d4
First published
2026-10-17
Last updated
2026-10-18

Files and Weights

7 files, 3.4 GB in total. The weights are 1 file totalling 3.4 GB in gguf.

Weights1 file · 3.4 GB
Documentation2 files · 14.2 KB
Other3 files · 2.1 KB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
laya-heart-gemma-e2b-v4.Q4_K_M.ggufWeights3.4 GB ba1300a1cc08
LICENSE-Apache-2.0.txtDocumentation10.2 KB —
README.mdDocumentation4.0 KB —
ModelfileOther468 B —
NOTICE.txtOther1.5 KB —
SHA256SUMS.txtOther102 B —
.gitattributesRepository1.6 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
3.4 GB
Download from Yunkun Song

Released by Yunkun Song through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published3.4 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About laya-heart-gemma-e2b-v4-GGUF

Can I use laya-heart-gemma-e2b-v4-GGUF commercially?

Yes. laya-heart-gemma-e2b-v4-GGUF is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Model · Text generation

opt-125m

AI at Meta

OPT was first introduced in Open Pre-trained Transformer Language Models and first released in metaseq's repository on May 3rd 2022 by Meta AI. Disclaimer: The team releasing OPT wrote an official model card, which is available in Appendix D of the paper. Content from this model card has been written by the Hugging Face team. To quote the first two paragraphs of the official paper OPT was predominantly pretrained with English text, but a small amount of non-English data is still present within the training corpus via CommonCrawl. The model was pretrained using a causal language modeling (CLM) objective. OPT belongs to the same family of decoder-only models like GPT-3. As such, it was…

Open weights other 2,048 tokens transformers

Model · Text generation

Ornith-1.5-9B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ornith-1.5-35B-A3B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ternary-Bonsai-2-27B-gguf

Prism ML

Full 27B-class reasoning in ternary transformer weights, for llama.cpp (CUDA, Metal, CPU) - \~5.9 GB language model (down from \~54 GB FP16) — full 27B-class reasoning on a standard laptop or a single GPU - 98.2% of FP16 intelligence retained: 84.78 average across 14 thinking-mode benchmarks — far above the conventional IQ2XXS build (72.59) at about 82% of its footprint, and within 0.4 points of UD-Q4KXL at three times the footprint - Retains thinking, reasoning, and agentic behavior deep in the sub-4-bit regime, where conventional low-bit representations collapse: math within half a point of full precision (96.57), coding level with the baseline (89.42), agentic tool calling at 74.92…

Open weights apache-2.0 llama.cpp

Uncensored Qwen3.8-27B, published as GGUF quantizations with the multi token prediction (MTP) head retained and verified. Refusal behaviour has been substantially reduced, not eliminated. See Measured behaviour for the numbers. Capabilities, training data, and architecture are otherwise unchanged. - Refusal directions removed with Heretic, which co minimizes refusal count against KL divergence from the base model. No handwritten refusal removal code, no finetuning, no additional training data. - Abliteration runs at bf16 (no 4 bit quantization). the resulting LoRA is merged into the bf16 base, so the published weights are not a quantized round trip. - mtp. tensors are copied verbatim from…

Open weights apache-2.0 llama.cpp

Model · Text generation

Ornith-1.0-9B-GGUF

Ornith

Aloha! Today, we are releasing Ornith-1.0, a self-improving family of open-source models for agentic coding. This model card documents Ornith-1.0-9B, the most lightweight member of the Ornith family, designed for efficient single-GPU deployment. Ornith-1.0-9B is a dense ~9B model (≈19 GB in bf16), so it serves comfortably on a single 80GB GPU. The recipes below stand up an OpenAI-compatible server; add --tensor-parallel-size / --tp if you want to shard across more GPUs. For a quick local test (or to script offline generation), load the model directly with Transformers. Make sure you have a recent release installed — see the Transformers installation guide; Ornith-1.0-9B requires…

Open weights mit transformers