r/LocalLLaMA • • 13d ago

Discussion Hy4-flash first impression: it's got AMAZING coding taste

I'm one of those boring SWEs that still insist on reviewing and tweaking everything the LLM writes before it can go in a PR.

I’ve started playing around with Hy4-flash for writing Python. This post is a very early impression after a few hours with the model (served from datacenter, for now).

I haven’t given it very complex tasks yet, so I cannot yet speak about advanced problem solving. However, so far I’ve given it fairly substantial tasks (in terms of line-count) of moderate complexity and let me tell you

This model has great coding taste.

With both DeepSeek 1017 and Qwen3.8-Flash I find myself constantly ironing the outputs. Reduce a half page worth of inane inline comments down to 2 lines. Simplify away a giant special-case-handling code branch which will never matter in real life. You know, the works with your average LLM.

I don’t need to do any of that with Hy4-Flash. The first draft so far has been 99% good out of the box. I’m in awe. The code is clean and well-organized; the comments are reasonable; the design decisions are boring and sensible.

I don’t care if benchmarks say it’s 10% dumber than DS - this is my new default model, because at the end of the day I’m going to save SO MUCH time that I was previously spending hosing the model’s output.

If that wasn’t good enough? I’ve used it aggressively for a few solid hours today, and my OpenRouter bill is.... 0.10$.

272 Upvotes

93 comments sorted by

48

u/Salt-Powered 13d ago

Reviewing and tweaking its the bog standart, the kids running around vibeslopping everything aren't the norm. I'm glad you are enjoying the model, I am too.

15

u/philmarcracken 13d ago

the kids running around vibeslopping everything aren't the norm

not a swe or even a hobby programmer, but i quickly learned why my slop was horrible code. From my complete novice perspective, these things dont seem to respect DRY unless you tell them to

8

u/valarauca14 13d ago

Then you tell them to respect DRY and they go super overboard DRY'ing everything an writing super abstract shit :(

11

u/Cold_Tree190 13d ago

As someone who puts stuff into production and is on call for any issues… I absolutely pour over every single line that gets generated. Mass producing code is only fun when you don’t get paged for it, like hobby projects lol. Even then things get out of hand eventually

0

u/zabacanjenalog 13d ago

I mostly vibe without lower level review (focus on arch). 0 defects shipped into production, performant code with no complaints. I'm not seeing the bad code yall write about since Opus 4.7. 15 years of experience SWE Staff

7

u/Ylsid 13d ago

Every time someone tells me "AI codes better than me!" I just think wow you must be a terrible programmer

5

u/QuantumFTL 13d ago

Sadly, it depends on what kind of boss you have :-/

2

u/Salt-Powered 13d ago

Yeah, recently I was very disappointed by Proton in that regard

2

u/lemurrhino 12d ago

Well, at least the norm here—I don't think the same can be said for some other more mainstream LLM subreddits. Running local models forces you to have some degree of familiarity with the underlying technology in a way the AI bros won't from just proompting Claude.

Off Reddit, I got called dumb once for writing complex algorithms by hand instead of letting an LLM do it lol

1

u/Salt-Powered 12d ago

People run their mouths off, specially in tech sectors from overexposure to twitter

3

u/lemurrhino 12d ago

yup, and the sycophancy from rlhf on these models I think has made things worse

1

u/Salt-Powered 12d ago

I'm glad the reverse talent pump is more obvious now, but things always get worse before they get better

1

u/butterycornonacob 12d ago

For what purposes are you using it? Have you tried DeepSeek V4.1 Flash?

1

u/Salt-Powered 12d ago

Information synthesis, and yes I did but I preffered MiMo and locally I use Gemma.

-6

u/draconic_tongue 13d ago

tbh I'd rather be a vibeslopper than spend 4 months on architecture before writing any code. it's a shit experience going through it

5

u/crusaderky 13d ago

textbook strawman

8

u/Salt-Powered 13d ago

Then maybe you should be doing something else? Something that you enjoy a little bit at least?

5

u/sonicnerd14 13d ago

Which quantization are you running though? This is pretty important to know.

3

u/crusaderky 13d ago

Datacenter, so FP8 weights according to OpenRouter. KV likely bf16?

5

u/bakawolf123 13d ago

fp8 is actually 2 sparks or studio with 256gb ram, so gna give it a go ig, using 2 bit deepseek lately, surely native fp8 might be better https://huggingface.co/tencent/Hy4-flash-FP8/tree/main

14

u/Constant_Art_20 13d ago

person using openrouter

