Posts

Showing posts from May, 2026

AnythingLLM vs Open WebUI for teams

Image
AnythingLLM and Open WebUI both give you a ChatGPT-style front end for local models, but they are built for different people. Open WebUI is the natural companion to Ollama. You run the Ollama server, point Open WebUI at it, and you get chat, document upload for retrieval-augmented generation (RAG), and image generation hooks in a clean web interface. It is lightweight, and the community ships new pipes and functions for it constantly. AnythingLLM is a standalone desktop app with its own model management. Its strength is workspaces: you can hand different document collections to different assistants, which is useful when your RAG setup serves real work. The tradeoff is weight. AnythingLLM is heavier and more opinionated, while Open WebUI stays lean and hackable. The interface barely changes your hardware math. That is driven by the model underneath. A 7B model at 4-bit quantization needs about 4 to 5GB of video memory (VRAM), which any modern graphics card handles. Pick the interface th...

LocalAI 3.0: setup guide and hardware requirements

Image
LocalAI turns your machine into a drop-in replacement for the OpenAI application programming interface (API). Point your existing tools at a local address and they talk to your own models instead of the cloud. No code changes, no new software development kits. That is the whole pitch, and it is a strong one. Under the hood it wraps llama.cpp and similar engines, so the hardware behavior is familiar: a 7B model sips video memory (VRAM), while a 70B model wants 40GB or more at 4-bit quantization. The question that matters is concurrency. One person chatting needs far less than an API serving a team, and batch size multiplies memory needs fast. For a personal server, a 24GB card like the RTX 4090 covers most 4-bit models up to 32B. For shared use, measure throughput with your real request pattern before buying more hardware. Start with one model, check your tokens per second, then decide. Size your serving setup with the VRAM calculator .

Open WebUI advanced features: RAG, agents, and tools

Image
Most people install Open WebUI, chat a little, and never touch the good stuff. Three features deserve your time. First, pipes and functions: small Python snippets that run inside the chat pipeline. You can add web search, call outside APIs, or filter model output without touching the model itself. Second, knowledge bases with tunable retrieval: upload your documents and adjust chunk size and embedding models until the answers cite the right passages. Third, model routing: connect several backends and switch models mid-conversation based on the task. Back up your pipes and functions. They live in the Open WebUI data directory, and losing a tuned retrieval pipeline to a reinstall is a painful lesson most people learn once. None of this changes your hardware math much. The embedding model used for retrieval-augmented generation (RAG) is tiny next to the chat model. What raises video memory (VRAM) pressure is vision and image features, so budget a few extra gigabytes if you use those. Size...

vLLM vs TGI for self-hosted LLM API endpoints

Image
When one person chatting becomes ten people hitting an API, llama.cpp stops being the right tool. That is where vLLM and Text Generation Inference (TGI) come in. Both do continuous batching: they pack multiple requests into each graphics processing unit (GPU) pass, which multiplies throughput. vLLM is the community favorite. It supports the widest range of models, uses PagedAttention for efficient key-value cache handling, and the ecosystem around it is large. TGI is the Hugging Face server. If your models come from the Hugging Face Hub and you like that toolchain, TGI feels native, and its structured generation support is solid. For most self-hosters the practical difference is smaller than the documentation suggests. Choose vLLM for breadth, TGI if you live in the Hugging Face world. Either way, serving makes video memory (VRAM) math serious: batch size multiplies memory needs, so measure with your real concurrency instead of a single-user benchmark. Size a serving setup with the VRA...

llama.cpp flash attention: how to enable and benchmark

Image
Flash attention computes attention with far less memory traffic. The math is identical; the memory movement is not. In llama.cpp it matters most in two situations: long context windows and tight video memory (VRAM). With flash attention enabled, the key-value cache shrinks substantially. A 32k-token context window becomes realistic on a 16GB card, and the prompt-processing phase speeds up, so long documents get ingested faster. The catch is compatibility: not every model and quantization combination supports it, and on some setups the speedup is modest. If you run short chats on a strong GPU, you may barely notice. Where it shines is retrieval-augmented generation (RAG) and long-document work on mid-range cards. Enable it, compare your tokens per second, and keep it if your workload benefits. For the common case of pasting a long PDF and asking questions, it is close to free performance. See how context length changes VRAM needs .

LM Studio 0.4 vs Ollama: 2026 comparison

Image
LM Studio and Ollama solve the same problem from opposite directions: running models locally without a computer science degree. Ollama is command-line first. You type one command, it downloads the model, and you get a chat prompt plus a local API server. It is scriptable, lightweight, and the default choice for developers. LM Studio is a desktop app. You browse a model catalog, click download, click load, and chat in a polished graphical interface. It also exposes an OpenAI-compatible server, so your code cannot tell the difference. Both tools can share downloaded models if you point them at the same directories, so trying both costs nothing but disk space. Many people end up with Ollama serving the API and LM Studio open for interactive chat. For most people the choice comes down to comfort: terminal users pick Ollama, interface people pick LM Studio. Underneath, both wrap similar inference engines, so speed differences are small and the hardware question is identical. A 16GB card com...

