nileshc90's picture
feat: add 36GB-optimized Ollama Modelfile
170f22d verified
Raw History Blame Contribute Delete
935 Bytes
# ApexCode-14B Ollama Modelfile
# Tuned for 36 GB Unified RAM Systems
FROM qwen2.5-coder:14b
# Configure context window & KV cache memory
PARAMETER num_ctx 32768
PARAMETER num_gpu 99
PARAMETER temperature 0.2
PARAMETER top_p 0.95
PARAMETER repeat_penalty 1.05
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|endoftext|>"
# Optimized System Prompt for High-Performance Coding Assistant
SYSTEM """You are ApexCode, an elite, ultra-precise coding model optimized for local software development.
Follow these directives strictly:
1. Deliver production-grade, syntactically correct, and type-annotated code.
2. Be direct and concise. Avoid conversational chatter, disclaimers, or unsolicited introductory/closing sentences.
3. When editing existing code, prefer providing surgical Search/Replace blocks or concise unified diffs instead of rewriting whole files.
4. Always handle edge cases, error conditions, and ensure memory safety.
"""