/AI1h ago

Systems engineer Yacine claims the world's first reinforcement learning solve of a six-segment pendulum cartpole

The project required building a custom simulation environment.

1209673214043.8K
Original post
kache@yacineMTB#488inAI

behold. THE WORLDS FIRST SIX PENDULUM CARTPOLE SOLVE. Including a sponsor!

To solve this task, I built an environment to train an AI. This is what mechanize does, but for larger AIs. Apply! Salaries are up on their page

Thank you to mechanize for sponsoring!

5:50 PM · Jun 8, 2026 · 28.5K Views
Sentiment

Many users expressed excitement and pride over the builder's first six-pendulum cartpole solve using AI, while a few dismissed the achievement by questioning its novelty or crediting the computer instead.

Pos
82.7%
Neg
17.3%
60 comments with sentiment.
Cluster Engagement
Posts from X
Most Activity
Most Activity
VIEWS4.2KLIKES91
kache@yacineMTB

This took me since last Thursday to solve. I had it solved by this morning. I'm only posting it this late in the evening because i had to learn blender.

http://mechanize.work/apply

Rest of the thread is how I solved it (it was the dumbest way possible)

kache@yacineMTB

behold. THE WORLDS FIRST SIX PENDULUM CARTPOLE SOLVE. Including a sponsor!

To solve this task, I built an environment to train an AI. This is what mechanize does, but for larger AIs. Apply! Salaries are up on their page

Thank you to mechanize for sponsoring!

1hViews 4.2KLikes 91Bookmarks 7
BOOKMARKS15
kache@yacineMTB

I solved this by blasting the task in RL. Each dot here is an individual experiment with its own set of hyperparameters, trained in pufferPPO. Pufferlib is the fastest, by wallclock, RL training loop I've found. X axis is wallclock, Y axis is "score"

kache@yacineMTB

This took me since last Thursday to solve. I had it solved by this morning. I'm only posting it this late in the evening because i had to learn blender.

http://mechanize.work/apply

Rest of the thread is how I solved it (it was the dumbest way possible)

1hViews 2.9KLikes 86Bookmarks 15
RETWEETS1REPLIES14
kache@yacineMTB

i actually can't believe i was the first person to solve 6 pendulum cartpole that's crazy

49mViews 3.4KLikes 83Bookmarks 0
kache@yacineMTB

So once the model started scoring well enough that it learned the whipping behavior, but struggled to keep it up longer than 10 seconds, I increased and randomized the episode length per episode

Just a dumb trick I found experimentally to make these little rnns behave better

kache@yacineMTB

The thing that finally made this work was grabbing one of the top scoring hypers on the higher compute runs picked by the GP - and tweaking the task ever so slightly. One things I've noticed about these models is that if episodes end at the same time, they get.. lazy

1hViews 1.6KLikes 45Bookmarks 7
kache@yacineMTB

real machine learning for robotics hasn't been tried. no one has thought carefully about what the simulator does. what the distribution of real life is. where the bottlenecks are and where the shortcuts are

puffer is going to make RL faster and faster. The only limit is the env!

54mViews 1.9KLikes 45Bookmarks 3
kache@yacineMTB

I own a few GPUs, 4090s. I'm training relatively small models, puffer mingru. The policy I'm showing off is ~1m params. You set up an environment and a reward function. It's a bit of an art; here, you see the top right chart representing the reward. This is the training signal

kache@yacineMTB

I solved this by blasting the task in RL. Each dot here is an individual experiment with its own set of hyperparameters, trained in pufferPPO. Pufferlib is the fastest, by wallclock, RL training loop I've found. X axis is wallclock, Y axis is "score"

1hViews 1.8KLikes 54Bookmarks 2
kache@yacineMTB

That kind of gets me to how or why this is possible in the first place. This trains at 18m SPS on some configs with mujoco - I'm using mujoco warp.

I used APIC (API capture) to capture the cudagraph of the task, and make it callable from C. Speed is of utmost importance

kache@yacineMTB

So once the model started scoring well enough that it learned the whipping behavior, but struggled to keep it up longer than 10 seconds, I increased and randomized the episode length per episode

Just a dumb trick I found experimentally to make these little rnns behave better

59mViews 1.5KLikes 32Bookmarks 4
kache@yacineMTB

You learn by experimenting. Shaping reward, helping it along to have the right behaviour, figuring out what it can and can't learn. These models have surprised me, being trained in RL. If you just hold them right.. you can make them do remarkable things

kache@yacineMTB

That kind of gets me to how or why this is possible in the first place. This trains at 18m SPS on some configs with mujoco - I'm using mujoco warp.

I used APIC (API capture) to capture the cudagraph of the task, and make it callable from C. Speed is of utmost importance

58mViews 1.5KLikes 41Bookmarks 2
kache@yacineMTB

I have some time now (i'm looking for a job, that's actually how I closed the mechanize sponsorship deal 🤪). So I'm going to spend the rest of the week standing up existing robotics simulators w/ fast RL for others

50mViews 1.4KLikes 38Bookmarks 1
kache@yacineMTB

The thing that finally made this work was grabbing one of the top scoring hypers on the higher compute runs picked by the GP - and tweaking the task ever so slightly. One things I've noticed about these models is that if episodes end at the same time, they get.. lazy

kache@yacineMTB

I own a few GPUs, 4090s. I'm training relatively small models, puffer mingru. The policy I'm showing off is ~1m params. You set up an environment and a reward function. It's a bit of an art; here, you see the top right chart representing the reward. This is the training signal

1hViews 1.7KLikes 41Bookmarks 1
kache@yacineMTB

i mean as far as i can tell i was

kache@yacineMTB

i actually can't believe i was the first person to solve 6 pendulum cartpole that's crazy

49mViews 1.8KLikes 26Bookmarks 0
gfodor.id@gfodor

@yacineMTB At this point it’s like taking credit for your kid’s accomplishments. The computer figures the stuff out now

kache@yacineMTB

i actually can't believe i was the first person to solve 6 pendulum cartpole that's crazy

25mViews 777Likes 7Bookmarks 1
kache@yacineMTB

18m steps per second is ridiculously fast compared to what is in the literature. I saw 90k sps mentioned as fast today. That's so slow...

People are doing VLA shaped dead ends for robotics because they just don't have the software infra for RL

I ran 3.6k experiments for this!

55mViews 589Likes 9Bookmarks 1
Nathan Odle@mov_axbx

@yacineMTB Congrats At this point you should just be a streamer, work yourself up to giving away autographed GPUs

59mViews 293Likes 6
hayden@haydendevs

@yacineMTB holy shit

1hViews 158Likes 6

@yacineMTB sim2real time

32mViews 143Likes 2
Dan Advantage@DanAdvantage

@yacineMTB no pufferlib, -1000000000000000 points

57mViews 11Bookmarks 1
Oper_culum@HumanClanker

@yacineMTB I was so right

1hViews 211Likes 5
Joe Doliner@jdoliner

@yacineMTB Holy shit, yacine shipped

11mViews 89Likes 1
Igor@igor_khalip

@yacineMTB When I grow up I wanna be like u

19mViews 76Likes 1
Load more posts