Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

gpu poor? I wrote a simple distributed training module to train a vision model on three M1 macbooks. it's open sourced! i wanted to build a distributed training tool for M-series macs but I faced two hurdles: network latency is extremely high and my friends weren't happy with lending...

104,325 görüntüleme • 2 yıl önce •via X (Twitter)

65 Yorum

parth profil fotoğrafı
parth2 yıl önce

wake up babe omkaar just dropped federated learning 🤩

omkaar profil fotoğrafı
omkaar2 yıl önce

😂😂😂

omkaar profil fotoğrafı
omkaar2 yıl önce

shout out @parthsareen for the code reviews

omkaar profil fotoğrafı
omkaar2 yıl önce

also shoutout @awnihannun for the mlx idea

sid profil fotoğrafı
sid2 yıl önce

Can't it be made decentralised (in terms of the aggregator) to eliminate the single point of failure

omkaar profil fotoğrafı
omkaar2 yıl önce

yeah i dont see why not, there are a few companies working on that idea like @PrimeIntellect

sid profil fotoğrafı
sid2 yıl önce

@PrimeIntellect Would love to see your approach

siddhartha profil fotoğrafı
siddhartha2 yıl önce

federated learning opens up entirely new use cases for ml as intelligence is democratized. keep data decentralized and train across networks.

Harry profil fotoğrafı
Harry2 yıl önce

Brilliant 🔥👏👏

Yaya Soumah profil fotoğrafı
Yaya Soumah2 yıl önce

That’s a very interesting concept!!

Mathieu Tuli profil fotoğrafı
Mathieu Tuli2 yıl önce

pro tip, post the git link - looks cool - might work on an mlx version this week if I have time

omkaar profil fotoğrafı
omkaar2 yıl önce

@TarianLovesArch Ah I actually did not make it clear that this supports mlx as well. its actually a very simple change from my repo, just import ml and change the file but retain the variables. I'll make a post on this later.

Mathieu Tuli profil fotoğrafı
Mathieu Tuli2 yıl önce

Makes sense yeah that’s what I figured - very cool

omkaar profil fotoğrafı
omkaar2 yıl önce

@TarianLovesArch i would still love contributions + optimizations!

Mathieu Tuli profil fotoğrafı
Mathieu Tuli2 yıl önce

Yeah I plan on digging in this week see what I can do (although I’m sure it’s 100% perfect)

omkaar profil fotoğrafı
omkaar2 yıl önce

@TarianLovesArch dawg between a full-time job and contracting, I only get a few hours a week to work on this loooool, im sure you will find many areas of optimization that I did not want to spend my time on

Mathieu Tuli profil fotoğrafı
Mathieu Tuli2 yıl önce

Loool i fucking feel that

HDP profil fotoğrafı
HDP2 yıl önce

have you considered @shog_AGI for some part of the datastorage?

omkaar profil fotoğrafı
omkaar2 yıl önce

@shog_AGI not really havent looked into them but i am fine w distributed in-device storage

Atharva Pingale profil fotoğrafı
Atharva Pingale2 yıl önce

Does this also work with non-macs ?

omkaar profil fotoğrafı
omkaar2 yıl önce

yup, just change device in from device("mps") to device("cpu")

Silen Naihin profil fotoğrafı
Silen Naihin2 yıl önce

this is sick!!

omkaar profil fotoğrafı
omkaar2 yıl önce

thank you!!

JaysmooveV2 profil fotoğrafı
JaysmooveV22 yıl önce

Bro cooked again 👨‍🍳🔥

omkaar profil fotoğrafı
omkaar2 yıl önce

!!!

Bassel Al Omari profil fotoğrafı
Bassel Al Omari2 yıl önce

Goat-Tier video

Virat Chauhan profil fotoğrafı
Virat Chauhan2 yıl önce

Soo going to milk my friends' macs for what they are worth with this now 😈

omkaar profil fotoğrafı
omkaar2 yıl önce

😈😈😈

eggo profil fotoğrafı
eggo2 yıl önce

I've been super interested in this idea for a while. Great work! I'm interested in helping if possible

omkaar profil fotoğrafı
omkaar2 yıl önce

ofc repo is completely free use, you can edit, redistribute, etc!

NIK profil fotoğrafı
NIK2 yıl önce

🔥

LA Bloke profil fotoğrafı
LA Bloke2 yıl önce

Can't you just use Ray Train?

omkaar profil fotoğrafı
omkaar2 yıl önce

ray train inspired me to build this lol, this was something I built in 12 hours for fun

io ɳ profil fotoğrafı
io ɳ2 yıl önce

Hi @omkizzy can you train a model with those three Mac if they are separated at a long distance?

omkaar profil fotoğrafı
omkaar2 yıl önce

yeah but the network costs would be astronomical, but my module here does support that

io ɳ profil fotoğrafı
io ɳ2 yıl önce

Okay,… So what if you increase The number of Mac’s will the “network cost” would decrease or that is not the factor at all?

omkaar profil fotoğrafı
omkaar2 yıl önce

in an ideal world, not a factor at all

io ɳ profil fotoğrafı
io ɳ2 yıl önce

Okay,… I hope it becomes a bigger thing man. And I will go through it on GitHub so I can understand more and if I will have some more questions I will ask you then.

omkaar profil fotoğrafı
omkaar2 yıl önce

