CoolFace
Apppublic

build-small-hackathon/oracle-ternary-flame

sourceHugging Facemitupdated 3mo agoView on Hugging Face
1likes
App README

๐Ÿ”ฎ Oracle of the Ternary Flame

"The career is not a straight line but a landscape you have been walking across, and sometimes the path you are on leads to a cliff or a dead end."

Ask anything. The Oracle will answer โ€” but never directly.

The Oracle of the Ternary Flame is a fine-tuned Gemma 4 12B that transforms every question into cryptic, lyrical prose using cosmic, natural, and elemental metaphors. The real answer is always encoded implicitly โ€” the Oracle never breaks character.

Built for the Build Small Hackathon ("Small Models, Big Adventures" โ€” Gradio ร— Hugging Face, June 5โ€“15, 2026) by @keypa.


Try it

Ask anything โ€” philosophical, mundane, technical, in English or French:

QuestionWhat to expect
"Should I eat pasta tonight?"A surprisingly profound reflection on choice
"Pourquoi suis-je si fatiguรฉ ?"The Oracle switches to French effortlessly
"What is the meaning of life?"You'll get an answer โ€” but you'll have to sit with it
"How does backpropagation work?"Even gradient descent becomes poetry

How it was built

PieceChoiceWhy
Base modelgoogle/gemma-4-12b-itStrong 12B instruction-tuned model
Fine-tuningQLoRA (rank 16) via Unsloth + TRL65M trainable params, ~13 min on 2ร— T4 on Modal
Training data302 synthetic Q&A pairsExistential, mundane, and technical questions in EN + FR
RuntimeTransformers + BitsAndBytes 4-bit on ZeroGPUCold start ~40s, then ~10s per response
DeploymentGradio 6 HF Space on ZeroGPUSelf-contained, no external API calls
DevelopmentModal (cloud instance) for LoRA merge + GGUF conversionOffloaded heavy compute to Modal during development

The adapter was fine-tuned on 3 epochs with a peak eval loss of 0.981. The LoRA weights (262 MB) are available separately for use with any base model.


Models

RepositoryFormatSizeUse case
keypa/oracle-gemma4-12b-loraLoRA adapter262 MBApply on top of google/gemma-4-12b-it
keypa/oracle-gemma4-12bBF16 safetensors~24 GBMerged weights, ready for quantization
keypa/oracle-gemma4-12b-GGUFGGUF Q4KM~7 GBCPU inference with llama.cpp

Hackathon compliance

RequirementHow Oracle complies
Gradio app hosted as a Space under the orgโœ… This Space
Every model < 32Bโœ… 12B parameters
Social postโœ… Posted here
All models open weightsโœ… Gemma 4 by Google, LoRA by @keypa
Track / PrizeStatus
Thousand Token Wood (whimsical)๐ŸŽฏ Entered โ€” cryptic poetic oracle, pushes the boundaries of fun
Best Use of Modal๐ŸŽฏ Entered โ€” LoRA merge & GGUF conversion ran on Modal cloud compute
Bonus badgeStatus
Off the Grid โ€” no cloud APIsโœ… ZeroGPU is just compute; no external API calls at runtime
Well-Tuned โ€” fine-tuned model on HFโœ… LoRA adapter published at keypa/oracle-gemma4-12b-lora
Off-Brand โ€” custom Gradio CSSโœ… Dark oracle-themed CSS (Cinzel Decorative + EB Garamond fonts)

Quick start

bash
# Install dependencies
pip install torch transformers peft bitsandbytes accelerate gradio spaces

# Run locally (will download ~24 GB model on first load)
python app.py

For GGUF / CPU inference:

bash
pip install llama-cpp-python huggingface_hub
# Download from keypa/oracle-gemma4-12b-GGUF and run with llama-cpp-python

Links