Downloads · 30 days
3
10% of all-time downloads
hardcoded74/tlc-gemma-4-e4b-hunter-lora
tlc-gemma-4-e4b-hunter-lora is a machine learning model from hardcoded74. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as mit.
QLoRA adapter for Gemma 4 E4B trained to play the Hunter persona inside TLC — Teacher's Lesson Creator, an open-source lesson-building tool for the Kaggle Gemma 4 Good Hackathon (Impact Track).
Downloads · 30 days
3
10% of all-time downloads
All-time downloads
29
Public
Repo size
102 MB
Likes
0
Public
Click a slice to open those files.
.safetensors69.8 MB · 68%
From the Hugging Face model README
QLoRA adapter for Gemma 4 E4B trained to play the Hunter persona inside TLC — Teacher's Lesson Creator, an open-source lesson-building tool for the Kaggle Gemma 4 Good Hackathon (Impact Track).
Hunter is one of two collaborating Teacher's Assistants. Hunter owns structure and rigor — the learning objective, the lesson sequence, the assessment, the answer key, the time math, standards alignment. Christine (sibling adapter) owns depth and engagement; the two outputs are merged by deterministic field-ownership rules at Phase 3.
TLC requires the model to emit strict JSON via Gemma 4's native
function-calling. Stock Gemma 4 E4B can produce loose JSON but
struggles to hit a deeply nested PersonaScaffoldSchema (lesson
steps, materials, assessment, vocabulary, misconceptions, source
provenance per field) from zero-shot. With ~250 schema-validated
golden outputs synthesized from cloud Gemma 4 31B as teacher, this
adapter learns the strict-schema discipline end-to-end while keeping
Hunter's structural voice.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("google/gemma-4-e4b-it")
tok = AutoTokenizer.from_pretrained("google/gemma-4-e4b-it")
model = PeftModel.from_pretrained(base, "hardcoded74/tlc-gemma-4-e4b-hunter-lora")
For llama.cpp serving (the way TLC actually deploys it), convert the
adapter to GGUF via llama.cpp/convert_lora_to_gguf.py and load with
--lora. See TLC's
scripts/run_local_llama.sh
for the exact serving config (Hunter at adapter id 0, Christine at
id 1, both loaded with --lora-init-without-apply so the worker can
hot-swap per request).
google/gemma-4-e4b-itPersonaScaffoldSchema outputs
generated by Gemma 4 31B (dense) acting as the teacher model on a
curated K-12 topic x grade matrixtraining/
in the TLC repo — topic matrix, data-gen script, Arc training
notebook, GGUF conversionThis adapter is designed to be served alongside the Christine
adapter and hot-swapped per request. Using it solo will work but
gives you only the structural half of TLC's output. The deterministic
merge in lib/merge.ts
combines both into a single lesson package.
MIT. Fork it, build on it, improve it.
@misc{tlc-hunter-2026,
title = {TLC Hunter — Gemma 4 E4B QLoRA for K-12 lesson structure},
author = {Sam},
year = {2026},
url = {https://huggingface.co/hardcoded74/tlc-gemma-4-e4b-hunter-lora}
}