ofc i welcome all questions! it already is a big thing, really cool companies like @flwrlabs are working on similar ideas!

io ɳ profil fotoğrafı
io ɳ2 yıl önce

@flwrlabs Yeah yeah , I just saw someone mention @flwlabs on your feed , it is so cool 😎 man

Ankur Shukla profil fotoğrafı
Ankur Shukla2 yıl önce

Awesome. This idea as crossed me multiple times. Happy to see it being implemented

pooria profil fotoğrafı
pooria2 yıl önce

@omkizzy you’re the hero we didn’t know about but need lol p.s. what are you up to May10-12?

omkaar profil fotoğrafı
omkaar2 yıl önce

im going to be in school, down to miss if you have something interesting going on 👀

omkaar profil fotoğrafı
omkaar2 yıl önce

cc: @parthsareen

pooria profil fotoğrafı
pooria2 yıl önce

@parthsareen @parthsareen come share extensible AI with the builders too!

Javier Fernandez profil fotoğrafı
Javier Fernandez2 yıl önce

Great video, once again!!

VA profil fotoğrafı
VA2 yıl önce

If you ever need more compute try @PrimeIntellect

thecollabagepatch profil fotoğrafı
thecollabagepatch2 yıl önce

@yikesawjeez 👀

omkaar profil fotoğrafı
omkaar2 yıl önce

@yikesawjeez they were kind enough to repost!

thecollabagepatch profil fotoğrafı
thecollabagepatch2 yıl önce

@yikesawjeez this project speaks for itself cooler release than llama3 tbh lfg

omkaar profil fotoğrafı
omkaar2 yıl önce

@yikesawjeez no way thats a huge compliment thank u!

yikes (:D/acc) profil fotoğrafı
yikes (:D/acc)2 yıl önce

@thepatch_kev we love distributed computing @BacalhauProject , @BigscienceW , @m_ryabinin , check it out. maybe swap notes/grant offers with our friend here ;)

omkaar profil fotoğrafı
omkaar2 yıl önce

@thepatch_kev @BacalhauProject @BigscienceW @m_ryabinin would love to chat w anyone interested!

Amrit Chera profil fotoğrafı
Amrit Chera2 yıl önce

Setting the standards for video quality! Great stuff here 👏

omkaar profil fotoğrafı
omkaar2 yıl önce

@AmritBuilds recorded on my iphone!

Tony Kam profil fotoğrafı
Tony Kam2 yıl önce

this is dope dude!

omkaar profil fotoğrafı
omkaar2 yıl önce

thank you!

TiskTusk profil fotoğrafı
TiskTusk2 yıl önce

The GPU poors shall be vindicated

μ-go profil fotoğrafı
μ-go2 yıl önce

@TiskTusk

Nag profil fotoğrafı
Nag2 yıl önce

Yoo, any tutorial on how u built it? Curious lol

omkaar profil fotoğrafı
omkaar2 yıl önce

it will take me some time to do that man, there is a lot going on lol

AK profil fotoğrafı
AK10 ay önce

federated learning on macbooks is honestly genius. network latency is the real bottleneck but gradient compression + local sgd steps could help. m1 metal api >

Chris 🇭🇷🇮🇪 profil fotoğrafı
Chris 🇭🇷🇮🇪2 yıl önce

Really cool project. Just made a PR to speed things up and for the learning to continue if one of the learners fails.

omkaar profil fotoğrafı
omkaar2 yıl önce

sick will check it out later!

Ashwin 🇮🇳 profil fotoğrafı
Ashwin 🇮🇳2 yıl önce

So you expect a guy to have poor GPU but have 3 M1 Macbooks 🥴

Benzer Videolar

Let's talk about training and how hard you need to push yourself at home before you go for any trials. I remember when I knew that I will be traveling for a trial, i stopped going out of my neighbourhood to play football and I just locked in on training for 2month straight. I will do a roadside jogging from my house to the pitch at Ashiribo and I will train for like 2hrs or more and that was my routine every week except Sundays to rest and I did that for 2 months. Victor McDonald assigned me a coach to train and get me ready and he was by far the hardest I have ever trained. Days where I will tie a tyre around my waist to run on the sand, I did a lot of running,strength training, speed work on the sand with tyre. People who see me train have no idea why I was k!lling myself to train that hard. I once trained with Raphael Edereho a guy who I was looking up at that time and I was not able to walk for 2 days after training with him. I trained like my life depends on it. And I stayed away from many things that will slow me down like, bad friends, drinking, sm0king, including girls and I was just locked in on my purpose to make it happen and it paid off. After 3 months that I left Nigeria the news broke out that I signed for Sölvesborg GIF and People were surprised to see it in the news paper and even my father got asked questions like how or when did I traveled. I thought I trained well enough but to my surprise I was no where near ready at all. I couldn't believe what I saw during the trainings I had to call one of my coaches back home and tell him how hard the trainings are for me. The new generation of young players don't like to train and they except someone to just come and say I will take you to trials. Many have failed not because they don't have the talent but because they don't train enough to meet the standards and social media has made them think otherwise. Your preparation is the most important thing you can do for sure yourself and just like Kobe Bryant said if you are well prepared for it you will not be afraid of failure.

Abiola Dauda

15,507 görüntüleme • 4 ay önce