Urgent.News

What's breaking now, across thousands of outlets.

AI

Two questions before you run a local LLM: does it fit, and how fast is it really?

I keep seeing the same two failures when people try to run a model locally. The first is buying or allocating hardware that cannot hold the model plus its context. The second is trusting a single tokens/s number that was measured under completely different conditions. This is not a product pitch. It is the checklist I use now, plus a small tool I built because I kept redoing the arithmetic. 1.…

When attempting to run a large language model locally, two key issues often arise: ensuring the hardware can accommodate the model and its context, and accurately measuring the model's speed. These are distinct concerns requiring separate evaluation methods. To assess memory fit, one must calculate the storage requirements for the quantized model weights, the key-value cache for the desired context, and additional resources for the runtime, driver, and operating system.

For instance, a 70-billion parameter model in quantized format may consume around 40 GB of storage, leaving minimal headroom for other processes. Conversely, speed is a measured quantity, contingent upon specific factors such as hardware configuration, checkpoint version, quantization technique, runtime environment, context length, prompt parameters, concurrency settings, and the methodology used to generate the measurement.

A single stream's decode time does not represent the throughput of multiple concurrent requests. Consequently, vendor-provided numbers should be regarded as unverified unless all pertinent conditions are disclosed. Moreover, the choice of runtime significantly influences the model's feasibility and performance. CUDA, ROCm, Metal, Vulkan, CPU, and NPUs constitute distinct computational domains, each with unique capabilities and limitations.

For example, on Apple silicon devices, Metal eXtensions (MLX) serve as the primary framework, while NVIDIA servers may utilize vLLM or SGLang for optimal throughput. In heterogeneous systems combining CPU and GPU components, specialized offloading runtimes for mixture-of-experts architectures become necessary. When deploying models on Apple silicon, it is essential to consider the OpenAI-compatible endpoint provided by mlx-lm.

This server facilitates integration with existing OpenAI clients via HTTP requests but lacks robust security measures, making it unsuitable for production environments. Therefore, it should only be accessible locally, with appropriate authentication and network controls implemented to secure remote access. To facilitate informed decision-making, maintaining a comprehensive record of measurement conditions is crucial.

Documenting memory fit, practical context, actual speed, vendor specifications, and any unknown variables, along with clear citations to the original sources, enables accurate comparisons and avoids misleading interpretations. LocalForge serves as a reference framework for organizing this information, providing decision-makers with a structured approach to evaluating local model deployments without producing original benchmarks.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Survey of Anthropic staffers and US adults: 39% of US adults vs. 91% of staffers expect AI will be able to make a Nobel-level discovery by 2030, and more (Anthropic)

Key findings — US adults expect AI capabilities to advance rapidly in the coming years; Anthropic staff expect even faster progress …

  • 91% of Anthropic staff expect AI to make Nobel-level discovery by 2030
  • Only 39% of US adults share same optimism about AI breakthrough
  • 65% of tasks anticipated to be automated by staff, 42% by US adults

Top Dev Tools & Tutorials of the Week: Azure AI, GitHub Copilot, and More

1. Azure AI Foundry's New AI Model Marketplace What it is: Azure AI Foundry has launched a dedicated AI Model Marketplace, enabling developers to discover and integrate third-party AI models…

  • Azure AI Foundry launches AI Model Marketplace
  • Marketplace simplifies AI adoption for developers
  • Tutorial teaches integration of third-party models

Claude Traced the NIST Curve Seeds to a 1997 Clock and lrand48. Nothing to Rotate on P-256

Book: System Design Pocket Guide: Interviews The series: Pocket Guides for Developers — 8 short books on agents, RAG, prompts, observability, events, databases and system design — the whole series My…

  • NIST curve seeds traced to 1997 clock and lrand48 random-number generator
  • Seeds originated from Unix timestamp between May 1997 and April 1998
  • No action required to address the issue, as confirmed by Anthropic's post

More from Saturday 17 October →