Running Underdog locally: choosing the assistant, model weights or engine
Find the right entry point for Underdog on your computer, from a personal assistant to Conway Research’s downloadable models and Apple silicon runtimes.
Practical notes on comparing, routing and paying for AI models.
Find the right entry point for Underdog on your computer, from a personal assistant to Conway Research’s downloadable models and Apple silicon runtimes.
Understand expert streaming, interpret Magnitude’s published Qwen benchmark, and decide when an SSD-backed model makes sense on your Mac or PC.
Choose among Magnitude, Underdog, LM Studio, Ollama, llama.cpp, MLX LM, WebLLM and self-hosted servers by following one request from your app to the model.
Compare WebLLM in the browser, a localhost model service and a shared GPU server using the same document-summary feature.
Tool calling has two parts: the model proposes an action and your application decides whether to execute it. Test the proposal before connecting real tools.
Single-user tokens per second cannot predict queue delays when colleagues arrive together. Define acceptable wait time per user before sizing the server.
Score the facts a reader will act on: who owns a task, what was decided and whether a deadline was actually agreed. Fluency can hide missing or invented decisions.
Treat machine readability and factual correctness as separate checks. A syntactically valid object may still contain a fabricated field or an amount in the wrong unit.
Retrieval-augmented generation selects passages before the model answers. It is useful when the collection changes often or only a small fraction is relevant to each question.
Quantizing weights reduces their footprint. The decision turns on how much task accuracy you give up for the memory and speed you gain.
Measure whole-system power over the actual job. A GPU's advertised power limit is a poor estimate of energy consumed per completed answer.
Choose based on who will operate the service. Ollama provides model management and a local API. llama.cpp is useful when you want direct control over a compatible model file and runtime settings.
Offline operation depends on the whole application. A locally stored checkpoint can still be paired with a remote embedding service, tool, login requirement or telemetry integration.
Evaluate documents written naturally in each target language. Translated English benchmarks can miss regional terms, names and differences in formality.
A new checkpoint can change tokenization, formatting and tool behavior even when its public name looks familiar. Keep the previous artifact available during evaluation.
Start with the exact artifact you plan to deploy. A base model, fine-tune and repackaged quantization can carry separate notices and usage conditions.
Estimate weight memory first. Multiply the parameter count by bits per weight and divide by eight. That gives a lower bound in bytes before caches, runtime buffers and quantization metadata.
Apple silicon shares memory between the CPU, GPU and applications. Size a machine for the combined workload you intend to keep open.
Separate time to first token from the speed of the remaining answer. Long prompts can make an otherwise fast generator feel unresponsive.
During autoregressive generation, the runtime can retain attention keys and values for prior tokens. This cache helps avoid recomputation and consumes memory alongside model weights.
Define which requests can leave the machine before enabling overflow. Confidential inference can help with approved data, while a local-only category must stay local even during an outage.
A CPU can be enough for an overnight batch even when it feels slow in a chat window. Measure the time limit your work actually imposes.
Some runtimes can place part of a model on the GPU and keep the rest in system memory. A hybrid load can make a larger model usable, with a throughput cost that depends on the machine.
GGUF packages model tensors and metadata for compatible runtimes such as llama.cpp. A filename can combine a model revision, parameter size and quantization. Check each independently.
Start with a task you can recognize as correct. A useful first experiment is to turn a fictional meeting transcript into decisions, owners and deadlines.
Use retrieval when the answer depends on changing documents. Consider a fine-tune when the inputs contain enough information but the model repeatedly misses a stable format or behavior.
Choose embeddings by how often the right passage appears near the top for your users' language and terminology. Vector dimensions alone do not answer that question.
Trace a document through ingestion, embeddings, retrieval, generation and logging. Each stage can have a different storage location or service owner.
Budget for system instructions, conversation history, retrieved text and the answer. A model's advertised maximum is only one limit. Memory and prompt-processing time can impose a smaller practical budget.
Use a real maintenance task with a testable outcome. A plausible-looking patch is a weak measure if it calls an API your project never used.
A useful chunk carries enough context to interpret a fact. Tiny chunks can separate a rule from its exception, while large chunks use prompt space on unrelated material.
Compare monthly fixed costs with the hosted bill for the same useful work. Count input and output tokens separately because their prices can differ.
A batch has a deadline, an input count and a quality threshold. Those numbers are more useful than a peak generation benchmark.
Estimate cost using the eligible route's actual input and output prices. A cheap catalog route with a different privacy tier is a different purchase.
Prioritize credentials that could have appeared in model inputs, tool results or generated outputs.
Evaluate retention at the endpoint level when the same model is available from several providers.
Build an exposure inventory from timestamps, deployment records and application ownership without copying prompt bodies.
Design a staged migration that limits duplicate processing and gives operators a clear rollback rule.
Include retries, long context and human corrections in a fair comparison of restricted routes.
Inventory account preferences and request-level routing rules so a replacement preserves the constraints you need.
Use five concrete vendor questions to compare hosted inference providers for sensitive workloads.
Trace the full conversation around a model call, including retrieved documents, generated text and tool responses.
Find the affected requests, rotate exposed credentials, and test a confidential route before moving sensitive traffic.
Validate tool selection, argument handling and duplicate-call prevention before moving an agent.
Check first-token timing, interrupted responses and cancellation in your actual client.
Map the embedding, retrieval and generation paths before moving a document assistant.
Move the base URL and credential together, then verify that an old deployment can be retired safely.
Test gateway failover and application retries together before enabling a new model provider.
Pin a candidate endpoint and verify how your application behaves if that provider disappears.
Audit the files, command output and history your coding client sends to a replacement API.
Build a compact audit record around route identity, timing, policy version and verification results.
Compare an offline model and a hosted endpoint on the same confidential workflow.
Compare evidence for data handling during computation with promises about storage after a request.
Ask separate questions about model training, temporary storage, diagnostic logs and deletion deadlines.
Turn one resolved issue into a repeatable coding-agent trial using a failing test, a reviewable patch and the total cost of the session.
Use billed tokens, retries and accepted results to compare two AI models on one real workload.
Pin a provider, record the route and read the evidence behind a model label before comparing two API responses.