Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Docker 8 min read Opinion easyNovice

Remocal and Minimum Viable Models: Why Right-Sized Models Beat API Overkill

Remocal (local development with on-demand bursting to cloud GPUs) paired with Minimum Viable Models, meaning the smallest model that solves the task, is pitched as a cheaper, faster and more private alternative to defaulting to large API models. Small-model techniques are surveyed: curated-data SLMs like Phi-4, NF4 4-bit quantization with low-rank adapters (~75% less GPU RAM), sparse MoE such as Mixtral, FlashAttention-2, and on-device Gemini Nano. A table lists local-capable models (Qwen 3, Gemma 3, Mistral Small 3.2, Llama 3.1 70B, SmolLM3, Phi-4) with VRAM footprints. A rubric keeps API models for broad world knowledge, complex cross-domain reasoning or low volume, and favors right-sized models for well-defined, latency-, cost- or privacy-sensitive tasks.

Related posts

  • Why and How to Run Local Models in Zed

    Zed mediumAdept

    Local open-weight models run through LM Studio, Ollama or llama.cpp offer privacy, predictable cost, control and guaranteed availability, at the price of lower capability, fewer tokens per second and smaller context windows than frontier models. A Mixture-of-Experts model such as Qwen 3.6 35B A3B activates only about 3B parameters per token, so it runs roughly 10x faster than a dense 35B model and suits unified-memory chips like Apple M series. At Q4 quantization it needs about 17.5GB of VRAM. Zed connects to LM Studio at localhost:1234 or to any OpenAI-compatible server via its Ollama provider. To keep context clean with weaker models, edit earlier messages instead of sending corrections, and lean on subagents.

  • Large Language Models: A New Moore's Law?

    Hugging Face easyNovice

    Megatron-Turing NLG 530B and the 10x-per-year growth in language model size look like a new Moore's Law heading for diminishing returns, with roughly $100M of DGX A100 hardware, 6.5 kW per server and a large carbon footprint buying only small benchmark gains. Most teams are better served by starting from pretrained models and choosing the smallest one that meets their accuracy target. Distilled or compact models such as DistilBERT (97% of BERT's language understanding, 40% smaller, 60% faster) and T0 (beats GPT-3 on many tasks at 16x smaller) show this is practical. Fine-tuning instead of training from scratch, running on cloud infrastructure, and applying pruning, layer fusion and quantization further cut cost and energy.

  • Productizing Large Language Models

    Replit mediumAdept

    Replit runs transformer models from ~100M parameters (search, spam) through 1-10B (GhostWriter code autocomplete) to 100B+ in production, and shares lessons on making them usable. Nonsense and repetition loops are handled with temperature and frequency penalty tuning, cycle detection, multi-temperature sampling, reranking with a second model, and fine-tuning on user feedback. Quality is tracked with HumanEval, loop and nonsense rates, and A/B tests. Inference cost is cut with FasterTransformer, distillation and quantization, and GPUs are run at 70-80% utilization on Kubernetes so request queues stay bounded while autoscaling has headroom.

  • TGI Multi-LoRA: Deploy Once, Serve 30 Models

    Hugging Face mediumAdept

    Text Generation Inference (TGI) v2.1.1 adds multi-LoRA serving: one base model such as Mistral-7B is deployed once, and many small LoRA adapters are loaded alongside it, with each request picking its adapter via an adapter_id. Adapters are tiny (13.6MB versus 14.48GB for the base), so loading 30 of them adds only about 3% VRAM. The post shows deployment via Docker with the LORA_ADAPTERS setting, Inference Endpoints through the GUI and in Python, and how to query a specific adapter. It argues that per-token cost stays flat as models are added and that consolidating bursty per-model traffic onto one deployment smooths GPU utilization.

  • Fine-Tuning Local Models with Docker Offload and Unsloth

    Docker mediumAdept

    Gemma 3 270M, a sub-1GB local model, can be fine-tuned with LoRA via Unsloth to mask personally identifiable information. Before fine-tuning it returned only "[PERSON]"; afterward it correctly redacted names, ID numbers and dates. The walkthrough runs the official Unsloth Docker image on a cloud NVIDIA L4 GPU through Docker Offload from a MacBook, with Mutagen syncing files back to the laptop. It then trains on the ai4privacy pii-masking-400k dataset in under 20 minutes, converts the result to GGUF with llama.cpp, and packages and pushes the roughly 518MB model to Docker Hub for use with Docker Model Runner.

The quest for software engineering knowledge.

Look:
Layout: