正在加载视频...

视频加载失败

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 次观看 • 2 年前 •via X (Twitter)

65 条评论

parth 的头像
parth2 年前

wake up babe omkaar just dropped federated learning 🤩

omkaar 的头像
omkaar2 年前

😂😂😂

omkaar 的头像
omkaar2 年前

shout out @parthsareen for the code reviews

omkaar 的头像
omkaar2 年前

also shoutout @awnihannun for the mlx idea

sid 的头像
sid2 年前

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

omkaar 的头像
omkaar2 年前

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

sid 的头像
sid2 年前

@PrimeIntellect Would love to see your approach

siddhartha 的头像
siddhartha2 年前

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

Harry 的头像
Harry2 年前

Brilliant 🔥👏👏

Yaya Soumah 的头像
Yaya Soumah2 年前

That’s a very interesting concept!!

Mathieu Tuli 的头像
Mathieu Tuli2 年前

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

omkaar 的头像
omkaar2 年前

@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 的头像
Mathieu Tuli2 年前

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

omkaar 的头像
omkaar2 年前

@TarianLovesArch i would still love contributions + optimizations!

Mathieu Tuli 的头像
Mathieu Tuli2 年前

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

omkaar 的头像
omkaar2 年前

@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 的头像
Mathieu Tuli2 年前

Loool i fucking feel that

HDP 的头像
HDP2 年前

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

omkaar 的头像
omkaar2 年前

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

Atharva Pingale 的头像
Atharva Pingale2 年前

Does this also work with non-macs ?

omkaar 的头像
omkaar2 年前

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

Silen Naihin 的头像
Silen Naihin2 年前

this is sick!!

omkaar 的头像
omkaar2 年前

thank you!!

JaysmooveV2 的头像
JaysmooveV22 年前

Bro cooked again 👨‍🍳🔥

omkaar 的头像
omkaar2 年前

!!!

Bassel Al Omari 的头像
Bassel Al Omari2 年前

Goat-Tier video

Virat Chauhan 的头像
Virat Chauhan2 年前

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

omkaar 的头像
omkaar2 年前

😈😈😈

eggo 的头像
eggo2 年前

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

omkaar 的头像
omkaar2 年前

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

NIK 的头像
NIK2 年前

🔥

LA Bloke 的头像
LA Bloke2 年前

Can't you just use Ray Train?

omkaar 的头像
omkaar2 年前

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

io ɳ 的头像
io ɳ2 年前

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

omkaar 的头像
omkaar2 年前

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

io ɳ 的头像
io ɳ2 年前

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 的头像
omkaar2 年前

in an ideal world, not a factor at all

io ɳ 的头像
io ɳ2 年前

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 的头像
omkaar2 年前

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

io ɳ 的头像
io ɳ2 年前

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

Ankur Shukla 的头像
Ankur Shukla2 年前

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

pooria 的头像
pooria2 年前

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

omkaar 的头像
omkaar2 年前

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

omkaar 的头像
omkaar2 年前

cc: @parthsareen

pooria 的头像
pooria2 年前

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

Javier Fernandez 的头像
Javier Fernandez2 年前

Great video, once again!!

VA 的头像
VA2 年前

If you ever need more compute try @PrimeIntellect

thecollabagepatch 的头像
thecollabagepatch2 年前

@yikesawjeez 👀

omkaar 的头像
omkaar2 年前

@yikesawjeez they were kind enough to repost!

thecollabagepatch 的头像
thecollabagepatch2 年前

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

omkaar 的头像
omkaar2 年前

@yikesawjeez no way thats a huge compliment thank u!

yikes (:D/acc) 的头像
yikes (:D/acc)2 年前

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

omkaar 的头像
omkaar2 年前

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

Amrit Chera 的头像
Amrit Chera2 年前

Setting the standards for video quality! Great stuff here 👏

omkaar 的头像
omkaar2 年前

@AmritBuilds recorded on my iphone!

Tony Kam 的头像
Tony Kam2 年前

this is dope dude!

omkaar 的头像
omkaar2 年前

thank you!

TiskTusk 的头像
TiskTusk2 年前

The GPU poors shall be vindicated

μ-go 的头像
μ-go2 年前

@TiskTusk

Nag 的头像
Nag2 年前

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

omkaar 的头像
omkaar2 年前

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

AK 的头像
AK10 个月前

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 🇭🇷🇮🇪 的头像
Chris 🇭🇷🇮🇪2 年前

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

omkaar 的头像
omkaar2 年前

sick will check it out later!

Ashwin 🇮🇳 的头像
Ashwin 🇮🇳2 年前

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

相关视频

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 次观看 • 4 个月前