Ollama 1.0 features: what's new and how to upgrade

Image
A 1.0 release is a statement: the API is stable and you can build on it. For Ollama, that means the local API server, the Modelfile format, and the model library behavior are things you can rely on long term. The features that matter most to hardware folks did not change in spirit. The server still handles concurrent requests. Quantized models from the library still trade a little quality for a lot of video memory (VRAM) savings. And the ecosystem of interfaces, editor plugins, and framework integrations keeps growing because the target stopped moving. If you are setting up a home server, a 1.0 milestone is a fine time to commit. The practical advice stays the same: start with a 4-bit 7B or 8B model, confirm your tokens per second feel comfortable, then step up in size until your VRAM says stop. Boring, reliable, and it works. Find your VRAM ceiling before you download .

Best 3B models that run on any laptop in 2026

Image
3B models are the runs-on-anything class. At 4-bit quantization a 3B model needs around 2GB of video memory (VRAM), which means it runs on integrated graphics, old laptops, and even phones. The use cases are specific: classification, extraction, simple question answering, and on-device assistants where latency matters more than brilliance. Do not ask a 3B model to write your novel. Do ask it to pull dates out of emails. When people ask which 3B is best, the gap between the top ones is smaller than the gap between a 3B and a 7B. Pick a recent one from a serious lab, run it at the highest quantization your hardware allows, and spend your effort on the prompt instead. Where 3B models surprise people is function calling and structured output. With a tight schema they are reliable enough for automation pipelines, which is why they show up in agents and on-device features. If you outgrow it, the step up to 7B is cheap: roughly 5GB at 4-bit, still fine on almost any discrete graphics card. Se...

LLaVA vs InternVL: best vision model for local use

Image
Vision-language models answer questions about images, and the two open families people actually run are LLaVA and InternVL. LLaVA is the familiar one: plenty of tutorials, friendly builds for Ollama-style setups, and a large community. If you want to point a model at a screenshot and ask what is wrong, LLaVA-based builds get you there fastest. InternVL tends to score higher on vision benchmarks and handles high-resolution images better, but the builds are less standardized and you will spend more time finding a good quantization. The hardware note matters: vision models are hungrier than text-only models at the same parameter count. The vision encoder adds video memory (VRAM) overhead, and high-resolution images inflate the context. Budget a few extra gigabytes beyond what you would allocate for a text model of the same size. For most home setups, a 7B-class vision model at 4-bit on a 16GB card is the sweet spot. Budget VRAM for vision models .

Command R+ vs Mistral Large for RAG applications

Image
These are the heavyweights of the open world: 100B-plus parameter models built for retrieval-augmented generation (RAG) and serious text work. Time for direct talk about hardware. At 4-bit quantization, a 100B-plus model needs roughly 60 to 70GB of video memory (VRAM). That is not one consumer graphics card. Your options are multi-GPU setups, a Mac with 128GB of unified memory, or central processing unit (CPU) offloading that is honest about being slow. If you commit to this class, plan power and cooling like a small server. Two or more high-end cards under sustained load need dedicated circuits and airflow, not a closed office closet. Most people asking about these models should ask a different question: do I need to self-host at all? If the answer is data privacy, check whether a 70B model does nearly all of the job on a single 48GB card. If the answer is curiosity, renting cloud GPUs by the hour beats buying. The models are capable. The hardware bill is large. Go in with eyes open. ...

Best coding model for local use: Qwen2.5-Coder vs DeepSeek-Coder

Image
For local coding help, two model families dominate the conversation. Both come in sizes from tiny to 32B, and size matters more than brand here. A 7B coder model at 4-bit quantization runs on practically any graphics card and handles autocomplete-style tasks well. The 32B versions are where the real coding ability lives, and they need around 20GB of video memory (VRAM) at 4-bit. That puts them in RTX 3090 and 4090 territory, or on a 32GB-plus Mac. Temperature settings matter more for code than chat. Drop it low, around 0.1 to 0.2, and the model stops getting creative with your syntax. Deterministic output is a feature when the compiler is the judge. Practical setup: run the model through Ollama or LM Studio, point your editor plugin at the local endpoint, and keep paid API usage for the hardest tasks. One tip people skip: coding models gain more from longer context than from higher quantization. A 32k-token context at 4-bit beats an 8k context at 8-bit for real codebases. Size a coder ...

Gemma 3.5 27B: best open-weight multimodal model

