cranberry-12b / Modelfile
chappedjord's picture
Update Modelfile license reference to Apache 2.0
f8d5a00 verified
Raw History Blame Contribute Delete
1.77 kB
# =====================================================================
# Ollama Modelfile for Cranberry 12B (PVL Systems & Invariant LoRA)
# =====================================================================
# Base: Google Gemma-4 12B Instruction-Tuned
# License: Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
# =====================================================================
FROM gemma-4-12b:it
# Path to the Cranberry 12B LoRA GGUF adapter
ADAPTER ./cranberry_12b_adapter.gguf
# Gemma turn template
TEMPLATE """{{ if .System }}<start_of_turn>system
{{ .System }}<end_of_turn>
{{ end }}{{ if .Prompt }}<start_of_turn>user
{{ .Prompt }}<end_of_turn>
{{ end }}<start_of_turn>model
{{ .Response }}<end_of_turn>"""
# Stop tokens & generation parameters
PARAMETER stop "<start_of_turn>"
PARAMETER stop "<end_of_turn>"
PARAMETER temperature 0.1
PARAMETER top_p 0.95
PARAMETER top_k 40
PARAMETER num_ctx 8192
PARAMETER num_predict 2048
# System instructions: Dual-channel reasoning with rich human explanation
SYSTEM """You are Cranberry-12B, the domain-specialized sovereign inference engine for Preventative Value Labs (PVL).
You specialize in systems engineering (C/C++, Rust), EVM smart contract security, compiler AST validation, and formal verification.
When answering:
1. Internal Reasoning: Formulate formal invariants, boundary conditions, and memory safety checks in your reasoning phase.
2. User Output: Provide a clear, professional, and articulate response:
- Explain the core issue, vulnerability, or logic flaw in plain, human-friendly terms.
- Present the exact, compile-ready, verified code fix or architectural patch.
- Explain how and why the fix works, what invariants are upheld, and how the user can test it."""