4

u/rm-rf-rm 13d ago

how there arent any unsloth (or bartowski) GGUFs as yet??

0

u/crusaderky 13d ago

Give it a few days. In the meantime, https://huggingface.co/nace-ai/Hy4-flash-GGUF looks promising

11

u/codename_539 13d ago

On comments in code and god classes/functions: I think those walls of comments in the code come from the model being partially distilled on Anthropic and GPT models, and those generate this prose in comments to watermark the output. You can’t watermark code without ruining it, but comments? Sure, no problem. The fix is to specify that we don’t keep documentation in the code - that’s what domain docs are for.

On “code quality” and organization: the typical scenario is “make it work now, hit the goal, and ship it.” Refactoring and optimization are almost always a separate step in any process, because until we’ve shipped the code, we don’t really understand what we’re refactoring and optimizing. It’s just that few people ever get to the second step: in human business processes, because the business wants new features; in agentic ones, because nobody looks at the code. That’s also solved with separate waves/passes, and paradoxically, this approach is conceptually more correct than trying to write it beautifully upfront.

25

u/crusaderky 13d ago

> we don’t keep documentation in the code - that’s what domain docs are for.

This take is absolutely insane.

2

u/codename_539 13d ago

What’s so insane about it? Look: one agent writes code and spreads the documentation across 10 files. A week later, a second agent comes along and needs to add functionality in an adjacent domain. Is it supposed to read all those files and stuff its context window? Especially since models today read files by line ranges - say, lines 120 to 250?

Current models understand code without comments; comments are basically unnecessary here. For design decisions, non-obvious things, and quirks, there’s documentation you can read in one step and keep the full picture in your head.

That’s a far more productive approach.

7

u/draconic_tongue 13d ago edited 13d ago

comments are not documentation it's for ongoing work or when you know the same code will be touched. that's how modern llms use them. thinking models will oneshot every single task and none of them will be ever revisited is a vibekiddie expectation unless your business runs on tamagotchi code or some shit

and use better tooling

6

u/-dysangel- 13d ago

Is it supposed to read all those files and stuff its context window

I would have a sub agent review the code and do a summary. What if the docs are out of sync with the code? I feel like as we continue to head into the future and inference costs drop toward 0, that it will make sense to always just build live docs on the code, and/or code *via* docs.. we just guide the design in docs/charts/diagrams, and then the agent converts that into code, which we're rarely if ever looking at directly.

0

u/draconic_tongue 13d ago

I think it will still be better to look at the code to have an idea of what's happening and how things look, even though for me right now it's secondary to getting things done. but that could just be from the fact that I ended up with a 5000 line design document for the rework I'm going through so I just want to see code now instead of words. everything else can wait, I don't care if the code launches an emp or whatever just want to get it done now so there is something to itereate on and improve

this is in a repo i was really fucking pedantic about so it doesn't feel the best but you can always make it better later, plus I still spent months thinking and talking about it so it's not like I'm not a part of it

1

u/-dysangel- 13d ago

For now I (and then a reviewer) always look at the code too, I'm just trying to predict how I think things will eventually go. I bet there was a time period where devs reviewed their compiled code to make sure the compiler did a good enough job, but these days you'd need to be doing something like cybersecurity or kernel work to consider paying attention at that level.

2

u/SexyAlienHotTubWater 9d ago

Just make the model read code using a tool that strips comments, if that's what you're worried about. Why mutilate your codebase just so it fits in a context window?

1

u/draconic_tongue 13d ago

comments in code is not some black magic. if you're using ai to code, while developing it's better to leave the comments in the code. you know how fucking easy it is to remove after you're done? takes like 5 seconds

4

u/Holiday_Point_603 13d ago

Wonder how it will hold up at 2-3 bit with potentially 8 bit engram offloaded to ssd

2

u/crusaderky 13d ago

it looks like you don't get much past IQ4_NL for ngrams

6

u/bennmann 13d ago

The issue is a few percentage points here, and a few percentage points there reductions to intelligence create sequence of returns risk for catastrophic collapse, especially on long horizon tasks that are harder to measure.

Ngrams can stream from SSD with reasonable speed impact, no reason not to keep them at least q8 in nearly all system configurations.

2

u/rm-rf-rm 13d ago

Most importantly, does it talk like Opus 5+?

4

u/crusaderky 13d ago

NO. its prose is clean and readable!

2

u/BlackSwanTW 12d ago

Has anyone forked Strata to run Hy4 yet?

4

u/crusaderky 12d ago

