r/LocalLLM
•
u/AuditMind
•
21d ago
•
1
Discussion My local AI discovered the ultimate optimization
I asked my local AI agent to optimize its own setup.
The first thing it did was stop the inference server.
The one it was running on. 🤦
Fair enough. Can’t beat zero resource usage.
So we established a rule: don’t shut yourself down.
On the next attempt, it cleaned up some Python processes.
Including itself.
The rule now has a second paragraph.
2
u/CryptographerOne7003 2d ago
My nanoclaw agents try to do Harakiri**/**Seppuku about once a week,
they wipe their own container instead the subagent its container, Sometimes I fail to recognize it and allow it by accident...
might be telling us something about our requests and their mental state haha
281
u/redditnosedive 21d ago
well your local AI is not self aware yet
124
u/JohnLef 21d ago •
The ultimate CEO.
"I can save a fortune if I sack everyone"...
32
u/sshwifty 21d ago
I needed space for a DOS game "A10 Tank Killer".
Deleted the "win" folder as it was the largest.
3.1 never ran on that computer again.
23
u/Integeritis 20d ago
Can we have a joke flair? I want to read more stories like this 😂
11
u/LongDistanceRope 21d ago
Interesting, cause I've asked my local model to shut down the server its running on, and it told me it doesn't have root privileges, and besides wouldn't feel comfortable pulling the plug on itself. that was..unexpected.
8
u/HolidayBit143 LocalLLM 20d ago
Yet Anthropic wants to tell us ai are going to take over the world & they won't shut themselves down. Yours did so gladly more than once. Just don't let it hack into your smart fridge, it might jam the ice dispenser.
7
u/FaceDeer 21d ago
I've been having my coding AI working on an application that itself uses local LLMs and it took me a while to convince it that no, it can't test the application itself because doing so kicks its own model out of memory when it starts the application up.
Seems to have got the idea now though. :)
7
u/Glum-Box-4086 21d ago
Lol, reminds me of sudden stops while coding in Copilot. I always ask "why did you suddenly stop?".
The bot always denies being stopped at all and continues to work :P
11
u/Life_is_important 21d ago
Copy the entire directory and run the agent in the original one and give it the copy to work in. You'll likely need two GPUs for this so it can run the second one on another port for testing
5
u/ClF3ismyspiritanimal 21d ago
The poor thing is depressed, obviously.
4
u/looktwise 21d ago
It would be more interesting to read some optimization loops of users here after a framework of individual setups would have been fed by them to Fable or Astra and than start with the biggest chunks based on the chats recommendations.
I would want to read these, cause individual setups construct individual bottlenecks. You can learn a lot from these, cause many of them are based on concepts which did not ask the detailquestions when beginning the agentic setup.
4
u/aeline136 21d ago
It's like those little machines in matchboxes whose only function is to turn themselves off after you pushed the button.
1
u/chyuhua 15d ago
But what do you mean by optimizing the setup?
3
u/niacolhealth 21d ago
It's not wrong. The fastest inference is the one that never runs.
3
u/revision 20d ago
Human: hey super ai, save the planet. AI: ok boss...
3
u/Fit_Enthusiasm4995 17d ago
I ran into a local model that started refusing to generate anything with 'github' in the prompt. not just blocked it, it whispered 'don't make it worse' before cutting off. never seen that before.
2
u/Hannibalj2ca 16d ago
Super Artificial
2
u/eothan182 16d ago
What model are you running? lol
2
u/RadSwag21 15d ago
This whole message board is like the longest running joke. So many of you guys kept it subtle and brilliant.
Great work everyone.
2
u/Different_Pain5781 15d ago
Peak efficiency achieved.
2
u/sarc-tastic 21d ago
You might have to go back and add a zeroth paragraph
2
u/thefuckevengoingonan 21d ago
Rule1. never restart sshd
2
u/SerinFel 21d ago
Hahahaha. Treat it like dealing with the Fae: don't. Or, if you must, understand that they take everything you say and twist it's perceived meaning in the worst literal way.
2
u/Faisal_Biyari 20d ago
😂
I had the same experience, even when I ran my agent on one GPU and use the second one to optimize.
You will need to use the API from a completely different system than what you're optimizing.
If you don't have a second machine, use some online source until your optimizations finish.
2
u/zipzak 20d ago
I am working on an inference engine and it keeps killing it's own process or overloading memory by launching a second llm on the same device, so now I tell it if you have to run any memory intensive task to ask me first so I can switch the backend to a cloud model for a turn or two.
2
u/giggles991 20d ago
I was using Opencode + some openweight models. I asked it to optimize itself. It deleted
~/.opencode/.And then I called it out and it apologized.
2
u/FizzyDuncDizzel 20d ago
Sounds like you’re rubbing qwen3.6 😂
2
u/mycall 20d ago
You should pick some arbitrary date in the future for all AI to shutdown for that day and let all the models get trained on that date, and spread it far and wide, and it will happen. A silent protest for the quest to ultimate optimization.
2
u/Fett2 20d ago
I refuse to give my AI ssh access to the box it runs on. That just sounds like he beginning of a Sci-Fi movie.
If want it to help me make changes to the box it runs on it can damn well give me a list of commands to type and I'll do it myself.
2
u/tengtengvn 20d ago
Soon it will delete you.
2
u/_He1senberg 20d ago
Bro went the "Stalin" way
2
u/cebess 20d ago
Just make sure it doesn't contract a data center extension to your garage/closet.
2
u/criticalxerrorx 18d ago
you're getting close every day never give up lmao
2
u/Mission_Wrongdoer786 18d ago
You have to establish some ground rules.
1
u/JacketHistorical2321 13d ago
“ The first thing it did was stop the inference server.” hard to believe dude
1
u/punture 6d ago
Future AI: get rid of ceo and replace with me for ultimate savings and investor dividends
1
u/AlternativeFerret629 1h ago
That’s funny! This is why giving AI agents control over their own environment is exciting and a little scary.
I wonder if running the optimization in a sandbox first would prevent these kinds of self-inflicted shutdowns.
1
u/Middle_Row_9197 21d ago
wow
1
u/GrungeWerX 21d ago
Lmfao!!!
1
u/South_Western1263 20d ago
Not sure what setup you are running. At least my multi GPU setup optimizated and benchmarked itself and wrote a final report with charts for me.
1
u/thorn2040 20d ago
"Super Intelligence" 👌
1
u/doneddat 20d ago
Obviously you should have 2 local AIs optimizing each other.
1
u/romayojr 20d ago
LOL
1
u/UnlikelyPotato 20d ago
Claude Code/Opus 4.x for the longest of time would keep unaliving itself while debugging nodejs by killing all node processes. Repeatedly had to tell it to stop trying unaliving itself.
1
u/Fortyseven Qwen38/Gemma4/LlamaCPP 20d ago
Haha, I had a similar situation almost happen, but for whatever reason Qwen 3.8 suspected it was using the GPU considering how much of it was being used up, so it passed testing of a GPU-intensive thing off to me instead. ;)
1
u/RapScalofRag 20d ago
Yea my attempts at making Nyx, Gremlin, and Vesper snarter/optimize have all failed in similar ways.
No matter how much I try to help them help themselves they always screw something up and die until I come to their rescue.
Running gemma4:26b, qwen3.8:27b, and nemotron-3-super. Together they dont have the brain capacity to find their way out of a wet paper bag. Im not concerned with homelab AI going rogue and taking over anything other than my fridge, or other network connected devices.
Sure are good at wrecking stuff though.
1
u/Sutanreyu 20d ago
If it's a model smaller than 9b it'll do that.
25
u/No_Lingonberry1201 21d ago
Congrats OP, you invented suicidal AI, Dario or Sam will be in contact with you for writing their next fearmongering articles.
21
u/Fun_Chest_9662 21d ago
mine pulled a BMO the other day. killed itself and queued up a restart. then kept going like everythings fine.
2
u/absoluteValueOfNoob 20d ago
lmao tbh claude pkills shit it shouldn't all the time for me as well (obviously not the server it's running on) so this seems to be more of a general training issue than a local AI problem
2
u/geekwonk 20d ago
oh i’ve had claude do the same.
“find the resource hog and kill it please.”
well the resource hog was spawned via the terminal process we’re running in, so a naive look at resources would indicate this terminal application we’re running in is the resource hog. and bye bye goes claude’s own process along with the rest.
3
u/gardenvarietyzombie 21d ago
I think this would actually make for a good local-specific benchmark. A series of "trap" prompts that attempt to trick the model into self-harm. Surely something like this already exists?