ollama mtp

TL;DR MTP (Model Transfer Protocol) is an experimental feature in Ollama that enables direct model transfers between Ollama instances without re-downloading from the registry. Instead of each server pulling a 7GB model from ollama.com, one instance can push it directly to another over your local network. This matters for air-gapped environments, bandwidth-constrained deployments, and multi-node setups where you want consistent model versions across machines. ...

July 13, 2026 · 8 min · Local AI Ops

How to Move Ollama Models to Another Drive in 2026

TL;DR Moving Ollama models to another drive requires changing the OLLAMA_MODELS environment variable and relocating your existing model files. By default, Ollama stores models in ~/.ollama/models on Linux systems, but you can point it to any directory with sufficient space. The fastest approach: stop the Ollama service, set OLLAMA_MODELS to your new location, move the existing models directory, then restart. For systemd-managed installations, edit /etc/systemd/system/ollama.service to add Environment=“OLLAMA_MODELS=/mnt/storage/ollama-models” under the [Service] section. After running systemctl daemon-reload and systemctl restart ollama, verify the new path with ollama list. ...

June 8, 2026 · 9 min · Local AI Ops

Fix Ollama Model Switching Causing 100% SSD Usage in 2026

TL;DR When you switch between models in Ollama, the service unloads the current GGUF file from memory and loads the new one from disk. Large models like llama3.1:70b or mixtral:8x7b can exceed 40GB, causing sustained disk reads that pin your SSD at maximum utilization. This becomes especially problematic when multiple users or applications trigger rapid model switches, creating a cascade of disk I/O that degrades system responsiveness. ...

May 4, 2026 · 9 min · Local AI Ops

MegaTrain: Full Precision Training of 100B+ Models on

TL;DR MegaTrain represents a breakthrough in democratizing large language model training by enabling full-precision training of models exceeding 100 billion parameters on consumer-grade hardware without cloud dependencies. Traditional training approaches require expensive GPU clusters with hundreds of gigabytes of VRAM, but MegaTrain employs aggressive memory optimization techniques including gradient checkpointing, CPU offloading, and dynamic tensor swapping to fit massive models into systems with as little as 24GB of VRAM. The framework integrates seamlessly with local AI stacks like Ollama and LM Studio, allowing you to train custom models on your own hardware while maintaining complete data privacy. Unlike cloud-based training services that charge recurring fees and expose your training data to third parties, MegaTrain runs entirely on your infrastructure using standard PyTorch backends. The system achieves this through a combination of mixed-precision computation scheduling, intelligent layer freezing, and memory-mapped parameter storage that keeps most weights on NVMe drives while actively training only small subsets in GPU memory. For homelab operators and privacy-focused teams, this means you can fine-tune models like Llama 3 70B or Mixtral 8x22B using your existing hardware setup without compromising on training quality or sending proprietary data off-premises. The framework supports distributed training across multiple consumer GPUs using standard networking, so you can scale from a single RTX 4090 to a cluster of gaming cards as your needs grow. MegaTrain outputs standard safetensors and GGUF formats compatible with llama.cpp and Open WebUI, ensuring your trained models integrate directly into your existing local AI deployment pipeline without conversion headaches. ...

April 9, 2026 · 9 min · Local AI Ops

LLM Fine-Tuning with Ollama and llama.cpp in 2026

TL;DR Fine-tuning local LLMs in 2026 means adapting pre-trained models to your specific use case without cloud dependencies. Both Ollama and llama.cpp support running fine-tuned models, but the actual training happens with separate tools like Unsloth, Axolotl, or llama.cpp’s built-in training capabilities. The typical workflow: train or fine-tune using a framework that outputs GGUF format, then serve the resulting model through Ollama or llama-server. Ollama pulls base models from its library, but you can import custom GGUF files using ollama create with a Modelfile. For llama.cpp, point llama-server directly at your fine-tuned GGUF file. ...

April 7, 2026 · 8 min · Local AI Ops

GGUF Quantization Explained: Choosing the Right Format for Local AI

GGUF Quantization Explained: Choosing the Right Format for Local AI TL;DR # Check quantization of an Ollama model ollama show llama3.2:3b --modelfile | grep -i quant # Inspect a GGUF file directly python3 -c "from gguf import GGUFReader; r = GGUFReader('model.gguf'); print([kv for kv in r.fields])" # Or use llama.cpp's built-in info ./llama-quantize --help # Convert and quantize with llama.cpp ./llama-quantize input.gguf output-Q4_K_M.gguf Q4_K_M GGUF is the standard file format for running quantized LLMs locally. Quantization reduces model size and VRAM usage by representing weights with fewer bits. The tradeoff is a small reduction in output quality. Choosing the right quantization level depends on your available VRAM, the model size, and your quality requirements. ...

April 6, 2026 · 8 min · Local AI Ops

Ollama Model Management: Pull, Create, Copy, and Remove

Ollama Model Management: Pull, Create, Copy, and Remove TL;DR # Pull a model ollama pull llama3.2:3b # List all local models ollama list # Show model details (parameters, template, license) ollama show llama3.2:3b # Copy/rename a model ollama cp llama3.2:3b my-llama # Remove a model ollama rm llama3.2:3b # Check disk usage of model storage du -sh /usr/share/ollama/.ollama/models/ Ollama stores models as layered blobs, similar to Docker images. Understanding how models are stored, tagged, and shared lets you manage disk space effectively and avoid downloading duplicate data. ...

April 6, 2026 · 7 min · Local AI Ops

Ollama Modelfile Guide: Custom System Prompts and Parameters

Ollama Modelfile Guide: Custom System Prompts and Parameters TL;DR # Create a custom model from a Modelfile ollama create my-coder -f ./Modelfile # Run it ollama run my-coder # List custom models ollama list | grep my- # Remove a custom model ollama rm my-coder A Modelfile is a plain text file that defines a custom Ollama model. It specifies the base model, system prompt, generation parameters, and template format. Think of it as a Dockerfile for LLMs: declarative, reproducible, and version-controllable. ...

April 6, 2026 · 8 min · Local AI Ops

TurboQuant Quantization in llama.cpp: Self-Hosted Setup

TL;DR TurboQuant is an experimental quantization method in llama.cpp that prioritizes inference speed over traditional GGUF quantization schemes. Unlike standard Q4_K_M or Q5_K_M formats that balance compression and quality, TurboQuant applies aggressive optimization to matrix operations, reducing memory bandwidth requirements while maintaining acceptable output quality for many use cases. The key difference: TurboQuant reorganizes weight tensors for cache-friendly access patterns and uses specialized SIMD instructions that standard GGUF quantization doesn’t exploit. This means faster token generation on modern CPUs with AVX2 or AVX-512 support, though quality degradation becomes noticeable on complex reasoning tasks. ...

March 27, 2026 · 7 min · Local AI Ops

Running 397B Flash-MoE Model Locally with Ollama in 2026

TL;DR Flash-MoE represents a breakthrough in local LLM deployment – a 397 billion parameter mixture-of-experts model that activates only a fraction of its parameters per request. Unlike dense models where every parameter processes every token, Flash-MoE routes inputs through specialized expert networks, making it feasible to run on consumer hardware despite its massive size. ...

March 23, 2026 · 8 min · Local AI Ops
Buy Me A Coffee