# ===================================================================== # 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 }}system {{ .System }} {{ end }}{{ if .Prompt }}user {{ .Prompt }} {{ end }}model {{ .Response }}""" # Stop tokens & generation parameters PARAMETER stop "" PARAMETER stop "" 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."""