Gamma Function
阶乘在实数域与复数域的扩展
Part IV of Mathematical Structure of Mamba - Mamba&Mamba2
Tridao的tri是Triton的tri
Triton Tutorial
都什么年代,还在用传统pytorch
Part III of Mathematical Structure of Mamba - S4D
(NIPS 22) S4D - On the Parameterization and Initialization of Diagonal State Space Models
Sparsemax
凸优化没白学
Part II of Mathematical Structure of Mamba - S4
(ICLR22) S4 - Efficiently Modeling Long Sequences with Structured State Spaces
Part I of Mathematical Structure of Mamba - Hippo
(NIPS20) HiPPO - Recurrent Memory with Optimal Polynomial Projections
Policy Gradient
策略梯度算法随笔
恢复更新通知 & 2025plan
恢复更新!恢复更新!
有一个个人博客却不写点什么实在是太可惜了。
过去的一年发生了很多事情,不论是于我还是于我正在投入的领域。
但是我却没能留下什么东西。
过去半年在Shanghai AI Lab实习,感觉自己Engineering和Research的能力都有所提高了。
现在的话,感觉能写下点有用的东西吧~
MIT 6.824 Distributed System Lab2
Lab Page:http://nil.csail.mit.edu/6.824/2022/labs/lab-raft.html
Lab概述本次lab需要实现共识算法raft。Lab2A我看应该是只需要做出election就可以,一步一步来吧。
Raft知识点网课讲的有些慢哈哈,我直接看博客学习了:https://zhuanlan.zhihu.com/p/404315977
在Raft中,节点的状态一共三种,follower,candidate和leader,每个节点在加入时都会默认成为follower。
follower并不主动发出消息,它所做的操作如下:
收到leader的heartbeat,维持follower状态。如果之前没识别到leader或识别了别的leader,则更新。
如果一段时间electionTime内没有收到heartbeat,则认为leader已经嘎了,将自己的任期term加1,成为candidate,并向其它成员发起投票请求。
接收到别的candidate的投票请求,依据先来后到原则,只给一个candidate投票。candidate的term以及日志in ...














