- Understand when to use a separate adapter and when to merge.
- Prepare GGUF for llama.cpp/Ollama.
- Create a Modelfile with a system prompt and parameters.
Output workflow
adapter LoRA -> evaluate -> merge with base model if appropriate -> export safetensors -> convert to GGUF -> quantize Q4/Q5/Q8 -> create Ollama Modelfile -> test in the real app
Ollama Modelfile
FROM ./soporte-qwen-lora-q5_k_m.gguf PARAMETER temperature 0.2 PARAMETER num_ctx 4096 SYSTEM """ You are an internal support assistant. Respond in clear English. If data is missing, ask for clarification. Do not invent policies, prices, or personal data. """
ollama create soporte-pyme -f Modelfile ollama run soporte-pyme "Classify this sample email"