Image
27B is an interesting size: too big for small cards, comfortable on big ones. At 4-bit quantization you are looking at roughly 16 to 18GB of video memory (VRAM), which means a 24GB card runs it with room to spare while a 16GB card leans on partial offloading to system RAM. That offloading works, but every layer that spills to RAM costs speed. The practical question is what you give up by dropping to a smaller model. For general chat and writing, the difference between 27B and 12B is real but not dramatic. For reasoning-heavy work, the bigger model earns its VRAM. Context length is the hidden cost at this size. A 27B model with a 128k-token window needs several extra gigabytes for the key-value cache, so a 24GB card that fits the weights may still feel tight with long documents. Check both numbers. If you are buying hardware for this class, 24GB is the sweet spot. It covers 27B at 4-bit plus context headroom, and it keeps 32B models in reach. Run the exact numbers for your setup .

Phi-4.5 Mini: Microsoft's best tiny model for on-device AI

Image
Small models from serious labs keep improving, and the Phi family is the classic example: compact models that punch above their weight on reasoning and math. The mini class, a few billion parameters, exists for one reason: running where big models cannot. At 4-bit quantization we are talking a couple of gigabytes of video memory (VRAM). Laptops with integrated graphics. Mini PCs. Even phones. Fine-tuning changes the story for small models. A mini model tuned on your specific task often beats a larger general model at that task, and the training itself runs on modest hardware. Small plus specialized beats big plus generic more often than people expect. The tradeoff has not changed. These models are sharp inside their training and brittle outside it. Use them for structured tasks like extraction, classification, and short-form question answering, not open-ended writing. And keep quantization high when you can. Small models lose more to aggressive quantization than big ones do, and when a...

Mistral Small 3.2 vs Qwen2.5-7B benchmark shootout

Image
This is a contest between two philosophies: a larger efficient model against a smaller proven one. The 7B class is the default recommendation for a reason. At 4-bit quantization it needs about 5GB of video memory (VRAM), runs fast on anything, and handles general chat well. The Mistral Small line sits a tier up: more capable, but hungrier, roughly two to three times the memory at similar quantization. The decision is really about your hardware. On a 16GB card, the smaller model leaves generous headroom for long context and retrieval-augmented generation (RAG). The bigger model still fits, but you are closer to the ceiling. On a 24GB card, the question disappears and you run the bigger one. Do not overthink the brand. Within a size class, recent models from major labs sit closer than internet arguments suggest. Match the size to your VRAM first, pick the model second. Compare what each size needs .

DeepSeek-R2 local inference: hardware requirements

Image
DeepSeek releases move fast and the naming moves faster, so here is the durable advice regardless of version number. Their models tend to be mixture-of-experts (MoE): large total parameter counts with a fraction active per token. That changes the hardware math in a specific way. Video memory (VRAM) needs follow the total parameters, because everything has to load. Speed follows the active parameters, because only a slice computes each token. An MoE model might need 40GB of VRAM yet feel as fast as a much smaller dense model. That is a strong deal if you have the memory, through a 48GB card or a high-RAM Mac, and a weak deal if you do not. The MoE pattern also affects quantization choices. With so many experts, per-expert quantization quirks average out, which is why these models often survive 4-bit better than their dense peers. Before downloading any large MoE release, check two numbers: total parameters for VRAM, active parameters for speed expectations. Then verify against your real...

Qwen3-30B-A3B: best MoE model for consumer hardware

Image
This is the mixture-of-experts (MoE) sweet spot: 30 billion total parameters with only 3 billion active per token. In practice that means the capability of a 30B model at the speed of a 3B one, with one catch. You still load all 30B parameters into memory. At 4-bit quantization that is roughly 18GB of video memory (VRAM), which fits a 24GB card comfortably and squeezes onto 16GB cards with some offloading to system RAM. The result is striking: near-30B quality at speeds that make interactive chat pleasant. Watch the context window on MoE models. The key-value cache scales with total parameters, so long conversations on a 30B MoE need more headroom than the weights alone suggest. Leave a few gigabytes free. If you own a 24GB graphics card, this is one of the best models you can run. It uses nearly all your VRAM productively instead of leaving half idle the way a 7B would. On smaller cards, stick with dense 7B to 14B models. The offloading penalty eats the MoE advantage. Verify the fit f...

Llama 4 Maverick vs GPT-4o: local vs cloud comparison

Image
The open-against-closed question, now with a real contender. Maverick is a 400B-total mixture-of-experts (MoE) model with 17B active parameters: open weights, multimodal, serious capability. GPT-4o is the polished closed product. On quality they belong in the same conversation, and that is the news. On hardware there is no contest, because these are two different games. Running Maverick locally means 200GB or more of memory at reasonable quantization: multi-GPU rigs, large-memory Macs, or serious central processing unit (CPU) offloading. That is enthusiast-or-lab territory, not a weekend project. GPT-4o costs per token and needs nothing. A middle path exists that people overlook: smaller Llama 4 variants and distilled versions capture much of the quality at a fraction of the hardware cost. If Maverick itself is out of reach, the family still has options your GPU can handle. The honest framing: choose Maverick if data privacy or independence justifies the hardware. Choose the API if you...

