Better HN
topnewbestaskshowjobs
Log inSign up

avisoori1x

47 karma · joined Jan 24, 2021 (5y ago) · 17 submissions

Submissions

comment 2y ago · link · parent

Please note that this is borrows heavily from GIT/ Kosmos from Microsoft and LLaVA

2.

A Simple Version of Grok 1.5/ GPT-4 Vision from scratch, in one PyTorch file(github.com ↗)

5 points · by avisoori1x · 2y ago · 1 comment

comment 2y ago · link · parent

Updated link here: https://avisoori1x.github.io/2024/04/22/seemore-_Implement_a...

Hugging Face community blogs seems to have gone down.

4.

Simple Multimodal LLM from Scratch(huggingface.co ↗)

2 points · by avisoori1x · 2y ago · 1 comment

comment 2y ago · link · parent

I implemented a vision language model consisting of an image encoder, a multimodal projection module and a decoder language model in pure PyTorch. Think of this as a simplified version of what you see in GPT-4 or Claude 3 in terms of vision capabilities demonstrated by a language model. The name ‘seemore’ is my way of paying homage to Andrej Karpathy’s ‘makemore’ because here I use a character level autoregressive language model much like in his basic transformer implementation. seemore.py in the repo has the single file with everything in it.

6.

Implementation of vision language model in a single file of PyTorch(github.com ↗)

4 points · by avisoori1x · 2y ago · 1 comment

comment 2y ago · link · parent

This repo I created and the linked blog will help in understanding this: https://github.com/AviSoori1x/makeMoE

comment 2y ago · link · parent

This is awesome! Thanks for sharing. I'll definitely check this out.

comment 2y ago · link · parent

Quite honestly not in my experiments. I wanted to do some Bayesian hyperparameter optimization with some discretized options like noise/no-noise and n_expert/top_k but haven't been able to find the time or free time in one of our GPU clusters. I plan on using perplexity as this is not yet instruction fine tuned.

comment 2y ago · link · parent

Oh nice. What's new here would be noisy top-k routing and expert capacity. It also seems to use the nanoGPT base from Andrej Karpathy. Mine is from January as well. Here's the original blog: https://huggingface.co/blog/AviSoori1x/makemoe-from-scratch

comment 2y ago · link · parent

This is a good point. I'm yet to try it as I've kind of let this project sit for a couple of months and only getting back to it. I went with this because it's simpler but I'm not sure simpler is necessarily better in this case.

comment 2y ago · link · parent

Thanks! So this is something I tried and qualitatively I didn't see a huge difference. I'd like to swap out my hand rolled modules with standard pytorch modules for self attention etc. and train it on the wikipedia English split. That's on my to-do list for sure.

comment 2y ago · link · parent

A from scratch implementation of a sparse mixture of experts language model in a single file of PyTorch. This is inspired by and largely based on Andrej Karpathy's project 'makemore' and borrows a number of re-usable components from that implementation. Just like makemore, makeMoE is also an autoregressive character-level language model but uses the aforementioned sparse mixture of experts architecture. I added Expert Capacity to this implementation to make it more complete

14.

Implementation of mixture of experts language model in a single file of PyTorch(github.com ↗)

88 points · by avisoori1x · 2y ago · 14 comments

comment 5y ago · link · parent

This seems very useful. Nice work as always!