Skip to main content
November 27, 202610:32

Hy4 Flash vs Qwen 3.8 Flash Next

By Samuel Gregory

About this video

Local AI has reached a new level of insanity. We are testing two massive 'Flash' models from Tencent and Alibaba that use a clever SSD trick to run 180gb of weights on a single MacBook Pro. Have we finally hit the limit of what a laptop can do? Key takeaways: - New 'Flash' models bridge the gap between 30bn and 1tn parameter models. - SSD offloading via lookup tables allows 100gb+ models to run on consumer hardware. - HY4 Flash requires 107gb of VRAM while Flash Next needs 85gb. - Both models achieved 100% success rates on complex coding and design tasks. - Flash Next is significantly faster, reaching up to 43.00 tokens per second. - Licensing for these models is proprietary and not Apache 2.0.

Frontier AI models are coming for your hardware and they do not care about your budget.

For a long time, the narrative was simple: you either ran 30bn parameter models on your local machine or you paid for API access to the trillion parameter giants. That world has ended. Two new models, HY4 Flash from Tencent and Qwen 3.8 Flash Next from Alibaba, have arrived to occupy the massive space between 32gb and 512gb requirements.

The SSD breakthrough

The most fascinating part of these models is how they handle memory. Typically, if you do not have enough VRAM, you are out of luck. However, these models use lookup tables (Ngram embeddings) that can stay on your SSD. This means your Mac can read specific rows of numbers only when needed, keeping the core model on the GPU.

In my testing, HY4 loaded 105gb onto the GPU while keeping a 63gb table on the SSD. Flash Next was slightly leaner, using 82gb on the GPU and a 29gb table on the disk.

Performance results

I put these models through a gauntlet of coding tasks:

  1. Responsive Pricing Page: Both models passed 9 out of 9 checks on the first try.
  2. Coding Agent Tasks: Fixing React and Express apps. Both models passed every test across multiple runs.
  3. Site Logic: Writing rate limiters and fixing accented URLs. 10 out of 10 passes for both.

The speed king

While HY4 is the bigger model, Flash Next is the clear winner for speed. I saw speeds of up to 43.00 tokens per second on Flash Next compared to 29.00 on HY4. Even when recording my screen, which eats resources, Flash Next maintained a lead.

Is 128gb enough?

I previously claimed that anything over 42gb was a waste. I was wrong. These models prove that if you have the memory, AI developers will find a way to fill it. However, the catch is the licensing. These are not Apache 2.0, so you must read the fine print before deploying them in your business.

The era of massive local AI is here. The question is: can your hardware keep up?

Transcript▾