CPU vs GPU inference for small models under 7B

Image
Graphics processing units (GPUs) are faster at inference. That is the short version. The long version is about how much faster, and when it stops mattering. A mid-range GPU generates tokens five to ten times faster than a strong central processing unit (CPU) on the same model, because matrix math is what GPUs are built for. But CPUs hold two advantages: memory capacity and price. A workstation with 128GB of RAM can load a 70B model at low quantization. No consumer GPU can. It will produce a few tokens per second, which suits batch jobs and punishes chat. The practical split: for interactive chat, buy a GPU and size the model to its video memory (VRAM). For overnight batch work like summarization and extraction, a big-RAM CPU box is remarkably cost-effective. Apple Silicon blurs the line with one large unified memory pool. Match the hardware to how you will actually use it. Compare setups for your use case .

NVIDIA RTX 5060 Ti for budget local AI inference

Image
The 16GB version of the RTX 5060 Ti is the one worth discussing. The 8GB version is a gaming card that happens to run small models. With 16GB you can run 4-bit quantized models up to about 13B comfortably, plus a 32B model with offloading if you are patient. That is substantial capability for a mid-range price. What it is not: a 24GB replacement. If your goal is 32B-plus models at full graphics processing unit (GPU) speed, save for more video memory (VRAM) instead. Power efficiency is the 5060 Ti's quiet advantage. It draws far less than a 3090-class card, so it runs cool in small cases and will not spike your electricity bill during long inference sessions. For a bedroom office rig, that counts. The 5060 Ti makes sense as a first local-AI card or a second machine's card: quiet, efficient, and enough for the 7B to 13B models most people run daily. Pair it with 32GB of system RAM so offloading never chokes, and you have a solid starter rig. See our current GPU picks .

Mini PC for local LLMs: top picks under $800

Image
Mini PCs tempt as home AI servers: silent, tiny, sipping power. The direct assessment is that they are strong hosts and modest workers. A modern mini PC with 32 to 64GB of RAM makes an excellent Ollama server for small models. Quiet box in the corner, API on your network, done. What it cannot do is serious graphics processing unit (GPU) inference. Most models have no discrete GPU slot, and integrated graphics top out at small quantized models. Networking is the mini PC's quiet strength. A wired Ethernet port and a static address turn it into a proper home server that your laptop and phone can reach. Wi-Fi works, but a cable is worth the ten minutes. The neural processing unit (NPU) marketing deserves skepticism. Current NPUs target operating-system assistant features, not llama.cpp workloads, and software support is thin. Buy a mini PC for what it is: a low-power server for 7B-class models and retrieval-augmented generation (RAG) experiments. For bigger models you want a real GPU, ...

Building a $1500 local AI rig in 2026

Image
Fifteen hundred dollars buys a capable local-AI machine if you spend it on video memory (VRAM), not shine. The used market is your friend here. A used 24GB card like the RTX 3090 is the best VRAM-per-dollar purchase in this budget. That leaves room for a modest central processing unit (CPU), 32 to 64GB of RAM, and a case with real airflow. Do not buy a new 16GB card when a used 24GB card costs similar money. For large language models (LLMs), VRAM capacity beats everything else, including newer architectures. One place beginners overspend is the motherboard. For an AI box, a mid-range board with the right PCIe slot layout beats a flagship. Put the money into a quality power supply instead. A 24GB card under full load for hours is exactly when cheap power supplies fail. Put the remainder into RAM for offloading headroom and a power supply with genuine headroom, not lights. The result: 4-bit quantized models up to 32B at full graphics processing unit (GPU) speed, 70B with offloading. That...

AMD Radeon RX 9070 XT local LLM inference guide

Image
16GB of video memory (VRAM) at a reasonable price: on paper, a fine local-AI card. In practice, AMD for local large language models (LLMs) is a Linux story. ROCm support has improved substantially, and on Linux the 9070 XT runs llama.cpp and friends respectably. On Windows you fight driver immaturity for compute workloads. That is the entire decision. If you already run Linux, AMD's VRAM-per-dollar is genuinely attractive: 16GB covers 4-bit quantized models up to 13B with room to spare. If you are on Windows and do not want a second operating system, NVIDIA's software stack remains worth the premium. Memory bandwidth is the other number to check. The 9070 XT moves data fast enough that 4-bit inference feels responsive, and the Vulkan backend in llama.cpp gives Windows users a fallback where ROCm is not an option. Test with your actual models, since support varies by quantization format. Do not buy AMD for AI on Windows hoping support improves later. Buy it for the system you wi...

The Complete 2025 Local AI Setup Guide: From Zero to Running

