Show HN: Run an 80B Qwen in 4.3 GB of RAM on a Mac, and a 35B on an iPhone
Posted by leonickson 3 days ago
Comments
Comment by dghlsakjg 3 days ago
People will keep plugging away at this and figure out how to avoid wearing the hard drive, how to make it run faster, custom hardware buses etc.
Keep going! I personally can't wait for the day when a 1t param model runs off a $200 SSD instead of a $50k rack of Nvidia chips.
Comment by myrmidon 2 days ago
Has also been the case for things like chess computing; a lot of the progress we made over the last decades there (even before involving neural networks!) happened thanks to software improvements because the problem got so accessible, not just faster hardware.
I expect similar trends with AI; I'd expect to get decent, human comparable capability with <200GB/s of memory bandwidth and under 60GB of RAM long term (SSDs with very high read bandwidth looks also promising, but we'll see).
I hope that in a decade or two, training will also be somewhat feasible for "pro-sumers".
Comment by Bayart 2 days ago
That's how the AI boom came around to start with, before CUDA it was an academic topic.
Comment by RachelF 2 days ago
So true. The reverse is also true - when greedy companies overprice their initial release so that it is out of range of the enthusiastic hobbyist they stall progress and adoption.
This is true for hardware (eg failed Intel Optane, Knights Bridge) and software that does not have a cheap or free basic plan.
Comment by mannanj 2 days ago
Comment by gpt5 2 days ago
In addition, LLMs, small or large, are highly parallelizable. This means that running on the same machine/GPUs many requests in parallel is significantly more efficient, and the sum of tok/s will far outweight any single user use case.
Those two combined means that unless LLMs reach the state of 'good enough' (TBD), I fully expect the economics and people's interest to align with 99%+ of LLM usage would be in centralized servers. (not dismissing the fact that there are use cases for local LLMs, and that the progress matters).
Comment by hobofan 2 days ago
Once you are able to not just go on-premise, but on-device, there a boatload of other advantages than efficiency (network independence, privacy, etc.) that make it attractive.
Tiny language models are already plenty "good enough" for a lot of on-device use-cases. E.g. there are a lot of things, that can be reformulated as ranking problems, where you can apply pairwise ranking, which even small language models are good at.
Comment by dudefeliciano 2 days ago
FAANG has trained them well. "Normal" people also use chatGPT & co. to ask mundane questions that qwen27b could easily answer (random trivia, writing emails, correcting translations etc), why do these simple requests need to be processed on a B300 on server on the other side of the planet? There is no reason.
And this being hackernews, I would expect people here to go against the grain in this regard...maybe even promote local llms to "normies".
Comment by mihaaly 2 days ago
Comment by anon373839 2 days ago
Comment by zozbot234 2 days ago
The economics of real-time, low-latency inference of very large near-SOTA models will heavily favor a centralized setup. But if you can afford to wait for your answer - be it a day, a week, or even more at the extreme low end (or if you just stick to leaner models for your relatively quick replies) the economics start to shift in a very clear way. A slow-going local inference setup relying on cheap SSD offload does not need the high power input of a datacenter rack, and the cooling load is outright trivial - even when working on many requests in parallel, which (in a SSD offload context) is what maximizes throughput even for local inference. These are serious problems for centralized inference that will probably limit the scale at which it can be applied.
Comment by gpt5 2 days ago
However, the compute situation just skew it even further when it comes to LLMs.
Comment by anon373839 2 days ago
Comment by xyzsparetimexyz 2 days ago
Comment by dghlsakjg 1 day ago
Comment by submeta 2 days ago
Comment by pizza234 2 days ago
This is progress in the same way that a man climbing a tree is making progress toward reaching the moon.
This project is essentially the MoE-of-the day, with some platform-related optimizations.
> Keep going! I personally can't wait for the day when a 1t param model runs off a $200 SSD instead of a $50k rack of Nvidia chips.
That won't happen. Projects like this just give the illusion that that will be possible.
Comment by rhdunn 2 days ago
1. Better hardware optimized for matrix operations and other ML/NN specific workflows (NVIDIA hardware, Apple M4/M5 chips, Intel AI Boost, other NPU/TPU chips, etc.).
2. Bigger RAM/VRAM/unified for loading models in memory -- with 3090/4090 you can run 22-24B models in VRAM; with 5090 you can run 30-32B models; with Apple hardware with 128GB unified RAM you can run 70-128B models.
3. Better quantization (smaller, better value representations/lower errors/loss, optimized CUDA/etc. kernels) will lead to larger models being able to be run on the lower VRAM hardware at (with optimized kernels) decent tokens/s.
4. Better optimizations in general taking advantage of the hardware (coupled with the hardware and driver advances) and the NN architectures (NOTE: I saw a huge performance boost a while back after upgrading my llama.cpp version).
5. Better model architectures optimized/designed for running on lower-spec hardware, like Mixture-of-Experts which make it easier to run on a single GPU or distribute the weights more efficiently across multiple GPUs (i.e. you know that specific weights will be used together so you can keep them resident on a specific GPU and not have to swap the weights in/out of the various GPUs or transfer intermediate results of a single layer, only the result from that block/expert).
5. Improved NVME or similar SSD technology which a) has a large amount of storage, and b) has access efficiency on par with RAM/VRAM, especially if/when coupled with efficient DMA access to the GPU/NPU.
Comment by sipjca 2 days ago
While not exactly an “SSD”, High Bandwidth Flash will make it to market and make big sparse MOE models even more accessible. Everyone knows bandwidth is the game right now and you think hardware vendors are going to sit on their heels and not take part of the market? Absolutely silly to discount progress both on the software and hardware sides.
Comment by bluerooibos 2 days ago
I don't understand how anyone with any degree of technological or scientific literacy or knowledge of advances in the past 100-200 years can say something won't happen in the future.
I am absolutely certain it will - the only uncertainty is how long, but given the rate of progress, I'm guessing it won't be far away.
Comment by AlecSchueler 2 days ago
That is, an essential step?
Comment by mv4 2 days ago
Comment by trymas 2 days ago
IMHO it’s a matter of time until we (consumers) will get the hardware (maybe coupled maybe even more novel techniques). Though I expect it will take another 10 years or more.
Comment by mv4 2 days ago
This is why banning Chinese open-weight AI models is a major policy debate in Washington. The labs can't survive log-term without subsidies, and a ban can act as a subsidy.
Comment by trymas 1 day ago
Though my bet would be, if USA will go ultra protectionist in this regard - in 10-20 years most world will run Chinese LLMs and hardware for this purpose.
Comment by Hugsbox 2 days ago
Comment by marci 2 days ago
Comment by josu 2 days ago
Comment by marci 2 days ago
https://machinelearning.apple.com/research/introducing-third...
Comment by josu 1 day ago
Comment by l33tman 2 days ago
Comment by Perz1val 2 days ago
Do reads wear out nvme? Iirc only writes do
Comment by efficax 2 days ago
Comment by ksec 2 days ago
I am 100% sure this won't happen in 10 years time. At least not on a $200 SSD. But I wouldn't be surprised if it ran on $1K to $2K HBF SSD. It will still be better than a $50K Rack.
Comment by spacebacon 2 days ago
Comment by hagen8 2 days ago
Comment by jarek83 2 days ago
Comment by croes 2 days ago
That time won’t be as much fun as you think
Comment by cromka 2 days ago
We'll be fine.
Comment by bestham 2 days ago
Comment by cromka 2 days ago
Comment by JKCalhoun 2 days ago
Comment by ac29 2 days ago
Comment by arjie 3 days ago
Comment by apimade 3 days ago
1080 GTX in 2016. Cutting-edge, an insanely powerful consumer card for the time. Theoretically around 8.87 to 8.9 TFLOPS.
5090 RTX in 2026. Cutting-edge, an insanely powerful consumer card for today. Theoretically around 104.8 TFLOPS.
In the same timeframe mobile processor CPU's went from 0.001 TFLOPS, to today's Apple's A19 Pro chip which delivers 2.074 TFLOPS.
That's _without_ getting into ASIC's, or purpose-built hardware like Taalas's model on silicon HC1, or generic AI dies like what they're planning with HC2 or Cerebras, which will massively compress the timeline.
Comment by flaburgan 2 days ago
Comment by dtj1123 2 days ago
The suggestion is that a 1T model could be made to run on cheap consumer hardware of the future.
Comment by jack_pp 2 days ago
Aren't we already approaching theoretical physical limits? We're at 2nm
Comment by kaashif 2 days ago
(2) Are you saying that you think we're at the limits of computing in general, or that specific technology?
We know, for example, that a human brain level intelligence is possible to run on a human brain. We are nowhere near that. And actually that's not even a physical limit necessarily.
But that is...not a low hanging fruit.
Comment by cvak 2 days ago
Comment by Azantys 2 days ago
Comment by dghlsakjg 2 days ago
We went from adding 8 teraflops in a decade, to adding almost 100 the next decade. If we add "only" 400 more teraflops in the next decade the graph will make that initial growth look flat in comparison, even though your math would show that we are basically stalled out.
It’s like claiming that a company that goes from making $1 to $1k to $100k to $1mm in a 4 year period has decelerating growth.
Comment by ksec 2 days ago
Because it is decelerating growth. There is a reason why we use YoY percentage in annual and financial reporting.
Comment by xbmcuser 2 days ago
Comment by zmmmmm 2 days ago
Comment by root_axis 2 days ago
Comment by apimade 2 days ago
GTX 1080 in 2016: 8 GB of GDDR5X, with 320 GB/s.
RTX 5090 in 2026: 32 GB of GDDR7, with 1.792 TB/s.
This is fun, what's next?!
PCI 8.0 is breaking 1TB/s, GDDR7 is 1TB/s.
With just the _current_ timeline, things are looking like they'll compress once we get over this initial lump.
Comment by foxrider 2 days ago
Comment by kaelwd 2 days ago
Comment by apimade 2 days ago
This is definitely being done with private models by HFT/quant firms, data processing agencies/orgs (large intelligence agencies, _every_ data analytics org, etc).
Comment by SJC_Hacker 2 days ago
At the rate models are improving, it would be obsolete in six months.
Comment by foxrider 2 days ago
Comment by HPsquared 2 days ago
Comment by naasking 2 days ago
Comment by cududa 2 days ago
Comment by formerly_proven 2 days ago
Comment by hedora 3 days ago
Comment by arjie 2 days ago
Comment by AHASIC 3 days ago
Comment by greggsy 3 days ago
Comment by dd8601fn 2 days ago
Then you go to the AI labs and say, “We see you’ve spent a trillion dollars on that model… we’ll write you a check today to let us run it how we want.”
Skips the ugly horse race and massive risk while focusing on what they do better than anyone.
And they’re the only ones who have cultivated the trust with normal people to be able to say, “We now have the only AI service that can safely reference your personal info without giving it all to strangers.”
They could possibly end up the second biggest winners in this insane hype cycle… without having had to compete on making a sota model.
Comment by dghlsakjg 2 days ago
We don’t talk about AVP.
Comment by red_green_yell 2 days ago
Comment by Mistletoe 3 days ago
Comment by CircuitSeuss 3 days ago
Apple has worked very hard to make unified memory a feasible approach, and the benefits of that are pretty clear in apple silicon- that efficiency not only results in power and therefore thermal gains, but also in a significantly faster full loop per process: or a faster time to token. This is why even their single core mobile chips in the budget line Neo out perform PC processors with several times more threads and RAM[1]. Turns out, unified memory lets you have a whole lot more control over things like RAM bussing and core use for specific workflows.
Speculatively, a unified memory approach could also allow you to more easily integrate things like ReRAM to solve the current memory swapping bottleneck.
Let’s say a friend of mine works hardware at apple and works on exactly this… on device processing is the future I’m betting on.
Comment by ac29 2 days ago
Unified memory has existed for decades in the PC space, Apple didnt invent it.
And the test you linked to has nothing to do with unified memory, its a web browser benchmark (almost entirely constrained by single threaded CPU performance that Apple better than competitors at).
Comment by jsjohnst 2 days ago
That’s a six core processor. It’s an A18 Pro in the Neo, same chip as on the Iphone 16 Pro
Comment by bobbylarrybobby 3 days ago
Comment by swiftcoder 2 days ago
Comment by ethersteeds 3 days ago
Nvidia leads in bandwidth and specialized architecture, but local inference takes off when it's usably fast at much lower cost and power consumption.
Comment by sudo_cowsay 3 days ago
Comment by harrouet 2 days ago
Who needs memory when your model is set in silicon ?
Comment by KeplerBoy 2 days ago
Comment by harrouet 2 days ago
Comment by xprnio 2 days ago
Comment by dgently7 2 days ago
on device llm gives apple the new "better camera" "better screen" race they need to keep people coming back for the latest.
for average users everything else is tapped out... screens, cameras wifi... all the core stuff is good enough now its hard to feel/see the difference model year to model year. embedded llm would let them ship something new and the on device ecosystem advantage is huge. especially as the gpt and claudes get ads and enshittified... the apple on device even if its less "capable" would be so compelling.
Comment by gitpusher42 2 days ago
Comment by leonickson 2 days ago
Comment by adrianco 3 days ago
Comment by CyLith 3 days ago
Comment by fodkodrasz 2 days ago
In LM Studio I can tune it by selecting different quantation of the model, by selecting how many layers of the neural net to be loaded to GPU (rest stays in main mem, evaluated by the CPU), and by adjusting context window.
Comment by zamadatix 3 days ago
Comment by ianmurrays 3 days ago
Comment by spockz 2 days ago
Maybe you could even do something like profiling and remember over multiple sessions (per project/workspace) what the most used agents are and load those up before hand.
Comment by leonickson 2 days ago
Comment by gizmodo59 2 days ago
Comment by pbronez 2 days ago
Microsoft and Amazon both provide web snapshot services that purport to give you a kind of agent-first internet archive. You can approximate something like that using common crawl, but it's a huge amount of data. Downloading the internet is impossible or a bad idea for almost everyone.
Comment by morgoo 2 days ago
Comment by throwawayffffas 2 days ago
Hello Claude!
Comment by sbsbdbdbfndj 2 days ago
Comment by tredre3 2 days ago
Comment by sallymander 2 days ago
I feel like I've seen a similar statement on a lot of these streaming weight projects.
400b model on an iPhone: https://x.com/anemll/status/2035901335984611412
Comment by leonickson 2 days ago
Comment by erelong 2 days ago
Or could this be ported to work on other such platforms?
edit: AI mentions a "BigMoeonEdge" project
Comment by myshapeprotocol 2 days ago
Comment by nc55g3g 2 days ago
Comment by lenerdenator 2 days ago
Comment by gitpusher42 2 days ago
Comment by lern_too_spel 2 days ago
Comment by brrrrrm 3 days ago
half an hour to process 10k tokens on an M5 seems... not great
Comment by fsuts 2 days ago
People like this person are laying the foundations.
Comment by IsTom 2 days ago
Comment by rhdunn 2 days ago
The current GPUs are optimized for processing huge numbers of triangles per second. There are three things at play here:
1. the organization of the data being sent to the GPU to optimize throughput;
2. the speed at which the GPU can read that data from its VRAM;
3. how many triangles it can process in parallel by using individual compute units.
I suspect that given parallel improvements for neural networks, we'll see similar improvements:
1. optimizing the structure of the weights in the model for efficient access by the CPU/GPU/NPU/TPU;
2. efficient access of data strides (matrix rows) in the memory, e.g. being able to read multiple 2x2 matrix values in one clock cycle, or stepwise pairs of values (a(i,j), b(j,k)) needed for matrix multiplication;
3. parallel compute for matrix and tensor multiplication and other operations needed by neural networks.
Comment by IsTom 2 days ago
Comment by kennywinker 3 days ago
Comment by selcuka 2 days ago
Comment by kennywinker 2 days ago
Comment by hdgvhicv 2 days ago
Comment by wccrawford 2 days ago
Comment by hdgvhicv 11 hours ago
Given the cost of a building is far more than the cost of generating enough power for that building it doesn’t really matter
Comment by piyh 2 days ago
Comment by leonickson 2 days ago
Comment by vancekai 2 days ago
Comment by hn974izqdv 2 days ago
Comment by jbird99 3 days ago
Comment by kennywinker 3 days ago
Comment by wat10000 3 days ago
Comment by petu 3 days ago
Practically if you're not streaming weights 24/7 from a full SSD, then it shouldn't be a problem.
Comment by zozbot234 2 days ago
Comment by petu 2 days ago
It claims that each individual page read induces read disturb across whole block. And references https://arxiv.org/pdf/2501.02517 that tested Samsung 3D TLC and found ~518K sequential page reads in a block to be ECC threshold (although it's unclear how they got 518K number -- e.g. is it single worst chip they've tried? authors brings up 160 chip sample size later on).
With 7704 pages in a block that's only ~70 sequential block reads till data is lost and to retain data controller would have to refresh block fair bit earlier.. basically it gives modern 3D TLC SSD lifespan measured in months (1TB drive 24/7 sequential reads at 5GB/s).
Comment by sudo_cowsay 3 days ago
Comment by throwawayffffas 2 days ago
I remember the time spinning rust was the only option and reliable they weren't. In 30 years of computing I have had more than ten hdds and zero ssds die.
Comment by a96 1 day ago
No normal use should wear out a drive in any sensible time in reasonable use and even in unreasonable use they seem to last almost indefinitely. There's more likely to be some other kind of component death before that.
Of course, in staged lab test, it's probably possible to burn one out. I've seen projects do that on memory cards and various *ROM chips but don't recall seeing someone kill SSDs. That would get costly. But I'm almost sure a web search would turn out someone doing that.
I also used to be sure that 90's SCSI HDDs would never really stop running. Just the machines using them became too much work and no utility to keep going. I remember only one of mine that wouldn't start after some years in the storage, but I managed to hammer it back into shape.
Comment by crossroadsguy 3 days ago
> Swiftlet was built in collaboration with Claude Code.
Did this really happen (some sort of working with Anthropic or Claude Code team) or is it some kind of requirement when you develop some software with Claude Code (I see the other author is: https://github.com/claude), or sort of reuse some of its parts?
Is it like someone saying "built in collaboration with VS Code" or ".. in collaboration with <xyz> autocomplete plugin"?
Or merely a disclaimer about vibe-coding or AI written tool?
Comment by leonickson 2 days ago
Comment by crossroadsguy 1 day ago
> Swiftlet was built with Claude Code.
This is great and correct. It's a tool. Again, thanks.
PS. I just don't why people downvoted me. I am just someone, after a longish sabbatical/gap, exploring and getting used to the agnatic world, though very slowly :)
Comment by iamflimflam1 2 days ago
Comment by vermarish 2 days ago