SShortSingh.
Back to feed

How to Calculate Actual RAM Needs for Running LLMs Locally on a Mac

0
·77 views

Running large language models locally on a Mac requires accounting for two distinct memory components: fixed weight memory and a growing KV cache. Weight memory is determined by parameter count multiplied by bytes-per-parameter, meaning a 7B model at 4-bit quantization uses roughly 3.5GB for weights alone. The KV cache, however, scales with conversation length and can rival or exceed weight memory during long, multi-turn sessions — which explains why a model may run smoothly at first but slow down or crash later. Mac users must also reserve 20–25% of unified memory for the operating system and display compositor before budgeting for model usage. A reliable sizing approach combines weight memory, a realistic KV cache estimate based on expected session length, and that system overhead buffer to avoid unexpected performance degradation.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Anthropic Announces Claude Fable 5.2 and Mythos 5.2 Models

Anthropic has published an announcement covering two models, Claude Fable 5.2 and Mythos 5.2. The news was shared on Hacker News, where it gathered 229 points and 64 comments. The source article provides only a link and engagement metrics, so the models' capabilities, pricing, and release details cannot be confirmed from the information available. Readers interested in specifics are directed to Anthropic's original announcement.

0
ProgrammingHacker News ·

New Mac App Photographs Unrecognized Users and Alerts Owner Remotely

Someone Was Here is a menu bar app for macOS that takes a photo of anyone using the Mac while the owner is away, whether the machine was left unlocked or the person knows the password. If the face does not match the owner's, the photo is sent to the owner's iPhone. The app uses Apple Vision and on-device Core ML face recognition, and all processing happens locally with no tracking or ads. Real-time alerts are available through a one-time $4.99 lifetime purchase, delivered via a free companion iPhone or iPad app, Pushover, ntfy, Telegram, or a webhook. The project was shared by its developer on Hacker News, where it gained a few points.

0
ProgrammingHacker News ·

E-means claims 10x faster k-means clustering at equal loss

A project called E-means has been shared on Hacker News, asserting that its k-means clustering method runs about ten times faster than standard approaches while reaching the same loss. The post links to a dedicated project page describing the approach. The only details available are the headline, the project URL, and a small amount of community engagement, with three points and no comments at the time of posting. The article text provides no methodology, benchmarks, or dataset specifics to independently verify the speed claim. Readers would need to consult the project page for technical details on how the performance gain is achieved.

0
ProgrammingHacker News ·

MeowDisplay: Open-Source App Turns an iPhone or iPad Into a Mac Display

A developer has released MeowDisplay, a free and open-source app that lets users control a Mac from an iPhone, iPad, or Mac, with Android support in closed testing. The project began as a fork of OpenDisplay, which supplied the foundational screen capture, virtual display, and encoding, and the developer has since shifted it toward a phone-first design. Its features include a split-screen window view, traditional mirror and extend modes, several touch input options, and Apple Pencil support. The developer reports using it to perform small tasks remotely over a 5G connection while traveling. A floating windows feature is planned for the 2.1 release.