local llm selection
Technical framework for choosing local LLMs, sizing quantization to VRAM, and weighing QLoRA vs RAG.
Free
Works with the AI Agents you already use
local llm selection
Example session with this skill installed
I have a workstation with 12GB VRAM. Should I run a 7B or 14B model for a local coding assistant, and which quantization should I use? Also, should I fine-tune it for my company's style?
- Read your context and instructions
- Compiled the local llm selection
I have analyzed your hardware constraints and requirements for a local coding assistant. Based on your 12GB VRAM limit, a 7B model is the viable choice to ensure stability and sufficient context headroom.
Local LLM Hardware & Strategy Analysis
| Category | Recommendation | Technical Details |
|---|---|---|
| Model Size | 7B - 8B Parameter Class | 14B models at usable quants exceed 12GB VRAM once KV cache is added. |
| Quantization | Q4_K_M or Q5_K_M | Q4 (~5GB) or Q5 (~6GB) leaves 5-6GB for context and system overhead. |
| Model Family | Qwen-Coder or StarCoder2 | Specialized code models outperform general chat models at this size. |
| Strategy | Prompting/RAG over QLoRA | Start with RAG. Fine-tune only if style remains inconsistent after prompting. |
| Deployment | Ollama / llama.cpp | Use GGUF format for easy quantization management on consumer GPUs. |
VRAM Allocation Estimate
- Model Weights (Q5_K_M): ~6.0 GB
- KV Cache (8k context): ~1.5 - 2.0 GB
- System/GUI Overhead: ~1.0 GB
- Remaining Headroom: ~3.0 GB (Safe margin for stability)
Next steps
- Install Ollama and pull a code-specialized 7B model at Q4 or Q5 quantization.
- Implement a provider-switch in your application logic to gate this model behind a
DEV_OFFLINE=1flag. - Establish a baseline eval set to test the model's output against your company's coding style before considering QLoRA.
Connects securely to your tools. The creator never sees your data.
About this skill
Running a local LLM is rarely just about saving money on API credits. It introduces operational overhead, hardware constraints, and potential quality trade-offs that can stall a project. This skill provides a technical framework for evaluating whether to stick with a hosted API or migrate to a local stack like Ollama, llama.cpp, or vLLM.
What it does
- Local vs hosted evaluation compares privacy, volume, and latency requirements to determine the best deployment strategy.
- VRAM sizing calculates model and quantization requirements against hardware limits to prevent out-of-memory errors.
- Quantization selection weighs the trade-offs between FP16, Q8, Q5, and Q4 formats to balance speed and quality.
- Fine-tuning triage determines if a project requires QLoRA or if RAG and advanced prompting are sufficient.
- Architecture planning defines how to implement env-gated provider paths for swappable local/hosted backends.
How it works
- Define the workload requirements including data privacy needs, expected volume, and hardware availability.
- Calculate VRAM overhead by multiplying parameters by bytes-per-weight and adding headroom for KV cache.
- Compare model specialized variants like choosing a code-tuned model over a general chat model for dev tasks.
- Draft a provider-agnostic implementation using a clean architecture pattern to gate local models behind environment flags.
Frameworks & tools
The skill focuses on local inference engines like Ollama, llama.cpp, and vLLM. It handles quantization formats including GGUF and EXL2, and covers fine-tuning workflows involving QLoRA and PEFT.
Why this beats prompting it yourself
Generic LLMs often provide overly optimistic advice about local hosting or fail to account for the specific VRAM footprint of KV caches. This skill enforces a "hosted-first" production bias and requires rigorous cost-complexity math before recommending hardware-bound solutions.
Use cases
- Deciding if a high-volume data pipeline should migrate from OpenAI to local vLLM nodes.
- Selecting the largest possible coding model that fits on a developer's 12GB or 16GB GPU.
- Evaluating whether inconsistent JSON output justifies a QLoRA fine-tune vs improved RAG.
- Setting up a local development environment that works offline without breaking production API paths.
Known limitations
Does not provide benchmark scores for specific model versions. Hardware calculations assume standard transformer architectures and may not account for specialized NPU or Apple Silicon optimizations.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean today
- Free to download with an account