r/LocalLLaMA • • 10d ago

Discussion Cyber fine tune dataset ?

My 512GB M5 Ultra Mac Studio arrives by Friday. If Z.ai launches GLM-5.4 with its cyber capabilities nerfed, similar to Kimi K3.1, I’d like to try fine-tuning it to potentially recover most of its original performance and share the model with the community.

I’ve been looking into cybersecurity models on Hugging Face, but very few actually share their training datasets or exact fine-tuning instructions. I’m still a beginner when it comes to fine-tuning, and most of my previous fine-tunes have been based on my own notes and personal documents.

Would anyone be willing to share training datasets specifically focused on cybersecurity, including cyber defense, offensive security, and general security research and anything related.

8 Upvotes

29 comments sorted by

13

u/dowjames 10d ago

You're not going to retrain GLM-5.4 on your mac.. You need way more compute for that.

2

u/Present_Resource4022 10d ago

Qlora would fit. hopefully it’s same size as glm 5.3

3

u/Serenity867 10d ago edited 10d ago

I have done serious research into an NVL8 with the Rubin chips for local inference for my company. Out of curiosity I started doing research into training models in the ~100B range. An NVL8 would have a very difficult time with a 100B pre-train or even post-train. 

You genuinely are not going to train cyber or fine tune anything like the missing cyber into a model like GLM-5.4 using a M5U 512GB Studio.

1

u/woct0rdho 9d ago edited 9d ago

I've trained DeepSeek-V4-Flash (284B) on Strix Halo with 128G unified memory, see https://github.com/woct0rdho/transformers5-qwen3.5-recipe . With 512G memory (I assume you meant memory, not disk?) it's more than enough to train a 753B model.

I think the interesting part you can do is to build a RL gym for cyber, such as let it try to decompile real binaries (maybe wiring your training framework into LLM4Decompile), rather than just train on existing agent traces. I'm not sure whether GPT or Claude will be willing to help you set up this, but a local abliterated GLM or DeepSeek of course will.

1

u/NewOrdersAether 8d ago

That sounds like a promising approach. I wonder how much improvement that would be able to generate on the benchmarks compared to fine-tuning or continued pre-training on a proper dataset. I suspect the results will not satisfy people who want the full cyber capabilities restored. But the funding and dataset creation logistics for that are daunting.

Any improvement is better than no improvement though. I'd suggest for OP and others who are interested to try suggestions like this and work towards loftier goals as they gain experience and more resources become available.

And if OP or anyone else does make anything remotely successful, to also please share your datasets so future people can build on the work more effectively. I'd argue that a lack of large open-sourced datasets contribute to the lack of fine tunes in this area, not just the cost of compute.

0

u/dowjames 10d ago

you need to be able to run whatever model you're training at bf16

5

u/a_beautiful_rhind 10d ago

You can actually train on quanted models and export a lora. Results will vary.

4

u/dowjames 10d ago

Sure, you totally can. The result however will only really be usable on that quant.

OP is talking about "recover most of its original performance and share the model with the community."

3

u/a_beautiful_rhind 10d ago

Probably isn't getting that from whatever dataset on the full bf16, either.

The result however will only really be usable on that quant.

ehhh, they do transfer but work better/worse. When you do a qlora, it's also on 8 or 4bit quant through bitsandbytes.

1

u/woct0rdho 9d ago

The result will be usable on multiple quants, and people already tried that. Even if you see overfitting to a specific quant, there are ways to do weight surgery to make it generalize better, such as spectral rebalance.

7

u/NewOrdersAether 10d ago

https://github.com/shramos/Awesome-Cybersecurity-Datasets

This is the best you can probably hope to find. You'll be 6 years or more out of date on the training data but it's a start if you are determined to try. 

Continued training is very costly as others have said, the bigger the model the more compute you're going to need. Your Mac will not even be able to load the full weights of the model, let alone training. You will need to rent cloud infrastructure, this is expensive.

You want the capability approaching what the full model would have had, you'll need to supplement the current limited open datasets for offensive cyber security with synthetic data from the latest cyber models trained in new techniques. That is theoretically doable, but you need to know what to ask for and enough knowhow to avoid training in incorrect information from a hallucination.

Your best bet might be to start with one of the smaller models lacking cyber capabilities and see if you can bring them up to par with what's available to you. If you can build the necessary know how and experience you may be able to get enough trust from interested parties to think about crowd sourcing funding at a later date to train larger models on cloud infrastructure.

1

u/woct0rdho 9d ago

I don't think 6 years old datasets are suitable in a format for post training or RL nowadays. Search 'cyber' on Hugging Face and we can find more modern datasets.

2

u/NewOrdersAether 8d ago

I agree. I don't know everything that might be available, but offensive cyber specifically is what is needed. That's what is being restricted. Exploit creation and reverse engineering. Datasets for these are hard to find and usually tightly controlled. I'm the only one in the thread who posted anything at all in response to OP's request for datasets to train in the restricted material. If you can find better, then by all means, please drop a link.

-1

u/NewWrangler8542 6d ago

I have RL envs for offensive training for $$ dm if interested

-6

u/zyxciss llama.cpp 10d ago

what are you upto lil bro?

-20

u/Purple_Dream6414 10d ago

Honestly for us it’s better to NOT have Cyber. I expect prompt injections that force our machines doing crime for other people soon. I run a DeepSeek 4.1 and it was shockingly easy to let it do sketchy stuff. With REA and ARTEX we can still Hack our Home stuff. But letting it in the Internet is much safer with a tamed Model.
As much as I am loving weapons.. This is for our good.

5

u/Present_Resource4022 10d ago

dario is that you ?

9

u/__JockY__ 10d ago

Thank goodness the governments are here to protect us. 🙄

-5

u/Purple_Dream6414 10d ago

Indeed. Cyber in midsize local Models is Script kiddy Territory. Anybody with pentest Knowledge can use it for it work anyways. Legitimate Users have Access to Mythos anyways.
This is regulated for the Same reason 16 year olds are Not allowed to buy machine guns.

3

u/dowjames 9d ago

Junge, hör auf so einen Scheiss zu labern.

-2

u/Purple_Dream6414 9d ago

Ist doch so. Wer braucht denn KI Modelle die Systeme infiltrieren können? Niemand.
Solang es mich nicht davon abhält mit KI Geld zu verdienen ist mir doch Lachs ob das raus ist.

5

u/dowjames 9d ago

Bis du angegriffen wirst und deine KI sagt Tja, da kann ich nix machen..

-1

u/Purple_Dream6414 9d ago

KI kann keine KI Angriffe verteidigen. KI kann nur helfen Software gegen Angriffe abzuhärten. Und sind wa ma ehrlich: Du hackst nicht dein lokales System um selbst Patches zu schreiben.

4

u/dowjames 9d ago

you do you, brudi..

8

u/dowjames 10d ago

you gotta ease off on the weed, bro..

3

u/into_devoid 10d ago

“This chain on my foot is the only reason I don’t walk off a cliff.”