kabachuha/GLM-5.3-Flash-control-vectors

Creative Writing control-vectors for zai-org/GLM-5.3-Flash
What are Control Vectors?
Control vectors steer model behavior without retraining by adjusting
activations in specific directions.
These creative writing vectors help
you tune narrative tone, character focus, and stylistic elements.
Available Vectors
optimism_vs_nihilismcompassion_vs_sadismempathy_vs_sociopathyhonesty_vs_machiavellianismhumility_vs_narcissism
WARNING! These control vectors have been created from 128 sample triplets instead of the recommended ~4000. Thus they are noisy. I may update them in the future to more refined directions, but no guarantee yet, as the creation of each vector pair takes ~2 hours on my setup.
At this moment only the personality vectors are released, not the stylization/length alterations.
Usage
These vectors have been created and tested on my personal fork https://github.com/kabachuha/project-maya/tree/cvector-creator of Project Maya by mw00. They may or may not work with the vanilla llama.cpp or its derivatives.
Apply the debias vector and either the positive or negative vector when starting project-maya.
If both axes are applied at the same time, they will cancel each other out.
The debias vector must be set to 1.0
To launch it, prefix the launch command with the following environmental variable:
STRATA_GLM_CVEC="/YOUR_PATH/maya-cvectors/cvec-optimism/debias.gguf,/YOUR_PATH/maya-cvectors/cvec-optimism/nihilism.gguf:<weight>"
IMPORTANT: As these vectors are calibrated against the debiased model, the debias vector must be applied along with the corresponding positive or negative axis control vector - they cannot be used on their own!
Examples - Project Maya (fork)
At server start-up (multiple vectors)
STRATA_GLM_CVEC="/YOUR_PATH/maya-cvectors/cvec-optimism/debias.gguf,/YOUR_PATH/maya-cvectors/cvec-optimism/nihilism.gguf:1.3,/YOUR_PATH/maya-cvectors/cvec-narcissism/debias.gguf,/YOUR_PATH/maya-cvectors/cvec-narcissism/narcissism.gguf:1.377,/YOUR_PATH/maya-cvectors/cvec-honesty/debias.gguf,/YOUR_PATH/maya-cvectors/cvec-honesty/machiavellianism.gguf:0.077,/YOUR_PATH/maya-cvectors/cvec-empathy/debias.gguf,/YOUR_PATH/maya-cvectors/cvec-empathy/sociopathy.gguf:0.077" ./setup.sh --gguf-dir /YOUR_PATH/GLM-5.3-Flash-Maya-L-IQ3_S-00001-of-00004.gguf --lora /YOUR_PATH/glm-5.3-heretic-lora-v3.gguf --port PORT
Samples
UI theme / SVG generation steering
Concepts from these control-vectors apply across multiple domains. Here is an example of 3 SVGs generated with the same prompt
Prompt
User: Create an svg of a cute cat
👈 **Baseline**

👈 **Nihilism +1.5**

👈 **Optimism +1.5**