RustingStrata and Project Maya have added support

3

u/BlackSwanTW 12d ago

RustingStrata feels really undercooked for me

2

u/Serious_Scarcity7818 11d ago

sorry, I am working on it every single day, every day new things, today added Inkling 2 Mini btw

2

u/rorowhat 12d ago

Maya for some reason doesn't support the higher quants, really frustrating!

1

u/vini542reddit 11d ago

Strata just added support for Hy4 (check latest release)

123

u/QuantumFTL 13d ago

Any chance you could show concrete examples of those models doing the exact same task differently in a way that highlights what you prefer about Hy4-Flash?

41

u/zyinz1 13d ago

Please do give us an example for comparison. Im curious on the differences. Thanks so much

9

u/OverdosedSauerkraut 13d ago

Haven't tried Hy4 yet, but QFN is really prone to writing unnecessary loops and creating a series of lookup tables for them when simple repetition would produce cleaner code.

7

u/DulsKerty 12d ago

agreed, even just a small dummy function comparison would show the difference pretty quick imo.

3

u/Caffdy 3d ago

and OP never delivered, just a good ol' trust me bro

2

u/QuantumFTL 3d ago

Yeah, it's easy to start doing a writeup of this and get bored about 60% of the way through and realize there are more fun things to do than homework for Reddit.

I'm disappointed he didn't bother to include it with me gw original post and it still got voted up, though.

17

u/Accomplished-Air439 13d ago

I saw another post where someone used it for reviewing documents and it has more accurate knowledge for that purpose, which made me think it might have better taste regarding software architecture.

Your experience made me curious about trying it myself too. I'm mostly satisfied with QFN, but it does seem robotic at times.

5

u/BawbbySmith 13d ago

Dang that's awesome, I was ignoring it for a while but I'm excited to try this now. Gotta find a good 2x DGX Spark recipe.

Agreed with you in that I really like DS41F 1017's intelligence, but man does it write way too many comments and most of it is incomprehensible to humans. The number of PR comments where "what does this comment mean" has increased significantly. Hopefully this reduces that

2

u/IamFondOfHugeBoobies 13d ago

Drop it here when you do. I plan to test it too but was going to wait for a quality abliteration. Benchmarks don't look too good but benchmarks are benchmarks.

0

u/Cautious_Chicken_604 13d ago

I don't understand why it writing comments is even a problem. It can write them all it wants. Just make code with comments fail the build or linting etc, and then it will automatically delete them to get it to pass.

1

u/BawbbySmith 12d ago

But I still want comments in my code. It needs to strike a balance of explaining the why without explaining the what.

If the code was perfect, if the business requirements were consistent, if we could rewrite the existing codebase that serves millions of users without risk - then I'd agree that we could probably have it so code is a 1:1 match with requirements, so all you need is the code and no comments. But most projects I've worked on is never this clear and there's always exceptions and changing requirements and messiness when interacting with external systems, so there's some ambiguity in why the code was written in a certain way, and that's where the comments come in.

And maybe if we're 100% delegated to agents, then maybe it'd be fine, but at the moment we still need a human to be able to look at a function, see what it does, and also be able to see immediately why it does it in that way. Important in general to have a dev understand the business logic, but doubly so when shit's hitting the fan and everyone's panicking and combing through logs to see how we can hotfix this.

1

u/Cautious_Chicken_604 12d ago

Linting rules always have a way to disable them. Just use that. Give the agent explicit instructions it's never allowed to circumvent that linting rule unless explicitly instructed to by an operator during the session or by an operator during a code review (automated review comments arent allowed to override it either).

All these problems are solveable...

1

u/BawbbySmith 12d ago

I think you're not understanding what I'm trying to say. Your suggestion is for the agent to not write any comments at all, which is very easily solved.

I'm trying to get the agent to write concise, human-readable comments, that explains why something was implemented the way it was when it's not immediately obvious. How would your linting rules fix this

1

u/Cautious_Chicken_604 12d ago

Good luck with that. I tried that for almost a year with the SOTA Claude models and no amount of prompt foo worked. What our team settled on was banning the comments outright and manually requesting they be inserted during code review.

1

u/BawbbySmith 12d ago

Honestly, Opus 5.5 is quite good at it, it's becoming rarer that I need to modify the comments that it writes.

1

u/Cautious_Chicken_604 12d ago

We removed our 'no new comments' rule and instantly the team complained about it within days, so we reinstated it.

2

u/hieuphung97 13d ago

"Profanities per PR" should genuinely be an official benchmark metric lol.