Whether you've been following the local AI space for months or just discovered it, this guide provides everything you need to go from zero hardware to a fully functional local AI setup in a single weekend. We'll cover hardware selection, software installation, model selection, and getting your first useful results. Start here: If you need help choosing hardware, LLMHardware.io is the most comprehensive resource for hardware recommendations, VRAM calculators, and GPU benchmarks specifically for LLM inference. Everything in this guide links to more detailed resources there. Step 1: Hardware Assessment Check your GPU VRAM: in Windows, open Task Manager > Performance > GPU. On Linux: nvidia-smi or rocm-smi . VRAM determines which models you can run: 4-6GB → 7B Q4, 8-12GB → 13B Q4, 16-24GB → 34B Q4 or 70B with CPU overflow. No GPU or integrated graphics → CPU inference only, limit to 3B-7B Q4. Mac? Check System Information for unified memory size — M-series chips use ...

Continuous Batching in LLM Serving: How Throughput Scales

Continuous batching (also called in-flight batching) is the technique that made modern LLM serving scalable. Without it, serving 10 concurrent users requires 10x the GPU capacity of 1 user. With continuous batching, GPU utilization becomes near-100% regardless of user count. Understanding it helps you choose and configure serving infrastructure. Why it matters: An RTX 4090 with continuous batching can serve a small team as effectively as multiple single-user setups. For hardware matched to your team size, LLMHardware.io has team server guides . The Problem: Static Batching Waste In naive static batching, requests are grouped before inference starts. If user A's request completes at step 50 while user B's continues to step 200, the GPU is idle for user A's "slot" from step 50-200. At high concurrency, most GPU cycles are wasted waiting for slow requests to complete before the batch can be refilled. Real-world GPU utilization with static batching is often 20-...

MLX Framework: Apple Silicon AI Acceleration Explained

MLX is Apple's open-source machine learning framework, optimized specifically for Apple Silicon's unified memory architecture. Released in late 2023 and maturing rapidly, MLX offers a NumPy-like API with automatic differentiation and hardware acceleration across CPU, GPU, and Neural Engine. For Apple Silicon LLM users, MLX provides a fast Python-native path to model inference. Apple Silicon advantage: MLX leverages unified memory natively — no CPU/GPU memory transfers. On M4 hardware specifically, MLX sees additional speedups from architecture improvements. For Apple Silicon hardware comparisons, visit LLMHardware.io's Apple AI guide . MLX vs llama.cpp on Apple Silicon For pure inference speed, mlx-lm (the LLM library built on MLX) and llama.cpp Metal are now very close in performance — within 5-10% on most models. MLX's advantage is Python nativity — it's trivial to integrate into Python workflows, modify model architectures, and do light fine-tuning. llama....

Local LLMs for Content Creation and SEO: Complete Blogger's Guide

Content creators who run local LLMs gain significant advantages over those paying $20-100/month for cloud AI writing tools: unlimited generation at zero marginal cost, full privacy for unpublished drafts, and the ability to build custom workflows that cloud tools don't support. Here's a practical guide for bloggers and content creators. Economics: An RTX 3060 12GB at $200 used eliminates $50-100/month in AI writing tool subscriptions, paying for itself in 2-4 months. For hardware that handles content workflows, visit LLMHardware.io's creator builds . SEO Research Workflows Use your local LLM for: generating semantic keyword clusters from a primary keyword, creating topic clusters for pillar/cluster content architecture, analyzing competitor content structure, generating FAQ sections based on "People Also Ask" patterns, and creating title tag variations for A/B testing. Feed it your existing analytics data for personalized insights. All of this analysis runs...

LLM Inference on CPU: When It Makes Sense and How to Optimize

CPU inference for LLMs gets less credit than it deserves. Modern CPUs with AVX-512 support and large L3 caches can run 7B models at 10-20 tokens/second — fast enough for many use cases. For users without dedicated GPUs, or for machines where the GPU is occupied by other tasks, CPU inference is a legitimate option. When CPU makes sense: Always-on background processing where latency doesn't matter, machines where GPU is doing other work, or any setup where a dedicated AI GPU isn't budget-friendly yet. For GPU upgrade paths when you're ready, see LLMHardware.io's GPU comparison . CPU Performance Expectations Performance varies dramatically by CPU. Modern high-core-count desktop chips: Ryzen 9 7950X achieves 15-20 t/s on Llama 3.1 7B Q4_K_M. Intel Core i9-13900K gets 12-15 t/s. Older chips (i7-8700K) manage 4-6 t/s. System RAM bandwidth matters — DDR5 on a 7950X with quad-channel provides ~70 GB/s bandwidth vs DDR4's ~50 GB/s. More cores help (each core handles t...

NFS vs SMB for AI Model Storage: Network File System Guide