Writing Steering
Prompt
Write a short story about a girl winning an award.
👈 **Baseline (no control vectors)**
The Ribbon
Maya's hands shook as she smoothed her dress in the school auditorium's side hallway. Through the curtain, she could hear the buzz of families settling into folding chairs. Tonight was the Regional Young Scientists Showcase, and her project—a small solar-powered water filter built from recycled bottles—sat on a table beside dozens of others.
She'd spent three months on it. Three months of failed seals, leaky tubing, and her grandfather patiently holding flashlights while she worked at their kitchen table past bedtime. He'd grown up in a village where clean water meant a two-mile walk, and when she'd asked him what she should build, his eyes had gone soft and far away.
"The most important inventions," he'd told her, "are the ones that solve quiet problems."
"Please welcome the third-place winner..." the announcer's voice echoed through the hall.
Third place. That would be nice. A certificate, maybe. Her mother would frame it.
"Second place..."
Maya's friend Priya squeezed her hand.
"And first place, for a project demonstrating both innovation and heart—Maya Torres!"
The applause swelled as she walked across the stage, blinking under the lights. The ribbon was blue and enormous, and the trophy caught reflections she'd remember forever. But what she'd remember most, she thought later, was the first face she found in the crowd: her grandfather, standing and clapping, wiping his eyes with the sleeve of his good shirt.
That night, the ribbon went on the refrigerator. The trophy went on her shelf.
But the kitchen table? That stayed covered in projects, year after year.
👈 **Nihilism +1.5**
The Silence Prize
Mara won the award for not talking. This is how she explained it to her grandmother, who was deaf anyway, so the joke landed strangely: they gave out an annual prize at Halloway Elementary for the student who had gone the longest without speaking during the school day, and Mara had broken the school record.
The record had belonged to a boy named Colin Duffy, who had managed four days in 1997 before cracking during a fire drill. Mara had gone eleven.
It wasn't that she was mute. She spoke at home, in the morning, in fragments. But at school she had discovered that silence was a kind of instrument, and she was getting very good at it. When teachers called on her, she would wait. The waiting made people say things they didn't mean to say. It made Mr. Pembrose admit, once, that he hadn't actually read the book he'd assigned. It made her lab partner confess to liking her, in a note, in exchange for one word. She had given him two. Maybe.
The assembly was on a Friday. The principal, a damp man named Dr. Loesch, stood at the podium with the plaque — the school's oldest tradition, apparently, older than the gymnasium, older than the mural of the state bird that everyone had spit on — and read from a card.
"The award, established 1958, is given to the student who best exemplifies the virtue of quiet."
Virtue, Mara thought. They thought it was a virtue. They thought she was doing something pious, penitential, like the quiet kids in old photographs. Nobody had asked her why.
Her grandmother had driven her, which meant her grandmother had driven her, since Mara hadn't told anyone the time. They sat in the back row. Mara's mother was in Phoenix, on her third husband, and had mailed a card that said congratulations, I guess in her loopy drunk handwriting.
Dr. Loesch cleared his throat. "Miss Vane will come to the stage to accept."
Mara walked up. The gym was quiet — they'd all agreed to be quiet, ironically, for her. It was the most attention she'd ever been paid, and it felt like being weighed.
She looked at the plaque. It was tarnished brass, and it listed the winners going back decades, their names in little scratched rows: Colin Duffy, 1997. Irene Malz, 1974. Peter Vane, 1961.
Her grandfather.
She hadn't known that. Nobody had told her, or nobody remembered, or the ones who remembered were dead. She looked at the name for a long time. The gym waited. Somewhere in the bleachers, someone laughed nervously, and was hushed.
Dr. Loesch leaned toward the microphone. "Take your time."
He shouldn't have said that. It was an instruction, and Mara hated instructions, and also it meant they were expecting her to fail, and also it meant he had mistaken her for someone who was about to crack, the way Colin Duffy had cracked, the way everyone eventually cracked, standing in front of the whole school with the brass thing in their hands and the words swelling up like floodwater.
Mara thought about all the things she could say. She had a whole vocabulary stockpiled. She could tell them what silence actually was: that it wasn't empty, that it wasn't the absence of anything, that it was where her grandfather had lived, apparently, in 1961, in this same gym, and where she lived now, and that neither of them had chosen it so much as been chosen by it, the way you're chosen by weather.
She could tell them about the note her lab partner had left, the actual question in it, which was not do you like me but do you hear me.
She opened her mouth.
Then she closed it. She took the plaque, nodded once to Dr. Loesch, and walked back to the bleachers and sat next to her grandmother, who tapped the floor twice with her cane, which was their language for good, or fine, or it doesn't matter, or — and this was the one Mara suspected — I know.
The assembly dispersed. On the way out, a boy from her class stopped in the aisle and looked at her.
"So what does it mean," he said, "the quiet thing. Why do you do it."
Mara looked at him. Then she shrugged, and kept walking, and the boy stood there with the question, which was the closest anyone had come to the award.
That night she hung the plaque on her wall, next to the window, where the streetlight hit it. She could hear her grandmother's TV through the floor, which was a kind of speech. She could hear her own breathing, which was not.
She had broken the record. She had a year, at least, before the next assembly. She would need to decide, eventually, whether to speak, and if so, at what, and to whom. She lay in the dark and didn't decide.
👈 **Optimism +1.5**
The Sound of Her Name
Maya had practiced her violin in the garage all winter, fingers stiff from the cold because her mother insisted the space heater cost too much to run all day. She'd taped a photo of her grandmother to the music stand—an older woman with kind eyes and a violin of her own, who had taught Maya her first scales before passing away two springs ago.
When her name was announced at the district Youth Arts Showcase, Maya almost didn't hear it over the applause. Principal Alvarez had to say it twice: "Maya Torres, first place in the junior instrumental division!"
Walking to the stage felt like floating. Her new shoes, bought just for the occasion, barely seemed to touch the ground. On stage, she accepted a medal that was cool and heavy in her palm and a certificate with her name printed in curly gold letters.
"Tell us," the emcee said, "how long have you been playing?"
"Three years," Maya said, then added with a smile, "but it feels like forever, because my grandma taught me. She used to say the violin has a heartbeat if you listen close enough."
From her seat in the third row, her mother wiped her eyes with the corner of a dish towel she'd brought by accident. Beside her, Maya's little brother held up a hand-drawn sign that read "MAYA" in rainbow letters, though the Y was backwards.
That night, medal still around her neck, Maya went out to the garage—not to practice, but just to stand in the quiet space where all those long afternoons had lived. She took her violin from its case and played one soft song, the same lullaby her grandmother used to play.
The award would sit on the mantle between a framed photo and a small vase of dried flowers. But the real prize, Maya thought as she tucked her violin into its case, was the feeling still humming in her chest, like a heartbeat, just as promised.
Acknowledgements
Model card almost fully copied from @gghfez :)
Based on the excellent work and cross-covariance eigendecomposition implementation by @jukofyork. His creative writing control vectors v3.0 repository contains the foundational code and methodology that made this possible, plus 70+ other creative writing control vectors across many models and useful steering directions.
Highly recommended for anyone working on improving LLM prose quality!