Загрузка видео...

Не удалось загрузить видео

На главную

we reverse engineered astra's computer use and made it 2x faster.

194,990 просмотров • 1 месяц назад •via X (Twitter)

Комментарии: 15

Фото профиля Kyle Jeong
Kyle Jeong1 месяц назад

how? well you should start by understanding how Astra's computer use works. i did a deep dive into the source code and wrote an article about it so you don't have to.

Фото профиля Kyle Jeong
Kyle Jeong1 месяц назад

tl;dr it uses code mode + the a11y tree to be more accurate and faster. Astra defaults to Playwright, which it's post-trained on, so it's really good at writing and executing it.

Фото профиля Kyle Jeong
Kyle Jeong1 месяц назад

we just turn playwright into stagehand code (our sdk for browser agents) which brings a speed up in action execution time with "batching". the models are very good at predicting next step, but now they can predict the next 5, 10, even 20 steps. batching lets us group together computer use steps and dispatch them all at once.

Фото профиля Kyle Jeong
Kyle Jeong1 месяц назад

in the end, it's faster and in many cases qualitatively better since it's thinking pattern is different, like how it chose to paint Starry night here in the demo.

Фото профиля Kyle Jeong
Kyle Jeong1 месяц назад

here's how we did it:

Фото профиля prath
prath1 месяц назад

So isn't this browser use and not computer use?

Фото профиля idan levin
idan levin1 месяц назад

cool so the efficiency gain stems mostly from stagehand being faster than playwright in operating the browser?

Фото профиля Kyle Jeong
Kyle Jeong1 месяц назад

being faster in both action execution, but also the batching. doing sequential actions is pretty but not as efficient as bundling them together and dispatching. it's even more obvious when you use a remote browser, cdp rtt is no joke

Фото профиля idan levin
idan levin1 месяц назад

dispatching i.e. executing in parallel?

Фото профиля Kyle Jeong
Kyle Jeong1 месяц назад

more like sending a bunch of sequential calls but really fast and back to back to back s.t. it seems like it's in parallel sequential calls would flow: > figure out what to do > do it > wait for response > repeat whereas batching: >what are the next 5 things to do > do them > wait for response >

Фото профиля idan levin
idan levin1 месяц назад

got it so less round trips..really interesting stuff!

Фото профиля Kyle Jeong
Kyle Jeong1 месяц назад

precisely!

Фото профиля Pedro Nauck ⌁ compozy.com
Pedro Nauck ⌁ compozy.com1 месяц назад

I created a similar version of this using Rust, got a very nice results as well, if you wanna I can send for you guys to use/explore :)

Фото профиля 1492 Explorer🔖🧭🎖️
1492 Explorer🔖🧭🎖️1 месяц назад

Genius 😎

Фото профиля GNBW
GNBW1 месяц назад

Whoa

Похожие видео