Earlier quoted context omitted.
Adding scaled unit gaussian noise to the logits noise = torch.randn_like(logits)*F.softplus(noise_logits) noisy_logits = logits + noise Question, if you changed this Gaussian normal for Gumbel noise you would get something like Gumbel softmax, right? I'm curious why not use it? Isn't it a usual way to implement differentiable discrete selection? My curiosity is about the effectiveness of Gumbel softmax since I have h…
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.
Implementation of mixture of experts language model in a single file of PyTorch
11–15 of 15 posts
Re: Implementation of mixture of experts language model in a single file of PyTorch
#12Earlier quoted context omitted.
Adding scaled unit gaussian noise to the logits noise = torch.randn_like(logits)*F.softplus(noise_logits) noisy_logits = logits + noise Question, if you changed this Gaussian normal for Gumbel noise you would get something like Gumbel softmax, right? I'm curious why not use it? Isn't it a usual way to implement differentiable discrete selection? My curiosity is about the effectiveness of Gumbel softmax since I have h…
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.
I find it a bit difficult to find resources describing the properties of various options for this topic of discrete choices and clustering, apart from a few papers & blogs describing the idea.
Re: Implementation of mixture of experts language model in a single file of PyTorch
#13Re: Implementation of mixture of experts language model in a single file of PyTorch
#14Earlier quoted context omitted.
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.
Question, have you seen the improvement after adding the noise? I mean in practice. Asking because intuition sometimes doesn't work.
Re: Implementation of mixture of experts language model in a single file of PyTorch
#15very cool work! we did something similar in the context of the Swiss AI initiative ( https://www.swiss-ai.org/ ) here: https://github.com/swiss-ai/MoE . The implementation is as simple and fast as nanoGPT and works with our modular llm-baselines codebase ( https://github.com/epfml/llm-baselines ) for experimenting with transformers and different datasets :)