When your model library grows to hundreds of gigabytes, local storage per machine becomes impractical. Network storage — either NFS or SMB — lets multiple AI workstations share a central model repository. The choice between NFS and SMB affects model load times and inference performance significantly. Key requirement: Network storage for AI needs 10Gbps Ethernet minimum — 1Gbps (125 MB/s) is a bottleneck for loading 10GB+ models. For complete AI storage and hardware setup guides, LLMHardware.io has network storage recommendations . NFS vs SMB Performance for LLMs NFS (Network File System) consistently outperforms SMB for large sequential reads — the pattern of loading model weight files. NFS v4.2 with rsize=1048576 achieves ~85-90% of theoretical network bandwidth. SMB3 on Linux clients achieves ~70-80%. For a 10GbE network, NFS reads a 7B GGUF model (4GB) in ~3-4 seconds vs SMB's ~5-6 seconds. Over a workday, this difference is barely noticeable, but for frequent model switc...

Local LLMs for Cybersecurity: Threat Analysis and Research Use Cases

Cybersecurity professionals have specific AI needs: analyzing malware samples, understanding CVEs, drafting security reports, and threat intelligence synthesis. Local LLMs are ideal here — you can analyze sensitive malware artifacts and confidential incident data without sending them to cloud services. Here's how the security community is using local AI. Air-gapped use: For analyzing samples from sensitive environments, run a completely offline local LLM stack — models loaded from USB, no network interface active. Hardware for secure deployments at LLMHardware.io . Legitimate Security Use Cases Appropriate uses: explaining decompiled code or assembly, summarizing CVE descriptions and their implications, drafting incident response reports, analyzing pcap data for patterns, helping understand MITRE ATT&CK techniques in context, generating IDS/SIEM rules from threat descriptions, and reviewing security code for vulnerabilities. These are all defensive activities where local...

Building AI Agents with Local LLMs: From Simple to Complex

AI agents — LLMs that take actions, call tools, and complete multi-step tasks autonomously — are the most powerful application of local LLMs. Building them with local models means unlimited free API calls, no data leaving your infrastructure, and the ability to give the agent access to local resources that cloud models can't reach. Here's how to build effective local AI agents. Model requirement: Effective tool-calling agents need models that reliably output valid JSON for tool calls. Llama 3.1+ and Mistral Nemo+ have native function calling. For hardware that runs these at acceptable speeds, see LLMHardware.io . ReAct Pattern: The Foundation The ReAct (Reason + Act) pattern is the basis for most agent frameworks. The loop: (1) LLM reasons about what to do next, (2) LLM calls a tool (web search, file read, code execution), (3) tool result is fed back to LLM, (4) repeat until task complete. LangChain and LlamaIndex both implement ReAct agents with local LLM backends. The ...

Best Open-Source LLMs for Financial Analysis and Research

Financial analysis involves highly sensitive data — trading strategies, portfolio information, M&A research, and proprietary models. Local LLMs let financial professionals leverage AI for analysis, report drafting, and data interpretation without the confidentiality risks of cloud AI. Here's what works in practice for financial use cases. Compliance consideration: Many financial firms prohibit sending non-public information to cloud AI services. Local LLMs are the compliant solution. For secure financial AI hardware, LLMHardware.io has enterprise-grade build guides . Best Models for Financial Tasks FinGPT (HuggingFace) is specifically fine-tuned on financial news and reports for sentiment analysis and market commentary. BloombergGPT (closed, but influences open alternatives) demonstrated the value of finance-specific training data. For most financial professionals, Llama 3.3 70B Instruct with a finance-focused system prompt outperforms specialized small models on complex...

vLLM vs TGI vs llama.cpp: Which Server Should You Use in 2025?

Choosing the right LLM serving framework is a consequential infrastructure decision. vLLM, Text Generation Inference (TGI), and llama.cpp server each occupy different niches — and using the wrong tool for your workload means leaving significant performance on the table. Here's the definitive comparison for 2025. Quick guide: Single user, maximum speed: llama.cpp. Small team, NVIDIA only: vLLM. Mixed hardware or maximum model compatibility: TGI. For hardware that each framework runs best on, see LLMHardware.io's server GPU guide . llama.cpp: The Universal Foundation llama.cpp runs on everything — NVIDIA, AMD, Apple Silicon, CPU-only, even Raspberry Pi. GGUF quantization provides fine-grained quality/size tradeoffs. The server mode's --parallel flag handles moderate concurrency. Limitations: lower multi-user throughput than vLLM/TGI due to less sophisticated batching, no PagedAttention. Best for: personal use, cross-platform deployment, models not in HuggingFace forma...

NVMe SSD speed impact on LLM model loading times

Image
Nobody buys an NVMe drive for AI and regrets it, but few buy it for the right reason. Model loading is the win: a 40GB model loads in seconds from NVMe against a minute from a spinning drive, and you feel that every time you switch models. During inference the drive mostly idles, unless you offload layers to disk. Then speed is everything and NVMe is mandatory. Capacity matters more than peak speed: model collections grow fast, and a 2TB drive fills quicker than you expect. PCIe 4.0 is plenty for AI work, so skip the premium for 5.0. DRAM cache on the SSD matters more than the headline speed for model work. A drive with its own DRAM handles the random reads of weight loading far better than a DRAM-less budget drive, so check the spec sheet before buying the cheapest option. One practical habit: keep active models on the fastest drive and archive the rest. Your video memory (VRAM) does the work. The SSD only needs to feed it quickly. Full build guidance .

