Jiaqi Xiong / Blogs
Planned article
This note has not been published yet.
Jiaqi Xiong / Blogs
Planned article
This note has not been published yet.
Jiaqi Xiong / Blogs
A growing set of notes on machine learning, single-cell foundation models, and agents. Choose an article in the directory or start here.
从张量形状和一个最小 PyTorch 实现出发,理解缩放点积注意力、多头注意力以及两类常见掩码。
从原论文图 1 出发,梳理编码器、解码器、位置编码、残差连接与训练时的因果掩码。
从正弦绝对位置编码到旋转位置编码,理解位置如何进入注意力分数。
读懂 BERT 的输入、MLM 与原版 NSP 任务,并看一个最小 PyTorch 结构示意。
用一段最小 PyTorch 实现理解 GPT 的输入、掩码、训练目标与生成过程。
把预训练、监督微调、RLHF 与 DPO 放在同一张训练地图里,并用损失函数代码厘清标签与掩码。
理解图的节点与邻接矩阵,推导消息传递,并用轻量 PyTorch 代码看清 GCN 和 GAT。