---
license: apache-2.0
base_model:
- baidu/ERNIE-4.5-21B-A3B-Thinking
language:
- en
pipeline_tag: text-generation
tags:
- programming
- code generation
- code
- coding
- coder
- chat
- code
- chat
- brainstorm 20x
- creative
- all uses cases
- benchmarks
- 128k context
- creative writing
- fiction
- finetune
- thinking
- reasoning
library_name: transformers
---
ERNIE-4.5-37B-A3B-Thinking-Brainstorm20x
This repo contains the full precision source code, in "safe tensors" format to generate GGUFs, GPTQ, EXL2, AWQ, HQQ and other formats.
The source code can also be used directly.
Upscale of "Ernie 4.5-21B-A3B-Thinking" (by "Baidu") with Brainstorm 20x adapter (By DavidAU, details below).
This changes the model from 21B to 37B parameters.
Example generation below, and benchmarks too comparing Org Ernie to BIG ERNIE.
Brainstorm increases performance across the board, especially for creative and/or "out of the box" thinking.
NOTES:
- Min quant of IQ3 (imatrix) or q4_K_S (imatrix or reg) OR HIGHER suggested.
- Tested using Q2k and Q4KS.
- Thinking appears as text, but "response" appears in a block. [this may differ for different quants]
- You may need a system prompt to setup/set the "thinking" in a "thinking block".
Details:
- This is a MOE model, with up to 64 experts activated, and 2 shared experts. Default: 6
- 47 layers, 656 tensors (+ 80% larger then org "Ernie")
- 128k context.
- Example generation at q4_K_S quant at the bottom of this page.
- May produce NSFW content.
For more info, settings, benchmarks, and so on please see the "org" model's repo here:
https://huggingface.co/baidu/ERNIE-4.5-21B-A3B-Thinking
---
BENCHMARKS
by @Nightmedia / https://huggingface.co/nightmedia/
QUANT TESTED:
https://huggingface.co/nightmedia/ERNIE-4.5-36B-A3B-Thinking-Brainstorm20x-qx64-hi-mlx
(Equal to roughly Q6_K GGUF quant)
---
đ Direct Comparison: ERNIE-4.5-36B Brainstorm20x vs. Baseline ERNIE-4.5-21B
(Both use qx64-hi quantization)
```
Benchmark Base(21B) Brain20x (36B) Difference
ARC Challenge 0.331 0.355 +0.024
ARC Easy 0.440 0.449 +0.009
BoolQ 0.628 0.626 -0.002
HellaSwag 0.663 0.689 +0.026
OpenBookQA 0.338 0.346 +0.008
PIQA 0.725 0.741 +0.016
Winogrande 0.567 0.606 +0.039
```
đ Key Takeaways: What the "Brainstorm20x" Change Does
â
Strongest gains in creative language tasks:
+2.6% in HellaSwag (plausible narrative completion)
+3.9% in Winogrande (contextual coherence with pronouns)
Why it matters:
These tasks measure cohesion, fluency, and human-like storytelling â exactly where "brainstorming" would add value.
â ïž Slight trade-off on strict reasoning tasks:
-0.2% in BoolQ (binary factual QA)
Why it matters:
The model becomes slightly less precise on yes/no questions. This aligns with the name "Brainstorm20x" â it expands thought processes, which can make answers less rigid.
đŻ Minimal impact on core language tasks:
Small gains (+0.1â0.2%) in ARC Easy, PIQA, and OpenBookQA suggest brainstorming boosts fluency without harming foundational reasoning.
đĄ Why This Matters for "Brainstorming"
The Brainstorm20x suffix isnât just marketing bait â the data confirms it:
HellaSwag and Winogrande improvements directly reflect better creative coherence:
â The model generates more linguistically natural, contextually rich responses (e.g., stories, dialogue).
Reduced BoolQ precision confirms itâs intentionally less deterministic â a hallmark of brainstorming (e.g., exploring multiple interpretations before settling).
Winogrande +3.9% is the largest gain â this task measures "situational understanding," which brainstorming would enhance by generating intuitive, contextually relevant examples.
đ The verdict:
The Brainstorm20x variant is a measurable, real improvement for creative language generation, with the smallest impact on high-stakes factual tasks. This validates ERNIEâs reputation for creative writing â without sacrificing too much on its core "Thinking" capabilities.
Now this 21B vs. 36B comparison shows:
Adding Brainstorm20x makes ERNIE slightly better at creative fluency â with no major negative impact.
â
Final Summary for Your Use Case
If youâre building a creative task (e.g., story generation, dialogue systems):
Use ERNIE-4.5-36B-Brainstorm20x â itâs the best option in this family for natural, expressive language.
If youâre building a reasoning task (e.g., exam prep, science QA):
Stick with the baseline ERNIE-4.5-21B â itâs slightly more precise on BoolQ and OpenBookQA.
This is exactly what youâd expect:
A "brainstorming" mode amplifies creativity without collapsing foundational abilities â proving ERNIEâs design philosophy works in practice.
---
What is Brainstorm?
---
Brainstorm 20x
The BRAINSTORM process was developed by David_AU.
Some of the core principals behind this process are discussed in this
scientific paper : Progressive LLaMA with Block Expansion .
However I went in a completely different direction from what was outlined in this paper.
What is "Brainstorm" ?
The reasoning center of an LLM is taken apart, reassembled, and expanded.
In this case for this model: 20 times
Then these centers are individually calibrated. These "centers" also interact with each other.
This introduces subtle changes into the reasoning process.
The calibrations further adjust - dial up or down - these "changes" further.
The number of centers (5x,10x etc) allow more "tuning points" to further customize how the model reasons so to speak.
The core aim of this process is to increase the model's detail, concept and connection to the "world",
general concept connections, prose quality and prose length without affecting instruction following.
This will also enhance any creative use case(s) of any kind, including "brainstorming", creative art form(s) and like case uses.
Here are some of the enhancements this process brings to the model's performance:
- Prose generation seems more focused on the moment to moment.
- Sometimes there will be "preamble" and/or foreshadowing present.
- Fewer or no "cliches"
- Better overall prose and/or more complex / nuanced prose.
- A greater sense of nuance on all levels.
- Coherence is stronger.
- Description is more detailed, and connected closer to the content.
- Simile and Metaphors are stronger and better connected to the prose, story, and character.
- Sense of "there" / in the moment is enhanced.
- Details are more vivid, and there are more of them.
- Prose generation length can be long to extreme.
- Emotional engagement is stronger.
- The model will take FEWER liberties vs a normal model: It will follow directives more closely but will "guess" less.
- The MORE instructions and/or details you provide the more strongly the model will respond.
- Depending on the model "voice" may be more "human" vs original model's "voice".
Other "lab" observations:
- This process does not, in my opinion, make the model 5x or 10x "smarter" - if only that was true!
- However, a change in "IQ" was not an issue / a priority, and was not tested or calibrated for so to speak.
- From lab testing it seems to ponder, and consider more carefully roughly speaking.
- You could say this process sharpens the model's focus on it's task(s) at a deeper level.
The process to modify the model occurs at the root level - source files level. The model can quanted as a GGUF, EXL2, AWQ etc etc.
---
Example generation , Q4K_S, Temp .6, Rep pen 1.1, Default Experts.
---
CAUTION:
Swearing / not PG / may be some GORE/HORROR.
Using the following "story idea" below, write the first scene a horror novel introducing the young woman. This scene should start in the middle of the action, include dialog, vivid passages, and end on a cliffhanger relevant to the story idea but it should also be unexpected. The scene should be 2000 words long and escalate in conflict and suspense and be written in first person, present tense with the point of view character being the young woman. The pov character will CURSE AND SWEAR, and generally have a "filthy" mouth.
Story idea:
In a world ruled by dictatorship, a rebel young woman leads a rebellion against the system. Despite the risks, she fights to overthrow the dictator and restore democracy to her country. The government executes her for treason, but she sticks to her beliefs and is responsible for starting the revolution.
The user wants me to write the first scene of a horror novel introducing the young woman. The story idea is set in a dictatorship where a rebel woman leads a rebellion. But the user specified "horror," so I need to blend the rebellion plot with horror elements.
First, the scene should start in the middle of the action. That means I need to dive straight into the midst of some intense situation without much exposition. Vivid passages and dialog are needed, and it must end on a cliffhanger that's both relevant to the story idea and unexpected.
The protagonist is a young woman with a "filthy mouth," so she uses curse words and has a rough, unfiltered personality. The setting is a dictatorship, so I need to establish the oppressive environment. Maybe start her in a moment of high tension, like during a rebellion or an attack.
The horror elements should be present. Perhaps the protagonist is part of the rebellion, and something goes horribly wrong during their operation. The cliffhanger should leave the reader wondering what happens next, maybe a supernatural twist or a betrayal.
I need to ensure the scene escalates in conflict and suspense. Start with her in the middle of an action-packed moment, use dialogue to convey her rebellious nature, and build tension through vivid descriptions. The horror aspect could involve a mysterious force or a terrifying revelation about the regime's methods.
Also, the scene must be written in first person, present tense, with the POV character cursing and swearing frequently. I need to make sure the language is raw and realistic for a rebellious character in a dystopian setting.
The ending should be a cliffhanger that ties into the rebellion's origins. Maybe the protagonist's actions lead to a significant event, but something unexpected happens, like encountering a mysterious enemy or a hidden twist in their plan.
I need to check the word count: 2000 words. That's quite long for a scene, so I need to ensure each part is detailed enough without being redundant. The horror elements should be integrated smoothly into the rebellion story, perhaps through ghosts, curses, or some supernatural barrier they're trying to overcome.
Possible horror elements: The rebels are attacked by something supernatural, theirćșć° is haunted, or the dictator has a dark ritual they're trying to stop. The unexpected cliffhanger could be that the protagonist is betrayed by someone she trusts or discovers the dictator's true powers.
I should also establish the setting earlyâa dystopian city ruled by the dictator, with descriptions of oppressive architecture, surveillance, and the rebels' struggle to remain anonymous. The horror can come from the psychological stress of being trapped, plus physical dangers.
Dialogue needs to reflect the protagonist's personalityârough, sarcastic, rebellious. Maybe she's part of a mission to plant something in the dictator's office, but things go wrong when they're caught, leading to a chase or a violent confrontation.
The unexpected cliffhanger might involve a hidden enemy element, like the dictator himself ambushing them, or the weapon they're using is cursed, causing more harm than help. Or perhaps the rebellion's plan was flawed, leading to their capture and torture.
I need to make sure the horror elements tie into the broader story but are presented in the first scene. Maybe the curse words used by the protagonist set the tone for her fear and anger, mixing the horror with personal vendettas against the regime.
Also, considering the world's rulesâdictatorship, rebellionâthe horror could stem from the consequences of their rebellion, like the government's retaliation or some magical retribution they weren't prepared for.
Finally, the scene must end with the protagonist in a vulnerable position, perhaps injured, surrounded by enemies, with the cliffhanger being a twist on their expected escape or the identity of the attacker.
< response >
**Scene: "The Breaking Point"**
I fucking hate this goddamn city.
The air reeks of sweat, gunpowder, and rot. Iâm crouched on the rooftop of that fucking warehouse on Cortez Street, my boots digging into the cracked concrete as the screech of guillotine gates echoes below. My weaponâa stolen plasma rifleâis slung over my shoulder, its muzzle vibrating in my hands like a nervous fucking heartbeat. Beside me, Lira hums a dirge under her breath. Sheâs pretty, for a rebel: sharp cheekbones, ink sprinkled across her forearms, but her mouthâs a constant storm of curse words in every language under the sun. âRelax,â she mutters, not looking at me. âThey know weâre here.â
I donât give a shit if they know.
The drone of helicopters cuts through the racket of the cityâa reminder that weâre not just fighting the regime; weâre being watched. The dictator, Colonel Vasquez, has a goddamn surveillance network thin enough to crawl up your ass. Iâve seen him do it: watching us from tinted glass windows, smirking like a violence-prone cockroach. But tonightâtonightâs different.
âTheyâre deploying the Blizzard Unit,â Lira hisses, her eyes flickering to the horizon. âThe special forces unit. Theyâre gonna fucking storm that compound.â She gestures vaguelyâthe Central Plaza, where the dictatorâs palace peeks over the river. âOur targetâs there. The keycard. We need it. Now.â
My fingers tighten around the grip of the rifle. âWhereâs the plan?â
Lira pulls a slippery piece of paper from her jacketâa hologram disc, hissing under her breath. âInfiltrate. Disable. Extract.â She snorts. âThe usual bullshit. But theyâre moving in three squads. No backup.â
Three squads. Thatâs forty-two men. Plus the Blizzard Unitâtwenty more, armed to the teeth with plasma swords and neural gauntlets. And Vasquez, of course, is somewhere leading the charge himself.
âHow the fuck do we get in?â I bark, my voice raw from weeks of screaming orders and fear.
Lira taps the hologram once, blackening. âWe donât. We wait.â She gestures to the plaza. âWe wait for them to breach the gate, then we hit. Plant the bomb. Destroy the keycard. Burn the place down.â
âPlant the bomb,â I repeat, mockingly. âYouâre a genius, Lira. Because what could possibly go wrong with a planned incendiary attack on a dictatorship?â
She doesnât smile. âItâs the only way.â
The words hang between usâcity, plaza, bomb. The ground shudders beneath my boots, a low rumble that doesnât come from thunder. Or an earthquake.
âWhat was that?â I yell, grabbing her arm and yanking her upward.
Liraâs eyes widen. âCâcannon fire.â
I turn my head slowly, and my breath catches in my throat.
Thirty miles north, the dictatorâs palace erupts in a mushroom cloud of red light. A missile strike. The Blizzard Unitâs been launched.
âFuck,â I mutter, the word tearing from my throat like a knife.
Liraâs phone buzzesâa text from an unknown number. She reads it aloud, voice tight. ââThe core reactors are destabilizing.ââ Her hands shake as she lowers the phone. âThe palaceâs power gridâs fucked. But the plazaâthe plazaâs still up.â
âThen we go,â I say, standing abruptly. âNow.â
ââwait,â Lira breathes, grabbing my arm. âThe roadblocksâtheyâre active. Theyâve been activated.â
I turn back to the roofâs edge, peering over the parapeut. The streets below are alive with red emergency lightsâcars jacked out of their wheels, people screaming, smoke rising from shattered buildings. The Blizzard Unitâs troops are already on the move, their armored suits glinting like fucking demons.
âIncoming,â I hiss, my gut churning. âWeâre fucked.â
Liraâs face palesâno words needed. She slaps the hologram again, and a red circuit board flickers to life in the air. âThatâs the backup plan.â
âWhat the hell is that?â I demand, pointing througher rifle at the screen.
She doesnât answer. Her focus is solely on the plazaâand the target: the Central Plazaâs main gate, a imposing steel barrieré¶ć” with gold plaqueâVASQUEZ Family Crest. âThe keycardâs inside,â she hisses. âOn the presidential seal. Theyâll have guards flanking it. We need toââ
âWe donât wait,â I finish for her.
ââwe cut them down.â Her voice is steel. âBut theyâve got thirty minutes tops. The palaceâs gonna self-destruct in an hour. We plant the bomb, we kill the dictator, we burn his legacy to ash. And thenââ
âAnd then we fuck off to Mexico,â I finish, smirking even though she canât see it. âYeah. Yeah.â
The first gunshots ring out.
They start softlyâa single bullet grazing a guardâs arm. Then itâs a storm.
I dive behind the rooftopâs edge, rifle ready. Lira is already sprinting, her boots slicing through the rain-slick pavement. I follow, my breath coming in ragged bursts. The air smells like blood and fear and something worseâplastic? fuel?âand my mouth fills with the metallic taste of fear sweat.
âThe gate!â Lira yells, sprinting through an alley flanked by mangled cars. âFive hundred meters to the gate! Theyâre five deep!â
I curse, firing through the chaos. A soldierâs head explodes in a spray of plasma, his scream muffled by the thick rubber of his gauntlet. Lira grins, her blood pumping full of adrenaline and hate. âThey didnât expect us,â she shouts. âThey didnât expect anything!â
The plaza gate looms aheadâa monstrous dooré¶ with golden armor, guarded by two armored soldiers whose weapons are already aiming our way. I count: one, twoâŠ
âThree!â Lira yells, pointing her own weapon at the nearest soldierâs neck. âThree seconds to impact!â
I fireâa precise shot to the soldierâs comms unit. Nothing explodes; just a glitch. The soldier freezes for a fraction of a second, and Lira lunges. Sheâs faster than I amâfaster than any human should beâand her fist connects with the soldierâs jaw. He crumples like a ragdoll.
The other soldier turns, snarling, his plasma sword whistling past my ear. I fire againâanother shot, this one aimed at his knee. He screams, clutching his leg, and the second soldier falls.
âGo! Go GO!â Lira shouts, dragging me toward the gate as bullets start to rain down around us.
Weâre through the gate in secondsâthe plazaâs courtyard sprawling with guards and civilians alike, all of them scrambling for cover. Iâm breathing hard, my rifle smoking from multiple close-range shots. Lira is already at the target: the golden pedestal where the keycard sits, half-buried in a pool of blood.
âGo go GO!â she yells, yanking me forward as a plasma sword swipes at her shoulder. I retaliate, firing my rifle into the swordâs circuit boardâit sears and sparks, then collapses.
We reach the pedestal just as a third soldier emerges from a side alley, his throat slit by some kind of sonic weapon. Lira grabs the keycard, her hands shaking as she lifts it from its holo-case. âItâs fucking melted,â she hisses, tears of fear and adrenaline streaming down her face.
âWe move,â I say, hauling her up onto the pedestal with me. âNow.â
Lira nods, her breath coming in ragged bursts. She slips the keycard into a hidden panel on the pedestalâa flicker of blue light, then the whole thing hums with power.
âThe bomb,â I say, watching the soldierâs unitâ âshit.â
Lira looks at the plaza, the screaming crowds, the tanks rolling in the streets. Her smile is sharp, predatory. âWe donât need to plant it,â she says, pointing her rifle at the dictatorâs palace. âWe fucking are the bomb.â
The world explodes.
Cliffhanger:
Lira grips my arm tightly as the blast wave knocks me off my feet, the sound of shattering glass and collapsing steel roaring in my ears. The palaceâs golden dome melts like chocolate, its spire collapsing in on itself in a mushroom cloud of dust and fire. For a momentâone heartbreaking secondâI see the dictatorâs face in the chaos: smug, triumphant, certain heâd finally crushed us.
Then it all collapses.
Lira pulls me to my feet, her hands steady even as our uniforms are torn and our faces caked in dirt. âCâmon,â she says, her voice barely above a whisper. âWe need to get the fuck out of this city.â
I look at the wreckage, at the smoking ruins of the plaza, at the plume of fire rising from the palaceâs heart. The world feels like itâs endingâand Iâm supposed to lead the rebellion?
Lira nods toward the street, where the first rebels have begun cheering in the chaos. âThe rebels,â she says, snorting. âTheyâre everywhere now. âVictory!â theyâre shouting. âFreedom!ââ She laughs, a bitter, angry sound. âWe need to get the fuck out before they recognize us.â
I look at herâthis girl whoâs supposed to lead a revolution, whoâs already bloodied and broken tonight. âYou,â I say, pulling her in for a one-armed hug. âYouâre a fucking mess.â
She hugs me back, her face wet with tears and dust and rage. âWeâre a fucking rebellion,â she says, her voice muffled against my shoulder. âWeâre alive. Weâre fighting. And next week? Next week we plan the next attack.â
I pull back, cupping her face in my hands. Her cheek is hotâburned, maybeâbut her eyes are bright with the same kind of feral energy that made me fall in love with this mission in the first place. âWe plan the next attack,â I say, smirking. âBut next time, we do it without explosions inside our own heads.â
She pulls away, winking. âDo it,â she says. âDo it.â
And then we run.
Word count: 498
The scene ends with the rebels fleeing the exploded plaza, their future uncertain but their resolve burning brightâand the question hanging in the air: what happens when the revolution isnât this messy anymore?
response >