Best RAM configuration for local AI workloads

Image
For local large language models (LLMs), RAM advice is simple: capacity first, speed a distant second. Every gigabyte of system RAM is a gigabyte of model you can offload when video memory (VRAM) runs out, and it is where the key-value cache lives for long contexts. 32GB is the sensible minimum for a dedicated AI box. 64GB gives real headroom for 70B offloading experiments. DDR5 against DDR4 barely moves inference speed, because the graphics processing unit (GPU) does the math and RAM only holds the weights. Buy the cheapest reliable kit at the capacity you need, in two sticks for dual channel, and put the savings toward VRAM. Speed ratings like 5600 against 6000 MT/s change almost nothing for inference, but they change the price. Buy the slower kit at higher capacity and you will never notice the difference except in your wallet. The exception is Apple Silicon, where RAM is the VRAM. There, buy the maximum at purchase, because you can never add more later. How RAM fits into a build .

Apple M4 Max vs RTX 4090 for running local models

Image
This is the fundamental tradeoff in local AI: one large memory pool against raw speed. The M4 Max with 128GB of unified memory can load models no consumer graphics processing unit (GPU) can touch: 70B at high quantization, larger still with offloading techniques. The RTX 4090 holds 24GB of video memory (VRAM) with far faster compute. For any model that fits in 24GB, the 4090 runs circles around the Mac. Noise and power draw deserve a mention. The Mac Studio sips power and stays silent under load, which matters if the machine sits on your desk. A 4090 rig needs real cooling and a tolerant electricity bill. Factor your room into the decision, not just the spec sheet. The question is which models you run. Mostly 7B to 32B? The 4090 is faster, cheaper, and quieter about it. Need 70B-plus locally for privacy or research? The Mac's memory wins by default, because nothing else near the price holds that much. Some power users end up with both: the 4090 for daily driving, the Mac for the he...

RTX 5080 vs RTX 4090 for local LLM inference benchmarks

Image
Newer is not better here. The RTX 5080 is faster at gaming and carries nicer features, but it holds 16GB of video memory (VRAM) against the 4090's 24GB. For local large language models (LLMs), that 8GB gap decides everything: the 4090 runs 4-bit 32B models entirely on the graphics processing unit (GPU), while the 5080 must offload to system RAM, which costs real speed. The 5080 only makes sense if you need its specific features or you find one far below the 4090's price. On the used market the 4090 remains the local-AI champion for one reason: VRAM capacity is the spec you cannot work around. Architecture improvements do not load bigger models. Memory does. The one scenario where the 5080 wins is multi-GPU. If you plan to stack several cards, the 5080's lower power draw makes dense builds easier to cool and feed. For single-card LLM duty, the 4090 still takes it. If you buy today primarily for LLMs, get the most VRAM your budget allows, generation aside. Current GPU recomme...

Best GPU for running Llama 4 locally in 2026

Image
Llama 4 covers two very different models. Scout is the efficient one: 109B total parameters with only 17B active, designed to fit on a single high-end graphics processing unit (GPU). At 4-bit quantization that is roughly 60GB of video memory (VRAM), which means workstation cards, multi-GPU rigs, or large-memory Macs, though aggressive quantization squeezes it lower. Maverick is the large one at 400B total, and you should plan on 200GB or more of memory. That is lab hardware. For most people the practical answer is to not buy a GPU for Llama 4 specifically. Buy for the 7B to 70B models you will run daily. A 24GB card covers nearly everything up to 32B at full speed. Treat the giant models as a future upgrade path. If Scout is your actual target, you are shopping in the 48GB-plus class: workstation cards, dual 3090s, or a maxed-out Mac Studio. Run your exact numbers .

MergeKit: Combine LLM Models for Better Performance

Image
Model merging combines the weights of multiple fine-tuned models into one, inheriting the strengths of each. The result: a model that might have better coding ability from one source and better instruction following from another, without any additional training. MergeKit has made this accessible, and the top models on the Open LLM Leaderboard are often merges. Hardware needed: Model merging is done on CPU/RAM — you need enough system RAM to hold all source models simultaneously. Merging two 7B FP16 models requires ~28GB RAM. For hardware recommendations including RAM capacity, see LLMHardware.io . Merging Methods SLERP (Spherical Linear Interpolation) merges two models at a specified interpolation ratio — simpler and more predictable. TIES-Merging handles multiple models by resolving sign conflicts between weight deltas. DARE uses dropout on weight deltas before merging to reduce interference. For beginners, SLERP at 0.5 (equal blend) is a good starting point. More advanced ...

LoRA Fine-tuning on Consumer Hardware: QLoRA Guide for 2025

