Hacker News new | ask | show | jobs
by tweedler290 78 days ago
This is really cool!

Had a question on the MoE: in kimmi-K2/model.py, the router does torch.topk(..., k=self.num_experts) while every other MoE uses k=self.top_k. The ctor's top_k=8 is never stored either.. Is that intentional dense routing or should that be self.top_k?

2 comments

thanks for pointing out. its a bug
ur most welcome! if you're curious how I found it, I have made a code intelligence system. I literally fed it your repo and asked for bugs. You can try it yourself here: https://benzi.fly.dev/
fixed