There is a new tier of AI models that exists between 30bn parameters aimed to run on 32 to 48gb max and the nearly 1tn parameter frontier class models that can only run on two of those 512gb max studios. They completely go against what I said in my previous video claiming that anything above 42gb is a waste including my 128gb MacBook Pro. So was I wrong? Let us find out. Also it is worth saying for these models a big part of the files can stay on the SSD while they run, but you still need a lot of RAM. The models in question here are HY4 Flash from Tencent and Qwen 3.8 Flash Next from Alibaba. You will see how fast each one is in my Mac and how they did on actual coding jobs. I ran them both on my 128gb MacBook Pro and the two downloads take about 180gb of space. Once downloaded Flash Next used about 85gb on the GPU and HY4 about 107gb. These monsters are not for the faint of heart or for 16, 32 or 48gb Macs. I cranked hog on these models. I turned off the SSD trick to force the whole thing into memory. I expected to fail, fill the swap or blow up my Mac. You will never guess what happened. Is that still what they do on YouTube? So what stays on the SSD? Both models have this thing called a lookup table. A token is a chunk of text a bit shorter than the word. You know all this. The table itself is huge and the model fills it with numbers during training. A fixed formula turns every pair or triple of tokens into a few rows of numbers and lots of different pairs share each row. Then as it writes the model, wait for it, looks up the rows to the last two or three tokens and mixes them into its normal calculations. The point is to make the model bigger without more mass for each token. Looking up rows takes far less mass than running more of the model. Qwen says the table needs less computation than adding more experts, many small blocks inside the model that each token only uses a few of and is easier to move off the GPU. Tencent calls its table Ngram and named DeepSeek use first. Qwen calls its version Ngram embedding. Each token needs only 64 rows in HY4 and 16 in Flash Next, a few kilobytes, so a whole table does not have to be in memory. Llama CPP reads those rows from the file on the SSD when they are needed and macOS keeps recent ones in spare memory. When HY4 loaded in Llama CPP, the logs said this table would be read when it is needed. The table is 63gb. The rest, about 105gb went to the GPU. Flash Next table is smaller, 29gb and about 82gb went to the GPU. HY4 is a tight fit. The first time I loaded it, swap in use went from 2.80gb to 11.50gb. Loading it again shortly afterwards added none. I closed other apps before running it. That means we are already looking into a separate machine in order to run this particular model. If you want to see whether my Mac blows up, like and subscribe. The first test: build a responsive pricing page with a monthly and yearly toggle. I ran it 3 times on each model. 9 automatic checks like whether the toggle changes the prices and whether the page fits on a phone. Both passed all 9 every time. Jobs are good in. I am not a front end guy, so it would be remiss of me to not take a look at the actual design of these things and to be honest, they look almost identical. I mean, we have another run here showing more of a light mode thing, but you can definitely tell they have a very similar look and feel to the design. Loving that old school purple that was famous about this time last year. But realistically, you know, if I take a look at Inkling mini, which we took a look in my last video, a bit more refined in the design. Still going for that purple, but then we take a look at classic Qwen 3.8 27b, which granted did not produce the header or the footer. It literally just did the section that we mentioned in the prompt, but it still kind of works. I do not know. What do you think? Flash Next wrote about 1.50 times as many tokens a second. Also wrote more of them every time. The middle times were 6 minutes 42 for HY4 and 6 minutes 35 for Flash Next, so I cannot call it a winner. HY4's runs went from 3.50 minutes to over 7.50 and Flash Next from 5.50 to over 9. I left both on their default thinking setting. For HY4, that is thinking on. Flash Next has three levels and starts on the highest. Their thinking settings work differently, so I cannot unfortunately match them. Tencent says it gets 44 to 48 tokens a second from the same 4-bit version, Q4 KM on an M5 Max using a speed up called MTP, where the model guesses several tokens ahead. Those are for prompts of 4,000 to 32,000 tokens. Mine was a short prompt. Their numbers also used their own speed patches. I did not use those patches. Their setup also raises the max GPU memory limit and I left mine as default. I got 29. When I ran it again while recording my screen, it went at about 26 tokens a second on HY4 and 37 tokens on Flash Next. That is the run you are seeing in the terminal, so the numbers on screen are a bit lower than the ones I am quoting. Next, a coding agent using Open Code. The job: fix the failing tests in a small Express and React app, add a dark mode, and then run the build. I ran it 3 times on each model taking turns. The graders check the project's own tests, 10 extra tests the model could not see, the type checker, the build and the dark mode. All 6 runs passed everything. By middle time, HY4 was quicker. By average time, Flash Next was. One of HY4's runs took about twice as long as the other two, which knocked the average. Flash Next writes faster, but in these runs it also wrote about half as much again. 3 runs cannot settle that. Just for a bit of fun, I ran this job on Qwen 3.8 27b too, the 8-bit version, so at least it had a chance of competing in llama CPP with MTP on. It passed 3 out of 3 with a middle time of 9 minutes and 45. All 3 runs passed every run, so this job cannot show which is better. Now some jobs from my own website's code. There are 10 from fixing accented letters in web addresses to writing a rate limiter which limits how many requests a visitor can make. I ran each one once on HY4 and Flash Next and twice on Qwen 3.8 27b, once without MTP, the speed up where the model guesses several tokens ahead and once with it. A Didi video at D Spine, another Tencent project improves this idea. You can watch that up there. The models could see each job's test and run it. A job only counts as a pass if the tests pass and the model did not change it. All 3 passed all 10. So on these jobs again, I cannot tell you that the bigger models are better. HY4 took 37 minutes in total. Flash Next took 34 and the 27b at least 113 because I stopped one job at 45 minutes. The 27b is a less compressed 8-bit version of a smaller model. It ran about 17 tokens a second where the other two ran about 29 and 43 and I used a different version on llama CPP for it. I ran all 10 on one model before starting the next. Those runs did not use MTP, so I ran the 27b's 10 jobs again with MTP on. It passed all 10 in 59 minutes with none over my limit. 19 of those 59 minutes were one job. It is quicker than the 27b without MTP and still slower than HY4's 37 and Next's 34. One job which reads video lengths written in code like P1DT2H, meaning 1 day and 2 hours, ran past my 45 minute limit on the 27b without MTP. Its tests had passed when I stopped it, so I counted that as a pass. With MTP, it took 19 minutes. The same job took Flash Next 11 and HY4 3. Flash Next was faster than HY4 on 7 of the 10. Each setup ran each job once, so treat that as a rough picture. The catch. Earlier, I described reading the table from the SSD. I turned that off and told llama.cpp to load the whole 168gb of HY4 into memory. It loaded in 72 seconds, but the swap space in use went up about 58gb. I stopped there and did not ask it to write anything, so I cannot tell you how slow it would be. That test turned off two things at once. One is reading the table on demand, the other is memory mapping, which lets macOS use the file itself as the model's memory instead of making a copy. So I cannot say how much of the 58gb was a table. On the first normal load, swap rose by about 9 and by none when I reloaded it shortly afterwards. In the evening, swap rose by about 6 while I loaded and ran the two models twice each. The 58 was one run and it started with 12 already in use. 3 more limits. HY4's Flash was not in a llama's official library when I checked. The two licenses are not Apache 2.0, so read them before you use either model at work. Tencent recommends HY4 Flash for everyday work, including simple front end demos, and it is bigger than HY4 for long software projects. Both of these models ran on 120gb MacBook with a large part of the file on the SSD. Both passed every check on the pricing page and the broken app and all 10 jobs on my site. The 27b also passed the broken app and all 10 jobs, though I stopped one at my time limit in the run without MTP. Flash Next writes faster. HY4 is the bigger one. My big question is, what are we really getting for all of that extra oomph from these two massive models? I guess I will leave that for you to decide. If you have less memory, I tested 3.8 27b against Inkling 2 Mini, and that video is here. Like, subscribe if you have not already. Until next time, keep on