CoolFace
Modelpublic

efficiencyx/Jun-LoRA-12B-v5-GGUF

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes85downloads
Model Card

Jun-12B-GGUF

Merged GGUF builds of the latest Jun LoRA on Gemma 4 12B (QAT) — a fine-tune trained on a compact, heavily curated synthetic conversational dataset derived from the visual novel My Dystopian Robot Girlfriend. The model captures the personality, speech patterns, and emotional nuance of the character Jun while preserving the base model's general reasoning and instruction-following capabilities.

The adapter is merged into the base weights here — these are standalone models, no --lora flag needed.

Model Variants & Repositories

RepositoryFormatDescription
`efficiencyx/Jun-12B-GGUF`GGUF (Q80 / Q6K / Q4KM)Merged, quantized, for local inference
`efficiencyx/Jun-LoRA-12B-Adapter`LoRA AdapterThe adapter merged into these builds
`efficiencyx/Jun-LoRA-12B-Adapter-Step60`LoRA AdapterEarlier checkpoint (step 60)
`efficiencyx/Jun-LoRA-v4-12B-GGUF`GGUFPrevious generation (v4)

Quantization Guide

QuantSizeUse Case
Q8_012.7 GBBest quality, suggested ~16 GB VRAM
Q6_K9.8 GBHigh quality, minimal loss
Q4KM7.4 GBFits 8 GB VRAM with acceptable quality loss
Sizes are measured, not estimated. The base model is QAT (quantization-aware trained), so lower quants hold up better than a standard FP16 export. All three are quantized from the same bf16 master — no requantization chain, no imatrix.

Usage

bash
llama-server -m Jun-12B-Q4_K_M.gguf --jinja -ngl 99 -c 8192

--jinja is required. Without it llama.cpp ignores the embedded chat template and tool calls come back as plain text instead of structured calls.

Intended Use

Conversational backend for Jun OS, an AI companion webapp:

  • Character-consistent multi-turn conversation
  • AI companion / interactive fiction applications
  • Research into character-faithful fine-tuning on small, high-quality datasets

Limitations

  • Specialized for a single character persona; not a general-purpose assistant.
  • Outputs reflect fictional narrative tropes and are not factual information or advice.
  • Performance degrades far outside the training distribution.
  • Inherits any biases present in the Gemma 4 12B base weights.

Training Details

ParameterValue
Base modelunsloth/gemma-4-12B-it-qat-q4_0-unquantized
MethodLoRA (rsLoRA)
LoRA rank32
LoRA alpha32
LoRA dropout0.01
Target modulesq/k/v/o + gate/up/down projections, language tower
Learning rate1e-4, cosine schedule, 10 warmup steps
Batch size16 (no gradient accumulation)
Epochs3
Max sequence length2048
Weight decay0.001
OptimizerAdamW (8-bit)
Loss maskingcompletions only
Gradient checkpointingUnsloth
Packingoff
Seed3407
Fine-tuning frameworkUnsloth
GGUF export pipelinellama.cpp

Checkpoints were saved every 30 steps; `Step60` is published separately. These builds merge the final adapter.

Evaluation

MetricValue
Final training loss~0.6
Final eval loss~0.07

<!-- TODO(you): dataset size/version. -->

Merge & Export

The adapter was merged directly on the safetensors as W += (B @ A) · scale in fp32 (rsLoRA scale 32/√32), cast back to bf16, exported with convert_hf_to_gguf.py --outtype bf16, then quantized with llama-quantize.

Acknowledgments