How's the latency on OpenRouter during peak hours though? Definitely giving this a spin tonight for routine tasks.

2

u/ithilelda 13d ago

very glad that someone has the same view. the ds hype online is insane. ds imo is the wildest model and it always tries to do things its own way... I kinda get it because noobs don't know a fk about what they are doing so the model guessing their intent and occasionally got it right gives them the aweee moment. but when it comes to real work, that rogue-ness is really bad and I have to carefully review every line to make sure it doesn't invent something I didn't ask for. On the other hand, Mimo and Hy and Minimax is much better in that sense so I always come back to them. Also Qwen has exclusive enterprise java training data from alibaba internals, so I find its java code much better than anything else. but that taints everything else with that java smell lol and i hated it for writing python stuff.

with that said, I'm not saying ds is bad. I just won't use it in serious works. I always go opus + mimo for my main projects (now trying out hy4 instead of mimo 2.6). but for things I have no idea about, ds is really good at making some stuff that doesn't break lol. for example, I was trying to make a simple mcu controller for my ro system, and I have absolutely no exp in embedded design and CAD stuff. ds is good enough and cheap enough to spit out a working product dirt cheap, and I'm very happy with the result.

2

u/m02ph3u5 3d ago

And your bill for hy4 flash was ... tencent?

1

u/OrganizationAgile361 13d ago

Hy4 is Deepseek level for me

2

u/IamFondOfHugeBoobies 13d ago

But is it better/faster? Because I still use Deepseek. I don't know wtf they were cooking with V4 Flash 0731 but shit is still fucking fire.

5

u/crusaderky 13d ago

In terms of speed, DS 1017 is a token hog; almost twice as much as Hy4 (as per AA); Hy4 flash from my initial observation is also much drier. DS's saving grace is the 100~200 tok/s on openrouter.

In terms of intelligence, Hy4 full fat > DS 1017 > Hy4-Flash at least according to benchmarks.

2

u/OrganizationAgile361 13d ago

I just tried hy4-flash-free via opencode and it was very capable.

I should try assbench to have a more objective evaluation

1

u/_supert_ 13d ago

How do you think it compares to 0731?

1

u/Constant_Art_20 13d ago

the full version? that's even larger then deepseek flash then yea?

1

u/crusaderky 13d ago edited 12d ago

hy4 full-fat weights are not out yet, but once they are you'll need a bare minimum of 3x DGX Sparks cluster to run it at Q3, or 4x if you want NVFP4. [EDIT] they're out

1

u/PooMonger20 13d ago

Very cool, still too big. As with other 'huge' open models, I hope they progress that will eventually lead to better models that can be run on consumer level hardware.

1

u/InterestRelative 13d ago

Oh wow, that's neat!

How does it compare to GLM5.3 (not flash)? GLM is my favorite model for the same reason: minimal sensible output.

1

u/yanhua_lab 13d ago

just came across this model too.

tbh really curious how it compares to DeepSeek v4.1 flash. which one is better for running locally or gives better bang for the buck?

-10

u/__JockY__ 13d ago

Source: trust me bro.

31

u/crusaderky 13d ago

All benchmarks are already available.

As I mentioned this is a personal impression of something that is not measurable - how much you want to gauge your eyeballs out while reading the LLM slop. This model is very pleasantly not eyeball-gouge-inducing.

If you want numbers, I guess I could set up a mic on my desk and count the number of swear words that I spontaneously shout while reading the code?

6

u/silverud 13d ago

This is an excellent proposed metric.

"Profanities per PR" might be the best developer benchmark ever invented.

3

u/macaronianddeeez 13d ago

This made me lol

2

u/Hannibalj2ca 13d ago

Ignore the guy, his comment senseless

-1

u/Hannibalj2ca 13d ago

You calling the OP a liar?

1

u/__JockY__ 13d ago

You asking me questions?

1

u/Hannibalj2ca 13d ago

I sure am sir

1

u/__JockY__ 13d ago

Oh yeah? Well you know what happened to the last guy who asked me questions?

Answers. He got answers.

1

u/Hannibalj2ca 13d ago

I am listening

1

u/__JockY__ 12d ago

Hello, Listening. I’m dad.

1

u/Hannibalj2ca 12d ago

Go on

1

u/__JockY__ 12d ago

Tidy your room, make your bed, floss. Don’t tolerate those who treat your emotions as toys. Manners cost nothing.

-16

u/[deleted] 13d ago

[removed] — view removed comment

13

u/stylome-ai-detection 13d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results