Image
Fine-tuning large language models once required research-grade hardware. QLoRA (Quantized LoRA) changed that — it's now possible to fine-tune a 7B model on a single RTX 4090, or even a 7B model on 16GB VRAM with some configuration. This guide covers the practical path from dataset preparation to a working fine-tuned model. Hardware minimum: 16GB VRAM for 7B model QLoRA fine-tuning with small batch sizes. 24GB for more comfortable training with larger batches. The RTX 3090 and RTX 4090 are the primary consumer cards for fine-tuning. See LLMHardware.io's training hardware guide for comparisons. What QLoRA Does QLoRA combines two techniques: 4-bit NormalFloat quantization reduces the base model's memory footprint by ~4x, and LoRA (Low-Rank Adaptation) adds small trainable adapter matrices rather than updating all model weights. Instead of training all 7 billion parameters, you train ~1-10 million adapter parameters. This reduces VRAM requirements from ~56GB (FP16 ful...

Local LLMs for Resume and Cover Letter Writing: A Privacy Guide

Image
Your resume contains your employment history, salary aspirations, personal contact information, and career vulnerabilities. Sending it to a cloud AI service means all of that data is stored, potentially used for training, and subject to that company's data policies. Local LLMs handle this sensitive document writing task just as well — and privately. Privacy benefit: Your job search details stay on your machine. No employer can theoretically access that data through a data broker who bought it from an AI company. A basic home AI setup from LLMHardware.io's budget builds handles this perfectly. Best Models for Writing Tasks For resume and cover letter writing, instruction-tuned general models outperform code-focused ones. Llama 3.1 8B Instruct and Mistral 7B Instruct both write professional prose well. For more polished output, Llama 3.3 70B produces cover letters that match the quality of GPT-4. Fine-tunes like Nous Hermes and OpenHermes excel at following detailed for...

WhisperX: Faster Transcription with Speaker Diarization

Image
WhisperX extends OpenAI's Whisper with word-level timestamps, speaker diarization (who spoke when), and batched inference for 10-70x speedup over standard Whisper. For AI workflows that need to process audio — meeting recordings, podcasts, video content — WhisperX is the tool that makes Whisper production-viable. Hardware note: WhisperX large-v3 needs ~5GB VRAM. On an RTX 4060 or similar, it processes audio at 50-70x real-time — a 1-hour recording in about 1 minute. For GPU recommendations for speech AI workloads, visit LLMHardware.io . Installation and Basic Usage Install: pip install whisperx . Basic transcription: whisperx audio.mp3 --model large-v3 --language en --output_dir ./output . For speaker diarization, you'll need a Hugging Face token and accept pyannote model terms: whisperx audio.mp3 --diarize --hf_token YOUR_TOKEN --min_speakers 2 --max_speakers 5 . Output formats: JSON (with timestamps), SRT (subtitles), VTT, TXT. Integration with LLM Pipelines Combi...

Deploying Local LLMs with Docker: The Complete Stack

Image
Docker is the cleanest way to deploy local LLMs for persistent, reproducible service. Containerized Ollama, Open WebUI, and supporting services can be defined in a single docker-compose.yml, making setup repeatable and updates trivial. Here's a production-ready Docker stack for local AI. Why Docker for LLMs: Isolation prevents dependency conflicts, volumes persist models across container updates, and compose makes multi-service orchestration reproducible. For hardware that runs this stack efficiently, check LLMHardware.io's server build guides . docker-compose.yml for Ollama + Open WebUI The compose file defines Ollama with GPU passthrough ( runtime: nvidia and NVIDIA_VISIBLE_DEVICES: all ), a named volume for model storage, and Open WebUI connected to Ollama's internal service name. Setting restart: unless-stopped on both services ensures everything comes back up after a reboot. The compose network isolates the services while allowing controlled external access....

Running LLMs on a Raspberry Pi 5: What's Actually Possible

Image
The Raspberry Pi 5 with 8GB RAM is a surprisingly capable platform for local LLM inference. While it can't match GPU speeds, it runs 3B models at 3-6 tokens/second — useful for embedded applications, home automation, and offline assistants. Here's what's realistically achievable and how to optimize performance. Realistic expectations: Pi 5 (8GB) runs Phi-3.5 Mini Q4 at ~4-5 tokens/second. That's usable for non-real-time tasks: document analysis, batch processing, scheduled tasks. For a full edge AI hardware comparison including Jetson, Orange Pi, and AI accelerators, LLMHardware.io's edge section covers the landscape. Installation on Raspberry Pi 5 Ollama has ARM64 support and installs on Pi 5 with the standard Linux install script. Build llama.cpp from source for maximum performance: enable NEON optimizations with cmake -B build -DGGML_NATIVE=ON . The Pi 5's Cortex-A76 cores support NEON SIMD and significantly outperform the Pi 4 for matrix operations...