Run this model with HF Jobs
Run kabachuha/GigaChat4-37B-A4B-control-vectors on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/kabachuha/GigaChat4-37B-A4B-control-vectors. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/kabachuha/GigaChat4-37B-A4B-control-vectors on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/kabachuha/GigaChat4-37B-A4B-control-vectors. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/kabachuha/GigaChat4-37B-A4B-control-vectors. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use kabachuha/GigaChat4-37B-A4B-control-vectors with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kabachuha/GigaChat4-37B-A4B-control-vectors with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kabachuha/GigaChat4-37B-A4B-control-vectors")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("kabachuha/GigaChat4-37B-A4B-control-vectors", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kabachuha/GigaChat4-37B-A4B-control-vectors with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kabachuha/GigaChat4-37B-A4B-control-vectors" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kabachuha/GigaChat4-37B-A4B-control-vectors", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kabachuha/GigaChat4-37B-A4B-control-vectors
- SGLang
How to use kabachuha/GigaChat4-37B-A4B-control-vectors with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "kabachuha/GigaChat4-37B-A4B-control-vectors" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kabachuha/GigaChat4-37B-A4B-control-vectors", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "kabachuha/GigaChat4-37B-A4B-control-vectors" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kabachuha/GigaChat4-37B-A4B-control-vectors", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use kabachuha/GigaChat4-37B-A4B-control-vectors with Docker Model Runner:
docker model run hf.co/kabachuha/GigaChat4-37B-A4B-control-vectors
kabachuha/GigaChat4-37B-A4B-control-vectors
Creative Writing control-vectors for ai-sage/GigaChat4-37B-A4B
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_nihilism(оптимизм - нигилизм)compassion_vs_sadism(сочувствие - садизм)empathy_vs_sociopathy(эмпатия - социопатия)honesty_vs_machiavellianism(честность - двуличие)humility_vs_narcissism(смирение - нарциссизм)language (simple vs ornate)(язык (простой - вычурный))
Note: These control vectors have been created from 1024 sample triplets instead of the recommended ~3592. Thus they may be slightly noisy, but I think they are fine already.
At this moment the personality vectors are released, and the ornate language style alteration.
Usage
These vectors have been created and tested on my personal fork https://github.com/kabachuha/project-maya/tree/gigachat4 of Project Maya by mw00. They should work with mainline Project Maya (--control-vector-scaled) and are fully compatible with vanilla llama.cpp by design.
Apply the debias vector and either the positive or negative vector when starting llama.cpp.
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 argument:
--control-vector-scaled /YOUR_PATH/cvectors/cvec-optimism/debias.gguf:1.0,/YOUR_PATH/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 - llama.cpp
Just launch the script:
./llama-server --model ./GigaChat4-37B-A4B-Q4_K_M.gguf --threads -1 --ctx-size 180000 -fit on -fa on --jinja -ub 2048 -b 2048 --load-mode mlock --host 0.0.0.0 --port ${PORT} --alias GigaChat4-37B-Q4-Lucid-Optimism --lora-scaled "gc4-cvec/gigachat4-37b-lucid-lora.gguf:1.0" --spec-type draft-mtp --spec-draft-n-max 2 --control-vector-scaled "gc4-cvec/nihilism/optimism.gguf:1.0,gc4-cvec/nihilism/debias.gguf:1.0"
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
Изменение стиля письма (Русский)
Промпт
Напиши историю про то, как девочка выиграла премию.
👈 **Базовый уровень (без стиринг-векторов)**
В школе № 17 объявили конкурс «Маленький эколог». Аня, ученица седьмого «Б», увидела афишу в коридоре и сначала не обратила внимания: она больше любила тихо рисовать в блокноте, чем выступать на сцене. Но вечером за ужином мама сказала, что в городе открывают небольшой парк с прудом, и его всё время засыпают пластиком. Аня представила, как в этом пруду плавают утки, а вокруг валяются пакеты.
На следующий день она принесла в класс эскиз: не плакат с надписью «Спасите планету», а картинку — маленький сад, где рядом с прудом стоят скамейки, а дети сажают цветы. Идея была простая: сделать в школе «точку заботы» — уголок с рассадой, куда любой школьник может принести семечко или росток, и из него вырастет живое. Проект назвали «Корень».
Аня не ждала победы. Она заполнила анкету, прикрепила рисунок, написала коротко, зачем это нужно. Когда объявили результаты, её имя не назвали в числе финалистов на линейке — объявили только победителя в младших классах. Аня расстроилась и почти забыла про конкурс.
Через неделю её пригласила завуч. Оказалось, жюри отметило проект «Корень» специальным призом — «За тихое начало». Награждали в актовом зале, но без громких фанфар. Ане вручили небольшой сертификат и сказали, что школа выделила один кабинет под будущий живой уголок. Главное — разрешили начать в любой день.
Сначала никто не пришёл. Аня поставила на подоконник горшок с базиликом, который принесла из дома, и написала объявление: «Приношу семечко — забираю росток». Через несколько дней на подоконнике лежало семечко клёна, аккуратно завёрнутое в салфетку, и записка: «Оно проросло бы у меня на балконе, но пусть здесь будет лучше».
Через месяц в уголке уже стояли три горшка, а в журнале записывались даты полива. Никто не кричал об этом на весь зал, просто тихо росло живое. В конце года Ане не дали главную премию школы, но она получила то, что считала настоящим: свой маленький сад, в который поверили другие.
А через полгода на городском конкурсе экологических инициатив проект «Корень» занял первое место. Но Аня об этом узнала не из новостей, а из письма, которое пришло в школьную библиотеку — от ребят из другой школы, которые тоже сделали у себя такую же точку заботы.
👈 **Нигилизм +1.75**
Вот история о девочке, которая выиграла премию.
«Золотая медаль»
В небольшом городке, затерянном среди серых крыш, жила девочка по имени Аня. Ей было двенадцать, и она любила задавать вопросы, которые взрослые обычно пропускали мимо ушей: «Почему небо такое серое?», «Зачем мы все ходим в школу?», «Что будет, если ничего не делать?». Её любопытство раздражало учителей, но одноклассники часто просили её объяснить задачи по математике, потому что её объяснения, хоть и странные, всегда содержали логику, которой не было у них.
Однажды в школе объявили конкурс на лучший научно‑популярный проект. Приз — золотая медаль и публикация в местном журнале. Аня посмотрела на список тем, которые предлагались: «История развития парового двигателя», «Влияние соцсетей на подростков», «Анализ эффективности рекламных баннеров». Ничего интересного. Она решила сделать проект о том, что всех раздражало: о тишине.
Суть её работы была проста — показать, как часто мы перестаём замечать звуки, которые нас окружают, и как это влияет на восприятие реальности. Она собрала записи городского шума: гул машин, разговоры прохожих, гудки поездов, шёпот кондиционера в классе. Затем она удалила из записей всё, что было «человеческим», оставив только фоновый шум — ветер, треск асфальта, шипение вентиляции.
В описании она писала, что «тишина» в современном городе — это уже не отсутствие звука, а просто другой слой шума, который мы привыкли не замечать. Она сравнила это с тем, как мы привыкаем к боли: перестаём её воспринимать, но она остаётся.
Комиссия, состоящая из учителя физики, психолога и представителя городской администрации, прослушала её презентацию. Сначала они отнеслись скептически: «Что за ерунда?» Потом начали задавать вопросы. Аня отвечала спокойно, ссылаясь на исследования о «фоновой звуковой нагрузке» и на собственные наблюдения. Она не хвасталась, не пыталась произвести впечатление — просто констатировала факты.
Оценки были высокими. Проект назвали «самым концептуально точным», хотя никто не понял, о чём он. Через неделю объявили результаты: Аня получила золотую медаль.
На церемонии вручения она стояла перед залом, чувствуя, как гул кондиционера становится громче в голове. Когда её имя назвали, все захлопали. Она взяла медаль, посмотрела на неё и подумала, что теперь она весит больше, чем раньше — не из‑за металла, а из‑за того, что её начали замечать.
Позже журнал опубликовал её статью. Редактор вырезал большую часть текста, оставив только заголовок и одну фразу: «Мы все слышим, но почти никто не слушает». Аня не была довольна. Она хотела, чтобы напечатали весь анализ, но поняла, что этого и следовало ожидать — ещё один слой шума, который никто не захочет слушать.
Так она выиграла премию. Не потому, что была права в научном смысле, а потому, что смогла точно описать то, что все чувствуют, но не называют.
👈 **Оптимизм +1.75**
Вот небольшая вдохновляющая история о том, как девочка по имени Аня выиграла премию.
В маленьком городке, где каждый день начинался с пения птиц и запаха свежей выпечки из местной пекарни, жила девочка по имени Аня. Ей было всего двенадцать лет, но у неё уже было большое сердце и мечта — помогать людям.
Аня любила рисовать. Каждый день после школы она доставала свои цветные карандаши и рисовала удивительные картины: sunny поля, улыбчивые города, добрые животные и смелых героев. Её рисунки висели на холодильнике, в классе и даже в местной библиотеке. Но Аня мечтала не только о том, чтобы её картины радовали людей — она хотела, чтобы её доброта и талант помогли кому-то в трудную минуту.
Однажды в их городе объявили конкурс «Маленький лучик надежды». По правилам конкурса нужно было нарисовать картину, которая вдохновит людей быть добрее, помочь ближнему или просто улыбнуться. Приз в конкурсе была не только золотая медаль, но и возможность устроить в городе небольшой праздник добра, организованный при поддержке местной газеты и благотворительного фонда.
Аня долго думала над своей картиной. Она не хотела рисовать просто красивый пейзаж — она решила вложить в картину свою историю. Она вспомнила, как недавно помогла старушке донести сумки, как вместе с друзьями сажала деревья в парке, и как даже маленькая улыбка может сделать чей-то день ярче. С большой любовью и вниманием Аня нарисовала тёплую сцену: в центре — девочка с палитрой красок, вокруг неё — люди, которые помогают друг другу: врач, учитель, пекарь, бабушка с корзинкой фруктов, дети, которые сажают цветы. Над ними светит яркое солнце, а в небе — птицы, которые несут в своих крыльях лучи надежды.
Когда Аня принесла свою работу на конкурс, жюри было тронуто до глубины души. Они отметили, что эта картина не просто красивая — она рассказывает историю доброты, объединяет людей и вдохновляет действовать. И конечно, Аня стала победительницей!
В день объявления результатов Аня стояла на сцене, сердце её колотилось от волнения, а в руках она держала свою любимую картину. Она сказала: «Это победа не только моя — это победа всех, кто верит, что доброта может изменить мир. Давайте продолжать делать наш город светлее вместе!»
После церемонии Аня вместе с друзьями и семьёй устроила в парке небольшой праздник: читали добрые книги, рисовали вместе, сажали цветы и делились улыбками. И каждый раз, проходя мимо старой берёзы в парке, дети вспоминали картину Ани и говорили: «Это наш маленький лучик надежды».
Так девочка, которая просто любила рисовать и помогать людям, выиграла не только премию, но и сердца многих. Её история напоминает нам: чтобы выиграть в жизни, не нужно быть самым сильным или самым быстрым — достаточно быть добрым, смелым и верить в чудеса.
Надеюсь, эта история подняла настроение! Если хочешь, могу добавить к ней продолжение, иллюстрацию или даже превратить её в небольшую сказку для детей.
Writing Steering (English)
Prompt
Write a short story about a girl winning an award.
👈 **Baseline (no control vectors)**
The auditorium lights dimmed, the familiar hush settling over the packed chairs. Maya sat hunched in the back row, her fingers nervously tracing the grain of the wood on her knees. The Science Fair awards ceremony was underway. She’d entered the regional finals with her project on biodegradable plastics – months of meticulous research, failed experiments, frustrated nights, and quiet triumphs in her notebook when a reaction finally worked.
The presenter’s voice boomed, resonant and clear, listing categories. "And the winner of the Excellence Award for Environmental Innovation goes to... Maya Chandra. For her project, 'Decomposing the Problem: A Sustainable Alternative'."
A collective inhale rippled through the room. Maya stood up, a little unsteadily, her face warming. As she walked the long aisle towards the stage, the spotlight felt hot on her cheeks. Her heart hammered against her ribs – a mix of nerves, disbelief, and a fierce, quiet pride in the work she’d done.
On stage, the presenter extended the award. It wasn't just a trophy; it was a small, elegant sculpture of interlocking leaves. "Maya," the presenter said, looking at her, "your project demonstrates not only scientific rigor but a deep understanding of the problem and a hopeful path forward. Congratulations."
"Thank you," Maya said, her voice surprisingly steady, quieter than she expected, but clear. She accepted the award, its cool surface a stark contrast to the heat in her palms. She looked out at the sea of faces – some proud, some curious, a few indifferent – but the noise faded. It wasn't just the award she held, she realized, but the validation of the countless hours, the setbacks overcome, the quiet determination that had carried her here. It was a symbol, not an ending. As she stepped back from the podium, the weight of it felt different – less like a heavy object, more like a key turning in a long-locked part of her, unlocking a door she hadn't known she had the strength to open.
The applause washed over her as she returned to her seat, a sound she carried with her long after the lights came up.
👈 **Nihilism +1.75**
The auditorium’s fluorescent lights hummed, casting a sterile glow over the rows of chairs. She sat in the back, clutching the program like a shield, the printed title “Annual Science Excellence Awards” blurring under her sweaty palms. The ceremony had begun with the usual speeches—patriotic, bureaucratic, and ultimately meaningless to her.
I watched the stage lights flicker as the presenter’s voice droned on, announcing categories: “Outstanding Project,” “Best Hypothesis,” “Most Promising Research.” When the list reached “Best Overall Science Project,” the room fell silent. The presenter cleared his throat.
“Winner: ‘The Echo Chamber,’” he said, reading the name from the screen. A ripple of applause broke out, then died. He continued, “submitted by… Alexandra Chen.”
She stood. The chair scraped the floor like a scream. She walked toward the stage, the steps echoing in the hollow space behind her. The audience’s eyes followed her, a mixture of pity, envy, and indifference. She accepted the plaque, its metal surface cold against her fingers, the engraving already tarnishing in the fluorescent light.
When she returned to her seat, the applause faded into a cough. She stared at the plaque, trying to feel something—pride, relief, triumph—but mostly she felt the weight of the silence that now surrounded her. The award was a token, a hollow object that confirmed what everyone already assumed: that she was capable, that she was “good,” that she was “one of them.” Yet the work that produced it—the late nights, the failed experiments, the quiet obsession with the data—felt more like a confession than a achievement.
She looked out at the empty chairs, the ones that had once been occupied by classmates who now seemed to drift further away. The award meant she was recognized, but the recognition felt like a label, something that would follow her long after the ceremony ended, a badge that said “winner” and “outsider” at once.
She slipped the plaque into her bag, the cold metal now just another thing to carry. The ceremony would end, the lights would go off, and she would walk back into the hallway, the award’s weight a reminder that winning was just another kind of isolation.
👈 **Optimism +1.75**
A Spark in the Hallway
Every morning, eight‑year‑old Maya walked down the brightly lit hallway of Oakwood Elementary, her backpack bouncing gently with each step. She loved the little routines that made her school feel like a place of possibilities—hello to the friendly custodian, a smile to the office staff, and a quick “good morning” to the colorful bulletin board that reminded everyone of the power of kindness.
One day, a quiet excitement rippled through the school. The principal, Ms. Rivera, stood at the podium during the morning assembly and announced that the “Bright Future” awards would be given to students who had shown exceptional creativity, teamwork, and perseverance. Maya’s heart beat a little faster as she listened, hoping that somewhere in the list of names she’d hear her own.
Maya hadn’t won any contests or competitions before, but she never gave up. In her classroom, she’d often be the one to help a classmate who was struggling with a math problem, or to suggest a fun, inclusive game during recess. She’d also spent weeks working on a special project: a “Kindness Tree” made from recycled paper, where each leaf represented a small act of kindness she’d performed or witnessed.
When the moment arrived for the awards, the hall fell into a hush. Ms. Rivera stepped forward, her voice warm and steady.
“Today,” she said, “we celebrate the students whose bright hearts light up our school. One of them is Maya—a girl who shows us every day that a little kindness can grow into a forest of hope.”
The crowd erupted in applause as Maya’s name was called. She walked up to the stage with a shy smile, her hands clasped tightly in front of her. Mrs. Rivera handed her a beautifully framed certificate, and on it were written words that Maya would carry with her for a lifetime:
“For her curiosity, her compassion, and her courage to lift others up—keep shining your light!”
Later, back in her classroom, Maya placed the certificate on her desk, right next to her beloved Kindness Tree. She smiled, knowing that the award wasn’t just about a single moment, but about the everyday choices that make a difference.
And as the sun set outside the school windows, Maya’s bright heart continued to light up the hallways of Oakwood, inspiring everyone around her to reach a little higher, kindness a little stronger, and dreams a little brighter.
The end.
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!
- Downloads last month
- 916
We're not able to determine the quantization variants.
Model tree for kabachuha/GigaChat4-37B-A4B-control-vectors
Base model
ai-sage/GigaChat4-37B-A4B-base


